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 62... | Line 62... | ||
62 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
62 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.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_big.png'; |
66 | $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>'; |
66 | $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>'; |
67 | } else { |
67 | return; |
- | 68 | } |
|
- | 69 | ||
68 | $out['text'] = '<p>'; |
70 | $out['text'] = '<p>'; |
69 | $out['text'] .= ' <label for="amount">Hue shift:</label>'; |
71 | $out['text'] .= ' <label for="amount">Hue shift:</label>'; |
70 | $out['text'] .= ' <input type="text" id="hshift" readonly style="border:0; background:transparent; font-weight:bold;">'; |
72 | $out['text'] .= ' <input type="text" id="hshift" readonly style="border:0; background:transparent; font-weight:bold;">'; |
71 | $out['text'] .= '</p>'; |
73 | $out['text'] .= '</p>'; |
72 | $out['text'] .= '<div id="slider-hshift"></div>'; |
74 | $out['text'] .= '<div id="slider-hshift"></div>'; |
Line 91... | Line 93... | ||
91 | $out['text'] .= '<input type="button" onclick="color_reset_sliders_factory()" value="Reset default setting">'.str_repeat(' ',5); |
93 | $out['text'] .= '<input type="button" onclick="color_reset_sliders_factory()" value="Reset default setting">'.str_repeat(' ',5); |
92 | $out['text'] .= '<input type="button" onclick="test_color_theme()" value="Test">'.str_repeat(' ',5); |
94 | $out['text'] .= '<input type="button" onclick="test_color_theme()" value="Test">'.str_repeat(' ',5); |
93 | $out['text'] .= '<input type="button" onclick="crudActionColorUpdate()" value="Set permanently">'; |
95 | $out['text'] .= '<input type="button" onclick="crudActionColorUpdate()" value="Set permanently">'; |
94 | } |
96 | } |
95 | } |
97 | } |
96 | } |
- | |
97 | 98 | ||
98 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
99 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
- | 100 | if (!OIDplus::authUtils()::isAdminLoggedIn()) return false; |
|
- | 101 | ||
99 | if (file_exists(__DIR__.'/treeicon.png')) { |
102 | if (file_exists(__DIR__.'/treeicon.png')) { |
100 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
103 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
101 | } else { |
104 | } else { |
102 | $tree_icon = null; // default icon (folder) |
105 | $tree_icon = null; // default icon (folder) |
103 | } |
106 | } |