Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | <?php |
2 | |||
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
||
4 | |||
5 | if ($aktion == 'changepwd') |
||
6 | { |
||
7 | if ($configuration[$modul]['admin_pwd'] != md5($oldpwd)) |
||
8 | { |
||
9 | die($header.'<h1>'.htmlentities($module_information->caption).'</h1>Das eingegebene aktuelle Passwort ist nicht korrekt!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=config&modul='.$modul.'">Zurück zur Eingabe</a>'.$footer); |
||
10 | } |
||
11 | |||
12 | if ($newpwd != $newpwd2) |
||
13 | { |
||
14 | die($header.'<h1>'.htmlentities($module_information->caption).'</h1>Die beiden neuen Passwörter sind nicht gleich!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=config&modul='.$modul.'">Zurück zur Eingabe</a>'.$footer); |
||
15 | } |
||
16 | |||
17 | wb_change_config('admin_pwd', md5($newpwd), $modul); |
||
18 | $_SESSION['wb_user_password'] = $newpwd; |
||
19 | |||
20 | // die($header.'<h1>'.htmlentities($module_information->caption).'</h1>Das Ändern des Passwortes war erfolgreich!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=config&modul='.$modul.'">Zurück zur Eingabe</a>'.$footer); |
||
21 | |||
22 | echo '<script language="JavaScript" type="text/javascript"> |
||
23 | <!-- |
||
24 | |||
25 | parent.location.href = \'index.php\'; |
||
26 | |||
27 | // --> |
||
28 | </script>'; |
||
29 | } |
||
30 | |||
31 | ?> |