632f53988387881f6ae083e541b0560e2b88def4
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php  1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/chpass.php  2) /*
modules/email/chpass.php  3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/email/chpass.php  4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

modules/email/chpass.php  5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/chpass.php  6)   Bernd Wurst <bernd@schokokeks.org>
modules/email/chpass.php  7)   Hanno Böck <hanno@schokokeks.org>
modules/email/chpass.php  8) 
modules/email/chpass.php  9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/email/chpass.php 10) 
modules/email/chpass.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
modules/email/chpass.php 12) http://creativecommons.org/publicdomain/zero/1.0/
modules/email/chpass.php 13) 
modules/email/chpass.php 14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
modules/email/chpass.php 15) */
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 16) 
modules/vmail/chpass.php 17) require_once('session/start.php');
modules/vmail/chpass.php 18) require_once('vmail.php');
bernd Alles in das email-modul ve...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 13 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 12 years ago

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

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/chpass.php 34) 
modules/vmail/chpass.php 35)   if ($_POST['old_password'] == '')
modules/vmail/chpass.php 36)     input_error('Altes Passwort nicht angegeben!');
modules/vmail/chpass.php 37)   elseif (! $result & ROLE_VMAIL_ACCOUNT)
modules/vmail/chpass.php 38)     input_error('Das bisherige Passwort ist nicht korrekt!');
modules/vmail/chpass.php 39)   elseif ($_POST['password2'] != $_POST['password1'])
modules/vmail/chpass.php 40)     input_error('Die Bestätigung ist nicht identisch mit dem neuen Passwort!');
modules/vmail/chpass.php 41)   elseif ($_POST['password2'] == '')
modules/vmail/chpass.php 42)     input_error('Sie müssen das neue Passwort zweimal eingeben!');
modules/vmail/chpass.php 43)   elseif (($check = strong_password($_POST['password1'])) !== true)
Bernd Wurst Referenzen auf cracklib ent...

Bernd Wurst authored 6 years ago

modules/email/chpass.php 44)     input_error("Das Passwort ist zu einfach ({$check})!");
bernd Auch vmail-user dürfen Pass...

bernd authored 16 years ago

modules/vmail/chpass.php 45)   else {
bernd Alles in das email-modul ve...

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/chpass.php 56)     if (! $debugmode)
bernd Index-Blöcke werden jetzt v...

bernd authored 12 years ago

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

bernd authored 16 years ago

modules/vmail/chpass.php 58)     else
modules/vmail/chpass.php 59)       output('');
modules/vmail/chpass.php 60)   }
modules/vmail/chpass.php 61) }
modules/vmail/chpass.php 62) 
modules/vmail/chpass.php 63) 
modules/vmail/chpass.php 64) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 15 years ago

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