bernd
Fehlermeldung, wenn ungültige Shell gewählt wird
bernd commited bf1049d at 2010-04-19 14:20:12
<?php
require_once('session/start.php');
require_once('useraccounts.php');
require_once('inc/security.php');
require_role(array(ROLE_CUSTOMER, ROLE_SYSTEMUSER));
$role = $_SESSION['role'];
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'] == 'pwchange')
{
if (! $role & ROLE_CUSTOMER)
system_failure("Zum Ändern Ihres Passworts verwenden Sie bitte die Funktion im Hauptmenü!");
$error = false;
check_form_token('systemuser_pwchange');
if (customer_useraccount($_REQUEST['uid']))
system_failure('Zum Ändern dieses Passworts verwenden Sie bitte die Funktion im Hauptmenü!');
//if (! strong_password($_POST['newpass']))
// input_error('Das Passwort ist zu einfach');
//else
if ($_POST['newpass1'] == '' ||
$_POST['newpass1'] != $_POST['newpass2'])
{
input_error('Bitte zweimal ein neues Passwort eingeben!');
$error = true;
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX