summaryrefslogtreecommitdiff
path: root/includes/header_start.php
diff options
context:
space:
mode:
authorAngelo Cuccato <cuccato@web.de>2010-08-31 21:16:16 +0200
committerAngelo Cuccato <cuccato@web.de>2010-08-31 21:16:16 +0200
commit2ca2400b779484ff025b0705ff4fb84ead7c4b20 (patch)
tree4e39b0b4cc6bfe705015824c7aed6b3c5d28ccce /includes/header_start.php
parent18060e60cc94c02df9680773bf5cafd35fe2aecf (diff)
clean url handling
Diffstat (limited to 'includes/header_start.php')
-rwxr-xr-xincludes/header_start.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/includes/header_start.php b/includes/header_start.php
index 218a30ec..997fa94e 100755
--- a/includes/header_start.php
+++ b/includes/header_start.php
@@ -9,17 +9,30 @@ include ("funktion_faq.php"); //für noAnswer() im menu
include ("funktion_menu.php");
include ("funktion_user.php");
+
+if( isset($SystemDisableMessage) && ( strlen($SystemDisableMessage)>0) )
+{
+ echo "<HTML>\n".
+ "<BODY>\n". $SystemDisableMessage. "\n<BODY>\n".
+ "</HTML>";
+ die();
+}
+
if( !isset($_SESSION))
+{
session_start();
+}
include ("secure.php");
if( !isset($_SESSION['IP']))
+{
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
+}
if (IsSet($_SESSION['UID']) and ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR']))
{
session_destroy ();
- header("Location: $url". substr($ENGEL_ROOT,1) );
+ header("Location: $url". $ENGEL_ROOT );
}
include ("UserCVS.php");