Rev 704 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 704 | Rev 800 | ||
---|---|---|---|
Line 152... | Line 152... | ||
152 | public function gui($id, &$out, &$handled) { |
152 | public function gui($id, &$out, &$handled) { |
153 | if (explode('$',$id)[0] == 'oidplus:search') { |
153 | if (explode('$',$id)[0] == 'oidplus:search') { |
154 | $handled = true; |
154 | $handled = true; |
155 | 155 | ||
156 | $out['title'] = _L('Search'); |
156 | $out['title'] = _L('Search'); |
157 | $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : ''; |
157 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,true).'img/main_icon.png' : ''; |
158 | 158 | ||
159 | $out['text'] = ''; |
159 | $out['text'] = ''; |
160 | 160 | ||
161 | try { |
161 | try { |
162 | $params = $_POST; |
162 | $params = $_POST; |
Line 214... | Line 214... | ||
214 | public function publicSitemap(&$out) { |
214 | public function publicSitemap(&$out) { |
215 | $out[] = 'oidplus:search'; |
215 | $out[] = 'oidplus:search'; |
216 | } |
216 | } |
217 | 217 | ||
218 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
218 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
219 | if (file_exists(__DIR__.'/treeicon.png')) { |
219 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
220 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
220 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
221 | } else { |
221 | } else { |
222 | $tree_icon = null; // default icon (folder) |
222 | $tree_icon = null; // default icon (folder) |
223 | } |
223 | } |
224 | 224 | ||
225 | $json[] = array( |
225 | $json[] = array( |