Location: PHPKode > projects > XMail PHP Admin Interface (XPAI) > xpai/menu.php
<?php
  error_reporting(E_ALL);
  session_start();
  $in_xpai = TRUE;
  include_once('./config.php');
?>

<html>
<head>
<title></title>
<link rel="stylesheet" href="./css/menu.css" type="text/css">
<base target='main'>
</head>
<body bgcolor='#357CB9' leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'>
<div id='content'>
<?php
  if (!isset($_SESSION['logged_in']) || ($_SESSION['logged_in'] == FALSE))
  {
    echo "<div class='menulink'><a href='main.php?action=login'>login</a></div>";
  } else {
    echo "Current User:<center><strong>".$_SESSION['loginname']."</strong>";
    if ($_SESSION['loginstatus'] == $login_level['LoginSuperuser']) echo " (superuser)";
    echo "</center><br>";
    echo "<div class='menulink'><a href='main.php?action=logout' onclick=\"return window.confirm('Do you really want to log off?')\">logout</a></div><br>";
    if ($_SESSION['loginstatus'] == $login_level['LoginSuperuser'])
      echo "<div class='menulink'><a href='main.php?action=userpwd'>change superuser password</a></div><br>";
    switch ($_SESSION['loginstatus'])
    {
      case $login_level['LoginSuperuser']:
        echo "<div class='menulink'><a href='./main.php?action=servervars'>manage server config</a></div><br>";
        echo "<div class='menulink'><a href='./main.php?action=frozlist'>manage frozen msgs</a></div><br>";

      case $login_level['LoginSpecialPostmaster']:
        echo "<div class='menulink'><a href='./main.php?action=domainlist'>manage mail domains</a></div><br>";

      case $login_level['LoginPostmaster']:
        if ($_SESSION['edit_domain'] != "*")
        {
          echo "Selected Domain:<center><strong>".$_SESSION['edit_domain']."</strong></center><br>";
          if ($_SESSION['loginstatus'] < $login_level['LoginSuperuser'])
          {
            echo "<div class='menulink'><a href='main.php?action=aliasdomainlist'>view domain aliases</a></div><br>";
          } else {
            echo "<div class='menulink'><a href='main.php?action=aliasdomainlist'>manage domain aliases</a></div><br>";
          };
          echo "<div class='menulink'><a href='main.php?action=globfunc'>global user functions</a></div><br>";
          echo "<div class='menulink'><a href='main.php?action=userlist'>manage users</a></div><br>";
//          echo "<div class='menulink'><a href='main.php?action=custdom'>domain mail processing</a></div>";
        } else {
          echo "No domain selected<br><br>";
        };
      case $login_level['LoginUser']:
        if ($_SESSION['edit_user'] != "*")
        {
          if ($_SESSION['loginstatus'] >= $login_level['LoginPostmaster'])
            echo "Selected User:<center><strong>".$_SESSION['edit_user']."@".$_SESSION['edit_domain']."</strong></center><br>";
          echo "<div class='menulink'><a href='main.php?action=uservars'>modify user data</a></div><br>";
          if ($_SESSION['loginstatus'] >= $login_level['LoginPostmaster'])
          {
            echo "<div class='menulink'><a href='main.php?action=aliaslist'>manage user aliases</a></div><br>";
          };
          if ($_SESSION['edit_user_type'] == 'M')
          {
            echo "<div class='menulink'><a href='main.php?action=mluserlist'>manage mailing list users</a></div><br>";
          };
          echo "<div class='menulink'><a href='main.php?action=poplnklist'>manage POP3 links</a></div><br>";
          echo "<div class='menulink'><a href='main.php?action=usermproc'>user mail processing</a></div><br>";
          if ($_SESSION['loginstatus'] < $login_level['LoginPostmaster'])
            echo "<div class='menulink'><a href='main.php?action=userpwd'>change password</a></div><br>";
        } else {
          echo "No user selected<br><br>";
        };
        break;
    }
  }
?>
<br><br><span class="credits">Copyright (C) 2002-2004,<br>Andreas Klein,<br>hide@address.com</span>
<br><br><span class="credits">XPAI Version 1.16,<br>24/10/2004</span>
<br><br>
</div>
</body>
</html>
Return current item: XMail PHP Admin Interface (XPAI)