bernd
* alle internen Links sinnvoll (und gleichartig!) encoden * Automatischer Upgrader für Drupal funktioniert jetzt
bernd commited d5f2f3f at 2009-03-07 14:48:53
<?php
require_once('session/start.php');
require_once('useraccounts.php');
require_once('inc/security.php');
require_role(ROLE_CUSTOMER);
require_once("inc/debug.php");
global $debugmode;
if ($_GET['action'] == 'new')
{
system_failure('not implemented');
/*
check_form_token('systemuser_new');
if (filter_input_username($_POST['username']) == '' ||
filter_shell($_POST['password']) == '')
{
input_error('Sie müssen alle Felder ausfüllen!');
}
else
{
create_jabber_account($_POST['local'], $_POST['domain'], $_POST['password']);
if (! $debugmode)
header('Location: accounts');
}
*/
}
elseif ($_GET['action'] == 'edit')
{
$error = false;
check_form_token('systemuser_edit');
if (customer_useraccount($_POST['uid']))
system_failure('Aus Sicherheitsgründen können Sie diesen Account nicht ändern!');
if ($_POST['newpass'] != '')
{
//if (! strong_password($_POST['newpass']))
// input_error('Das Passwort ist zu einfach');
//else
if ($_POST['newpass2'] == '' ||
$_POST['newpass'] != $_POST['newpass2'])
{
input_error('Bitte zweimal ein neues Passwort eingeben!');
$error = true;
}
else
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX