Code

Updated check for boolean config values
[gosa.git] / gosa-core / html / getFAIstatus.php
index 42d67404a46f2450f2de94550e9a6ceff20dcbcf..042908d8107d8863a3d335b4fe4736d7792f2221 100644 (file)
 @require_once ("../include/php_setup.inc");
 @require_once ("functions.inc");
 
+session_cache_limiter("private");
 session::start();
 session::global_set('errorsAlreadyPosted',array());
 
 /* Logged in? Simple security check */
 if (!session::global_is_set('ui')){
-  new log("security","unknown","",array(),"Error: getbin.php called without session") ;
+  new log("security","unknown","",array(),"Error: getFAIstatus.php called without session") ;
   header ("Location: index.php");
   exit;
 }
@@ -41,7 +42,7 @@ if(!isset($_GET['mac'])){
 
 $config = session::global_get("config");
 $o =  new gosaSupportDaemon();
-$res = $o->get_entries_by_mac(split(",",$_GET['mac']));
+$res = $o->get_entries_by_mac(explode(",", $_GET['mac']));
 foreach($res as $entry){
        echo $entry['MACADDRESS']."|".$entry['PROGRESS']."\n";
 }