AS-Stats/www/headermenu.inc
Manuel Kasper c40a7fff28 Various fixes
Fix command line injection. Make number of hours in top.php a parameter
instead of duplicating file. Add config setting for compatibility with
old (< 1.3) RRDtool versions. Move contributed shell scripts to subdir.
2014-03-12 14:05:29 +01:00

46 lines
1.1 KiB
PHP

<?php
$dpagename = basename($_SERVER['PHP_SELF'], ".php");
if ($dpagename == "top" && !@$_GET['numhours']):
?><a href="top.php" class="selected">Top AS</a> | <?php
else:
?><a href="top.php">Top AS</a> | <?php
endif;
if ($dpagename == "top" && @$_GET['numhours'] == 4):
?><a href="top.php?numhours=4" class="selected">4 Hour</a> | <?php
else:
?><a href="top.php?numhours=4">4 Hour</a> | <?php
endif;
if ($dpagename == "top" && @$_GET['numhours'] == 12):
?><a href="top.php?numhours=12" class="selected">12 Hour</a> | <?php
else:
?><a href="top.php?numhours=12">12 Hour</a> | <?php
endif;
if ($dpagename == "history"):
?><a href="history.php" class="selected">View an AS</a> | <?php
else:
?><a href="history.php">View an AS</a> | <?php
endif;
if ($dpagename == "asset"):
?><a href="asset.php" class="selected">View an AS-SET</a> | <?php
else:
?><a href="asset.php">View an AS-SET</a> | <?php
endif;
if ($dpagename == "linkusage"):
?><a href="linkusage.php" class="selected">Link usage</a><?php
else:
?><a href="linkusage.php">Link usage</a><?php
endif;
?>