Rev 717 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 717 | Rev 800 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | 86 | ||
87 | public function gui($id, &$out, &$handled) { |
87 | public function gui($id, &$out, &$handled) { |
88 | if ($id === 'oidplus:colors') { |
88 | if ($id === 'oidplus:colors') { |
89 | $handled = true; |
89 | $handled = true; |
90 | $out['title'] = _L('Design'); |
90 | $out['title'] = _L('Design'); |
91 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
91 | $out['icon'] = OIDplus::webpath(__DIR__,true).'img/main_icon.png'; |
92 | 92 | ||
93 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
93 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
94 | $out['icon'] = 'img/error_big.png'; |
94 | $out['icon'] = 'img/error.png'; |
95 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
95 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
96 | return; |
96 | return; |
97 | } |
97 | } |
98 | 98 | ||
99 | $out['text'] = '<br><p>'; |
99 | $out['text'] = '<br><p>'; |
Line 149... | Line 149... | ||
149 | } |
149 | } |
150 | 150 | ||
151 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
151 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
152 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
152 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
153 | 153 | ||
154 | if (file_exists(__DIR__.'/treeicon.png')) { |
154 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
155 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
155 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
156 | } else { |
156 | } else { |
157 | $tree_icon = null; // default icon (folder) |
157 | $tree_icon = null; // default icon (folder) |
158 | } |
158 | } |
159 | 159 | ||
160 | $json[] = array( |
160 | $json[] = array( |