+ Please update at your own risks!! Do not update servers that are live in production! +
+ + If you want to participate to the beta program and get access to dedicated resources, please fill in this small form, we will be in contact soon. + +$contents"; + } + +} + +function awsSdkVersion(){ + + $s3Options = ConfService::getConfStorageImpl()->loadPluginConfig("access", "s3"); + if($s3Options["SDK_VERSION"] === "v2"){ + $s3Options["SDK_VERSION"] = "v3"; + ConfService::getConfStorageImpl()->savePluginConfig("access.s3", $s3Options); + } + +} + +function forceRenameConfFile($prefix){ + + // FORCE bootstrap_repositories copy + if (is_file(AJXP_INSTALL_PATH."/conf/$prefix.php".".new-".date("Ymd"))) { + rename(AJXP_INSTALL_PATH."/conf/$prefix.php", AJXP_INSTALL_PATH."/conf/$prefix.php.pre-update"); + rename(AJXP_INSTALL_PATH."/conf/$prefix.php".".new-".date("Ymd"), AJXP_INSTALL_PATH."/conf/$prefix.php"); + } + + +} + +if(AJXP_VERSION === '6.4.2'){ + awsSdkVersion(); + updateHtAccessContent(AJXP_INSTALL_PATH."/.htaccess"); + updateSharePhpContent(AJXP_INSTALL_PATH, ConfService::getCoreConf("PUBLIC_DOWNLOAD_FOLDER")); + forceRenameConfFile("bootstrap_conf"); + forceRenameConfFile("bootstrap_context"); + forceRenameConfFile("extensions.conf"); +}else if(AJXP_VERSION === '6.5.1' || AJXP_VERSION === '6.5.2'){ + forceRenameConfFile("bootstrap_context"); +} \ No newline at end of file diff --git a/dist/php/6.5.3.sqlite b/dist/php/6.5.3.sqlite new file mode 100644 index 0000000000..2d1b383b98 --- /dev/null +++ b/dist/php/6.5.3.sqlite @@ -0,0 +1,38 @@ +DROP TABLE IF EXISTS ajxp_tasks; +/* SEPARATOR */ +CREATE TABLE IF NOT EXISTS ajxp_tasks ( + uid VARCHAR(255) NOT NULL , + type INTEGER NOT NULL, + parent_uid VARCHAR(255) DEFAULT NULL, + flags INTEGER NOT NULL, + label VARCHAR(255) NOT NULL, + user_id VARCHAR(255) NOT NULL, + ws_id VARCHAR(32) NOT NULL, + status INTEGER NOT NULL, + status_msg VARCHAR(500) NOT NULL, + progress INTEGER NOT NULL, + schedule INTEGER NOT NULL, + schedule_value VARCHAR(255) DEFAULT NULL, + action VARCHAR(255) NOT NULL, + parameters VARCHAR(500) NOT NULL, + 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); +/* SEPARATOR */ +CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes); +/* SEPARATOR */ +CREATE TABLE IF NOT EXISTS ajxp_mq_queues ( + channel_name varchar(255) NOT NULL, + content BLOB NOT NULL, + PRIMARY KEY (`channel_name`) +); \ No newline at end of file diff --git a/dist/php/6.5.4-extractArchive-post.php b/dist/php/6.5.4-extractArchive-post.php new file mode 100644 index 0000000000..2671d30d6f --- /dev/null +++ b/dist/php/6.5.4-extractArchive-post.php @@ -0,0 +1,117 @@ + + * 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
+ Please update at your own risks!! Do not update servers that are live in production! +
+ + If you want to participate to the beta program and get access to dedicated resources, please fill in this small form, we will be in contact soon. + +$contents"; + } + +} + +function awsSdkVersion(){ + + $s3Options = ConfService::getConfStorageImpl()->loadPluginConfig("access", "s3"); + if($s3Options["SDK_VERSION"] === "v2"){ + $s3Options["SDK_VERSION"] = "v3"; + ConfService::getConfStorageImpl()->savePluginConfig("access.s3", $s3Options); + } + +} + +function forceRenameConfFile($prefix){ + + // FORCE bootstrap_repositories copy + if (is_file(AJXP_INSTALL_PATH."/conf/$prefix.php".".new-".date("Ymd"))) { + rename(AJXP_INSTALL_PATH."/conf/$prefix.php", AJXP_INSTALL_PATH."/conf/$prefix.php.pre-update"); + rename(AJXP_INSTALL_PATH."/conf/$prefix.php".".new-".date("Ymd"), AJXP_INSTALL_PATH."/conf/$prefix.php"); + } + + +} + +if(AJXP_VERSION === '6.4.2'){ + awsSdkVersion(); + updateHtAccessContent(AJXP_INSTALL_PATH."/.htaccess"); + updateSharePhpContent(AJXP_INSTALL_PATH, ConfService::getCoreConf("PUBLIC_DOWNLOAD_FOLDER")); + forceRenameConfFile("bootstrap_conf"); + forceRenameConfFile("bootstrap_context"); + forceRenameConfFile("extensions.conf"); +}else if(AJXP_VERSION === '6.5.1' || AJXP_VERSION === '6.5.2'){ + forceRenameConfFile("bootstrap_context"); +} \ No newline at end of file diff --git a/dist/php/6.5.4.sqlite b/dist/php/6.5.4.sqlite new file mode 100644 index 0000000000..2d1b383b98 --- /dev/null +++ b/dist/php/6.5.4.sqlite @@ -0,0 +1,38 @@ +DROP TABLE IF EXISTS ajxp_tasks; +/* SEPARATOR */ +CREATE TABLE IF NOT EXISTS ajxp_tasks ( + uid VARCHAR(255) NOT NULL , + type INTEGER NOT NULL, + parent_uid VARCHAR(255) DEFAULT NULL, + flags INTEGER NOT NULL, + label VARCHAR(255) NOT NULL, + user_id VARCHAR(255) NOT NULL, + ws_id VARCHAR(32) NOT NULL, + status INTEGER NOT NULL, + status_msg VARCHAR(500) NOT NULL, + progress INTEGER NOT NULL, + schedule INTEGER NOT NULL, + schedule_value VARCHAR(255) DEFAULT NULL, + action VARCHAR(255) NOT NULL, + parameters VARCHAR(500) NOT NULL, + 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); +/* SEPARATOR */ +CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes); +/* SEPARATOR */ +CREATE TABLE IF NOT EXISTS ajxp_mq_queues ( + channel_name varchar(255) NOT NULL, + content BLOB NOT NULL, + PRIMARY KEY (`channel_name`) +); \ No newline at end of file diff --git a/dist/zip/upgrade/ajaxplorer_upgrade.php b/dist/zip/upgrade/ajaxplorer_upgrade.php deleted file mode 100644 index 09a0cb40a6..0000000000 --- a/dist/zip/upgrade/ajaxplorer_upgrade.php +++ /dev/null @@ -1,85 +0,0 @@ - 0 ) { - foreach ($objects as $file) { - if( $file == "." || $file == ".." ) - continue; - // go on - if ( is_dir( $path.DIRECTORY_SEPARATOR.$file ) ) { - copy_r( $path.DIRECTORY_SEPARATOR.$file, $dest.DIRECTORY_SEPARATOR.$file ); - } else { - copy( $path.DIRECTORY_SEPARATOR.$file, $dest.DIRECTORY_SEPARATOR.$file ); - } - } - } - return true; - } elseif ( is_file($path) ) { - return copy($path, $dest); - } else { - return false; - } -} diff --git a/dist/zip/upgrade/upgrade_builder.bat b/dist/zip/upgrade/upgrade_builder.bat deleted file mode 100644 index 9d51896b1d..0000000000 --- a/dist/zip/upgrade/upgrade_builder.bat +++ /dev/null @@ -1,41 +0,0 @@ -set src=ajaxplorer-src -set log_file=..\logs\upgrade.txt -set export=ajaxplorer-core-upgrade-%3-%4 - -rem --- SVN Checkout sources and grab revision number %2 -chdir tmp -svn co https://ajaxplorer.svn.sourceforge.net/svnroot/ajaxplorer/trunk/core/src %src% -r %2 > %log_file% - -chdir %src% -svn diff --summarize -r%1:%2 > ..\svn_summarize - -chdir ..\ -php ..\bin\parse_summarize.php svn_summarize %src% %export% - -rem --- Create ZIP -..\bin\7za.exe a %export%.zip %export% >> %log_file% - -rem --- Upload FTP -echo off -( -echo open %FTP_SERVER% -echo %FTP_LOGIN% -echo %FTP_PASSWORD% -echo cd www/update/stable -echo type binary -echo put %export%.zip -echo close -echo quit -) > ftp_commands.txt -ftp -s:ftp_commands.txt >> %log_file% - -rem --- Clear Variables and remove tmp folders -del ftp_commands.txt -del svn_summarize -move %export%.zip ..\ -rmdir /S /Q %src% -rmdir /S /Q %export% -set src= -set export= -chdir .. - diff --git a/dist/zip/windows/README b/dist/zip/windows/README deleted file mode 100644 index e42589a283..0000000000 --- a/dist/zip/windows/README +++ /dev/null @@ -1,9 +0,0 @@ -Builder for AjaXplorer core under windows (tested on XP). -Following Structure must be found - -+ EXECUTION FOLDER - + bin - + build.bat => the present script - + 7za.exe => 7zip command line version - + logs - + tmp \ No newline at end of file diff --git a/dist/zip/windows/build.bat b/dist/zip/windows/build.bat deleted file mode 100644 index 5b7e42ff1c..0000000000 --- a/dist/zip/windows/build.bat +++ /dev/null @@ -1,45 +0,0 @@ -rem --- Compute date and folder -for /f "tokens=1,2,3 delims=/ " %%a in ('DATE /T') do set date=%%c%%b%%a -chdir tmp -set src=ajaxplorer-sources -set log_file=..\logs\%date%-build.txt - -rem --- SVN Checkout sources and grab current revision -svn co https://ajaxplorer.svn.sourceforge.net/svnroot/ajaxplorer/trunk/core/src %src% > %log_file% -chdir %src% -for /f "tokens=*" %%a in ('svnversion') do set revision=%%a - -rem --- Export sources -set export=ajaxplorer-%date%-%revision% -svn export . ..\%export% - - -rem --- Create ZIP -chdir ..\ -..\bin\7za.exe a %export%.zip %export% >> %log_file% - -rem --- Upload FTP -echo off -( -echo open %FTP_SERVER% -echo %FTP_LOGIN% -echo %FTP_PASSWORD% -echo cd www/build -echo type binary -echo put %export%.zip -echo close -echo quit -) > ftp_commands.txt -ftp -s:ftp_commands.txt >> %log_file% - -rem --- Clear Variables and remove tmp folders -del ftp_commands.txt -del %export%.zip -rmdir /S /Q %src% -rmdir /S /Q %export% -set src= -set new= -set revision= -set export= -chdir .. - diff --git a/ext/joomla/3.0/user.pydio/pydio.php b/ext/joomla/3.0/user.pydio/pydio.php index 19af4cffe2..eef00f4b52 100644 --- a/ext/joomla/3.0/user.pydio/pydio.php +++ b/ext/joomla/3.0/user.pydio/pydio.php @@ -12,6 +12,7 @@ define('AJXP_EXEC', true); jimport('joomla.event.plugin'); jimport( 'joomla.registry.registry' ); +jimport( 'joomla.user.helper' ); /** @@ -133,13 +134,16 @@ public function onUserLogin($user, $options) $success = false; if(!$this->glueCodeFound) return false; + $juser = JFactory::getUser(); + $groups = JUserHelper::getUserGroups($juser->id); + global $AJXP_GLUE_GLOBALS; $AJXP_GLUE_GLOBALS = array(); //$plugInAction, $login, $result, $secret, $autoCreate; $AJXP_GLUE_GLOBALS["secret"] = $this->secret; $AJXP_GLUE_GLOBALS["autoCreate"] = $this->autoCreate; $AJXP_GLUE_GLOBALS["plugInAction"] = "login"; - $AJXP_GLUE_GLOBALS["login"] = array("name"=>$user["username"], "password"=>$user["password"]); + $AJXP_GLUE_GLOBALS["login"] = array("name"=>$user["username"], "password"=>$user["password"], "roles" => $groups); include($this->glueCode); new SessionSwitcher("previous", false, true); return true;