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(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/main/class.".strtolower(CURRAPP).".php"; $oTPL=new CTemplateParser(join(file(CURRDIR."/scripts/sys.js"))); $oTPL->gbSetValue("CALENDARURL",$oSystem->oSiteNavi->gsGetURL("NoPast",array(),"calendar")); $oTPL->gbSetValue("INFOURL",$oSystem->oSiteNavi->gsGetURL("Show",array(),"info")); echo $oTPL->gsParse(); } else { header("Location: ".$oSystem->oSiteNavi->getLoggedOffURL("login",false));; } } else { echo "FEHLER"; } }