Rev 800 | Rev 906 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 800 | Rev 801 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | if ($parts[0] == 'oidplus:system_file_check') { |
33 | if ($parts[0] == 'oidplus:system_file_check') { |
34 | @set_time_limit(0); |
34 | @set_time_limit(0); |
35 | 35 | ||
36 | $handled = true; |
36 | $handled = true; |
37 | $out['title'] = _L('System file check'); |
37 | $out['title'] = _L('System file check'); |
38 | $out['icon'] = OIDplus::webpath(__DIR__,true).'img/main_icon.png'; |
38 | $out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png'; |
39 | 39 | ||
40 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
40 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
41 | $out['icon'] = 'img/error.png'; |
41 | $out['icon'] = 'img/error.png'; |
42 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
42 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
43 | return; |
43 | return; |
Line 132... | Line 132... | ||
132 | 132 | ||
133 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
133 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
134 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
134 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
135 | 135 | ||
136 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
136 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
137 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
137 | $tree_icon = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon16.png'; |
138 | } else { |
138 | } else { |
139 | $tree_icon = null; // default icon (folder) |
139 | $tree_icon = null; // default icon (folder) |
140 | } |
140 | } |
141 | 141 | ||
142 | $json[] = array( |
142 | $json[] = array( |