Location: PHPKode > projects > Webextreme > webextreme/aliasedit.php
<?php
  require("functions.php");
  if(!check_login())
  {
    header("Location: index.php");
  }
  if(check("username", $_GET['username'], 0))
  {
    $result = get_mailaliasinfo($_GET['username'], $_GET['domain']);
    $aliasinfo = parse_mailaliasinfo($result);
  }
?>
<html>
<head>
<title><?php echo $lang['alias_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="aliasedit_post.php?domain=<?php echo $_GET['domain']; ?>">
      <tr>
        <td class="highlightwhite" align="center"><?php echo $lang['alias_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['alias']; ?>:</td>
              <td width="70%"><input type="text" name="alias" class="norm" size="15" maxlength="128" value="<?php echo get_username($aliasinfo["Name"]);?>"></td>
            </tr>
            <tr>
              <td class="highlight"><?php echo $lang['forward_to']; ?>:</td>
              <td><input type="text" name="forward" class="norm" size="25" maxlength="128" value="<?php echo $aliasinfo["Value"]; ?>"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td align="center" bgcolor="white">
<?php
  if(check("e-mail", $aliasinfo["Name"], 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_alias']; ?>');">
<?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='aliasview.php?domain=<?php echo $_GET['domain']; ?>';">
        </td>
      </tr>
    </form>
  </table>
</div>

<?php display_info(); ?>

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