Rev 635 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 800 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | if (OIDplus::authUtils()->isAdminLoggedIn()) { |
31 | if (OIDplus::authUtils()->isAdminLoggedIn()) { |
32 | $out['title'] = _L('Change admin password'); |
32 | $out['title'] = _L('Change admin password'); |
33 | } else { |
33 | } else { |
34 | $out['title'] = _L('Reset admin password'); |
34 | $out['title'] = _L('Reset admin password'); |
35 | } |
35 | } |
36 | $out['icon'] = OIDplus::webpath(__DIR__).'forgot_password_big.png'; |
36 | $out['icon'] = OIDplus::webpath(__DIR__,true).'img/main_icon.png'; |
37 | 37 | ||
38 | $out['text'] = '<p>'._L('To reset the password of the administrator, create a hash below and then replace the entry in the file %1.','<b>userdata/baseconfig/config.inc.php</b>').'</p>'; |
38 | $out['text'] = '<p>'._L('To reset the password of the administrator, create a hash below and then replace the entry in the file %1.','<b>userdata/baseconfig/config.inc.php</b>').'</p>'; |
39 | $out['text'] .= '<div><label class="padding_label">'._L('New password').':</label><input type="password" id="admin_password" onkeypress="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()" onkeyup="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()"></div>'; |
39 | $out['text'] .= '<div><label class="padding_label">'._L('New password').':</label><input type="password" id="admin_password" onkeypress="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()" onkeyup="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()"></div>'; |
40 | $out['text'] .= '<div><label class="padding_label">'._L('Repeat').':</label><input type="password" id="admin_password2" onkeypress="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()" onkeyup="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()"></div>'; |
40 | $out['text'] .= '<div><label class="padding_label">'._L('Repeat').':</label><input type="password" id="admin_password2" onkeypress="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()" onkeyup="OIDplusPagePublicForgotPasswordAdmin.rehash_admin_pwd()"></div>'; |
41 | $out['text'] .= '<p><pre id="config"></pre></p>'; |
41 | $out['text'] .= '<p><pre id="config"></pre></p>'; |