oException=new CErrorX($oSystem); $oDBStore=new CDataStore($oSystem); $oSystem->oDBStore=&$oDBStore; unset($oSystem->oUser); unset($oSystem->oSession); $sSaveString=date("Y-m-d H:i:s")." ack ".str_pad(getenv("REMOTE_ADDR"),8," ",STR_PAD_LEFT)." ".$_SERVER["REQUEST_URI"]."\n"; if($fp=@fopen(CURRDIR."logs/requesturi.".date("Ymd").".log","a")) { if(CStringType::hexOnly($isMSHash,8)) { $sSaveString=date("Y-m-d H:i:s")." nack ".str_pad(getenv("REMOTE_ADDR"),8," ",STR_PAD_LEFT)." ".$_SERVER["REQUEST_URI"]."\n"; // mail("thorsten.k@kk-gbr.de","Sie an x".$_SESSION["currentscreen"],getenv("REMOTE_ADDR")."\n".time()."\n".microtime()."\n".$_SERVER["REQUEST_METHOD"]."\n".$HTTP_RAW_POST_DATA."\n".getenv("HTTP_USER_AGENT")."\n".$_SERVER["REQUEST_URI"]); fwrite($fp,$sSaveString,strlen($sSaveString)); fclose($fp); exit; } fwrite($fp,$sSaveString,strlen($sSaveString)); fclose($fp); } if(CStringType::hexOnly($isMSHash,8)) { exit; } $oSystem->oUser=new CUserD($oSystem); $oNavi=new CNavigation(CURRENT_CLIENT_KEY,$oSystem); $oSystem->oSiteNavi=&$oNavi; $oSession=new CSimpleSession(); $oSystem->oSession=&$oSession; $oUI=new CUI($oSystem); $oSystem->oUI=&$oUI; if($oSystem->oSiteNavi->gbSetCurrentScript(basename(__FILE__),isset($asNaviPath[0]))) { array_shift($asNaviPath); } else { header("Location: ".$oSystem->oSiteNavi->goToCurrentAPP(basename(__FILE__))); } if($asNaviPath[0]=="") { // sessionid ist nicht gesetzt: login senden; header("Location: ".$oSystem->oSiteNavi->getLoggedOffURL("login",false));; } if($asNaviPath[0]=="login") { array_shift($asNaviPath); if($oSystem->oSiteNavi->gbIsRandomkey($asNaviPath[0])) array_shift($asNaviPath); $oLogin=new CLogin($oSystem); echo $oLogin->gsRender($asNaviPath); } else { $sSessionID=array_shift($asNaviPath); $sRandomKey=array_shift($asNaviPath); if($sSessionID=CStringType::hexOnly($sSessionID,32)) { if($oSystem->oUser->gbCheckSession($sSessionID)) { setcookie("CURRENTSESSIONID",$sSessionID,time()+7200,"/".CLIENTNAME."/"); $oSystem->oSession->gsStartSession($sSessionID); $appliFile=CURRDIR."apps/calendar/class.calendar.php"; if(MYCURRENTPAGE==$_SESSION["currentscreen"]-1) { } else { } if(file_exists($appliFile)) { require_once($appliFile); $sCN="CCalendar"; if(class_exists($sCN)) { $o=new $sCN($oSystem); if(method_exists($o,"gsRender")) { $sClass=array_shift($asNaviPath); $asParams=$asNaviPath; $x=$o->gsRender($sClass,$asParams); echo $x; $l=$_SESSION["currentscreen"]; $l=$l==""?0:$l; $l++; $_SESSION["currentscreen"]=$l; flush(); @session_write_close(); if($oSystem->oUser->oUserData->UserPK==50) { /* echo "MAILTRACK ON"; if(!class_exists("htmlmimemail")) require_once(PATHFW."mail/htmlMimeMail.php"); $oMail=new htmlMimeMail(); $oMail->setHtml($x,"textversion"); $oMail->setSubject("SCREEN X $l"); $oMail->send(array("thorsten.k@kk-gbr.de"));*/ } } } } } else { header("Location: ".$oSystem->oSiteNavi->getLoggedOffURL("login",false));; } } else { echo "FEHLER"; } }