git-svn-id: http://www.observium.org/svn/observer/trunk@659 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-10 18:47:32 +00:00
parent 7c62b0a142
commit c31780748d
+37 -39
View File
@@ -41,8 +41,8 @@ if($debug) {
<link rel="stylesheet" href="css/mktree.css" type="text/css" /> <link rel="stylesheet" href="css/mktree.css" type="text/css" />
</head> </head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<script type="text/javascript" src="js/mktree.js"></script> <script type="text/javascript" src="js/mktree.js"></script>
<script type="text/javascript"> <script type="text/javascript">
<!-- Begin <!-- Begin
function popUp(URL) { function popUp(URL) {
day = new Date(); day = new Date();
@@ -50,14 +50,14 @@ function popUp(URL) {
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=600');"); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=600');");
} }
// End --> // End -->
</script> </script>
<script type="text/javascript" src="js/overlib.js"></script> <script type="text/javascript" src="js/overlib.js"></script>
<div id="center"> <div id="center">
<div id="top" style="background: <?php echo($config['header_color']); ?>;"> <div id="top" style="background: <?php echo($config['header_color']); ?>;">
<table cellpadding="0" cellspacing="0" width="100%"> <table cellpadding="0" cellspacing="0" width="100%">
<tr> <tr>
<td align="left"></td> <td align="left"></td>
<td align="right"> <td align="right">
<?php <?php
if($_SESSION['authenticated']) { if($_SESSION['authenticated']) {
echo("Logged in as <b>".$_SESSION['username']."</b> (<a href='?logout=yes'>Logout</a>)"); echo("Logged in as <b>".$_SESSION['username']."</b> (<a href='?logout=yes'>Logout</a>)");
@@ -66,17 +66,18 @@ function popUp(URL) {
} }
if( Net_IPv6::checkIPv6($_SERVER['REMOTE_ADDR'])) { echo(" via <b>IPv6</b>"); } else { echo(" via <b>IPv4</b>"); } if( Net_IPv6::checkIPv6($_SERVER['REMOTE_ADDR'])) { echo(" via <b>IPv6</b>"); } else { echo(" via <b>IPv4</b>"); }
?> ?>
</td></tr> </td>
</table> </tr>
</div> </table>
</div>
<div id="header" style="border: 1px none #ccf;"> <div id="header" style="border: 1px none #ccf;">
<table width="100%" style="padding: 0px; margin:0px;"> <table width="100%" style="padding: 0px; margin:0px;">
<tr> <tr>
<td style="padding: 0px; margin:0px; border: none;"> <td style="padding: 0px; margin:0px; border: none;">
<div id="logo" style="padding: 10px"><a href="index.php"><img src="<?php echo($config['title_image']); ?>" alt="Logo" border="0" /></a></div> <div id="logo" style="padding: 10px"><a href="index.php"><img src="<?php echo($config['title_image']); ?>" alt="Logo" border="0" /></a></div>
</td> </td>
<td align="center"><?php <td align="center"><?php
$data = trim(shell_exec("cat " . $config['install_dir'] . "/rrd/version.txt")); $data = trim(shell_exec("cat " . $config['install_dir'] . "/rrd/version.txt"));
@@ -92,27 +93,27 @@ function popUp(URL) {
echo("<a href='http://www.observernms.org'><span class=red>New Version! <br /> <b>$major.$minor.$release</b></span></a>"); echo("<a href='http://www.observernms.org'><span class=red>New Version! <br /> <b>$major.$minor.$release</b></span></a>");
} elseif($major < $cur_major || ($major == $cur_major && $minor < $cur_minor) || ($major == $cur_major && $minor == $cur_minor && $release < $cur_release)) { } elseif($major < $cur_major || ($major == $cur_major && $minor < $cur_minor) || ($major == $cur_major && $minor == $cur_minor && $release < $cur_release)) {
} }
?>
?></td> </td>
<td align="right" style="margin-right: 10px;"> <td align="right" style="margin-right: 10px;">
<div id="topnav" style="float: right;"> <div id="topnav" style="float: right;">
<?php if($_SESSION['authenticated']) { <?php if($_SESSION['authenticated']) {
include("includes/topnav.inc"); include("includes/topnav.inc");
} ?> } ?>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<?php if($_SESSION['authenticated']) {include("includes/print-menubar.php");} else {echo('<hr color="#444444" />');} ?> <?php if($_SESSION['authenticated']) {include("includes/print-menubar.php");} else {echo('<hr color="#444444" />');} ?>
<div class="clearer"></div> <div class="clearer"></div>
<div class="content-mat" style="border: 1px none #fcc;"> <div class="content-mat" style="border: 1px none #fcc;">
<div id="content" style="border: 1px none #ccc; min-height:650px;"> <div id="content" style="border: 1px none #ccc; min-height:650px;">
<div style="margin: 7px;"></div> <div style="margin: 7px;"></div>
<?php <?php
if($_SESSION['authenticated']) { if($_SESSION['authenticated']) {
include("includes/warn-deleted-interfaces.inc.php"); include("includes/warn-deleted-interfaces.inc.php");
@@ -133,11 +134,10 @@ function popUp(URL) {
exit; exit;
} }
?> ?>
</div>
<div class="clearer"></div>
</div>
</div> </div>
</div> <div class="clearer"></div>
</div>
</div>
<?php <?php
$end = utime(); $run = $end - $start; $end = utime(); $run = $end - $start;
$gentime = substr($run, 0, 5); $gentime = substr($run, 0, 5);
@@ -146,8 +146,6 @@ function popUp(URL) {
<br />This work is licensed under the <a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GPL, version 3</a>.</div>'); <br />This work is licensed under the <a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GPL, version 3</a>.</div>');
?> ?>
</body> </body>
</html> </html>