# Copyright 2003 by IT-Ernity High-End IT Solutions # */ //Some settings for XHTML 1.0 compatibility ini_set("session.use_trans_sid", "0"); ini_set("arg_separator.output", "&"); //Setting to give session garbage collecting 10% change of running on query ini_set("session.gc_probability", "10"); //Register some variables $errors = array(); //Include functions, classes and configuration include("config.php"); include("./lib/functions.php"); include("./lib/class_db.php"); include("./lib/class_session.php"); include("./lib/class_nav.php"); include("./lib/class_mail.php"); //Make initial db connect $db = new db(); $dbh = $db->db_connect($C_db_user, $C_db_pass, $C_db_host); //Choose default db $db->db_select($C_db); //Start session handler session_start(); //Decide on called page if(isset($_GET["p"]) && $_GET["p"] != "" && array_key_exists($_GET["p"], $C_pages)){ $page = $_GET["p"]; } elseif (isset($_POST["p"]) && $_POST["p"] != "" && array_key_exists($_POST["p"], $C_pages)) { $page = $_POST["p"]; } else { $page = $C_default_page; } //Build location $_SESSION["location"] = array(); $_SESSION["location"][] = array("label" => "Home", "link" => "index.php"); if($page == "about") { $_SESSION["location"][] = array("label" => "About us", "link" => ""); } elseif ($page == "projects") { $_SESSION["location"][] = array("label" => "Projects", "link" => ""); } elseif ($page == "publications") { $_SESSION["location"][] = array("label" => "Publications", "link" => ""); } elseif ($page == "calendar") { $_SESSION["location"][] = array("label" => "Calendar", "link" => ""); } elseif ($page == "faq") { $_SESSION["location"][] = array("label" => "FAQ", "link" => ""); } elseif ($page == "links") { $_SESSION["location"][] = array("label" => "Links", "link" => ""); } elseif ($page == "news") { $_SESSION["location"][] = array("label" => "News", "link" => ""); } elseif ($page == "mailinglist") { $_SESSION["location"][] = array("label" => "Mailinglist", "link" => ""); } elseif ($page == "sitemap") { $_SESSION["location"][] = array("label" => "Sitemap", "link" => ""); } elseif ($page == "search") { $_SESSION["location"][] = array("label" => "Search", "link" => ""); } //Build random pic array if needed if(!isset($_SESSION["pic_array"]) || count($_SESSION["pic_array"]) == 0) { $_SESSION["pic_array"] = array(); $path = $C_random_pic_path; $fhandle = opendir($path); while($a = readdir($fhandle)) { if(!preg_match('/^\./',$a)){ $_SESSION["pic_array"][] = $a; } } } //Decide on random pic srand ((float) microtime() * 10000000); $rand_pic_key = array_rand($_SESSION["pic_array"], 2); ?> PREM - Poverty Reduction and Environmental Management
To Main Menu

Do you want to be added to our mailinglist?

Then fill in your e-mail address here, and press the button.

You are here: " . $foo["value"]["label"] . ""; } else { echo "" . $foo["value"]["label"] . ""; } } ?>