aa811d391f5bf692ebc4a538870a2d261bb1edb6
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php  1) <?php
modules/vmail/chpass.php  2) 
modules/vmail/chpass.php  3) require_once('session/start.php');
modules/vmail/chpass.php  4) require_once('vmail.php');
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/chpass.php  5) require_once('mailaccounts.php');
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php  6) 
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/chpass.php  7) require_role(array(ROLE_VMAIL_ACCOUNT, ROLE_MAILACCOUNT));
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php  8) 
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/chpass.php  9) $role = $_SESSION['role'];
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 10) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

modules/email/chpass.php 11) title("Passwort ändern");
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 12) 
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/chpass.php 13) 
modules/email/chpass.php 14) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/chpass.php 15) if (isset($_POST['password1']) && $_POST['password1'] != '')
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 16) {
bernd Virtuelle Accounts richtig...

bernd authored 16 years ago

modules/email/chpass.php 17)   $accname = $_SESSION['mailaccount'];
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/chpass.php 18)   check_form_token('email_chpass');
modules/email/chpass.php 19)   $result = find_role($accname, $_POST['old_password']);
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 20) 
modules/vmail/chpass.php 21)   if ($_POST['old_password'] == '')
modules/vmail/chpass.php 22)     input_error('Altes Passwort nicht angegeben!');
modules/vmail/chpass.php 23)   elseif (! $result & ROLE_VMAIL_ACCOUNT)
modules/vmail/chpass.php 24)     input_error('Das bisherige Passwort ist nicht korrekt!');
modules/vmail/chpass.php 25)   elseif ($_POST['password2'] != $_POST['password1'])
modules/vmail/chpass.php 26)     input_error('Die Bestätigung ist nicht identisch mit dem neuen Passwort!');
modules/vmail/chpass.php 27)   elseif ($_POST['password2'] == '')
modules/vmail/chpass.php 28)     input_error('Sie müssen das neue Passwort zweimal eingeben!');
modules/vmail/chpass.php 29)   elseif (($check = strong_password($_POST['password1'])) !== true)
modules/vmail/chpass.php 30)     input_error("Das Passwort ist zu einfach (cracklib sagt: {$check})!");
modules/vmail/chpass.php 31)   else {
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/chpass.php 32)     if ($role & ROLE_VMAIL_ACCOUNT)
modules/email/chpass.php 33)     {
modules/email/chpass.php 34)       DEBUG("Ändere VMail-Passwort");
modules/email/chpass.php 35)       change_vmail_password($accname, $_POST['password1']);
modules/email/chpass.php 36)     }
modules/email/chpass.php 37)     elseif ($role & ROLE_MAILACCOUNT)
modules/email/chpass.php 38)     {
modules/email/chpass.php 39)       DEBUG("Ändere IMAP-Passwort");
modules/email/chpass.php 40)       change_mailaccount(get_mailaccount_id($accname), array('password' => $_POST['password1']));
modules/email/chpass.php 41)     }
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 42)     if (! $debugmode)
bernd eliminate .php extensions f...

bernd authored 16 years ago

modules/email/chpass.php 43)       header('Location: chpass');
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 44)     else
modules/vmail/chpass.php 45)       output('');
modules/vmail/chpass.php 46)   }
modules/vmail/chpass.php 47) }
modules/vmail/chpass.php 48) 
modules/vmail/chpass.php 49) 
modules/vmail/chpass.php 50) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

modules/email/chpass.php 51) output('<p>Hier können Sie Ihr Passwort ändern.</p>
bernd eliminate .php extensions f...

bernd authored 16 years ago

modules/email/chpass.php 52) '.html_form('email_chpass', 'chpass', '', '<table>