bernd commited on 2010-10-15 07:52:10
Zeige 1 geänderte Dateien mit 4 Einfügungen und 3 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1836 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -132,7 +132,7 @@ function save_vmail_account($account) |
| 132 | 132 |
$account['local'] = filter_input_username($account['local']); |
| 133 | 133 |
if ($account['local'] == '') |
| 134 | 134 |
{
|
| 135 |
- input_error('Die E-Mail-Adresse braucht eine Angabe vor dem »@«!');
|
|
| 135 |
+ system_failure('Die E-Mail-Adresse braucht eine Angabe vor dem »@«!');
|
|
| 136 | 136 |
return false; |
| 137 | 137 |
} |
| 138 | 138 |
$account['domain'] = (int) $account['domain']; |
| ... | ... |
@@ -150,7 +150,7 @@ function save_vmail_account($account) |
| 150 | 150 |
} |
| 151 | 151 |
if (($account['domain'] == 0) || (! $valid_domain)) |
| 152 | 152 |
{
|
| 153 |
- input_error('Bitte wählen Sie eine Ihrer Domains aus!');
|
|
| 153 |
+ system_failure('Bitte wählen Sie eine Ihrer Domains aus!');
|
|
| 154 | 154 |
return false; |
| 155 | 155 |
} |
| 156 | 156 |
|
| ... | ... |
@@ -174,7 +174,7 @@ function save_vmail_account($account) |
| 174 | 174 |
$crack = strong_password($account['password']); |
| 175 | 175 |
if ($crack !== true) |
| 176 | 176 |
{
|
| 177 |
- input_error('Ihr Passwort ist zu einfach. bitte wählen Sie ein sicheres Passwort!'."\nDie Fehlermeldung lautet: »{$crack}«");
|
|
| 177 |
+ system_failure('Ihr Passwort ist zu einfach. bitte wählen Sie ein sicheres Passwort!'."\nDie Fehlermeldung lautet: »{$crack}«");
|
|
| 178 | 178 |
return false; |
| 179 | 179 |
} |
| 180 | 180 |
$password = "'".encrypt_mail_password($account['password'])."'"; |
| ... | ... |
@@ -242,6 +242,7 @@ function save_vmail_account($account) |
| 242 | 242 |
# notify the vmail subsystem of this new account |
| 243 | 243 |
mail('vmail@'.config('vmail_server'), 'command', "user={$account['local']}\nhost={$domainname}", "X-schokokeks-org-message: command");
|
| 244 | 244 |
} |
| 245 |
+ return true; |
|
| 245 | 246 |
} |
| 246 | 247 |
|
| 247 | 248 |
|
| 248 | 249 |