query("SET NAMES 'utf8'"); /* Specifies whatever or not there should be a right menu on this page! */ $show_right_menu = true; /* 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']) : "index"; $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 (isset($_GET['region']) AND mysql_real_escape_string($_GET['region']) !='') { $region = (INT) mysql_real_escape_string($_GET['region']); } else { $region = ''; if($page_id == "list_reports") { $page_id = "index"; } } /**********************************************************************************/ /************************************ Functions ***********************************/ /**********************************************************************************/ /**********************************************************************************/ /*********************************** Page Start ***********************************/ /**********************************************************************************/ ?> <?php echo ($page_language=='dk') ? "Turrapporter - " : "Trip reports - "; echo SITE_NAME; ?>

"; ?>
\"Turrapporter
"; include("./include/trip_reports/tr_index.php"); break; case 'links' : echo "
"; gui_header_under("Turrapporter på nettet!", "Trip Reports on the net!", 80); echo "
"; include("./include/trip_reports/tr_links.php"); break; default : echo "
\"Turrapporter

"; include("./include/trip_reports/tr_index.php"); break; } echo "
"; gui_backbutton(); ?>
 
db_close(); restore_error_handler(); include("./include/menu_items_fatbirder.php"); ?>