Systemuser-Modul hinzugefügt
bernd authored 17 years ago
|
1) <?php
2)
3) require_once('session/start.php');
4)
5) require_once('useraccounts.php');
6)
7) require_once('inc/security.php');
8)
9)
10) require_role(ROLE_CUSTOMER);
11)
12) require_once("inc/debug.php");
13) global $debugmode;
14)
15) if ($_GET['action'] == 'new')
16) {
17) system_failure('not implemented');
18) /*
|
Primärer Useraccount kann d...
bernd authored 17 years ago
|
19) check_form_token('systemuser_new');
20) if (filter_input_username($_POST['username']) == '' ||
|
Systemuser-Modul hinzugefügt
bernd authored 17 years ago
|
21) filter_shell($_POST['password']) == '')
22) {
23) input_error('Sie müssen alle Felder ausfüllen!');
24) }
25) else
26) {
27) create_jabber_account($_POST['local'], $_POST['domain'], $_POST['password']);
28) if (! $debugmode)
29) header('Location: accounts.php');
30) }
31) */
32) }
33) elseif ($_GET['action'] == 'edit')
34) {
35) $error = false;
36) check_form_token('systemuser_edit');
|
Primärer Useraccount kann d...
bernd authored 17 years ago
|
37) if ($_POST['uid'] == primary_useraccount())
38) system_failure('Aus Sicherheitsgründen können Sie diesen Account nicht ändern!');
39)
|
Systemuser-Modul hinzugefügt
bernd authored 17 years ago
|
40) if ($_POST['newpass'] != '')
41) {
|
Primärer Useraccount kann d...
bernd authored 17 years ago
|
42) //if (! strong_password($_POST['newpass']))
43) // input_error('Das Passwort ist zu einfach');
44) //else
|