diff --git a/inc/lib_base.php b/inc/lib_base.php index aa14d3cec0..d566e917f8 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -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=''; -$plugins=explode(' ',$CONFIG_LOADPLUGINS); -if(isset($plugins[0]['url'])) foreach($plugins as $plugin) require_once('plugins/'.$plugin.'/lib_'.$plugin.'.php'); +$CONFIG_LOADPLUGINS='all'; +if ($CONFIG_LOADPLUGINS != 'all') + $plugins=explode(' ',$CONFIG_LOADPLUGINS); +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 diff --git a/inc/templates/adminform.php b/inc/templates/adminform.php index 81b02ac45f..9846cfee6d 100755 --- a/inc/templates/adminform.php +++ b/inc/templates/adminform.php @@ -115,7 +115,7 @@ foreach($dbtypes as $dbtype){
+if(!$FIRSTRUN ){//disabled for now?>
@@ -131,4 +131,4 @@ if(!$FIRSTRUN and false){//disabled for now?> \ No newline at end of file + diff --git a/inc/templates/configform.php b/inc/templates/configform.php index 64499b9ed9..63e0e0a7d1 100755 --- a/inc/templates/configform.php +++ b/inc/templates/configform.php @@ -34,7 +34,7 @@ changepassset=function(){
@@ -50,4 +50,4 @@ foreach($groups as $group){
Create new group
-
--> +