diff --git a/admin/reload_wifi.php b/admin/reload_wifi.php new file mode 100644 index 0000000..0b8fffb --- /dev/null +++ b/admin/reload_wifi.php @@ -0,0 +1,33 @@ + et rechargée à intervalles réguliers par le script wifi.php. +include_once("winlog_admin_conf.php"); +include_once('connexions.php'); +include_once('session.php'); + +$username = Username(); +$profil = Profil($username); +FiltreProfil($profil); + +$connexions_wifi = Connexions_wifi(); +$html = "\n\n"; +$lignes = ""; +$pair = false; +foreach ($connexions_wifi as $i => $con_wifi) { + $nom = $con_wifi["nom"]; + $prenom = $con_wifi["prenom"]; + $username = $con_wifi["username"]; + $debut = $con_wifi["debut"]; + $ip = $con_wifi["ip"]; + $browser = $con_wifi["browser"]; + $id = $con_wifi["id"]; + $style = ($pair) ? "even" : "odd"; + $lignes = $lignes . "\n"; + $pair = !$pair; +} + +$html = $html . $lignes . "
nomprénomcompteheure connexionadresse IPbrowserid connexion
$nom$prenom$username$debut$ip$browser$id
\n"; +echo($html); +?> + +