assign_var('con', $con); $nav->assign_var('users', $users); if(!isset($_REQUEST["page"])){ $page = 'MAIN'; } else $page=$_REQUEST["page"]; $nav->assign_var('page', $page); $school = "080000"; if(isset($_REQUEST["school"])){ if($con->check_school($_REQUEST["school"]))$school = $_REQUEST["school"]; } $nav->set_master_template($school); $con->get_school_calendar($school, 7, true); if(file_exists(PAGE_PATH.$con->get_page_path($page))){ if($con->check_school($con->get_page_school($page))){ $school = $con->get_page_school($page); $nav->set_master_template($con->get_page_school($page)); } require(PAGE_PATH.$con->get_page_path($page)); } else require(PAGE_PATH.$con->get_page_path(DEFAULT_PAGE)); unset($_REQUEST["password"]); ob_start(); print_r($_REQUEST); $request = ob_get_contents(); ob_end_clean(); $query = "INSERT INTO access_log (user_name, page_id, school_id, request_data, remote_ip, timestamp) VALUES ('%s', '%s', '%s', '%s', '%s', NOW())"; $db->execute_query($query, array($_SESSION['user_name'], $page, $school, $request, $_SERVER['REMOTE_ADDR'])); ?>