Rev 790 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 790 | Rev 800 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | 57 | ||
58 | public function gui($id, &$out, &$handled) { |
58 | public function gui($id, &$out, &$handled) { |
59 | if (explode('$',$id)[0] == 'oidplus:edit_config') { |
59 | if (explode('$',$id)[0] == 'oidplus:edit_config') { |
60 | $handled = true; |
60 | $handled = true; |
61 | $out['title'] = _L('System configuration'); |
61 | $out['title'] = _L('System configuration'); |
62 | $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : ''; |
62 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,true).'img/main_icon.png' : ''; |
63 | 63 | ||
64 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
64 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
65 | $out['icon'] = 'img/error_big.png'; |
65 | $out['icon'] = 'img/error.png'; |
66 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
66 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
67 | return; |
67 | return; |
68 | } |
68 | } |
69 | 69 | ||
70 | $output = ''; |
70 | $output = ''; |
Line 115... | Line 115... | ||
115 | } |
115 | } |
116 | 116 | ||
117 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
117 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
118 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
118 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
119 | 119 | ||
120 | if (file_exists(__DIR__.'/treeicon.png')) { |
120 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
121 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
121 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
122 | } else { |
122 | } else { |
123 | $tree_icon = null; // default icon (folder) |
123 | $tree_icon = null; // default icon (folder) |
124 | } |
124 | } |
125 | 125 | ||
126 | $json[] = array( |
126 | $json[] = array( |