|
|
|
@ -99,6 +99,7 @@ if(!isset($CONFIG_BACKEND)){ |
|
|
|
|
$CONFIG_BACKEND='database'; |
|
|
|
|
} |
|
|
|
|
OC_USER::setBackend( $CONFIG_BACKEND ); |
|
|
|
|
OC_GROUP::setBackend( $CONFIG_BACKEND ); |
|
|
|
|
|
|
|
|
|
// Set up file system unless forbidden |
|
|
|
|
if( !$RUNTIME_NOSETUPFS ){ |
|
|
|
@ -149,7 +150,7 @@ class OC_UTIL { |
|
|
|
|
|
|
|
|
|
// If we are not forced to load a specific user we load the one that is logged in |
|
|
|
|
if( $user == "" && OC_USER::isLoggedIn()){ |
|
|
|
|
$user = $_SESSION['username_clean']; |
|
|
|
|
$user = $_SESSION['user_id']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if( $user != "" ){ //if we aren't logged in, there is no use to set up the filesystem |
|
|
|
@ -388,8 +389,7 @@ class OC_DB { |
|
|
|
|
'log_line_break' => '<br>', |
|
|
|
|
'idxname_format' => '%s', |
|
|
|
|
'debug' => true, |
|
|
|
|
'quote_identifier' => true, |
|
|
|
|
); |
|
|
|
|
'quote_identifier' => true ); |
|
|
|
|
|
|
|
|
|
// Add the dsn according to the database type |
|
|
|
|
if( $CONFIG_DBTYPE == 'sqlite' ){ |
|
|
|
|