Rev 149 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 149 | Rev 150 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | $out['title'] = 'Reset admin password'; |
44 | $out['title'] = 'Reset admin password'; |
45 | $out['icon'] = 'plugins/'.basename(dirname(__DIR__)).'/'.basename(__DIR__).'/forgot_password_big.png'; |
45 | $out['icon'] = 'plugins/'.basename(dirname(__DIR__)).'/'.basename(__DIR__).'/forgot_password_big.png'; |
46 | 46 | ||
47 | $out['text'] = '<p>To reset the password of the administrator, create a hash below and then replace the entry in the file <b>includes/config.inc.php</b>.</p>'; |
47 | $out['text'] = '<p>To reset the password of the administrator, create a hash below and then replace the entry in the file <b>includes/config.inc.php</b>.</p>'; |
48 | $out['text'] .= '<p>New password: <input type="password" id="admin_password" onkeypress="rehash_admin_pwd()" onkeyup="rehash_admin_pwd()"></p>'; |
48 | $out['text'] .= '<p>New password: <input type="password" id="admin_password" onkeypress="rehash_admin_pwd()" onkeyup="rehash_admin_pwd()"></p>'; |
- | 49 | $out['text'] .= '<p>Repeat password: <input type="password" id="admin_password2" onkeypress="rehash_admin_pwd()" onkeyup="rehash_admin_pwd()"></p>'; |
|
49 | $out['text'] .= '<p><pre id="config"></pre></p>'; |
50 | $out['text'] .= '<p><pre id="config"></pre></p>'; |
50 | $out['text'] .= '<script> rehash_admin_pwd(); </script>'; |
51 | $out['text'] .= '<script> rehash_admin_pwd(); </script>'; |
51 | } |
52 | } |
52 | } |
53 | } |
53 | 54 | ||
54 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
55 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
55 | /* |
- | |
56 | if (file_exists(__DIR__.'/treeicon.png')) { |
- | |
57 | $tree_icon = 'plugins/'.basename(dirname(__DIR__)).'/'.basename(__DIR__).'/treeicon.png'; |
- | |
58 | } else { |
- | |
59 | $tree_icon = null; // default icon (folder) |
- | |
60 | } |
- | |
61 | - | ||
62 | $json[] = array( |
- | |
63 | 'id' => 'oidplus:forgot_password_admin', |
- | |
64 | 'icon' => $tree_icon, |
- | |
65 | 'text' => 'Reset admin password' |
- | |
66 | ); |
- | |
67 | - | ||
68 | return true; |
- | |
69 | */ |
- | |
70 | return false; |
56 | return false; |
71 | } |
57 | } |
72 | 58 | ||
73 | public function tree_search($request) { |
59 | public function tree_search($request) { |
74 | return false; |
60 | return false; |