session_set_cookie_params(0); session_start(); ini_set("upload_tmp_dir", $_SERVER['DOCUMENT_ROOT'] . "/tmp/"); //make a databaseconnection require_once("./includes/databaseconnect.php"); //make use of variables possible like http://webpage/?var1/var2/var3/var4/etc require_once("./includes/vdirs.php"); //include global functions require_once("./includes/functions.php"); //include global variables require_once("./includes/globals.php"); //allow files from actions path to be included. $includeactions = opendir('./actions'); $i = 0; while (false !== ($file = readdir($includeactions))) { if(($file != ".") AND ($file != "..")) { $file = explode(".",$file); $includables[$i] = $file[0]; } $i = $i+1; } foreach($includables as $incvalue) { if($QUERY_STRING[0] == $incvalue) { $includelocation = "./actions/" . $incvalue . ".php"; break; } } if($includelocation) { include($includelocation); } else { if($login[bedrijf] != $bedrijven[bedrijf]){ unset($_SESSION["login"]);} ?>