|
|
|
@ -77,6 +77,7 @@ if(isset($CONFIG_HTTPFORCESSL) and $CONFIG_HTTPFORCESSL){ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// load core libs |
|
|
|
|
oc_require_once('app.php'); |
|
|
|
|
oc_require_once('files.php'); |
|
|
|
|
oc_require_once('filesystem.php'); |
|
|
|
|
oc_require_once('filestorage.php'); |
|
|
|
@ -90,7 +91,7 @@ oc_require_once('remotestorage.php'); |
|
|
|
|
oc_require_once('plugin.php'); |
|
|
|
|
oc_require_once('helper.php'); |
|
|
|
|
|
|
|
|
|
OC_PLUGIN::loadPlugins(); |
|
|
|
|
OC_PLUGIN::loadPlugins( "" ); |
|
|
|
|
|
|
|
|
|
if(!isset($CONFIG_BACKEND)){ |
|
|
|
|
$CONFIG_BACKEND='database'; |
|
|
|
@ -111,17 +112,7 @@ OC_UTIL::addStyle( "jquery-ui-1.8.10.custom" ); |
|
|
|
|
OC_UTIL::addStyle( "styles" ); |
|
|
|
|
|
|
|
|
|
// Require all appinfo.php |
|
|
|
|
$dir = opendir( $SERVERROOT ); |
|
|
|
|
while( false !== ( $filename = readdir( $dir ))){ |
|
|
|
|
if( substr( $filename, 0, 1 ) != '.' ){ |
|
|
|
|
if( file_exists( "$SERVERROOT/$filename/appinfo.php" )){ |
|
|
|
|
oc_require( "$filename/appinfo.php" ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
closedir( $dir ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OC_APP::init(); |
|
|
|
|
|
|
|
|
|
// check if the server is correctly configured for ownCloud |
|
|
|
|
OC_UTIL::checkserver(); |
|
|
|
@ -134,7 +125,6 @@ class OC_UTIL { |
|
|
|
|
public static $scripts=array(); |
|
|
|
|
public static $styles=array(); |
|
|
|
|
public static $adminpages = array(); |
|
|
|
|
public static $applications = array(); |
|
|
|
|
public static $navigation = array(); |
|
|
|
|
public static $personalmenu = array(); |
|
|
|
|
private static $fsSetup=false; |
|
|
|
@ -169,7 +159,7 @@ class OC_UTIL { |
|
|
|
|
if($CONFIG_ENABLEBACKUP){ |
|
|
|
|
// This creates the Directorys recursively |
|
|
|
|
if(!is_dir( "$CONFIG_BACKUPDIRECTORY/$user/$root" )){ |
|
|
|
|
mkdir( "$CONFIG_BACKUPDIRECTORY/$user/$root", 0x777, true ); |
|
|
|
|
mkdir( "$CONFIG_BACKUPDIRECTORY/$user/$root", 0x755, true ); |
|
|
|
|
} |
|
|
|
|
$backupStorage=OC_FILESYSTEM::createStorage('local',array('datadir'=>$CONFIG_BACKUPDIRECTORY)); |
|
|
|
|
$backup=new OC_FILEOBSERVER_BACKUP(array('storage'=>$backupStorage)); |
|
|
|
@ -179,7 +169,7 @@ class OC_UTIL { |
|
|
|
|
|
|
|
|
|
$CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root"; |
|
|
|
|
if( !is_dir( $CONFIG_DATADIRECTORY )){ |
|
|
|
|
mkdir( $CONFIG_DATADIRECTORY, 0x777, true ); |
|
|
|
|
mkdir( $CONFIG_DATADIRECTORY, 0x755, true ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//set up the other storages according to the system settings |
|
|
|
@ -253,15 +243,6 @@ class OC_UTIL { |
|
|
|
|
OC_UTIL::$adminpages[] = $entry; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* add application |
|
|
|
|
* |
|
|
|
|
* @param array $entry |
|
|
|
|
*/ |
|
|
|
|
public static function addApplication( $entry){ |
|
|
|
|
OC_UTIL::$applications[] = $entry; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* add an entry to the personal menu |
|
|
|
|
* |
|
|
|
|