mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
34 lines
858 B
PHP
34 lines
858 B
PHP
<?php
|
|
$dpagename = basename($_SERVER['PHP_SELF'], ".php");
|
|
|
|
echo "<span>Top AS:</span> ";
|
|
foreach ($top_intervals as $interval) {
|
|
echo '<a href="top.php?numhours=' . $interval['hours'] . '"';
|
|
if ($dpagename == "top" && @$_GET['numhours'] == $interval['hours'])
|
|
echo ' class="selected"';
|
|
echo '>' . $interval['label'] . '</a> | ';
|
|
}
|
|
|
|
if($showpeeras == true){
|
|
if ($dpagename == "peerusage"):
|
|
?><a href="peerusage.php" class="selected">Peer 24 hours</a> | <?php
|
|
else:
|
|
?><a href="peerusage.php">Peer 24 hours</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;
|
|
|
|
?>
|