$salle
";
}
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) {
return false;
}
$req = "($req_connexions $where) UNION ($req_total_connexions $where) ORDER BY con_id DESC";
$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 . "
WINLOG
Rappel critères :
Résultats :