Code

Added vim layout
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Dec 2008 08:03:09 +0000 (08:03 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Dec 2008 08:03:09 +0000 (08:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13253 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_session.inc

index 4a98ad2dc6aa31bd2c67c050b05b3558ea58e707..2d14d1f5ec0aa01df08c9f76ead213f893fa91ab 100644 (file)
@@ -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:
 ?>