oException=new CErrorX($oSystem); $oDBStore=new CDataStore($oSystem); $oSystem->oDBStore=&$oDBStore; unset($oSystem->oUser); unset($oSystem->oSession); $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__))); } $sSessionID=$_COOKIE["CURRENTSESSIONID"]; if(!CStringType::hexOnly($sSessionID,32)) { // sessionid ist nicht gesetzt: sessionid erzeugen. $sSessionID=$oSystem->oSession->gsGetSessionID(); $oSystem->oSession->gsIniSession($sSessionID); $sURL=$oSystem->oSiteNavi->gsGetURL($asNaviPath[0],array()); header("Location: ".$sURL); } $sRandomKey=array_shift($asNaviPath); if($sSessionID=CStringType::hexOnly($sSessionID,32)) { setcookie("CURRENTSESSIONID",$sSessionID,time()+7200,"/".CLIENTNAME."/"); $oSystem->oSession->gsStartSession($sSessionID); $sFile=CURRDIR."docs/".str_pad($_SESSION["anmeldung"]["savedpk"],8,"0",STR_PAD_LEFT).".pdf"; if(file_exists($sFile)) { header("Content-type: application/pdf"); $fp=fopen($sFile,"rb"); fpassthru($fp); fclose($fp); } } else { die("[ Error processing request ]"); }