Subversion Repositories personal-webbase

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;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&amp;modul='.$modul.'">Zur&uuml;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&ouml;rter sind nicht gleich!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=config&amp;modul='.$modul.'">Zur&uuml;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 &Auml;ndern des Passwortes war erfolgreich!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=config&amp;modul='.$modul.'">Zur&uuml;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. ?>