From bc4d92f3c4c5f63fbf00a0ed6b52dd21929d9beb Mon Sep 17 00:00:00 2001 From: cookie Date: Mon, 22 Dec 2008 19:55:00 +0000 Subject: 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 --- includes/header.php | 36 +----------------------------------- includes/header_start.php | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 35 deletions(-) create mode 100755 includes/header_start.php (limited to 'includes') diff --git a/includes/header.php b/includes/header.php index 54880705..62eaf47a 100755 --- a/includes/header.php +++ b/includes/header.php @@ -1,39 +1,5 @@ $_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); -} - +include ("header_start.php"); echo "\n"; ?> 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 @@ + $_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); +} + +?> -- cgit v1.2.3-70-g09d2