Permalink
Browse files

Put back publicLet.inc.php for backward compat

  • Loading branch information...
1 parent 0aaebb0 commit 2fda6bca3e2c23b7efaa7a4155ae99bf358cc60f @cdujeu cdujeu committed May 25, 2016
Showing with 41 additions and 0 deletions.
  1. +41 −0 core/src/publicLet.inc.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2007-2013 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
+ * This file is part of Pydio.
+ *
+ * Pydio is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Pydio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Pydio. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * The latest code can be found at <http://pyd.io/>.
+ *
+ * Description : Specific inclusion to run publiclet scripts
+ */
+use Pydio\Core\Services\ConfService;
+use Pydio\Core\PluginFramework\PluginsService;
+
+require_once("base.conf.php");
+
+$pServ = PluginsService::getInstance();
+ConfService::init();
+ConfService::start();
+$authDriver = ConfService::getAuthDriverImpl();
+require_once(AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/action.share/class.ShareCenter.php");
+
+$fakes = '
+// Non working exception class
+class PydioException extends Exception
+{
+ public function __construct($msg) { echo "$msg"; exit(); }
+}';
+
+eval($fakes);

0 comments on commit 2fda6bc

Please sign in to comment.