/****************************************************************** Module Name : Purpose : Description : Author : Sergey Suzdalcew (C) 2003 By Sergey Suzdalcew ********************************************************************/ // активизация сессий include_once("session.run.php"); include_once("func/misc.func.php"); include_once("kernel/func/private.func.php"); include_once("DB/connect.func.php"); include_once("classes/cEngine.class.php"); include_once("client_fix.php"); include_once("kernel/cSaveDesktop.class.php"); if(@$_REQUEST["format"] == "vcal") { header('Content-Type: text/x-vcalendar'); header('Content-Disposition: attachment; filename="calendar.vcs"'); } if (@$_REQUEST["format"] == "ical") { header('Content-Type: text/calendar'); header('Content-Disposition: attachment; filename="calendar.ics"'); } if($_SESSION["auth_role_id"]==1) { $_SESSION["auth_role_id"]=3; unset($_SESSION["user_id"]); } /*if($_POST["disconnect"]=="Disconnect") { echo ""; //$_POST= array(""); //$_SESSION=array(""); //$_GET=array(""); //$_POST["disconnect"]=""; }*/ if($_POST["search_string"]!="" && isset($_POST["search_string"])){ $_SESSION["search_string"]=$_POST["search_string"];} $page = new cEngine(); $html = $page -> run(); /*$savep = new cSaveDesktop(); if(isset($_SESSION["selected_date"]) || isset($_SESSION["selected_date2"])) { $fguid= mysql_fetch_object(mysql_query("select * from T_GUID where USER_ID = ".$_SESSION["user_id"])); mysql_query("DELETE FROM T_SAVE_STATE WHERE GUID = ".$fguid->ID); } $savep -> save(); #echo "
"; print_r($_REQUEST);echo ""; #echo "
"; print_r($_SESSION);echo "";*/ if($_SESSION["auth_role_id"]==1) { $_SESSION["auth_role_id"] = 3; } if(@$_REQUEST["format"]!="ical" && @$_REQUEST["format"]!="vcal" && @$_REQUEST["format"]!="csv"){ echo($html);} ?>