6e6b6d2f074d7b478a3e6b19c3aa6df1ecdea586
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 15 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 15 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 15 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) 
modules/vmail/chpass.php 11) $title = "Passwort ändern";
modules/vmail/chpass.php 12) 
bernd Alles in das email-modul ve...

bernd authored 15 years ago

modules/email/chpass.php 13) 
modules/email/chpass.php 14) 
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 15) if ($_POST['password1'] != '')
modules/vmail/chpass.php 16) {
bernd Alles in das email-modul ve...

bernd authored 15 years ago

modules/email/chpass.php 17)   $accname = '';
modules/email/chpass.php 18)   if ($role & ROLE_VMAIL_ACCOUNT)
modules/email/chpass.php 19)   {
modules/email/chpass.php 20)     $accname = $_SESSION['accountname'];
modules/email/chpass.php 21)   }
modules/email/chpass.php 22)   elseif ($role & ROLE_MAILACCOUNT)
modules/email/chpass.php 23)   {
modules/email/chpass.php 24)     $accname = $_SESSION['mailaccount'];
modules/email/chpass.php 25)   }
modules/email/chpass.php 26)   check_form_token('email_chpass');
modules/email/chpass.php 27)   $result = find_role($accname, $_POST['old_password']);
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

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

bernd authored 15 years ago

modules/email/chpass.php 40)     if ($role & ROLE_VMAIL_ACCOUNT)
modules/email/chpass.php 41)     {
modules/email/chpass.php 42)       DEBUG("Ändere VMail-Passwort");
modules/email/chpass.php 43)       change_vmail_password($accname, $_POST['password1']);
modules/email/chpass.php 44)     }
modules/email/chpass.php 45)     elseif ($role & ROLE_MAILACCOUNT)
modules/email/chpass.php 46)     {
modules/email/chpass.php 47)       DEBUG("Ändere IMAP-Passwort");
modules/email/chpass.php 48)       change_mailaccount(get_mailaccount_id($accname), array('password' => $_POST['password1']));
modules/email/chpass.php 49)     }
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

modules/vmail/chpass.php 52)     else
modules/vmail/chpass.php 53)       output('');
modules/vmail/chpass.php 54)   }
modules/vmail/chpass.php 55) }
modules/vmail/chpass.php 56) 
modules/vmail/chpass.php 57) 
modules/vmail/chpass.php 58) 
modules/vmail/chpass.php 59) output('<h3>Passwort ändern</h3>
modules/vmail/chpass.php 60) <p>Hier können Sie Ihr Passwort ändern.</p>
bernd eliminate .php extensions f...

bernd authored 15 years ago

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