Skip to content

Commit

Permalink
1.08 Alpha 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Jul 9, 2020
1 parent e16bde4 commit dc2b3bd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
17 changes: 9 additions & 8 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<h5>1.08 Alpha 2 [2020-07-08]</h5> Dev: XOOPS 2.5.11, PHP 7.4.7
<hr>
- 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)


<h5>1.08 Alpha 1 [2020-05-18]</h5> Dev: XOOPS 2.5.11, PHP 7.4.6
<hr>
- added Option to display default image if no article image selected in article page (liomj)
Expand Down Expand Up @@ -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

<h5>1.07 Final [2019-06-08]</h5> Dev: XOOPS 2.5.10, PHP 7.3.6
<hr>
Expand Down
17 changes: 10 additions & 7 deletions testdata/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down Expand Up @@ -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'));
Expand Down
4 changes: 2 additions & 2 deletions xoops_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down

0 comments on commit dc2b3bd

Please sign in to comment.