Code

Fixed Session calls in user plugins
[gosa.git] / gosa-core / html / getldif.php
index 95964d3ffec95077440beef2b3e41da39acb23dc..d5e528609ccfa5199e0fd0bb44f34b9f624707a3 100644 (file)
@@ -64,13 +64,13 @@ error_reporting (E_ALL | E_STRICT);
 session_start ();
 
 /* Logged in? Simple security check */
-if (!isset($_SESSION['ui'])){
+if (!session::is_set('ui')){
   new log("security","all/all","",array(),"Error: getldif.php called without session") ;
   header ("Location: index.php");
   exit;
 }
-$ui= $_SESSION["ui"];
-$config= $_SESSION['config'];
+$ui= session::get("ui");
+$config= session::get('config');
 
 /* Check ACL's */
 $dn =  base64_decode($_GET['dn']);