Code

reverted wrong style fix
[gosa.git] / html / main.php
index be42f673adb53aaee3934352a44cd71c3f1eab9a..50a3e87cf72b4cee54dd97a03541ff53e8afe51e 100644 (file)
@@ -62,7 +62,6 @@ if (!isset($_SESSION['config'])){
   exit;
 } 
 
-
 /* Check for uniqe ip address */
 $ui= $_SESSION["ui"];
 if ($_SERVER['REMOTE_ADDR'] != $ui->ip){
@@ -71,6 +70,7 @@ if ($_SERVER['REMOTE_ADDR'] != $ui->ip){
   exit;
 }
 $config= $_SESSION['config'];
+$config->check_and_reload();
 
 /* Enable compressed output */
 if (isset($config->data['MAIN']['COMPRESSED']) && preg_match('/^(true|on)$/i', $config->data['MAIN']['COMPRESSED'])){
@@ -412,6 +412,9 @@ if(isset($config->data['MAIN']['SAVE_FILTER']) && preg_match("/true/",$config->d
       @setcookie($var,base64_encode(serialize($_SESSION[$var])),time()+ 60*60*24*30);
     }
   }
+  if(isset($_GET['plug'])){
+    @setcookie("plug", $_GET['plug'],time()+ 60*60*24*30);
+  }
 }
 
 /* Show page... */