@@ 227-239 (lines=13) @@ | ||
224 | } |
|
225 | ||
226 | // return all xoops plugins |
|
227 | function get_xoopsPlugins() { |
|
228 | $xoops_root_path = \XoopsBaseConfig::get('root-path'); |
|
229 | $xoopsPlugins = array(); |
|
230 | $allplugins = XoopsLists::getDirListAsArray( $xoops_root_path . $this->rootpath . "/plugins" ); |
|
231 | foreach ( $allplugins as $plugin ) { |
|
232 | if ( strpos( strtolower($plugin), "xoops") !== false && file_exists($xoops_root_path . $this->config["rootpath"] . "/include/$plugin.php") ) { |
|
233 | if ( $right = @include $xoops_root_path . $this->config["rootpath"] . "/include/$plugin.php" ) { |
|
234 | $xoopsPlugins[$plugin] = $plugin; |
|
235 | } |
|
236 | } |
|
237 | } |
|
238 | return $xoopsPlugins; |
|
239 | } |
|
240 | ||
241 | function loadCss($css_file = 'style.css') |
|
242 | { |
@@ 247-262 (lines=16) @@ | ||
244 | * |
|
245 | * @return array plugins |
|
246 | */ |
|
247 | public function get_xoopsPlugins() |
|
248 | { |
|
249 | $xoopsPlugins = array(); |
|
250 | $xoops_root_path = \XoopsBaseConfig::get('root-path'); |
|
251 | $allplugins = XoopsLists::getDirListAsArray ($xoops_root_path . $this->rootpath . "/plugins"); |
|
252 | foreach ($allplugins as $plugin) { |
|
253 | if (strpos(strtolower($plugin), "xoops") !== false |
|
254 | && file_exists($xoops_root_path . $this->config["rootpath"] . "/include/$plugin.php")) { |
|
255 | if ($right = @include $xoops_root_path . $this->config["rootpath"] . "/include/$plugin.php") { |
|
256 | $xoopsPlugins[$plugin] = $plugin; |
|
257 | } |
|
258 | } |
|
259 | } |
|
260 | ||
261 | return $xoopsPlugins; |
|
262 | } |
|
263 | ||
264 | public function loadCss($css_file = 'style.css') |
|
265 | { |