oSystem=&$oSystem; $this->msTPLPath=CURRDIR."apps/logout/tpl/"; } function gsRender($asParams) { if(is_array($asParams)) $sAction=strtolower(array_shift($asParams)); if($sAction=="leave") { $this->oSystem->oSession->KILLSession(); return ""; } $oTPL=$this->oSystem->goGetTPLParser($this->msTPLPath."main.tpl"); // logout: sessionDestroy //goGetEditor($sTitle,$sWidth,$sHeight,$distance=false,$innerdistance=false,$asButton=false) $oEditor=$this->oSystem->oUI->goGetEditor("Ausbuchen:",400,300,50,10); $oEditor->gbSetValue("content",$this->gsGetContent()); $oTPL->gbSetValue("content",$oEditor->gsParse()); return $oTPL->gsParse(); } function gsGetContent() { $oTPL=$this->oSystem->goGetTPLParser($this->msTPLPath."content.tpl"); $oTPL->gbSetValue("LEAVEURL",$this->oSystem->oSiteNavi->gsGetURL("Logout",array("LEAVE"))); return $oTPL->gsParse(); } }