2011-09-05 01:32:16 +00:00
|
|
|
<div id="gumax-header">
|
|
|
|
<div id="gumax-p-logo">
|
|
|
|
<div id="p-logo">
|
2011-10-13 09:27:50 +00:00
|
|
|
<a style="background-image: url('<?php echo($config['title_image']); ?>');" accesskey="z" href=""></a>
|
2011-09-05 01:32:16 +00:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
|
|
|
|
</div>
|
|
|
|
<!-- end of gumax-p-logo -->
|
|
|
|
|
|
|
|
<!-- Login Tools -->
|
|
|
|
<div id="gumax-p-login">
|
2011-09-04 21:50:48 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
2011-09-08 16:16:45 +00:00
|
|
|
$toggle_url = preg_replace('/(\?|\&)widescreen=(yes|no)/', '', $_SERVER['REQUEST_URI']);
|
|
|
|
if (strstr($toggle_url,'?')) { $toggle_url .= '&'; } else { $toggle_url .= '?'; }
|
|
|
|
|
|
|
|
if($_SESSION['widescreen'] === 1)
|
|
|
|
{
|
|
|
|
echo('<a href="' . $toggle_url . 'widescreen=no" title="Switch to normal screen width layout">Normal width</a> | ');
|
|
|
|
} else {
|
|
|
|
echo('<a href="' . $toggle_url . 'widescreen=yes" title="Switch to wide screen layout">Widescreen</a> | ');
|
|
|
|
}
|
2011-09-04 21:50:48 +00:00
|
|
|
|
2011-03-17 11:29:23 +00:00
|
|
|
if ($_SESSION['authenticated'])
|
|
|
|
{
|
|
|
|
echo("Logged in as <b>".$_SESSION['username']."</b> (<a href='?logout=yes'>Logout</a>)");
|
|
|
|
} else {
|
|
|
|
echo("Not logged in!");
|
|
|
|
}
|
2011-03-28 20:29:34 +00:00
|
|
|
|
2011-09-08 16:16:45 +00:00
|
|
|
if (Net_IPv6::checkIPv6($_SERVER['REMOTE_ADDR'])) {
|
|
|
|
echo(' via <b>IPv6</b>');
|
|
|
|
} else {
|
|
|
|
echo(' via <b>IPv4</b>');
|
|
|
|
}
|
2011-03-28 20:29:34 +00:00
|
|
|
?>
|
2010-06-14 15:33:41 +00:00
|
|
|
|
2011-09-05 01:32:16 +00:00
|
|
|
</div>
|
|
|
|
<div style="float: right;">
|
|
|
|
|
2011-03-17 11:29:23 +00:00
|
|
|
<?php
|
|
|
|
if (isset($_SESSION['authenticated']) && $_SESSION['authenticated'])
|
|
|
|
{
|
2011-03-17 16:18:05 +00:00
|
|
|
include("includes/topnav.inc.php");
|
2011-03-17 11:29:23 +00:00
|
|
|
}
|
|
|
|
?>
|
2011-09-05 01:32:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-09-20 14:37:54 +00:00
|
|
|
<!-- ///// end of gumax-header ///// -->
|
2011-09-05 01:32:16 +00:00
|
|
|
|