From 5fd39b18eb03350376b82eac67e19eae0804f67d Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 11 Dec 2008 08:03:09 +0000 Subject: [PATCH] Added vim layout git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13253 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_session.inc | 33 +++++++++++++++-------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/gosa-core/include/class_session.inc b/gosa-core/include/class_session.inc index 4a98ad2dc..2d14d1f5e 100644 --- a/gosa-core/include/class_session.inc +++ b/gosa-core/include/class_session.inc @@ -74,22 +74,22 @@ class session { ini_set("session.gc_maxlifetime",24*60*60); session_start(); - /* Check for changed browsers and bail out */ - if (isset($_SESSION['HTTP_USER_AGENT'])) - { - if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT'])) { - session_destroy(); - session_start(); - } - } else { - $_SESSION['HTTP_USER_AGENT'] = md5($_SERVER['HTTP_USER_AGENT']); - } - - /* Regenerate ID to increase security */ - if (!isset($_SESSION['started'])){ - session_regenerate_id(); - $_SESSION['started'] = true; - } + /* Check for changed browsers and bail out */ + if (isset($_SESSION['HTTP_USER_AGENT'])) + { + if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT'])) { + session_destroy(); + session_start(); + } + } else { + $_SESSION['HTTP_USER_AGENT'] = md5($_SERVER['HTTP_USER_AGENT']); + } + + /* Regenerate ID to increase security */ + if (!isset($_SESSION['started'])){ + session_regenerate_id(); + $_SESSION['started'] = true; + } } public static function destroy() @@ -109,4 +109,5 @@ class session { } } +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2