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']) : ""; $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';} if (!$country_id = (INT) @$_GET['country_id']) { $country_id = '';} $region_id=(isset($_GET['region_id'])) ? mysql_real_escape_string($_GET['region_id']) : ""; if (!$species_id = (INT) @$_GET['species_id']) { $species_id = '';} $order_by=(isset($_GET['order_by'])) ? mysql_real_escape_string($_GET['order_by']) : ""; $order=(isset($_GET['order'])) ? mysql_real_escape_string($_GET['order']) : ""; if (!$obs_day = (INT) @$_GET['obs_day']) { $obs_day = '';} if (!$obs_month = (INT) @$_GET['obs_month']) { $obs_month = '';} if (!$obs_year = (INT) @$_GET['obs_year']) { $obs_year = '';} /**********************************************************************************/ /************************************ Functions ***********************************/ /**********************************************************************************/ /**********************************************************************************/ /*********************************** Page Start ***********************************/ /**********************************************************************************/ ?> <?php echo ($page_language=='dk') ? "Fugleobservationer på " : "Bird observations on "; echo SITE_NAME . "!"; ?>
"; gui_menubar("Observationer", "Observations"); gui_menutext_start(); gui_menutext("observations.php?id=dkobs", "Danske observationer", "Danish observations"); gui_menutext("observations.php?id=faroeseobs", "Færøske observationer", "Faroese observations"); gui_menutext("observations.php?id=wp", "VP observationer ", "WP observations "); gui_menutext("observations.php?id=fps", "Fugle på Sjælland", "Birds on Zealand"); gui_menutext_end(); include("./include/menu_items_info_short.php"); $dont_show_faroese_menupoint = 1; $dont_show_wp_obs_menupoint = 1; $dont_show_latest_25_dofcalls = 1; include("./include/menu_items_various.php"); include("./include/menu_items_search.php"); include("./include/menu_items_userlogin.php"); echo "

"; echo "
"; gui_banner("other", 74); echo "

"; include("./include/menu_items_tracker.php"); echo "
"; ?>
"; gui_header_under("Danske observationer", "Danish observations", 85); echo "
"; include("./include/observations/obs_dkobs.php"); update_statistic_language('observations.php?id=dkobs'); break; case 'faroeseobs' : echo "
"; gui_header_under("Færøske observationer", "Faroese observations", 85); echo "
"; include("./include/observations/obs_faroeseobs.php"); update_statistic_language('observations.php?id=faroeseobs'); break; case 'fps' : echo "
"; gui_header_under("Fugle på Sjælland", "Birds on Zealand", 85); echo "
"; include("./include/observations/obs_fups.php"); break; case 'wp' : echo "
"; gui_header_under("VP observationer*", "WP observations", 85); echo "
"; include("./include/observations/obs_wp.php"); update_statistic_language('observations.php?id=wp'); break; default : echo "
"; gui_header_under("Danske observationer", "Danish observations", 85); echo "
"; include("./include/observations/obs_dkobs.php"); update_statistic_language('observations.php?id=dkobs'); break; } echo "
"; gui_backbutton(); ?>
"; echo "
"; gui_banner("other", 36); echo "

"; echo "
"; include("./include/menu_items_dofbasen.php"); } ?>  
db_close(); log_session_slut(); include("./include/menu_items_fatbirder.php"); ?>