"$email"); $result = $client->call('send_mail_for_password', $params); $_REQUEST['mail_send_message'] = $result; require_once("supportpage.php"); } elseif($_REQUEST['logout'] == 'true') { $customerid = $_SESSION['customer_id']; $sessionid = $_SESSION['customer_sessionid']; $params = Array(Array('id' => "$customerid", 'sessionid'=>"$sessionid", 'flag'=>"logout")); $result = $client->call('update_login_details', $params); session_unregister('customer_id'); session_unregister('customer_name'); session_unregister('last_login'); session_unregister('support_start_date'); session_unregister('support_end_date'); session_unregister('customer_lang_preference'); //session_destroy(); //include("index.php"); include("login.php"); } else { $module = ''; $action = 'login.php'; if($_SESSION['customer_id'] != '') { $is_logged = 1; //Added to download attachments if($_REQUEST['downloadfile'] == 'true') { $filename = $_REQUEST['filename']; $fileType = $_REQUEST['filetype']; $fileid = $_REQUEST['fileid']; $filesize = $_REQUEST['filesize']; //we have to get the content by passing the customerid, fileid and filename $customerid = $_SESSION['customer_id']; $sessionid = $_SESSION['customer_sessionid']; $params = Array(Array('id'=>"$customerid", 'sessionid'=>"$sessionid", 'fileid'=>$fileid, 'filename'=>$filename)); $fileContent = $client->call('get_filecontent', $params, $Server_Path, $Server_Path); header("Content-type: $fileType"); header("Content-length: $filesize"); header("Cache-Control: private"); header("Content-Disposition: attachment; filename=$filename"); header("Content-Description: PHP Generated Data"); echo base64_decode($fileContent[0]); exit; } if($_REQUEST['module'] != '' && $_REQUEST['action'] != '') { $module = $_REQUEST['module']."/"; $action = $_REQUEST['action'].".php"; } elseif($_REQUEST['action'] != '' && $_REQUEST['module'] == '') { $action = $_REQUEST['action'].".php"; } elseif($_SESSION['customer_id'] != '') { $module = 'Tickets'; //$action = "TicketsList.php"; $action = "index.php"; } } $filename = $module.$action; if($is_logged == 1) { include("Tickets/Utils.php"); // modified by CyberTiger - start if (isset($_SESSION['customer_lang_preference'])) $customer_language = $_SESSION['customer_lang_preference']; else $customer_language = "en_us"; include("language/$customer_language.lang.php"); // modified by CyberTiger - end global $default_charset; header('Content-Type: text/html; charset='.$default_charset); include("header.html"); ?>