summaryrefslogtreecommitdiff
path: root/includes/header_start.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-01 17:28:03 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-01 17:28:03 +0200
commitd163b9921b3ddb71f027199c87e6cf18fbb9a624 (patch)
tree5132892ec95327cbcdd6ed93f6773bcbe0a249dc /includes/header_start.php
parentbf64254625123ecd36662628862442ccf7671699 (diff)
rebase, new flags
Diffstat (limited to 'includes/header_start.php')
-rw-r--r--includes/header_start.php76
1 files changed, 38 insertions, 38 deletions
diff --git a/includes/header_start.php b/includes/header_start.php
index 70f986cf..4795cee3 100644
--- a/includes/header_start.php
+++ b/includes/header_start.php
@@ -1,40 +1,40 @@
<?php
- ini_set("session.gc_maxlifetime", "65535");
-
- include "config/config.php";
- include "error_handler.php";
- include "config/config_db.php";
- include "funktion_lang.php";
- include "funktion_faq.php"; // fuer noAnswer() im menu
- include "funktion_menu.php";
- include "funktion_user.php";
-
- if(isset($SystemDisableMessage) && (strlen($SystemDisableMessage) > 0)) {
- echo "<html><head><title>" . $SystemDisableMessage . "</title></head>";
- echo "<body>" . $SystemDisableMessage . "</body></html>\n";
- die();
- }
-
- if(!isset($_SESSION))
- session_start();
-
- include "secure.php";
-
- if(!isset($_SESSION['IP']))
- $_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
-
- if(isset($_SESSION['UID']) && ($_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);
- }
+ini_set("session.gc_maxlifetime", "65535");
+
+include "config/config.php";
+include "error_handler.php";
+include "config/config_db.php";
+include "funktion_lang.php";
+include "funktion_faq.php"; // fuer noAnswer() im menu
+include "funktion_menu.php";
+include "funktion_user.php";
+
+if (isset ($SystemDisableMessage) && (strlen($SystemDisableMessage) > 0)) {
+ echo "<html><head><title>" . $SystemDisableMessage . "</title></head>";
+ echo "<body>" . $SystemDisableMessage . "</body></html>\n";
+ die();
+}
+
+if (!isset ($_SESSION))
+ session_start();
+
+include "secure.php";
+
+if (!isset ($_SESSION['IP']))
+ $_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
+
+if (isset ($_SESSION['UID']) && ($_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` = '" . time() . "'" .
+ " WHERE `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;";
+ mysql_query($SQLlastLogIn, $con);
+}
?>