setAdmin(false); $kernel->setModule("system"); $kernel->schema("main"); if(!isset($_GET['rewrite'])): die("Error - Application install failure"); endif; /** * @name: Strona startowa * @description: Ładowanie wszystkich zmiennych wymaganych dla strony startowej ********************************************************************************************************/ if((isset($_GET['startpage'])) AND ($_GET['startpage']=="initialize")): $kernel->setAdmin( false ); $smarty->assign("newsBlock" , $news->getLastNews()); $smarty->assign("state" , $kernel->getStates()); $smarty->assign("last10" , $announcement->getLast(10)); if($_SESSION['config']['service_blocked'] == "TRUE"): $smarty->display(APP_PATH . "templates/website/blocked.smarty"); exit; endif; endif; if(isset($_GET['defaultState'])): $announcement->defaultState($_POST['default_state']); $kernel->redirect(APP_URL); endif; include "footer.php"; ?>