Rev 279 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 279 | Rev 281 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
34 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
35 | 35 | ||
36 | if (!OIDplus::authUtils()::isAdminLoggedIn()) { |
36 | if (!OIDplus::authUtils()::isAdminLoggedIn()) { |
37 | $out['icon'] = 'img/error_big.png'; |
37 | $out['icon'] = 'img/error_big.png'; |
38 | $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>'; |
38 | $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>'; |
39 | return $out; |
39 | return; |
40 | } |
40 | } |
41 | 41 | ||
42 | $out['text'] = '<p>You can perform a system update by clicking the bottom below.</p>'; |
42 | $out['text'] = '<p>You can perform a system update by clicking the bottom below.</p>'; |
43 | $out['text'] .= '<p><input type="button" onclick="document.location=\'update/\'" value="Start update assistant"></p>'; |
43 | $out['text'] .= '<p><input type="button" onclick="document.location=\'update/\'" value="Start update assistant"></p>'; |
44 | } |
44 | } |
45 | 45 | ||
46 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
46 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
- | 47 | if (!OIDplus::authUtils()::isAdminLoggedIn()) return false; |
|
- | 48 | ||
47 | if (file_exists(__DIR__.'/treeicon.png')) { |
49 | if (file_exists(__DIR__.'/treeicon.png')) { |
48 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
50 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
49 | } else { |
51 | } else { |
50 | $tree_icon = null; // default icon (folder) |
52 | $tree_icon = null; // default icon (folder) |
51 | } |
53 | } |