Aucune interface ne correspond à cet identifiant
\n"; include "inc/inc.footer.php"; exit(); } if($mode == "conf" && $_POST['num'] != "") { $r = pg_query("SELECT MAX(idaction) FROM action"); if($am = pg_fetch_array($r)) $newid = $am[0]+1; else $newid = 1; $num = pg_escape_string($_POST['num']); $opt = iconv("UTF-8", "ASCII//TRANSLIT", $_POST['opt']); if($num == -1) { pg_query("INSERT INTO action VALUES($newid, $id, 0, '$opt')"); pg_query("INSERT INTO action VALUES($newid+1, $id, 1, '$opt')"); } elseif($num == 73) { pg_query("INSERT INTO action VALUES($newid, $id, 7, 3)"); } elseif($num == 7964) { pg_query("INSERT INTO action VALUES($newid, $id, 7, 964)"); } else { pg_query("INSERT INTO action VALUES($newid, $id, $num, '$opt')"); } // Logging actions $r = pg_query("SELECT MAX(idlog) FROM action_log"); if($am = pg_fetch_array($r)) $newid = $am[0]+1; else $newid = 1; if($num == -1) { pg_query("INSERT INTO action_log VALUES($newid, '$auth_user', ".time().", $id, 0, ${a[7]})"); pg_query("INSERT INTO action_log VALUES($newid+1, '$auth_user', ".time().", $id, 1, ${a[7]})"); } elseif($num == 73) { $oldopt = $a[10]; pg_query("INSERT INTO action_log VALUES($newid, '$auth_user', ".time().", $id, 7, '$oldopt', 3)"); } elseif($num == 7964) { $oldopt = $a[10]; pg_query("INSERT INTO action_log VALUES($newid, '$auth_user', ".time().", $id, 7, '$oldopt', 964)"); } else { switch($num) { case 0: case 1: $oldopt = $a[7]; break; case 2: $oldopt = $a[4]; break; case 3: $oldopt = $a[19]; break; default: $oldopt = ''; break; } pg_query("INSERT INTO action_log VALUES($newid, '$auth_user', ".time().", $id, $num, '$oldopt', '$opt')"); } } function DisplayActions() { global $id; $r = pg_query("SELECT numaction, option FROM action WHERE idinterface = $id ORDER BY idaction"); if($a = pg_fetch_array($r)) { ?>
[Configurer]
ifNumber ifAddress ifType Description Etat En isolement"; if($a[11] != 0 && $a[11] != 4096) $voice = $a[11]; else $voice = ""; break; } ?> Vitesse M VLAN Native VLAN ${a[12]} \n"; if($voice != "") echo "\n"; ?> Voice VLAN $voice SpanningTree Portfast Port Security
0 and datelast = (SELECT MAX(datelast) FROM fdb)"); if($a = pg_fetch_array($r)) { ?>
Activé Etat Nb de MAC max Nb de MAC actuel Nb de violations Dernière MAC (00:00:00:00:00:00 peut être normal) Sticky activé Stickies
".$a[0].($a[1]==1?" (static)":"")."\n"; $a = pg_fetch_array($r); } ?>