Hanno Böck
Spaces between string concat (.) operator, new PER codingstyle
Hanno Böck commited 354c05a at 2023-10-31 17:49:30
<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
This code is published under a 0BSD license.
Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
*/
require_once('session/start.php');
require_once('useraccounts.php');
require_once('inc/security.php');
require_role([ROLE_CUSTOMER, ROLE_SYSTEMUSER]);
$role = $_SESSION['role'];
require_once("inc/debug.php");
global $debugmode;
if ($_GET['action'] == 'new') {
system_failure('not implemented');
} 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;
} else {
$user = get_account_details($_REQUEST['uid']);
# set_systemuser_password kommt aus den Session-Funktionen!
set_systemuser_password($user['uid'], $_POST['newpass1']);
}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX