Skip to content
Snippets Groups Projects
Commit 8ede7d07 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

load all plugins

parent 6c400ce8
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
ob_start();
// error_reporting(E_ALL | E_STRICT);
error_reporting(E_ALL); // MDB2 gives loads of strict error, disabling for now
date_default_timezone_set('Europe/Berlin');
ini_set('arg_separator.output','&');
ini_set('session.cookie_httponly','1;');
......@@ -108,9 +109,20 @@ if(OC_USER::isLoggedIn()){
}
// load plugins
$CONFIG_LOADPLUGINS='';
$CONFIG_LOADPLUGINS='all';
if ($CONFIG_LOADPLUGINS != 'all')
$plugins=explode(' ',$CONFIG_LOADPLUGINS);
if(isset($plugins[0]['url'])) foreach($plugins as $plugin) require_once($SERVERROOT.'/plugins/'.$plugin.'/lib_'.$plugin.'.php');
else{
$plugins=array();
$fd=opendir($SERVERROOT.'/plugins');
while (($filename = readdir($fd)) !== false) {
if($filename<>'.' and $filename<>'..' and substr($filename,0,1)!='.'){
$plugins[]=$filename;
}
}
closedir($fd);
}
if(isset($plugins[0])) foreach($plugins as $plugin) require_once($SERVERROOT.'/plugins/'.$plugin.'/lib_'.$plugin.'.php');
// check if the server is correctly configured for ownCloud
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment