From 69b37ee533664b1b3a3a5543cb829f1971bec5c7 Mon Sep 17 00:00:00 2001 From: Christian Dresel Date: Sun, 19 Aug 2018 12:49:36 +0200 Subject: [PATCH] Seite neu aufgebaut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Buttons nach oben verschoben - Home Button hinzugefĆ¼gt - Interfaces, Neighbours, Redistributed routes ausgeblendet Signed-off-by: Christian Dresel --- index.php | 128 ++++++++++++++++++++++++++---------------------------- 1 file changed, 62 insertions(+), 66 deletions(-) diff --git a/index.php b/index.php index b8cfe11..dc603fd 100644 --- a/index.php +++ b/index.php @@ -114,6 +114,14 @@ else { # Ausgabe echo "

Simple Babelweb

"; + ?>
+ + + + +
+

Babel information

"; foreach($output['data'] as $temp) { echo "$temp"; } echo ""; @@ -139,50 +147,52 @@ echo ""; } - echo "

Interfaces

"; - echo ' - - - - - - '; - foreach($output['interfaces'] as $interface) { - echo ""; - foreach($interface as $temp) { echo ""; } - echo ""; - } - echo "
Interfaceupipv6ipv4
$temp
"; - echo "

Neighbours

"; - echo ' + if (empty($_GET)) { + echo "

Interfaces

"; + echo '
- - - - - - - - - '; - foreach($output['neighbours'] as $neighbour) { - echo ""; - foreach($neighbour as $temp) { echo ""; } - echo ""; + + + + + '; + foreach($output['interfaces'] as $interface) { + echo ""; + foreach($interface as $temp) { echo ""; } + echo ""; + } + echo "
addressinterfacereachrxcosttxcostrttrttcostcost
$temp
Interfaceupipv6ipv4
$temp
"; + echo "

Neighbours

"; + echo ' + + + + + + + + + + '; + foreach($output['neighbours'] as $neighbour) { + echo ""; + foreach($neighbour as $temp) { echo ""; } + echo ""; + } + echo "
addressinterfacereachrxcosttxcostrttrttcostcost
$temp
"; + echo "

Redistributed routes

"; + echo ' + + + + '; + foreach($output['xroutes'] as $xroute) { + echo ""; + foreach($xroute as $temp) { echo ""; } + echo ""; + } + echo "
prefixmetric
$temp
"; } - echo ""; - echo "

Redistributed routes

"; - echo ' - - - - '; - foreach($output['xroutes'] as $xroute) { - echo ""; - foreach($xroute as $temp) { echo ""; } - echo ""; - } - echo "
prefixmetric
$temp
"; if($_GET['routes'] == '1') { echo "

routes

"; echo ' @@ -248,27 +258,18 @@ $v6route = explode(PHP_EOL, $v6routen); for($i = 0; $i < count($v6route); ++$i) { echo ""; - /*$line = explode(" ", $v6route[$i]); - for($n = 0; $n < 8; ++$n) { - if ($n == 0) { - echo ''; - } - else { - echo ''; - } - }*/ $destination=explode(" ", $v6route[$i]); - $source=explode(" ", strstr($v6route[$i],"from")); - $via=explode(" ", strstr($v6route[$i],"via")); - $device=explode(" ", strstr($v6route[$i],"dev")); - $proto=explode(" ", strstr($v6route[$i],"proto")); - $metric=explode(" ", strstr($v6route[$i],"metric")); + $source=explode(" ", strstr($v6route[$i],"from")); + $via=explode(" ", strstr($v6route[$i],"via")); + $device=explode(" ", strstr($v6route[$i],"dev")); + $proto=explode(" ", strstr($v6route[$i],"proto")); + $metric=explode(" ", strstr($v6route[$i],"metric")); echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; echo ""; } @@ -278,10 +279,5 @@ } ?>
- - - - -
'.$line[$n].''.$line[$n].''.$destination[0].''.$source[1].''.$via[1].''.$device[1].''.$proto[1].''.$metric[1].''.$source[1].''.$via[1].''.$device[1].''.$proto[1].''.$metric[1].'