https://github.com/owncloud/core
Raw File
Tip revision: 038f00d455e8219bd5063d4c995999e6a7fef851 authored by Frank Karlitschek on 14 May 2013, 06:09:46 UTC
4.0.15
Tip revision: 038f00d
public.php
<?php
$RUNTIME_NOSETUPFS = 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;
}

$parts=explode('/',$file);
$app=$parts[2];
OC_App::loadApp($app);

require_once(OC::$APPSROOT . $file);
back to top