*/
OCP\App::checkAppEnabled('calendar');
+// only need authentication apps
+$RUNTIME_APPTYPES=array('authentication');
+OC_App::loadApps($RUNTIME_APPTYPES);
+
// Backends
$authBackend = new OC_Connector_Sabre_Auth();
$principalBackend = new OC_Connector_Sabre_Principal();
OCP\App::checkAppEnabled('contacts');
+// only need authentication apps
+$RUNTIME_APPTYPES=array('authentication');
+OC_App::loadApps($RUNTIME_APPTYPES);
+
// Backends
$authBackend = new OC_Connector_Sabre_Auth();
$principalBackend = new OC_Connector_Sabre_Principal();
<require>2</require>
<standalone/>
<default_enable/>
+ <types>
+ <filesystem/>
+ </types>
<remote>
<files>appinfo/remote.php</files>
<webdav>appinfo/remote.php</webdav>
*/
// only need filesystem apps
$RUNTIME_APPTYPES=array('filesystem','authentication');
+OC_App::loadApps($RUNTIME_APPTYPES);
// Backends
$authBackend = new OC_Connector_Sabre_Auth();
<?php
$RUNTIME_NOSETUPFS=true; //don't setup the fs yet
+// only need authentication apps
+$RUNTIME_APPTYPES=array('authentication');
+OC_App::loadApps($RUNTIME_APPTYPES);
+
OCP\JSON::checkAppEnabled('files_sharing');
require_once 'lib_share.php';
<?php
+
+// only need filesystem apps
+$RUNTIME_APPTYPES=array('filesystem','authentication');
+OC_App::loadApps($RUNTIME_APPTYPES);
+
if($path_info == '/ampache' || $path_info == '/ampache/'){
require_once(OC::$APPSROOT . '/apps/media/index.php');
}else{
require_once(OC::$APPSROOT . '/apps/media/server/xml.server.php');
}
-?>
\ No newline at end of file
$apps = self::getEnabledApps();
foreach( $apps as $app ){
if((is_null($types) or self::isType($app,$types))){
- if(is_file(OC::$APPSROOT.'/apps/'.$app.'/appinfo/app.php')){
- require( $app.'/appinfo/app.php' );
- }
+ self::loadApp($app);
}
}
return true;
}
+ /**
+ * load a single app
+ * @param string app
+ */
+ public static function loadApp($app){
+ if(is_file(OC::$APPSROOT.'/apps/'.$app.'/appinfo/app.php')){
+ require_once( $app.'/appinfo/app.php' );
+ }
+ }
+
/**
* check if an app is of a sepcific type
* @param string $app
self::$appTypes[$app]='';
}
- OC_Appconfig::setValue($app,'types',implode(',',self::$appTypes[$app]));
+ OC_Appconfig::setValue($app,'types',self::$appTypes[$app]);
}
return explode(',',self::$appTypes[$app]);
<?php
$RUNTIME_NOSETUPFS = true;
-//$RUNTIME_NOAPPS = TRUE;
+$RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php');
$file = OCP\CONFIG::getAppValue('core', 'public_' . strip_tags($_GET['service']));
if(is_null($file)){
header('HTTP/1.0 404 Not Found');
exit;
}
-require_once(OC::$APPSROOT . $file);
\ No newline at end of file
+
+$parts=explode('/',$file);
+$app=$parts[2];
+OC_App::loadApp($app);
+
+require_once(OC::$APPSROOT . $file);
<?php
$RUNTIME_NOSETUPFS = true;
-//$RUNTIME_NOAPPS = TRUE;
+$RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php');
if (array_key_exists('PATH_INFO', $_SERVER)){
$path_info = $_SERVER['PATH_INFO'];
header('HTTP/1.0 404 Not Found');
exit;
}
+
+$parts=explode('/',$file);
+$app=$parts[2];
+OC_App::loadApp($app);
+
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
require_once(OC::$APPSROOT . $file);
\ No newline at end of file