| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | $Id: mail_add.php,v 1.6 2006/01/12 01:10:48 anarcat Exp $ |
|---|
| 4 | ---------------------------------------------------------------------- |
|---|
| 5 | AlternC - Web Hosting System |
|---|
| 6 | Copyright (C) 2002 by the AlternC Development Team. |
|---|
| 7 | http://alternc.org/ |
|---|
| 8 | ---------------------------------------------------------------------- |
|---|
| 9 | Based on: |
|---|
| 10 | Valentin Lacambre's web hosting softwares: http://altern.org/ |
|---|
| 11 | ---------------------------------------------------------------------- |
|---|
| 12 | LICENSE |
|---|
| 13 | |
|---|
| 14 | This program is free software; you can redistribute it and/or |
|---|
| 15 | modify it under the terms of the GNU General Public License (GPL) |
|---|
| 16 | as published by the Free Software Foundation; either version 2 |
|---|
| 17 | of the License, or (at your option) any later version. |
|---|
| 18 | |
|---|
| 19 | This program is distributed in the hope that it will be useful, |
|---|
| 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 22 | GNU General Public License for more details. |
|---|
| 23 | |
|---|
| 24 | To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|---|
| 25 | ---------------------------------------------------------------------- |
|---|
| 26 | Original Author of file: Benjamin Sonntag, Franck Missoum |
|---|
| 27 | Purpose of file: Ask for the values required to create a mail account |
|---|
| 28 | or a mail alias |
|---|
| 29 | ---------------------------------------------------------------------- |
|---|
| 30 | */ |
|---|
| 31 | require_once("../class/config.php"); |
|---|
| 32 | include_once("head.php"); |
|---|
| 33 | |
|---|
| 34 | $fields = array ( |
|---|
| 35 | "domain" => array ("request", "string", ""), |
|---|
| 36 | "many" => array ("request", "integer", 0), |
|---|
| 37 | ); |
|---|
| 38 | getFields($fields); |
|---|
| 39 | |
|---|
| 40 | ?> |
|---|
| 41 | <h3><?php printf(_("Add a mail to the domain %s"),"http://$domain"); ?> : </h3> |
|---|
| 42 | <?php |
|---|
| 43 | if ($error) { |
|---|
| 44 | echo "<p class=\"error\">$error</p>"; |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | ?> |
|---|
| 48 | <form action="mail_doadd.php" name="main" id="main" method="post"> |
|---|
| 49 | <table border="1" cellspacing="0" cellpadding="4"> |
|---|
| 50 | <tr><td><input type="hidden" name="domain" value="<?php echo $domain ?>" /> |
|---|
| 51 | <label for="email"><?php __("Email address"); ?></label></td><td><input class="int" type="text" name="email" id="email" value="<?php echo $email ?>" size="20" maxlength="32" />@<?php echo $domain ?></td></tr> |
|---|
| 52 | <tr><td><label for="ispop"><?php __("Is it a POP account?"); ?></label></td><td><input id="ispop" class="inc" type="checkbox" name="pop" value="1" <?php if ($pop=="1") echo "checked=\"checked\""; ?> /></td></tr> |
|---|
| 53 | <tr><td><label for="pass"><?php __("POP password"); ?></label></td><td><input class="int" type="password" name="pass" id="pass" value="<?php echo $pass; ?>" size="20" maxlength="32" /></td></tr> |
|---|
| 54 | <tr><td><label for="passconf"><?php __("Confirm password"); ?></label></td><td><input class="int" type="password" name="passconf" id="passconf" value="<?php echo $pass; ?>" size="20" maxlength="32" /></td></tr> |
|---|
| 55 | <tr><td><label for="alias"><?php __("Other recipients"); ?></label></td><td>(<?php __("One email per line"); ?>)<br /><textarea class="int" cols="32" rows="5" name="alias" id="alias"><?php echo $alias; ?></textarea></td></tr> |
|---|
| 56 | <tr><td colspan="2"><input type="hidden" name="many" value="<?php echo intval($many); ?>" /><input type="submit" class="inb" name="submit" value="<?php __("Create this mailbox"); ?>" /></td></tr> |
|---|
| 57 | </table> |
|---|
| 58 | </form> |
|---|
| 59 | <p><small> |
|---|
| 60 | <?php __("help_mail_add"); ?> |
|---|
| 61 | </small></p> |
|---|
| 62 | <script type="text/javascript"> |
|---|
| 63 | document.forms['main'].email.focus(); |
|---|
| 64 | </script> |
|---|
| 65 | <?php include_once("foot.php"); |
|---|