<?php
  ///////////////////////////////////////////////////
  //2010 (C)
  //Карпухин Павел
  ///////////////////////////////////////////////////

  $lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0,2);
  if(is_file ("../../lang/".$lang."/".$lang.".php")) include "../../lang/".$lang."/".$lang.".php";
     else include "../../lang/ru/ru.php";

  $title=$titlepage = $TEXT['alias-add-title'];
  $helppage = $TEXT['fwrd-help2'];

  require_once "../../config.php";
  require_once "../../util/top_layer2.php";

  if($result2['administrator'] == 0) puterror3($TEXT['error-loginform4']);

  if(!isset($title)) $title = $TEXT['domain-title2'];
  if(!isset($button)) $button = $TEXT['btn_add'];
  if(!isset($action)) $action = "add.php";

?>
<form enctype='multipart/form-data' action=<?php echo $action; ?> method=post>
<table>
<tr><td class=useraddedit><?php echo $TEXT['alias-who']; ?></td><td class=useraddedit><input size=50 maxlength=64 class=inputmandatory type=text name=local_part ></td></tr>
<tr><td class=useraddedit><?php echo $TEXT['tbl-domain']; ?></td><td class=useraddedit><input size=50 maxlength=200 class=inputmandatory type=text name=domain value='<?php echo $exim_def_domain; ?>' ></td></tr>
<tr><td class=useraddedit><?php echo $TEXT['alias-where']; ?></td><td class=useraddedit><textarea class=inputmandatory cols="50" rows="20" name=recipients ></textarea></td></tr>
<tr><td></td><td><input class=button type=submit value='<?php echo $button; ?>'></td></tr>
</table>
</form>
<?php
  require_once "../../util/bottom.php";
?>