query("SET NAMES 'utf8'"); /* Specifies whatever or not there should be a right menu on this page! */ $show_right_menu = false; /* Create the class object in order to manage the site cookie */ $coo = new Cookies_Manager_Class("UserCookie"); /* Start session management! Make at the following global variables available: SESSION_VERIFIED_USER[] (profile_id, username, password, user_level, first_name, middel_name, last_name) SESSION_VERIFIED_ADMIN[] (admin_id, username, password, admin_level, first_name, middel_name, last_name) */ start_page_session(); /* Call this method in order to check for auto login and so if auto_login is set! NOTICE that this method must have a pointer to the cookie as an argument!*/ check_for_autologin($coo); /* Call the method get_language in order to find out what language the page scould be in! NOTICE! that the method take one argument (the pointer og the cookie object)*/ $page_language = get_language($coo); /* Get left/right sitemenu picture url*/ $left_sitemenu_picture_id = get_left_sitemenu_picture_id(); if ($show_right_menu) { $right_sitemenu_picture_id = get_right_sitemenu_picture_id($left_sitemenu_picture_id); } /* Get standard "GET" variables */ $page_id=(isset($_GET['id'])) ? mysql_real_escape_string($_GET['id']) : ""; $page_mode=(isset($_GET['mode'])) ? mysql_real_escape_string($_GET['mode']) : ""; $page_option=(isset($_GET['op'])) ? mysql_real_escape_string($_GET['op']) : ""; $referer_url=(isset($_GET['rurl'])) ? mysql_real_escape_string($_GET['rurl']) : ""; /**********************************************************************************/ /****************************** Special Initialising ******************************/ /**********************************************************************************/ if (!$page_nr = (INT) @$_GET['page_nr']) { $page_nr = '1'; } else { if (!is_numeric($page_nr) Or (((int) $page_nr) < 1)) {$page_nr = '1';} } if (!$page_size = (INT) @$_GET['page_size']) { $page_size = '100'; } else { if (!is_numeric($page_size) Or (((int) $page_size) < 1)) {$page_size = '100';} } if (!$profile_id = (INT) @$_GET['profile_id']) { $profile_id = '';} $order_by=(isset($_GET['order_by'])) ? mysql_real_escape_string($_GET['order_by']) : ""; $order=(isset($_GET['order'])) ? mysql_real_escape_string($_GET['order']) : ""; $sex=(isset($_GET['sex'])) ? mysql_real_escape_string($_GET['sex']) : ""; if (!$search = (INT) @$_GET['search']) { $search = false;} if (!$country_id = (INT) @$_GET['country_id']) { $country_id = '';} $country=(isset($_GET['country'])) ? mysql_real_escape_string($_GET['country']) : ""; if (!$year = (INT) @$_GET['year']) { $year = '';} $initials=(isset($_GET['initials'])) ? mysql_real_escape_string($_GET['initials']) : ""; $userinfo=(isset($_GET['userinfo'])) ? mysql_real_escape_string($_GET['userinfo']) : ""; $picture=(isset($_GET['picture'])) ? mysql_real_escape_string($_GET['picture']) : ""; /* Table colums */ if (!$tbl_colum_sex = (INT) @$_GET['cs']) { $tbl_colum_sex = false; } else { if($tbl_colum_sex == 1) {$tbl_colum_sex = true;} } if (!$tbl_colum_year = (INT) @$_GET['cy']) { $tbl_colum_year = false; } else { if($tbl_colum_year == 1) {$tbl_colum_year = true;} } if (!$tbl_colum_added = (INT) @$_GET['ca']) { $tbl_colum_added = false; } else { if($tbl_colum_added == 1) {$tbl_colum_added = true;} } /* Include the listpictures function!*/ require_once("./include/listprofiles.php"); /**********************************************************************************/ /************************************ Functions ***********************************/ /**********************************************************************************/ /**********************************************************************************/ /*********************************** Page Start ***********************************/ /**********************************************************************************/ ?>
|
|
$page_nr, "page_size" => $page_size, "order_by" => $order_by, "order" => $order, "country_id" => $country_id, "country" => $country, "year" => $year, "initials" => $initials, "userinfo" => $userinfo, "picture" => $picture, "sex" => $sex, "tbl_colum_year" => $tbl_colum_year, "tbl_colum_added" => $tbl_colum_added, "tbl_colum_sex" => $tbl_colum_sex, "tbl_colum_foto" => true, "enable_year_functionality" => false, "enable_order_by_functionality" => $enable_order_by_functionality, "enable_page_overview_functionality" => $enable_page_overview_functionality, "enable_search_criteria_functionality" => $enable_search_criteria_functionality, "show_all_profiles" => $show_all_profiles, "search" => $search ); listprofiles($initializing_array); break; /***********************************************************************************/ /******************************** INDEX/DEFAULT PAGE *******************************/ /***********************************************************************************/ default : include("./include/profiles/profiles_index.php"); break; } /* END SWITCH($page_id) */ gui_backbutton(); ?> |