From 4d4c4cd4546cc36c2cc59a1881ba671b19867557 Mon Sep 17 00:00:00 2001 From: Christian Dresel Date: Wed, 24 Oct 2018 16:13:28 +0200 Subject: [PATCH] Remove old socket don't work with to much data --- index.php | 29 ----------------------------- 1 file changed, 29 deletions(-) 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;