parent
0fb90fa875
commit
e7c106d91e
@ -1,7 +1,11 @@ |
||||
<?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'); |
||||
} |
||||
?> |
@ -1,10 +1,15 @@ |
||||
<?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); |
||||
|
||||
$parts=explode('/',$file); |
||||
$app=$parts[2]; |
||||
OC_App::loadApp($app); |
||||
|
||||
require_once(OC::$APPSROOT . $file); |
||||
|
Loading…
Reference in new issue