nextcloud/apps/media/remote.php

12 lines
324 B
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_App::getAppPath('media').'/index.php');
}else{
require_once(OC_App::getAppPath('media').'/server/xml.server.php');
}