diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2008-12-22 19:55:00 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2008-12-22 19:55:00 +0000 |
commit | bc4d92f3c4c5f63fbf00a0ed6b52dd21929d9beb (patch) | |
tree | 50b001d876b351fcd760bb0326957a6ba3c791db /includes/header_start.php | |
parent | 2c23d9a7ae69f387e936e5113361c8e689cf21a3 (diff) |
implement ical export, bugfix schichtplan_beamer.php was not shown, add doku
git-svn-id: svn://svn.cccv.de/engel-system@323 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'includes/header_start.php')
-rwxr-xr-x | includes/header_start.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/includes/header_start.php b/includes/header_start.php new file mode 100755 index 00000000..218a30ec --- /dev/null +++ b/includes/header_start.php @@ -0,0 +1,37 @@ +<?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($_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) ); +} + +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); +} + +?> |