2010-06-14 15:33:41 +00:00
|
|
|
<div id="top" style="background: <?php echo($config['header_color']); ?>;">
|
|
|
|
<table cellpadding="0" cellspacing="0" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td align="left"></td>
|
|
|
|
<td align="right">
|
2011-03-17 11:29:23 +00:00
|
|
|
<?php
|
|
|
|
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
|
|
|
|
|
|
|
if (Net_IPv6::checkIPv6($_SERVER['REMOTE_ADDR'])) { echo(" via <b>IPv6</b>"); } else { echo(" via <b>IPv4</b>"); }
|
|
|
|
?>
|
2010-06-14 15:33:41 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="header" style="border: 1px none #ccf;">
|
|
|
|
<table width="100%" style="padding: 0px; margin:0px;">
|
|
|
|
<tr>
|
|
|
|
<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>
|
|
|
|
</td>
|
|
|
|
<td align="right" style="margin-right: 10px;">
|
|
|
|
<div id="topnav" 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
|
|
|
}
|
|
|
|
?>
|
2010-06-14 15:33:41 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|