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 27... | Line 27... | ||
27 | 27 | ||
28 | public function gui($id, &$out, &$handled) { |
28 | public function gui($id, &$out, &$handled) { |
29 | if ($id === 'oidplus:well_known_oids') { |
29 | if ($id === 'oidplus:well_known_oids') { |
30 | $handled = true; |
30 | $handled = true; |
31 | $out['title'] = _L('Well known OIDs'); |
31 | $out['title'] = _L('Well known OIDs'); |
32 | $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : ''; |
32 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,true).'img/main_icon.png' : ''; |
33 | 33 | ||
34 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
34 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
35 | $out['icon'] = 'img/error_big.png'; |
35 | $out['icon'] = 'img/error.png'; |
36 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
36 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
37 | return; |
37 | return; |
38 | } |
38 | } |
39 | 39 | ||
40 | $out['text'] = ''; |
40 | $out['text'] = ''; |
Line 92... | Line 92... | ||
92 | } |
92 | } |
93 | 93 | ||
94 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
94 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
95 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
95 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
96 | 96 | ||
97 | if (file_exists(__DIR__.'/treeicon.png')) { |
97 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
98 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
98 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
99 | } else { |
99 | } else { |
100 | $tree_icon = null; // default icon (folder) |
100 | $tree_icon = null; // default icon (folder) |
101 | } |
101 | } |
102 | 102 | ||
103 | $json[] = array( |
103 | $json[] = array( |