-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
371 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,20 +17,22 @@ | |
* @author trabis <[email protected]> | ||
*/ | ||
|
||
use \Xmf\Request; | ||
|
||
require_once __DIR__ . '/admin_header.php'; | ||
|
||
PublisherUtility::cpHeader(); | ||
//publisher_adminMenu(-1, _AM_PUBLISHER_CLONE); | ||
PublisherUtility::openCollapsableBar('clone', 'cloneicon', _AM_PUBLISHER_CLONE, _AM_PUBLISHER_CLONE_DSC); | ||
|
||
if ('submit' === XoopsRequest::getString('op', '', 'POST')) { | ||
if ('submit' === Request::getString('op', '', 'POST')) { | ||
if (!$GLOBALS['xoopsSecurity']->check()) { | ||
redirect_header('clone.php', 3, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); | ||
// exit(); | ||
} | ||
|
||
// $clone = $_POST['clone']; | ||
$clone = XoopsRequest::getString('clone', '', 'POST'); | ||
$clone = Request::getString('clone', '', 'POST'); | ||
|
||
//check if name is valid | ||
if (empty($clone) || preg_match('/[^a-zA-Z0-9\_\-]/', $clone)) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,16 @@ | |
* @author Marius Scurtescu <[email protected]> | ||
*/ | ||
|
||
use \Xmf\Request; | ||
|
||
include_once dirname(__DIR__) . '/admin_header.php'; | ||
$myts = MyTextSanitizer::getInstance(); | ||
|
||
$importFromModuleName = 'AMS ' . XoopsRequest::getString('ams_version', '', 'POST'); | ||
$importFromModuleName = 'AMS ' . Request::getString('ams_version', '', 'POST'); | ||
|
||
$scriptname = 'ams.php'; | ||
|
||
$op = ('go' === XoopsRequest::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
$op = ('go' === Request::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
|
||
if ($op === 'start') { | ||
xoops_load('XoopsFormLoader'); | ||
|
@@ -152,7 +154,7 @@ | |
$form->addElement(new XoopsFormHidden('op', 'go')); | ||
$form->addElement(new XoopsFormButton('', 'import', _AM_PUBLISHER_IMPORT, 'submit')); | ||
|
||
$form->addElement(new XoopsFormHidden('from_module_version', XoopsRequest::getString('ams_version', '', 'POST'))); | ||
$form->addElement(new XoopsFormHidden('from_module_version', Request::getString('ams_version', '', 'POST'))); | ||
|
||
$form->display(); | ||
} | ||
|
@@ -177,7 +179,7 @@ | |
$cnt_imported_cat = 0; | ||
$cnt_imported_articles = 0; | ||
|
||
$parentId = XoopsRequest::getInt('parent_category', 0, 'POST'); | ||
$parentId = Request::getInt('parent_category', 0, 'POST'); | ||
|
||
$sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('ams_topics'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,16 @@ | |
* @author Marius Scurtescu <[email protected]> | ||
*/ | ||
|
||
use \Xmf\Request; | ||
|
||
include_once dirname(__DIR__) . '/admin_header.php'; | ||
$myts = MyTextSanitizer::getInstance(); | ||
|
||
$importFromModuleName = 'cjaycontent ' . XoopsRequest::getString('cjaycontent_version', '', 'POST'); | ||
$importFromModuleName = 'cjaycontent ' . Request::getString('cjaycontent_version', '', 'POST'); | ||
|
||
$scriptname = 'cjaycontent.php'; | ||
|
||
$op = ('go' === XoopsRequest::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
$op = ('go' === Request::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
|
||
/** | ||
* @param $src | ||
|
@@ -74,7 +76,7 @@ | |
$form->addElement(new XoopsFormHidden('op', 'go')); | ||
$form->addElement(new XoopsFormButton('', 'import', _AM_PUBLISHER_IMPORT, 'submit')); | ||
|
||
$form->addElement(new XoopsFormHidden('from_module_version', XoopsRequest::getString('cjaycontent_version', '', 'POST'))); | ||
$form->addElement(new XoopsFormHidden('from_module_version', Request::getString('cjaycontent_version', '', 'POST'))); | ||
|
||
$form->display(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,16 @@ | |
* @author ZySpec <[email protected]> | ||
*/ | ||
|
||
use \Xmf\Request; | ||
|
||
include_once dirname(__DIR__) . '/admin_header.php'; | ||
$myts = MyTextSanitizer::getInstance(); | ||
|
||
$importFromModuleName = 'FmContent ' . XoopsRequest::getString('fmcontent_version', '', 'POST'); | ||
$importFromModuleName = 'FmContent ' . Request::getString('fmcontent_version', '', 'POST'); | ||
|
||
$scriptname = 'fmcontent.php'; | ||
|
||
$op = ('go' === XoopsRequest::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
$op = ('go' === Request::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
|
||
if ('start' === $op) { | ||
xoops_load('XoopsFormLoader'); | ||
|
@@ -118,7 +120,7 @@ | |
$form->addElement(new XoopsFormHidden('op', 'go')); | ||
$form->addElement(new XoopsFormButton('', 'import', _AM_PUBLISHER_IMPORT, 'submit')); | ||
|
||
$form->addElement(new XoopsFormHidden('from_module_version', XoopsRequest::getString('news_version', '', 'POST'))); | ||
$form->addElement(new XoopsFormHidden('from_module_version', Request::getString('news_version', '', 'POST'))); | ||
|
||
$form->display(); | ||
} | ||
|
@@ -142,7 +144,7 @@ | |
$cnt_imported_cat = 0; | ||
$cnt_imported_articles = 0; | ||
|
||
$parentId = XoopsRequest::getInt('parent_category', 0, 'POST'); | ||
$parentId = Request::getInt('parent_category', 0, 'POST'); | ||
|
||
// get all FmContent Content items without a category (content_topic=0) | ||
$fmContentHdlr = xoops_getModuleHandler('page', 'fmcontent'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,16 @@ | |
* @author Marius Scurtescu <[email protected]> | ||
*/ | ||
|
||
use \Xmf\Request; | ||
|
||
include_once dirname(__DIR__) . '/admin_header.php'; | ||
$myts = MyTextSanitizer::getInstance(); | ||
|
||
$importFromModuleName = 'News ' . XoopsRequest::getString('news_version', '', 'POST'); | ||
$importFromModuleName = 'News ' . Request::getString('news_version', '', 'POST'); | ||
|
||
$scriptname = 'news.php'; | ||
|
||
$op = ('go' === XoopsRequest::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
$op = ('go' === Request::getString('op', '', 'POST')) ? 'go' : 'start'; | ||
|
||
if ($op === 'start') { | ||
xoops_load('XoopsFormLoader'); | ||
|
@@ -89,7 +91,7 @@ | |
$form->addElement(new XoopsFormHidden('op', 'go')); | ||
$form->addElement(new XoopsFormButton('', 'import', _AM_PUBLISHER_IMPORT, 'submit')); | ||
|
||
$form->addElement(new XoopsFormHidden('from_module_version', XoopsRequest::getString('news_version', '', 'POST'))); | ||
$form->addElement(new XoopsFormHidden('from_module_version', Request::getString('news_version', '', 'POST'))); | ||
|
||
$form->display(); | ||
} | ||
|
@@ -113,7 +115,7 @@ | |
$cnt_imported_cat = 0; | ||
$cnt_imported_articles = 0; | ||
|
||
$parentId = XoopsRequest::getInt('parent_category', 0, 'POST'); | ||
$parentId = Request::getInt('parent_category', 0, 'POST'); | ||
|
||
$sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('news_topics'); | ||
|
||
|
Oops, something went wrong.