$c_page){ if($page == $c_page_id){ if($c_page[2] == '1'){ $page_file = $c_page[1]; $page_mysql = $c_page[3]; $page_login = $c_page[4]; $page_title = $c_page[5]; $page_found = '1'; $template_include = $c_page[6]; } break; } } if(isset($_GET['u'])){ $url = 'index.php?p='.$page.'&u='.safe_input($_GET['u'],'\_').''; }else{ $url = 'index.php?p='.$page.''; } if($page_found != '1'){ header('Location: index.php'); } if($page_mysql == '1'){ require('core/mysql_core.php'); include('core/login_process.php'); } if($_SESSION['user_auth'] == '1'){ $user_login = '1'; $user_auth_id = safe_input($_SESSION['auth_user'],'\_'); }else{ $user_login = '0'; $user_auth_id = ''; } if($page_login == '1'){ if($user_login != '1' && !isset($_GET['hash_key'])){ $_SESSION['last_url'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; header('Location: index.php?p=login'); exit(); } } if($template_include == '1'){ include('template/default/index.php'); }else{ include('pages/'.$page_file.''); } ob_end_flush(); ?>