bernd commited on 2008-02-02 15:36:17
Zeige 1 geänderte Dateien mit 6 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@931 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -23,6 +23,8 @@ if ($_GET['action'] == 'edit') |
| 23 | 23 |
$account['domain'] = (int) $_POST['domain']; |
| 24 | 24 |
$account['spamfilter'] = $_POST['spamfilter_action']; |
| 25 | 25 |
$account['password'] = $_POST['password']; |
| 26 |
+ if (($account['password'] == '') && ($_POST['mailbox'] == 'yes')) |
|
| 27 |
+ system_failure("Sie haben ein leeres Passwort eingegeben!");
|
|
| 26 | 28 |
if ($_POST['password'] == '**********') |
| 27 | 29 |
$account['password'] = ''; |
| 28 | 30 |
if ($_POST['mailbox'] != 'yes') |
| ... | ... |
@@ -41,8 +43,12 @@ if ($_GET['action'] == 'edit') |
| 41 | 43 |
array_push($account['forwards'], $fwd); |
| 42 | 44 |
$num++; |
| 43 | 45 |
} |
| 46 |
+ if ($num == 1) system_failure("Bitte mindestens eine Weiterleitungsadresse angeben.");
|
|
| 44 | 47 |
} |
| 45 | 48 |
|
| 49 |
+ if (($_POST['forward']!='yes') && ($_POST['mailbox']!='yes')) |
|
| 50 |
+ system_failure("Entweder eine Mailbox oder eine Weiterleitung muss angegeben werden!");
|
|
| 51 |
+ |
|
| 46 | 52 |
DEBUG($account); |
| 47 | 53 |
|
| 48 | 54 |
save_vmail_account($account); |
| 49 | 55 |