diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-06-11 17:09:30 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-06-11 17:09:30 +0200 |
commit | 3a31cebd1d39a6bcec2c22cbced60ca9d6177a42 (patch) | |
tree | 3cce86da26c408841e69bdee4e2ba012e0c72e47 /includes/header_start.php | |
parent | ebecae2ccc37c8930245a562852c035d5ce8d5a1 (diff) | |
parent | 80a1a65aefcd2f33951dc60c72d29df1ad19b187 (diff) |
merge special_includes_camp
Diffstat (limited to 'includes/header_start.php')
-rwxr-xr-x | includes/header_start.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/includes/header_start.php b/includes/header_start.php deleted file mode 100755 index 997fa94e..00000000 --- a/includes/header_start.php +++ /dev/null @@ -1,50 +0,0 @@ -<?PHP -ini_set( "session.gc_maxlifetime", "65535"); - -include ("config.php"); -include ("error_handler.php"); -include ("config_db.php"); -include ("funktion_lang.php"); -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". $ENGEL_ROOT ); -} - -include ("UserCVS.php"); - - -//UPdate LASTlogin -if( isset($_SESSION['UID'])) -{ - $SQLlastLogIn = "UPDATE `User` SET ". - "`lastLogIn` = '". gmdate("Y-m-j H:i:s", time()). "'". - " WHERE `UID` = '". $_SESSION['UID']. "' LIMIT 1;"; - mysql_query ($SQLlastLogIn, $con); -} - -?> |