lfile('tmp/adWordsLog.txt'); // write message to the log file $log->lwrite($_SERVER['REMOTE_ADDR']); //$log->lwrite('Test message2'); //$log->lwrite('Test message3'); // close log file $log->lclose(); } //Ausgabe von Page Inhalt $getPage = new page($_SERVER['REQUEST_URI']); $create = new createFunction(); $pageAusgabe = $getPage->pageAusgabe(); $special = new loadSpecials(); $template = $getPage->getDefaultSettings(); $generalSettings = unserialize($template['settings']); $pageSettings = $pageAusgabe; $login = new login(); //Ausgabe der Metadaten $seo = $getPage->getSeo(); //Include Header include('template/'.$generalSettings['template'].'/includes/header.php'); if(isset($_POST['login'])) { echo $login->login($_POST); } //Check Sidebar $contentClass = 'class="'; if(@$pageAusgabe['sidebar'] != 0) $contentClass .= 'mSidebar'; $contentClass .= '"'; //Template laden if(isset($getPage->vorlage) && !empty($getPage->vorlage)) { include('template/'.$generalSettings['template'].'/pages/'.$getPage->vorlage.'.php'); }else{ } //Sidebar Ein/Aus if($getPage->sidebar != 0 || !empty($getPage->sidebar)) { include('template/'.$generalSettings['template'].'/includes/sidebar.php'); } include('template/'.$generalSettings['template'].'/includes/footer.php'); ?>