Permalink
Browse files

Fix share.php rewrite, remove blank line at the beginning of the file

  • Loading branch information...
1 parent b745b30 commit 6ab4db731abdcfdbf76f410f7ec87ee9c1658737 @cdujeu cdujeu committed Sep 27, 2016
Showing with 17 additions and 14 deletions.
  1. +8 −5 dist/php/6.5.2.pgsql
  2. +2 −4 dist/php/6.5.2.php
  3. +7 −5 dist/php/6.5.2.sqlite
View
@@ -1,5 +1,6 @@
+/* SEPARATOR */
DROP TABLE IF EXISTS ajxp_tasks;
-
+/* SEPARATOR */
CREATE TABLE IF NOT EXISTS ajxp_tasks (
uid VARCHAR(255) NOT NULL ,
type INTEGER NOT NULL,
@@ -18,13 +19,15 @@ CREATE TABLE IF NOT EXISTS ajxp_tasks (
nodes VARCHAR(500) NOT NULL,
creation_date INTEGER NOT NULL DEFAULT 0,
status_update INTEGER NOT NULL DEFAULT 0,
-
PRIMARY KEY (uid)
);
-
-
+/* SEPARATOR */
CREATE INDEX ajxp_task_usr_idx ON ajxp_tasks (user_id);
+/* SEPARATOR */
CREATE INDEX ajxp_task_status_idx ON ajxp_tasks (status);
+/* SEPARATOR */
CREATE INDEX ajxp_task_type ON ajxp_tasks (type);
+/* SEPARATOR */
CREATE INDEX ajxp_task_schedule ON ajxp_tasks (schedule);
-CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);
View
@@ -33,14 +33,12 @@ function updateSharePhpContent($installPath, $publicFolder){
}, explode("/", trim($publicFolder, "/")));
$baseConfPath = implode("/", $folders);
- $content = '
- <?php
+ $content = '<?php
include_once("'.$baseConfPath.'/base.conf.php");
define(\'AJXP_EXEC\', true);
require_once AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/action.share/vendor/autoload.php";
$base = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/");
- \Pydio\Share\ShareCenter::publicRoute($base, "/proxy", ["hash" => $_GET["hash"]]);
- ';
+ \Pydio\Share\ShareCenter::publicRoute($base, "/proxy", ["hash" => $_GET["hash"]]);';
file_put_contents($sharePhpPath, $content);
}
View
@@ -1,5 +1,5 @@
DROP TABLE IF EXISTS ajxp_tasks;
-
+/* SEPARATOR */
CREATE TABLE IF NOT EXISTS ajxp_tasks (
uid VARCHAR(255) NOT NULL ,
type INTEGER NOT NULL,
@@ -18,13 +18,15 @@ CREATE TABLE IF NOT EXISTS ajxp_tasks (
nodes VARCHAR(500) NOT NULL,
creation_date INTEGER NOT NULL DEFAULT 0,
status_update INTEGER NOT NULL DEFAULT 0,
-
PRIMARY KEY (uid)
);
-
-
+/* SEPARATOR */
CREATE INDEX ajxp_task_usr_idx ON ajxp_tasks (user_id);
+/* SEPARATOR */
CREATE INDEX ajxp_task_status_idx ON ajxp_tasks (status);
+/* SEPARATOR */
CREATE INDEX ajxp_task_type ON ajxp_tasks (type);
+/* SEPARATOR */
CREATE INDEX ajxp_task_schedule ON ajxp_tasks (schedule);
-CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);

0 comments on commit 6ab4db7

Please sign in to comment.