aboutsummaryrefslogtreecommitdiffstats
path: root/config/openospfd
diff options
context:
space:
mode:
Diffstat (limited to 'config/openospfd')
-rw-r--r--config/openospfd/status_ospfd.php73
1 files changed, 48 insertions, 25 deletions
diff --git a/config/openospfd/status_ospfd.php b/config/openospfd/status_ospfd.php
index d2c1e1a4..51578f13 100644
--- a/config/openospfd/status_ospfd.php
+++ b/config/openospfd/status_ospfd.php
@@ -27,39 +27,62 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+require("guiconfig.inc");
-echo "<h2>Basic OSPFd statistics </h2><br>";
+$pgtitle = "OpenOSPFD: Status";
+include("head.inc");
-echo "<h3> OSPF Summary </h3>";
-echo '<pre>';
-
-$summary = system('/usr/local/sbin/ospfctl show summary', $summary);
-
-echo "<h3> OSPF Neighbors </h3>";
-echo '<pre>';
-
-$neighbor = system('/usr/local/sbin/ospfctl show neighbor', $neighbor);
-
-echo "<h3> FIB </h3>";
-echo '<pre>';
-
-$rib = system('/usr/local/sbin/ospfctl show fib', $rib);
+?>
-echo "<h3> RIB </h3>";
-echo '<pre>';
+<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<?php include("fbegin.inc"); ?>
+<p class="pgtitle"><?=$pgtitle?></font></p>
+<?php if ($savemsg) print_info_box($savemsg); ?>
-$fib = system('/usr/local/sbin/ospfctl show rib', $fib);
+<div id="mainlevel">
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<?php
+ $tab_array = array();
+ $tab_array[] = array(gettext("Settings"), false, "/pkg_edit.php?xml=openospfd.xml&id=0");
+ $tab_array[] = array(gettext("Interfaces"), false, "/pkg.php?xml=openospfd_neighbors.xml");
+ $tab_array[] = array(gettext("Status"), true, "/openospfd_status.php");
+ display_top_tabs($tab_array);
+?>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="tabcont" >
+ <form action="tinydns_status.php" method="post">
+ </form>
+ </td>
+ </tr>
+ <tr>
+ <td class="tabcont" >
-echo "<h3> OSPF Interfaces </h3>";
-echo '<pre>';
+<?php
-$interfaces = system('/usr/local/sbin/ospfctl show interfaces', $interfaces);
+defCmdT("OpenOSPFD Summary","/usr/local/sbin/ospfctl show summary");
+defCmdT("OpenOSPFD Neighbors","/usr/local/sbin/ospfctl show neighbor");
+defCmdT("OpenOSPFD FIB","/usr/local/sbin/ospfctl show fib");
+defCmdT("OpenOSPFD RIB","/usr/local/sbin/ospfctl show rib");
+defCmdT("OpenOSPFD Interfaces","/usr/local/sbin/ospfctl show interfaces");
+defCmdT("OpenOSPFD Database","/usr/local/sbin/ospfctl show database");
-echo "<h3> OSPF Database </h3>";
-echo '<pre>';
+?>
-$database = system('/usr/local/sbin/ospfctl show database', $database);
+ <div id="cmdspace" style="width:100%">
+ <?php listCmds(); ?>
+
+ <?php execCmds(); ?>
+ </div>
+ </table>
+ </td>
+ </tr>
+</table>
+</div>
-?>
+<?php include("fend.inc"); ?>
+</body>
+</html> \ No newline at end of file