<?php
include_once 'config.inc.php';
include_once 'lang.php';
if (($requireauth=='yes') && ($loggedin=='yes'))// || ($requireauth!='yes'))
{
echo 'CCC';
echo '<div class="header" id="myHeader" style="padding: 2px 0px 6px 0px">';
echo '<table border=0><tr><td><a href="/airscan.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$scanpage.'</span></a></td>';
if (($showfilemanager=='yes') && ($requireauth=='yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'index.php?rand='.$rand.'"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$userfilestxt.'</span></a></td>';
}
elseif (($showfilemanager == 'yes') && ($requireauth != 'yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'index.php?rand='.$rand.'"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$alluserfilestxt.'</span></a></td>';
}
else
{
echo '';
}
if (($showpdfmanager=='yes') && ($requireauth='yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'PDF/index.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$userpdfstxt.'</span></a></td>';
}
elseif (($showpdfmanager == 'yes') && ($requireauth != 'yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'PDF/index.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$alluserpdfstxt.'</span></a>>/td>';
}
else
{
echo '';
}
if ($_SESSION['username']=='admin')
{
echo '<td> <a href="/usermanager.php?rand='.$rand.'"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$adminbutton.'</span></a></td>';
}
if ($_SESSION['loggedin']=='yes')
{
echo '<td> <a href="/logout.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$logout.'</span></a> </td>';
}
else echo '';
if (($requireauth=='yes') && ($_SESSION['loggedin']=='yes') && ($fastload!='yes') && ($showlogintime=='yes') && ($_SESSION['expire'] > $now))
{
echo "<td><div id=\"loginStatus\">$checkloginstatustxt</div></td>";
}
else
{
echo '';
}
}
?>
</tr></table></div>
|