index ebac934462b25055264494abc4fac29c10f7cfc9..042908d8107d8863a3d335b4fe4736d7792f2221 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
+session_cache_limiter("private");
session::start();
-session::set('errorsAlreadyPosted',array());
+session::global_set('errorsAlreadyPosted',array());
/* Logged in? Simple security check */
-if (!session::is_set('ui')){
- new log("security","unknown","",array(),"Error: getbin.php called without session") ;
+if (!session::global_is_set('ui')){
+ new log("security","unknown","",array(),"Error: getFAIstatus.php called without session") ;
header ("Location: index.php");
exit;
}
return;
}
-$config = session::get("config");
+$config = session::global_get("config");
$o = new gosaSupportDaemon();
-$res = $o->get_entries_by_mac(array($_GET['mac']));
+$res = $o->get_entries_by_mac(explode(",", $_GET['mac']));
foreach($res as $entry){
- if(strtolower($entry['MACADDRESS']) == strtolower($_GET['mac'])){
- $img = "<img src='progress.php?x=80&y=13&p=".$entry['PROGRESS']."'
- alt='".$entry['STATUS']."' title='".$entry['STATUS']."'>";
- }
+ echo $entry['MACADDRESS']."|".$entry['PROGRESS']."\n";
}
-
-
?>
-<html>
-<head>
- <meta http-equiv="refresh" content="15">
-</head>
-<body style="margin:0px;padding:0px;">
-<?php echo $img; ?>
-</body>
-</html>