diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-07 15:39:17 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-07 15:39:17 +0200 |
commit | 936c8ba1cc3b36fdc122276fc9a96de4a4003bd1 (patch) | |
tree | bc78ce93b5cafaead97d054c640d2f7e88be967d /public.php | |
parent | 5904d5cf50ba5567fac40e6fa1f1ded6a9f48bcd (diff) | |
download | nextcloud-server-936c8ba1cc3b36fdc122276fc9a96de4a4003bd1.tar.gz nextcloud-server-936c8ba1cc3b36fdc122276fc9a96de4a4003bd1.zip |
improve remote.php and create public.php
Diffstat (limited to 'public.php')
-rw-r--r-- | public.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/public.php b/public.php new file mode 100644 index 00000000000..27a75adec93 --- /dev/null +++ b/public.php @@ -0,0 +1,10 @@ +<?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; +} +require_once(OC::$APPSROOT . $file);
\ No newline at end of file |