Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed May 24, 2017
1 parent 019813d commit f77b628
Show file tree
Hide file tree
Showing 69 changed files with 153 additions and 155 deletions.
4 changes: 2 additions & 2 deletions admin/admin_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

require_once __DIR__ . '/../../../include/cp_header.php';
//include_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
//require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');

//require_once __DIR__ . '/../include/common.php';

Expand Down Expand Up @@ -55,6 +55,6 @@
$myts = MyTextSanitizer::getInstance();

if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) {
include_once $GLOBALS['xoops']->path('class/template.php');
require_once $GLOBALS['xoops']->path('class/template.php');
$xoopsTpl = new XoopsTpl();
}
2 changes: 1 addition & 1 deletion admin/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
$categoryid = '0';
}
echo "</table>\n";
include_once $GLOBALS['xoops']->path('class/pagenav.php');
require_once $GLOBALS['xoops']->path('class/pagenav.php');
$pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_perpage'), $startcategory, 'startcategory');
echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
echo '<br>';
Expand Down
2 changes: 1 addition & 1 deletion admin/clone.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}
echo $msg;
} else {
include_once $GLOBALS['xoops']->path('class/xoopsformloader.php');
require_once $GLOBALS['xoops']->path('class/xoopsformloader.php');
$form = new XoopsThemeForm(sprintf(_AM_PUBLISHER_CLONE_TITLE, $publisher->getModule()->getVar('name', 'E')), 'clone', 'clone.php', 'post', true);
$clone = new XoopsFormText(_AM_PUBLISHER_CLONE_NAME, 'clone', 20, 20, '');
$clone->setDescription(_AM_PUBLISHER_CLONE_NAME_DSC);
Expand Down
4 changes: 2 additions & 2 deletions admin/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
function publisher_editFile($showmenu = false, $fileid = 0, $itemid = 0)
{
$publisher = PublisherPublisher::getInstance();
include_once $GLOBALS['xoops']->path('class/xoopsformloader.php');
require_once $GLOBALS['xoops']->path('class/xoopsformloader.php');

// if there is a parameter, and the id exists, retrieve data: we're editing a file
if ($fileid != 0) {
Expand Down Expand Up @@ -90,7 +90,7 @@ function publisher_editFile($showmenu = false, $fileid = 0, $itemid = 0)
}

PublisherUtility::cpHeader();
include_once $GLOBALS['xoops']->path('class/xoopsformloader.php');
require_once $GLOBALS['xoops']->path('class/xoopsformloader.php');

publisher_editFile(true, $fileid, $itemid);
break;
Expand Down
2 changes: 1 addition & 1 deletion admin/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
case 'importExecute':
$importfile = Request::getString('importfile', 'nonselected', 'POST');
$importfile_path = $GLOBALS['xoops']->path('modules/' . $publisher->getModule()->dirname() . '/admin/import/' . $importfile . '.php');
include_once $importfile_path;
require_once $importfile_path;
break;

case 'default':
Expand Down
6 changes: 3 additions & 3 deletions admin/import/ams.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'AMS ' . Request::getString('ams_version', '', 'POST');
Expand All @@ -43,7 +43,7 @@
if ($totalCat == 0) {
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_PUBLISHER_IMPORT_NO_CATEGORY . '</span>';
} else {
include_once $GLOBALS['xoops']->path('class/xoopstree.php');
require_once $GLOBALS['xoops']->path('class/xoopstree.php');

$result = $GLOBALS['xoopsDB']->query('SELECT COUNT(*) FROM ' . $GLOBALS['xoopsDB']->prefix('nw_stories'));
list($totalArticles) = $GLOBALS['xoopsDB']->fetchRow($result);
Expand Down Expand Up @@ -167,7 +167,7 @@
if ($op === 'go') {
PublisherUtility::cpHeader();
//publisher_adminMenu(-1, _AM_PUBLISHER_IMPORT);
include_once dirname(dirname(__DIR__)) . '/include/common.php';
require_once dirname(dirname(__DIR__)) . '/include/common.php';
PublisherUtility::openCollapsableBar('amsimportgo', 'amsimportgoicon', sprintf(_AM_PUBLISHER_IMPORT_FROM, $importFromModuleName), _AM_PUBLISHER_IMPORT_RESULT);
/* @var $moduleHandler XoopsModuleHandler */
$moduleHandler = xoops_getHandler('module');
Expand Down
4 changes: 2 additions & 2 deletions admin/import/cjaycontent.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'cjaycontent ' . Request::getString('cjaycontent_version', '', 'POST');
Expand Down Expand Up @@ -89,7 +89,7 @@
if ($op === 'go') {
PublisherUtility::cpHeader();
//publisher_adminMenu(-1, _AM_PUBLISHER_IMPORT);
include_once dirname(dirname(__DIR__)) . '/include/common.php';
require_once dirname(dirname(__DIR__)) . '/include/common.php';
PublisherUtility::openCollapsableBar('cjaycontentimportgo', 'cjaycontentimportgoicon', sprintf(_AM_PUBLISHER_IMPORT_FROM, $importFromModuleName), _AM_PUBLISHER_IMPORT_RESULT);
/* @var $moduleHandler XoopsModuleHandler */
$moduleHandler = xoops_getHandler('module');
Expand Down
4 changes: 2 additions & 2 deletions admin/import/fmcontent.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'FmContent ' . Request::getString('fmcontent_version', '', 'POST');
Expand All @@ -48,7 +48,7 @@
if (empty($fmTopicCount)) {
echo "<span style='color: #567; margin: 3px 0 12px 0; font-size: small; display: block;'>" . _AM_PUBLISHER_IMPORT_NO_CATEGORY . '</span>';
} else {
include_once $GLOBALS['xoops']->path('www/class/xoopstree.php');
require_once $GLOBALS['xoops']->path('www/class/xoopstree.php');
$fmContentHdlr = xoops_getModuleHandler('page', 'fmcontent');
$fmContentCount = $fmContentHdlr->getCount(new Criteria('content_modid', $fm_module_id));

Expand Down
4 changes: 2 additions & 2 deletions admin/import/news.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'News ' . Request::getString('news_version', '', 'POST');
Expand All @@ -43,7 +43,7 @@
if ($totalCat == 0) {
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_PUBLISHER_IMPORT_NO_CATEGORY . '</span>';
} else {
include_once $GLOBALS['xoops']->path('class/xoopstree.php');
require_once $GLOBALS['xoops']->path('class/xoopstree.php');

$result = $GLOBALS['xoopsDB']->query('SELECT COUNT(*) FROM ' . $GLOBALS['xoopsDB']->prefix('news_stories'));
list($totalArticles) = $GLOBALS['xoopsDB']->fetchRow($result);
Expand Down
4 changes: 2 additions & 2 deletions admin/import/smartsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'Smartsection ' . Request::getString('smartsection_version', '', 'POST');
Expand All @@ -43,7 +43,7 @@
if ($totalCat == 0) {
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_PUBLISHER_IMPORT_NO_CATEGORY . '</span>';
} else {
include_once $GLOBALS['xoops']->path('class/xoopstree.php');
require_once $GLOBALS['xoops']->path('class/xoopstree.php');

$result = $GLOBALS['xoopsDB']->query('SELECT COUNT(*) FROM ' . $GLOBALS['xoopsDB']->prefix('smartsection_items'));
list($totalArticles) = $GLOBALS['xoopsDB']->fetchRow($result);
Expand Down
4 changes: 2 additions & 2 deletions admin/import/wfsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'WF-Section ' . Request::getString('wfs_version', '', 'POST');
Expand All @@ -43,7 +43,7 @@
if ($totalCat == 0) {
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_PUBLISHER_IMPORT_NOCATSELECTED . '</span>';
} else {
include_once $GLOBALS['xoops']->path('class/xoopstree.php');
require_once $GLOBALS['xoops']->path('class/xoopstree.php');

$result = $GLOBALS['xoopsDB']->query('SELECT COUNT(*) FROM ' . $GLOBALS['xoopsDB']->prefix('wfs_article'));
list($totalArticles) = $GLOBALS['xoopsDB']->fetchRow($result);
Expand Down
4 changes: 2 additions & 2 deletions admin/import/xfsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'XF-Section ' . Request::getString('xfs_version', '', 'POST');
Expand All @@ -43,7 +43,7 @@
if ($totalCat == 0) {
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_PUBLISHER_IMPORT_NOCATSELECTED . '</span>';
} else {
include_once $GLOBALS['xoops']->path('class/xoopstree.php');
require_once $GLOBALS['xoops']->path('class/xoopstree.php');

$result = $GLOBALS['xoopsDB']->query('SELECT COUNT(*) FROM ' . $GLOBALS['xoopsDB']->prefix('xfs_article'));
list($totalArticles) = $GLOBALS['xoopsDB']->fetchRow($result);
Expand Down
6 changes: 3 additions & 3 deletions admin/import/xnews.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Xmf\Request;

include_once dirname(__DIR__) . '/admin_header.php';
require_once dirname(__DIR__) . '/admin_header.php';
$myts = MyTextSanitizer::getInstance();

$importFromModuleName = 'xNews ' . Request::getString('xnews_version', '', 'POST');
Expand All @@ -43,7 +43,7 @@
if ($totalCat == 0) {
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_PUBLISHER_IMPORT_NO_CATEGORY . '</span>';
} else {
include_once $GLOBALS['xoops']->path('class/xoopstree.php');
require_once $GLOBALS['xoops']->path('class/xoopstree.php');

$result = $GLOBALS['xoopsDB']->query('SELECT COUNT(*) FROM ' . $GLOBALS['xoopsDB']->prefix('nw_stories'));
list($totalArticles) = $GLOBALS['xoopsDB']->fetchRow($result);
Expand Down Expand Up @@ -168,7 +168,7 @@
if ($op === 'go') {
PublisherUtility::cpHeader();
//publisher_adminMenu(-1, _AM_PUBLISHER_IMPORT);
include_once dirname(dirname(__DIR__)) . '/include/common.php';
require_once dirname(dirname(__DIR__)) . '/include/common.php';
PublisherUtility::openCollapsableBar('xnewsimportgo', 'xnewsimportgoicon', sprintf(_AM_PUBLISHER_IMPORT_FROM, $importFromModuleName), _AM_PUBLISHER_IMPORT_RESULT);
/* @var $moduleHandler XoopsModuleHandler */
$moduleHandler = xoops_getHandler('module');
Expand Down
2 changes: 1 addition & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

require_once __DIR__ . '/admin_header.php';
include_once dirname(__DIR__) . '/class/utility.php';
require_once dirname(__DIR__) . '/class/utility.php';

xoops_cp_header();
xoops_loadLanguage('main', PUBLISHER_DIRNAME);
Expand Down
4 changes: 2 additions & 2 deletions admin/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
use Xmf\Request;

require_once __DIR__ . '/admin_header.php';
include_once $GLOBALS['xoops']->path('class/xoopslists.php');
include_once $GLOBALS['xoops']->path('class/pagenav.php');
require_once $GLOBALS['xoops']->path('class/xoopslists.php');
require_once $GLOBALS['xoops']->path('class/pagenav.php');
require_once __DIR__ . '/../class/utility.php';

$itemid = Request::getInt('itemid', 0, 'POST');
Expand Down
2 changes: 1 addition & 1 deletion admin/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
$moduleHelper->loadLanguage('modinfo');
$moduleHelper->loadLanguage('admin');

include_once dirname(__DIR__) . '/include/config.php';
require_once dirname(__DIR__) . '/include/config.php';

$adminmenu = array(
array(
Expand Down
2 changes: 1 addition & 1 deletion admin/permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

require_once __DIR__ . '/admin_header.php';
include_once $GLOBALS['xoops']->path('class/xoopsform/grouppermform.php');
require_once $GLOBALS['xoops']->path('class/xoopsform/grouppermform.php');
$myts = MyTextSanitizer::getInstance();

PublisherUtility::cpHeader();
Expand Down
8 changes: 4 additions & 4 deletions admin/preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,19 @@
$ele = new XoopsFormRadioYN($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);
break;
case 'group':
include_once $GLOBALS['xoops']->path('class/xoopslists.php');
require_once $GLOBALS['xoops']->path('class/xoopslists.php');
$ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
break;
case 'group_multi':
include_once $GLOBALS['xoops']->path('class/xoopslists.php');
require_once $GLOBALS['xoops']->path('class/xoopslists.php');
$ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
break;
case 'user':
include_once $GLOBALS['xoops']->path('class/xoopslists.php');
require_once $GLOBALS['xoops']->path('class/xoopslists.php');
$ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
break;
case 'user_multi':
include_once $GLOBALS['xoops']->path('class/xoopslists.php');
require_once $GLOBALS['xoops']->path('class/xoopslists.php');
$ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
break;
case 'password':
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 @@ -39,7 +39,7 @@
*/
function publisher_pagewrap_upload(&$errors)
{
// include_once PUBLISHER_ROOT_PATH . '/class/uploader.php';
// require_once PUBLISHER_ROOT_PATH . '/class/uploader.php';
xoops_load('XoopsMediaUploader');

$publisher = PublisherPublisher::getInstance();
Expand Down
6 changes: 3 additions & 3 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
require_once __DIR__ . '/header.php';
$GLOBALS['xoopsOption']['template_main'] = 'publisher_archive.tpl';

include_once $GLOBALS['xoops']->path('header.php');
include_once PUBLISHER_ROOT_PATH . '/footer.php';
require_once $GLOBALS['xoops']->path('header.php');
require_once PUBLISHER_ROOT_PATH . '/footer.php';
xoops_loadLanguage('calendar');
//mb xoops_load('XoopsLocal');

Expand Down Expand Up @@ -231,4 +231,4 @@

$xoopsTpl->assign('lang_newsarchives', _MD_PUBLISHER_ARCHIVES);

include_once $GLOBALS['xoops']->path('footer.php');
require_once $GLOBALS['xoops']->path('footer.php');
6 changes: 3 additions & 3 deletions author_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
$myts = MyTextSanitizer::getInstance();

$GLOBALS['xoopsOption']['template_main'] = 'publisher_author_items.tpl';
include_once $GLOBALS['xoops']->path('header.php');
include_once PUBLISHER_ROOT_PATH . '/footer.php';
require_once $GLOBALS['xoops']->path('header.php');
require_once PUBLISHER_ROOT_PATH . '/footer.php';

$criteria = new CriteriaCompo(new Criteria('datesub', time(), '<='));
$criteria->add(new Criteria('uid', $uid));
Expand Down Expand Up @@ -98,4 +98,4 @@
$publisherMetagen = new PublisherMetagen($title, '', $title);
$publisherMetagen->createMetaTags();

include_once $GLOBALS['xoops']->path('footer.php');
require_once $GLOBALS['xoops']->path('footer.php');
2 changes: 1 addition & 1 deletion backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
error_reporting(0);
$GLOBALS['xoopsLogger']->activated = false;

include_once $GLOBALS['xoops']->path('class/template.php');
require_once $GLOBALS['xoops']->path('class/template.php');
if (function_exists('mb_http_output')) {
mb_http_output('pass');
}
Expand Down
4 changes: 2 additions & 2 deletions blocks/category_items_sel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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

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

/**
* @param $options
Expand Down Expand Up @@ -88,7 +88,7 @@ function publisher_category_items_sel_show($options)
*/
function publisher_category_items_sel_edit($options)
{
include_once PUBLISHER_ROOT_PATH . '/class/blockform.php';
require_once PUBLISHER_ROOT_PATH . '/class/blockform.php';
xoops_load('XoopsFormLoader');

$form = new PublisherBlockForm();
Expand Down
4 changes: 2 additions & 2 deletions blocks/date_to_date.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

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

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

/**
* @param $options
Expand Down Expand Up @@ -77,7 +77,7 @@ function publisher_date_to_date_show($options)
*/
function publisher_date_to_date_edit($options)
{
include_once PUBLISHER_ROOT_PATH . '/class/blockform.php';
require_once PUBLISHER_ROOT_PATH . '/class/blockform.php';
xoops_load('XoopsFormLoader');
xoops_load('XoopsFormTextDateSelect');

Expand Down
Loading

0 comments on commit f77b628

Please sign in to comment.