rendered paste body<?
session_start();
//if (!isset($_REQUEST['return'])) $_REQUEST['return'] = "ticket_main";
if($_SESSION['support_in'] == true) {
//if($_SESSION["status"]="logged") {
session_unset();
session_destroy();
//header("Location: http://localhost/Test");
//header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?page={$_REQUEST['return']}");
//header("Location: http://localhost/Test/index.php");
header ("Location: http://localhost/Test/index.php?page=main_menu");
//header( "Location:login.php?reg=2" );
exit();
}
else{
if ($_SESSION['support_in']== false) {
//the session variable isn't registered, the user shouldn't even be on this page
//header("Location: http://localhost/Test");
//header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?page={$_REQUEST['return']}");
//header("Location: http://localhost/Test/index.php");
header ("Location: http://localhost/Test/index.php?page=main_menu");
exit();
}
}
?>