Skip to content

Commit

Permalink
1.05 RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed May 14, 2017
1 parent 37f96f6 commit f6055e7
Show file tree
Hide file tree
Showing 46 changed files with 189 additions and 77 deletions.
2 changes: 1 addition & 1 deletion admin/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';

Expand Down
2 changes: 1 addition & 1 deletion admin/clone.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @author trabis <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';

Expand Down
2 changes: 1 addition & 1 deletion admin/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';

Expand Down
2 changes: 1 addition & 1 deletion admin/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';

Expand Down
2 changes: 1 addition & 1 deletion admin/import/ams.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Marius Scurtescu <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/import/cjaycontent.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Marius Scurtescu <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/import/fmcontent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @author ZySpec <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/import/news.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Marius Scurtescu <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/import/smartsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Marius Scurtescu <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/import/wfsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Marius Scurtescu <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/import/xfsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author ohwada
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/import/xnews.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Marius Scurtescu <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion admin/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';

Expand Down
2 changes: 1 addition & 1 deletion admin/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';
include_once $GLOBALS['xoops']->path('class/xoopslists.php');
Expand Down
2 changes: 1 addition & 1 deletion admin/preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author Kazumi Ono (AKA onokazu)
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';

Expand Down
2 changes: 1 addition & 1 deletion admin/pw_upload_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';

Expand Down
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# [11-may-2001] Kenneth Lee - http://www.nexgear.com/
######################################################################

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/header.php';
$GLOBALS['xoopsOption']['template_main'] = 'publisher_archive.tpl';
Expand Down
2 changes: 1 addition & 1 deletion author_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author trabis <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/header.php';

Expand Down
2 changes: 1 addition & 1 deletion backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/header.php';
//xoops_load('XoopsLocal'); //mb
Expand Down
2 changes: 1 addition & 1 deletion blocks/items_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

// defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');

Expand Down
2 changes: 1 addition & 1 deletion blocks/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author phppp
*/

use \Xmf\Request;
use Xmf\Request;

// defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');

Expand Down
2 changes: 1 addition & 1 deletion category.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/header.php';

Expand Down
2 changes: 1 addition & 1 deletion class/form/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author trabis <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

// defined('XOOPS_ROOT_PATH') || exit("XOOPS root path not defined");

Expand Down
2 changes: 1 addition & 1 deletion class/form/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @author trabis <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

// defined('XOOPS_ROOT_PATH') || exit("XOOPS root path not defined");

Expand Down
2 changes: 1 addition & 1 deletion class/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

//namespace Publisher;

Expand Down
2 changes: 1 addition & 1 deletion class/utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/include/common.php';

Expand Down
2 changes: 1 addition & 1 deletion comment_new.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author trabis <[email protected]>
*/

use \Xmf\Request;
use Xmf\Request;

include_once dirname(dirname(__DIR__)) . '/mainfile.php';
require_once __DIR__ . '/include/common.php';
Expand Down
12 changes: 10 additions & 2 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<h5>1.05 RC 1 (NOT RELEASED)</h5>
- fixed Pagination issues (geekwright)
- check nonce and file path (geekwright)
- escape search string (geekwright)
- min XOOPS version: 2.5.9 (geekwright)
- added ModuleConfigurator class (mamba)
- updated disclaimer.html (mamba)
- cosmetics (mamba)

<h5>1.05 Beta 1 (NOT RELEASED)</h5>
- PSR-2 code cosmetics (mamba)
- addNavigation(basename(__FILE__)) (mamba)
Expand All @@ -14,7 +23,6 @@
- short array syntax (mamba)
- added install checks for PHP 5.5 and XOOPS 2.5.9 (mamba)
- added auto-creation of upload folders (mamba)

- changed static call to XoopsLocal::number_format to dynamic (mamba)
- added bold to column headers in publisher_author_items.tpl (mamba)
- fixed cloning of module image (masel/mamba)
Expand All @@ -23,7 +31,7 @@
- started conversion to XMF (mamba)
- move jquery and popeye to template due to conflicts when overriding in theme (geekwright)
- switch to a color neutral skin for popeye (geekwright)
- Eliminate line feed at EOF (geekwright)
- eliminate line feed at EOF (geekwright)
- different bugs (bleekk)
- changed min_db to 5.5 (mamba)
- changed 'include_once' to 'require_once' (mamba)
Expand Down
2 changes: 1 addition & 1 deletion file.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author The SmartFactory <www.smartfactory.ca>
*/

use \Xmf\Request;
use Xmf\Request;

require_once __DIR__ . '/header.php';
xoops_loadLanguage('admin', PUBLISHER_DIRNAME);
Expand Down
2 changes: 1 addition & 1 deletion include/ajax_rating.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// URL: http://www.xuups.com
// E-Mail: [email protected]

use \Xmf\Request;
use Xmf\Request;

include_once dirname(__DIR__) . '/header.php';

Expand Down
2 changes: 1 addition & 1 deletion include/ajax_upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @author XOOPS Development Team
*/

use \Xmf\Request;
use Xmf\Request;

error_reporting(0);
include dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
Expand Down
59 changes: 59 additions & 0 deletions include/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
defined($capsDirName . '_UPLOAD_PATH') or define($capsDirName . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . constant($capsDirName . '_DIRNAME')); // WITHOUT Trailing slash

//Configurator
/*
return array(
'name' => 'Module Configurator',
'uploadFolders' => array(
Expand Down Expand Up @@ -79,3 +80,61 @@
'/tcpdf',
),
);
*/

/**
* Class ModuleConfigurator
*/
class ModuleConfigurator
{
public $uploadFolders = [];
public $blankFiles = [];
public $templateFolders = [];
public $oldFiles = [];
public $oldFolders = [];
public $name;

/**
* ModuleConfigurator constructor.
*/
public function __construct()
{
$moduleDirName = basename(dirname(__DIR__));
$capsDirName = strtoupper($moduleDirName);
$this->name = 'Module Configurator';
$this->uploadFolders = [
constant($capsDirName . '_UPLOAD_PATH'),
constant($capsDirName . '_UPLOAD_PATH') . '/content',
constant($capsDirName . '_UPLOAD_PATH') . '/images',
constant($capsDirName . '_UPLOAD_PATH') . '/images/category',
constant($capsDirName . '_UPLOAD_PATH') . '/images/thumbnails',
];
$this->blankFiles = [
constant($capsDirName . '_UPLOAD_PATH'),
constant($capsDirName . '_UPLOAD_PATH') . '/images/category',
constant($capsDirName . '_UPLOAD_PATH') . '/images/thumbnails',
];

$this->templateFolders = [
'/templates/',
'/templates/blocks/',
'/templates/admin/'

];
$this->oldFiles = [
'/class/request.php',
'/class/registry.php',
'/class/utilities.php',
'/class/util.php',
'/include/constants.php',
'/include/functions.php',
'/ajaxrating.txt'
];
$this->oldFolders = [
'/images',
'/css',
'/js',
'/tcpdf',
];
}
}
Loading

0 comments on commit f6055e7

Please sign in to comment.