diff --git a/admin/taches.php b/admin/taches.php index f851330..93fe157 100644 --- a/admin/taches.php +++ b/admin/taches.php @@ -1,54 +1,43 @@ send(); - if (200 == $response->getStatus()) { - $body = $response->getBody(); - //$taches = json_decode(mb_convert_encoding($body, 'UTF-8')); - $taches = json_decode($body); - } - } - catch (HTTP_Request2_Exception $ex) { - echo $ex->getMessage(); + $res = GetURL($url); + if ($res != "") { + $taches = json_decode($res); } return $taches; } // Variables -$host = $_GET['machine']; +$host = $_GET['host']; $machines = Machines(); $machine = $machines[$host]; $os = $machine[1]; $os_version = $machine[3]; $adresse_ip = $machine[4]; +$marque = $machine[5]; +$modele = $machine[6]; +$arch = $machine[7]; +$mac_addr = $machine[8]; +$mac_descr = $machine[9]; $url = $url_taches . "?host=" . $host; // Ghost + apache, port 81 $processus_utilisateur = 'IUT'; // motif identifiant un processus utilisateur dans la task list $msg = ""; -// si le script est appelé sans paramètre, on revient à la page précédente -if ($host == "" ) { - $precedent = $_SERVER["HTTP_REFERER"]; - header("Location: $precedent"); - exit; -} -$host_json = json_encode(array($host)); - $proc = Get_tasks($url); if (sizeof($proc) == 0) { $msg = "La machine ".$host." n'a renvoyé aucune réponse."; } else { - $msg=""; + $msg="
ProcessusmémoirePropriétaire
\n\n"; $lig_proc = array(); foreach($proc as $li) { $li = str_replace('ÿ','',$li); @@ -62,26 +51,7 @@ else { } $msg = $msg."
ProcessusmémoirePropriétaire
"; } + +echo($msg); ?> - - - - Winlog : Connexions en cours dans les salles - - - - - -

Processus utilisateurs de la machine     [retour]

-

OS : version
adresse IP :

-
- - - - -
- - - +