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"; $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); $_SESSION["app.randomkey.loaded"]=$oSystem->oSiteNavi->msRand; $_SESSION["loaded.randomkey"]=$sRandomKey; if(file_exists($appliFile)) { require_once($appliFile); $sCN="CMasterAPPIndex"; if(class_exists($sCN)) { $o=new $sCN($oSystem); if(method_exists($o,"gsrun")) { $sClass=array_shift($asNaviPath); $asParams=$asNaviPath; $x=$o->gsRun($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"; } }