Location: PHPKode > projects > Webextreme > webextreme/useredit.php
<?php
  require("functions.php");
  if(!check_login())
  {
    header("Location: index.php");
  }
  check("domain", $_GET['domain'], 1);

  if(check("username", $_GET['username'], 0))
  {
    $result = get_mailuserinfo($_GET['username'], $_GET['domain']);
    $userinfo = parse_mailuserinfo($result);
    
  }
?>
<html>
<head>
<title><?php echo $lang['user_edit']; ?></title>
<link rel="stylesheet"                  href="style.css">
<meta http-equiv="pragma"               content="no-cache">
<meta http-equiv="content-type"         content="text/html; charset=iso-8859-1">
</head>

<body>

<div align="center">
  <table border="0" bgcolor="black" cellpadding="2" cellspacing="1">
    <form method="post" action="useredit_post.php?domain=<?php echo $_GET['domain']; ?>">
      <tr>
        <td class="highlightwhite" align="center"><?php echo $lang['user_information']; ?></td>
      </tr>
      <tr>
        <td bgcolor="white" align="center"><b><?php echo $lang['current_domain']; ?>:</b> <?php echo $_GET['domain']; ?></td>
      </tr>
      <tr>
        <td bgcolor="white">
          <table border="0" cellspacing="0" cellpadding="4" width="100%">
            <tr bgcolor="#E0E0E0">
              <td class="highlight"><?php echo $lang['username']; ?>:</td>
              <td width="60%"><input type="text" name="username" class="norm" size="15" maxlength="128" value="<?php echo get_username($userinfo["User"]); ?>"></td>
            </tr>
            <tr>
              <td class="highlight"><?php echo $lang['password']; ?>:</td>
              <td><input type="password" name="pass1" class="norm" size="15" maxlength="128"></td>
            </tr>
            <tr bgcolor="#E0E0E0">
              <td class="highlight"><?php echo $lang['verify_password']; ?>:</td>
              <td><input type="password" name="pass2" class="norm" size="15" maxlength="128"></td>
            </tr>
            <tr>
              <td class="highlight"><?php echo $lang['disk_quota']; ?>:</td>
              <td><input type="text" name="diskquota" class="norm" size="5" maxlength="10" value="<?php echo $userinfo["DiskQuota"]; ?>">&nbsp;<?php echo $lang['kb']; ?>&nbsp;<?php echo $lang['current_used']; ?>:&nbsp;<?php echo print_number($userinfo["DiskUsed"]); ?>&nbsp;<?php echo $lang['kb']; ?></td>
            </tr>
            <tr bgcolor="#E0E0E0">
              <td class="highlight"><?php echo $lang['forward_to']; ?>:</td>
              <td><input type="text" name="forward" class="norm" size="15" maxlength="128" value="<?php echo $userinfo["Forward"]; ?>"></td>
            </tr>
            <tr>
              <td class="highlight"><?php echo $lang['copy_to']; ?>:</td>
              <td><input type="text" name="copy" class="norm" size="15" maxlength="128" value="<?php echo $userinfo["Copy"]; ?>"></td>
            </tr>
            <tr bgcolor="#E0E0E0">
              <td class="highlight"><?php echo $lang['max_in_mailsize']; ?>:</td>
              <td><input type="text" name="maxinmailsize" class="norm" size="5" maxlength="10" value="<?php echo $userinfo["MaxInMailSize"]; ?>">&nbsp;<?php echo $lang['kb']; ?></td>
            </tr>
            <tr>
              <td class="highlight"><?php echo $lang['max_out_mailsize']; ?>:</td>
              <td><input type="text" name="maxoutmailsize" class="norm" size="5" maxlength="10" value="<?php echo $userinfo["MaxOutMailSize"]; ?>">&nbsp;<?php echo $lang['kb']; ?></td>
            </tr>
            <tr bgcolor="#E0E0E0">
              <td class="highlight"><?php echo $lang['access']; ?>:</td>
              <td>
<?php
  if(!is_numeric($userinfo["MailboxAccess"]))
    $userinfo["MailboxAccess"] = 3;
?>
                <input type="checkbox" name="access_pop" value="1"<?php if($userinfo["MailboxAccess"] == 1 || $userinfo["MailboxAccess"] == 3) echo " checked"; ?>> <?php echo $lang['pop3']; ?> / <input type="checkbox" name="access_imap" value="2"<?php if($userinfo["MailboxAccess"] == 2 || $userinfo["MailboxAccess"] == 3) echo " checked"; ?>> <?php echo $lang['imap4']; ?>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td align="center" bgcolor="white">
<?php
  if(check("e-mail", $userinfo["User"], 0))
  {
?>
          <input type="submit" value="<?php echo $lang['update']; ?>" class="norm" name="action">
          <input type="submit" value="<?php echo $lang['delete']; ?>" class="norm" name="action" onclick="return confirm('<?php echo $lang['really_delete_user']; ?>');">
<?php
  }
  else
  {
?>
          <input type="submit" value="<?php echo $lang['save']; ?>" class="norm" name="action">
<?php
  }
?>
          <input type="reset" value="<?php echo $lang['reset']; ?>" class="norm">
          <input type="button" value="<?php echo $lang['cancel']; ?>" class="norm" onclick="location.href='userview.php?domain=<?php echo $_GET['domain']; ?>';">
        </td>
      </tr>
    </form>
  </table>
</div>

<?php display_info(); ?>

</body>
</html>
Return current item: Webextreme