Esempio n. 1
0
    $userid = '';
}
if (!isset($errorpass)) {
    $errorpass = '';
}
if (!isset($pass)) {
    $pass = '';
}
if (!isset($errorbereich)) {
    $errorbereich = '';
}
$pers_obj = new Personell();
if ($pass != '' && $mode == 'edit') {
    $pass = $_REQUEST['pass1'];
    $userid = $_REQUEST['userid'];
    $pers_obj->ResetPassword($userid, $pass);
}
if ($mode != '') {
    if ($mode != 'edit' && $mode != 'update' && $mode != 'data_saved') {
        /* Trim white spaces off */
        $username = trim($username);
        $userid = trim($userid);
        $pass = trim($pass);
        if ($username == '') {
            $errorname = 1;
            $error = 1;
        }
        if ($userid == '') {
            $erroruser = 1;
            $error = 1;
        }