diff --git a/index.php b/index.php index eb7af3d..e6cd04b 100644 --- a/index.php +++ b/index.php @@ -76,38 +76,9 @@ function checkip($ip) { '.$file.''); -/* while (1) { - $read = socket_read($sock, 1024, PHP_NORMAL_READ); - if (preg_match("/interface\b/", $read)) { $interface[] = $read; } - if (preg_match("/neighbour\b/", $read)) { $neighbour[] = $read; } - if (preg_match("/xroute\b/", $read)) { $xroute[] = $read; } - #if (preg_match("/\broute\b/", $read)){ break 1; } - if (preg_match("/\broute\b/", $read)){ $route[] = $read; } - if (preg_match("/ok/", $read)){ break 1; } - } - socket_close($sock); -*/ $file_handle = fopen($file, 'r'); $set=0; $i=0;