<?
//if the module string is empty
if($_GET['module'] == ""){
include("modules/news/index.php");
$includes = $includes+1;
// LET HIER OP CHRIS!
} elseif($_GET['module'] == "index"){
echo "rot toch een eind op -_-";
}
} elseif($_GET['module'] == "news"){
include("modules/news/index.php");
} else {
//only include if the module exists
if(file_exists("modules/".$_GET['module']."/"."index.php")){
$module = $_GET['module'];
include("modules/"."$module"."/"."index.php");
$includes = $includes+1;
} else {
echo $temp_404_not_found;
$ip = $_SERVER['REMOTE_ADDR'];
$useragent = $_SERVER['HTTP_USER_AGENT'];
$url = $_SERVER['PHP_SELF']."?module=".$_GET['module'];
//if the page doesn't exists, log it
$query = "INSERT INTO $conf_mysql_prefix"."_404 (ip,useragent,url) VALUES ('$ip','$useragent','$url')";
$querys = $querys+1;
$sql = mysql_query($query);
}
}
?>