get('id')) { include(SERVERBASE."/inc/sections/page.php"); $maincall = 'pageManager'; } } if(!class_exists($maincall)) { $mainstack = new mainstack(); if($maincall == 'notfound') $mainstack->notFound(); } else $mainstack = new $maincall(); //get the sidebar if($rootrequest != getSetting('admin_url')) $mainstack->appendSidebar(getThemedSidebar(true, true)); //set the title etc $mainstack->addTitle(getSetting('site_title')); if($mainstack->numTitles() == 1) { if(strlen(getSetting('site_subtitle'))) $mainstack->addTitle(getSetting('site_subtitle')); } $mainstack->renderSite(); $mainstack->cleanUp(); setToken(); debug(); exit();