Rev 799 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 799 | Rev 800 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | 49 | ||
50 | public function gui($id, &$out, &$handled) { |
50 | public function gui($id, &$out, &$handled) { |
51 | if ($id === 'oidplus:phpinfo') { |
51 | if ($id === 'oidplus:phpinfo') { |
52 | $handled = true; |
52 | $handled = true; |
53 | $out['title'] = _L('PHP information'); |
53 | $out['title'] = _L('PHP information'); |
54 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_php_big.png'; |
54 | $out['icon'] = OIDplus::webpath(__DIR__,true).'img/php_icon.png'; |
55 | 55 | ||
56 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
56 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
57 | $out['icon'] = 'img/error_big.png'; |
57 | $out['icon'] = 'img/error.png'; |
58 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
58 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
59 | return; |
59 | return; |
60 | } |
60 | } |
61 | 61 | ||
62 | $out['text'] = '<p><a '.OIDplus::gui()->link('oidplus:systeminfo').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to the system information page').'</a></p>'; |
62 | $out['text'] = '<p><a '.OIDplus::gui()->link('oidplus:systeminfo').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to the system information page').'</a></p>'; |
Line 83... | Line 83... | ||
83 | } |
83 | } |
84 | } |
84 | } |
85 | else if ($id === 'oidplus:systeminfo') { |
85 | else if ($id === 'oidplus:systeminfo') { |
86 | $handled = true; |
86 | $handled = true; |
87 | $out['title'] = _L('System information'); |
87 | $out['title'] = _L('System information'); |
88 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
88 | $out['icon'] = OIDplus::webpath(__DIR__,true).'img/main_icon.png'; |
89 | 89 | ||
90 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
90 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
91 | $out['icon'] = 'img/error_big.png'; |
91 | $out['icon'] = 'img/error.png'; |
92 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
92 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
93 | return; |
93 | return; |
94 | } |
94 | } |
95 | 95 | ||
96 | $out['text'] = ''; |
96 | $out['text'] = ''; |
Line 299... | Line 299... | ||
299 | } |
299 | } |
300 | 300 | ||
301 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
301 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
302 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
302 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
303 | 303 | ||
304 | if (file_exists(__DIR__.'/treeicon.png')) { |
304 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
305 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
305 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
306 | } else { |
306 | } else { |
307 | $tree_icon = null; // default icon (folder) |
307 | $tree_icon = null; // default icon (folder) |
308 | } |
308 | } |
309 | 309 | ||
310 | if (file_exists(__DIR__.'/treeicon_php.png')) { |
310 | if (file_exists(__DIR__.'/img/php_icon16.png')) { |
311 | $tree_icon_php = OIDplus::webpath(__DIR__).'treeicon_php.png'; |
311 | $tree_icon_php = OIDplus::webpath(__DIR__,true).'img/php_icon16.png'; |
312 | } else { |
312 | } else { |
313 | $tree_icon_php = null; // default icon (folder) |
313 | $tree_icon_php = null; // default icon (folder) |
314 | } |
314 | } |
315 | 315 | ||
316 | $json[] = array( |
316 | $json[] = array( |