Redirect back to search menu header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_cust_search"); } } } } // Check action if (is_valid_action("cust_info", "cust_change")) { // Check if this is a recall action if ((is_valid_action("cust_info", "cust_change")) && ((!$_SESSION[$_PAGE_INFO['id']]['recall_counter']) || (isset($_GET['login'])))) { // Login info redirect? if (isset($_GET['login'])) { // Login info and clear all search filters $_SESSION[$_PAGE_INFO['id']]['search']['customer'] = array(); $_SESSION[$_PAGE_INFO['id']]['search']['customer']['id'] = $_SESSION[$_PAGE_INFO['id']]['login']['customer']['id']; } if (isset($_SESSION[$_PAGE_INFO['id']]['search']['customer']['id'])) { // Log user-customer action (use log entry from Ver_Rights_Project_Log function) db_log_user_customer($_SESSION[$_PAGE_INFO['id']]['search']['customer']['id']); // Retrieve customer data $row_cust = db_fetch_customer($_SESSION[$_PAGE_INFO['id']]['search']['customer']['id'], 1); if (is_array($row_cust)) { $_SESSION[$_PAGE_INFO['id']]['customer_info'] = $row_cust; // Customer options $options = split(",", $_SESSION[$_PAGE_INFO['id']]['customer_info']['klant_status']); if (is_array($options)) { foreach ($options as $item) { $_SESSION[$_PAGE_INFO['id']]['customer_info'][str_replace(" " , "_", $item)] = 1; } } } else { // ID not valid!!! => Redirect back to search menu header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_cust_search"); } } else { // ID not valid!!! => Redirect back to search menu header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_cust_search"); } } } // Store title $_SESSION[$_PAGE_INFO['id']]['title'] = $title; // Show page header print_xml_header(); // Include info content include("menu_cust_info_content.php"); // Show page footer print_page_footer(); } ?>