summaryrefslogtreecommitdiffstats
path: root/core/share
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2014-08-03 11:31:28 +0200
committerkondou <kondou@ts.unde.re>2014-09-04 15:23:55 +0200
commit2a4c51389c23ab1da47d52be9f2e76cd90f2df01 (patch)
treeb50145fa66fe889045a0dbac963dd4b9865bf827 /core/share
parent0f2ad9862e98e00fdc250bf8405bf6404d40b1ed (diff)
downloadnextcloud-server-2a4c51389c23ab1da47d52be9f2e76cd90f2df01.tar.gz
nextcloud-server-2a4c51389c23ab1da47d52be9f2e76cd90f2df01.zip
Use a route instead of s.php and convert tokens asap
Diffstat (limited to 'core/share')
-rw-r--r--core/share/controller.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/share/controller.php b/core/share/controller.php
new file mode 100644
index 00000000000..c1741af0d98
--- /dev/null
+++ b/core/share/controller.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Copyright (c) 2014 Christopher Schäpers <christopher@schaepers.it>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OC\Core\Share;
+
+class Controller {
+ public static function showShare($args) {
+ \OC_Util::checkAppEnabled('files_sharing');
+
+ $token = $args['token'];
+
+ \OC_App::loadApp('files_sharing');
+ \OC_User::setIncognitoMode(true);
+
+ require_once \OC_App::getAppPath('files_sharing') .'/public.php';
+ }
+}
+?>