commit
31d4e30275
24
index.php
24
index.php
|
@ -114,6 +114,14 @@
|
|||
else {
|
||||
# Ausgabe
|
||||
echo "<h1>Simple Babelweb</h1>";
|
||||
?><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
|
||||
<button type="submit" name="" value="">home</button>
|
||||
<button type="submit" name="routes" value="1">show all babel routes</button>
|
||||
<button type="submit" name="v4table" value="1">show import/export table ipv4</button>
|
||||
<button type="submit" name="v6table" value="1">show import/export table ipv6</button>
|
||||
</form>
|
||||
<H2>Babel information</H2><?php
|
||||
|
||||
echo "<table>";
|
||||
foreach($output['data'] as $temp) { echo "<tr><td>$temp</td></tr>"; }
|
||||
echo "</table>";
|
||||
|
@ -139,6 +147,7 @@
|
|||
echo "</table>";
|
||||
}
|
||||
|
||||
if (empty($_GET)) {
|
||||
echo "<H2>Interfaces</H2>";
|
||||
echo '<table>
|
||||
<tr>
|
||||
|
@ -183,6 +192,7 @@
|
|||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
if($_GET['routes'] == '1') {
|
||||
echo "<H2>routes</H2>";
|
||||
echo '<table>
|
||||
|
@ -248,15 +258,6 @@
|
|||
$v6route = explode(PHP_EOL, $v6routen);
|
||||
for($i = 0; $i < count($v6route); ++$i) {
|
||||
echo "<tr>";
|
||||
/*$line = explode(" ", $v6route[$i]);
|
||||
for($n = 0; $n < 8; ++$n) {
|
||||
if ($n == 0) {
|
||||
echo '<td><a href="'.$_SERVER["PHP_SELF"].'?ip='.$line[$n].'">'.$line[$n].'</a></td>';
|
||||
}
|
||||
else {
|
||||
echo '<td>'.$line[$n].'</td>';
|
||||
}
|
||||
}*/
|
||||
$destination=explode(" ", $v6route[$i]);
|
||||
$source=explode(" ", strstr($v6route[$i],"from"));
|
||||
$via=explode(" ", strstr($v6route[$i],"via"));
|
||||
|
@ -278,10 +279,5 @@
|
|||
}
|
||||
?>
|
||||
<br>
|
||||
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
|
||||
<button type="submit" name="routes" value="1">show all babel routes</button>
|
||||
<button type="submit" name="v4table" value="1">show import/export table ipv4</button>
|
||||
<button type="submit" name="v6table" value="1">show import/export table ipv6</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue