"; } if ($machine != "") { $and = ($contrainte) ? " AND " : ""; $where = $where . $and . "hote = \"{$machine}\""; $contrainte = true; $liste_const = $liste_const. "machine = $machine
"; } if ($compte != "") { $and = ($contrainte) ? " AND " : ""; $where = $where . $and . "username = \"{$compte}\""; $contrainte = true; $liste_const = $liste_const. "compte = $compte
"; } if ($ip != "") { $and = ($contrainte) ? " AND " : ""; $where = $where . $and . " ip = \"{$ip}\""; $contrainte = true; $liste_const = $liste_const. "ip = $ip
"; } if (!$contrainte) { echo("vous devez saisir au moins un critère
"); } $req = "($req_connexions $where) UNION ($req_total_connexions $where) ORDER BY con_id DESC"; //echo $req; $res = db_query($db, $req); return $res; } // fonction AfficheResultats($tab) : formatte l'affichage d'un jeu de résultats function FormatteResultats(&$db, &$res) { $r = ""; $cols = db_fetch_column_names($res); foreach($cols as $name) { $r = $r . "$name"; } while ($li = db_fetch_row($res)) { $r = $r . ""; foreach($li as $col) { $r = $r . "$col"; } $r = $r . "\n"; } db_free($res); $resultats = "\n$r
"; return $resultats; } ?> Winlog

WINLOG

Rappel critères :