#session_start(); #error_reporting("E_ALL & ~E_NOTICE"); # #$access_security = TRUE; #$page = $_GET['p']; # # #include("system/lang/ba.php"); #include("system/helpers.php"); #include("system/config.php"); # # #if(empty($page)){ # $path_view = "system/templates/default/main.php"; #} else { # $path_view = "system/views/".$page.".php"; # $path_controller = "system/controllers/".$page.".php"; #} #if(logged() && $login_banned!='0'){ $path_view = "system/views/banned.php"; $path_controller = "system/controllers/banned.php"; } #if(!file_exists($path_view)) { header('Location: /404'); } else { include("system/preloader.php"); if(file_exists($path_controller)){include($path_controller);} include("system/templates/default/header.php"); include($path_view); include("system/templates/default/footer.php"); }