From dc2b3bd7020370ae1ae6e206455e9ecf604fa451 Mon Sep 17 00:00:00 2001 From: mambax7 Date: Thu, 9 Jul 2020 01:39:37 -0400 Subject: [PATCH] 1.08 Alpha 2 --- docs/changelog.txt | 17 +++++++++-------- testdata/index.php | 17 ++++++++++------- xoops_version.php | 4 ++-- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 616e955d..cf622111 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -1,3 +1,12 @@ +
1.08 Alpha 2 [2020-07-08]
Dev: XOOPS 2.5.11, PHP 7.4.7 +
+- Various fixes (ihackcode) +- timezone conversion (ihackcode) +- Convert user time to Server time on saving items (ihackcode) +- added Save/Load Permissions to test data - based on work by Goffy (mamba) +- added Trello board, based on https://phppot.com/php/trello-like-drag-and-drop-cards-for-project-management-software/ (mamba) + +
1.08 Alpha 1 [2020-05-18]
Dev: XOOPS 2.5.11, PHP 7.4.6
- added Option to display default image if no article image selected in article page (liomj) @@ -53,15 +62,7 @@ - move test data to ./testdata/english folder and rename it so import routine can find it (zyspec) - change from using $_SERVER['PHP_SELF'] to $_SERVER['SCRIPT_NAME'] for improved security (zyspec) - PHP 7.1 (mamba) -- Various fixes (ihackcode) -- timezone conversion (ihackcode) -- Convert user time to Server time on saving items (ihackcode) -- added Save/Load Permissions to test data - based on work by Goffy (mamba) -- added Trello board, based on https://phppot.com/php/trello-like-drag-and-drop-cards-for-project-management-software/ (mamba) - -TODO: -- Set 'default' category/item permissions for test data
1.07 Final [2019-06-08]
Dev: XOOPS 2.5.10, PHP 7.3.6
diff --git a/testdata/index.php b/testdata/index.php index bda394b9..62b6299e 100644 --- a/testdata/index.php +++ b/testdata/index.php @@ -16,25 +16,28 @@ * @author Michael Beck (aka Mamba) */ -use XoopsModules\Publisher; -use XoopsModules\Publisher\Common; -use XoopsModules\Publisher\Utility; +use \Xmf\Request; +use XoopsModules\Publisher\{ + Helper, + Common, + Utility +}; require_once dirname(__DIR__, 3) . '/include/cp_header.php'; require dirname(__DIR__) . '/preloads/autoloader.php'; -$op = \Xmf\Request::getCmd('op', ''); +$op = Request::getCmd('op', ''); $moduleDirName = basename(dirname(__DIR__)); $moduleDirNameUpper = mb_strtoupper($moduleDirName); -$helper = Publisher\Helper::getInstance(); +$helper = Helper::getInstance(); // Load language files $helper->loadLanguage('common'); switch ($op) { case 'load': - if (\Xmf\Request::hasVar('ok', 'REQUEST') && 1 == $_REQUEST['ok']) { + if (Request::hasVar('ok', 'REQUEST') && 1 === Request::getInt('ok', 0)) { if (!$GLOBALS['xoopsSecurity']->check()) { redirect_header('../admin/index.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); } @@ -130,7 +133,7 @@ function exportSchema() try { // TODO set exportSchema - // $migrate = new Publisher\Migrate($moduleDirName); + // $migrate = new Migrate($moduleDirName); // $migrate->saveCurrentSchema(); // // redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS')); diff --git a/xoops_version.php b/xoops_version.php index 758c6c8b..f46f432a 100644 --- a/xoops_version.php +++ b/xoops_version.php @@ -36,8 +36,8 @@ $modversion = [ 'version' => '1.08', - 'module_status' => 'Alpha 1', - 'release_date' => '2020/05/18', + 'module_status' => 'Alpha 2', + 'release_date' => '2020/07/08', 'name' => _MI_PUBLISHER_MD_NAME, 'description' => _MI_PUBLISHER_MD_DESC, 'author' => 'Trabis (www.Xuups.com)',