Location: PHPKode > projects > RepMan > repman/inc/menu.php
<?
  session_start();
  require ('inc/functions.php');
  if (isset($_POST["apwd"])) {
    if(Login("config",$_POST["apwd"])) { echo "<div class=\"info\"><p>Admin is logged in.</p></div>"; }
  }
  if (isset($_GET["logout"])) {
  	Logout();
  }
?>
<a name="top"></a>
<ul id="menu">
  <li><a href="index.php">Report</a></li>
  <li><a href="jobs.php">Plans</a></li>
  <li><a href="clients.php">Clients</a></li>
  <li><a href="jobs.php?jobtype=1">Jobs</a></li>
  <?
    echo sayifadmin("<li><a href=\"mailing.php\">Mailing list</a></li>\n",0);
    echo sayifadmin("<li><a href=\"users.php\">Users</a></li>\n",0);
    /*echo sayifadmin("<li><a href=\"run.php\">RUN!</a></li>\n",0);*/
    echo sayifadmin("<li><a href=\"?logout=1\"><b>Logout</b></a></li>\n",0);
  ?>
  <?if ((isset($_GET["admin"]))&&(!isset($_POST["apwd"]))&&(!isset($_SESSION["log"])||($_SESSION["log"]!=1))) { echo "<li><form action=\"\" method=\"post\"><input type=\"password\" name=\"apwd\" id=\"apwd\"><input type=\"submit\" style=\"font-size: 8pt; height: 14pt; margin-bottom: 1pt;\" value=\"Login\"></form></li>"; }?>
</ul>
     

<div id="logo">
  <a href="help.php?id=about.php"> <img src="img/repman.png" alt="Repman logo" title="about RepMan" height="34px" style="border-width: 0px;"> </a>
</div>

<div id="rmenu">
  <?
    if (isLoggedIn()) {
      echo "<a href=\"?logout=1\"><img src=\"img/key.png\" alt=\"key.png\" title=\"Logout administrator\" border=\"0\"></a>";
    } else {
      echo "<a href=\"?admin=1\"><img src=\"img/admin.png\" alt=\"admin.png\" title=\"Log as administrator\" border=\"0\"></a>";
    }
  ?>
  <!-- <img src="img/pruh.png" alt="pruh.png" border="0" height="1px" width="70px"> -->
  <a href="help.php?id=<? echo PHPname(); ?>"><img src="img/help.png" alt="help.png" title="Help me" border="0"></a>                
</div>
Return current item: RepMan