-
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
1 parent
4edd4f8
commit a27cfae
Showing
107 changed files
with
990 additions
and
741 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
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
* @since 1.0 | ||
* @author trabis <[email protected]> | ||
* @author The SmartFactory <www.smartfactory.ca> | ||
* @version $Id: admin_header.php 10661 2013-01-04 19:22:48Z trabis $ | ||
*/ | ||
|
||
include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php'; | ||
|
@@ -35,7 +34,8 @@ | |
'editimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_edit.png' alt='" . _AM_PUBLISHER_ICO_EDIT . "' align='middle' />", | ||
'deleteimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_delete.png' alt='" . _AM_PUBLISHER_ICO_DELETE . "' align='middle' />", | ||
'online' => "<img src='" . PUBLISHER_IMAGES_URL . "/on.png' alt='" . _AM_PUBLISHER_ICO_ONLINE . "' align='middle' />", | ||
'offline' => "<img src='" . PUBLISHER_IMAGES_URL . "/off.png' alt='" . _AM_PUBLISHER_ICO_OFFLINE . "' align='middle' />"); | ||
'offline' => "<img src='" . PUBLISHER_IMAGES_URL . "/off.png' alt='" . _AM_PUBLISHER_ICO_OFFLINE . "' align='middle' />" | ||
); | ||
|
||
include_once $GLOBALS['xoops']->path('Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); | ||
//ModuleAdmin::loadLanguage(); | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
* @since 1.0 | ||
* @author trabis <[email protected]> | ||
* @author The SmartFactory <www.smartfactory.ca> | ||
* @version $Id: category.php 10661 2013-01-04 19:22:48Z trabis $ | ||
*/ | ||
|
||
include_once __DIR__ . '/admin_header.php'; | ||
|
@@ -44,7 +43,8 @@ | |
// exit(); | ||
} else { | ||
xoops_cp_header(); | ||
xoops_confirm(array('op' => 'del', 'categoryid' => $categoryObj->categoryid(), 'confirm' => 1, 'name' => $categoryObj->name()), 'category.php', _AM_PUBLISHER_DELETECOL . " '" . $categoryObj->name() . "'. <br /> <br />" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE); | ||
xoops_confirm(array('op' => 'del', 'categoryid' => $categoryObj->categoryid(), 'confirm' => 1, 'name' => $categoryObj->name()), 'category.php', | ||
_AM_PUBLISHER_DELETECOL . " '" . $categoryObj->name() . "'. <br> <br>" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE); | ||
xoops_cp_footer(); | ||
} | ||
break; | ||
|
@@ -192,7 +192,7 @@ | |
publisherCpHeader(); | ||
//publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES); | ||
|
||
echo "<br />\n"; | ||
echo "<br>\n"; | ||
echo "<form><div style=\"margin-bottom: 12px;\">"; | ||
echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> "; | ||
//echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; | ||
|
@@ -226,7 +226,7 @@ | |
include_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 />'; | ||
echo '<br>'; | ||
publisherCloseCollapsableBar('createdcategories', 'createdcategoriesicon'); | ||
echo '<br>'; | ||
//editcat(false); | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,6 @@ | |
* @package Publisher | ||
* @since 1.0 | ||
* @author trabis <[email protected]> | ||
* @version $Id: clone.php 10374 2012-12-12 23:39:48Z trabis $ | ||
*/ | ||
|
||
include_once __DIR__ . '/admin_header.php'; | ||
|
@@ -26,7 +25,7 @@ | |
|
||
if ('submit' === XoopsRequest::getString('op', '', 'POST')) { | ||
if (!$GLOBALS['xoopsSecurity']->check()) { | ||
redirect_header('clone.php', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); | ||
redirect_header('clone.php', 3, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); | ||
// exit(); | ||
} | ||
|
||
|
@@ -47,7 +46,8 @@ | |
$patterns = array( | ||
strtolower(PUBLISHER_DIRNAME) => strtolower($clone), | ||
strtoupper(PUBLISHER_DIRNAME) => strtoupper($clone), | ||
ucfirst(strtolower(PUBLISHER_DIRNAME)) => ucfirst(strtolower($clone))); | ||
ucfirst(strtolower(PUBLISHER_DIRNAME)) => ucfirst(strtolower($clone)) | ||
); | ||
|
||
$patKeys = array_keys($patterns); | ||
$patValues = array_values($patterns); | ||
|
@@ -56,7 +56,7 @@ | |
|
||
$msg = ''; | ||
if (is_dir($GLOBALS['xoops']->path('modules/' . strtolower($clone)))) { | ||
$msg .= sprintf(_AM_PUBLISHER_CLONE_CONGRAT, "<a href='" . XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin'>" . ucfirst(strtolower($clone)) . '</a>') . "<br />\n"; | ||
$msg .= sprintf(_AM_PUBLISHER_CLONE_CONGRAT, "<a href='" . XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin'>" . ucfirst(strtolower($clone)) . '</a>') . "<br>\n"; | ||
if (!$logocreated) { | ||
$msg .= _AM_PUBLISHER_CLONE_IMAGEFAIL; | ||
} | ||
|
@@ -86,7 +86,7 @@ | |
function file_put_contents($filename, $data, $file_append = false) | ||
{ | ||
if ($fp == fopen($filename, (!$file_append ? 'w+' : 'a+'))) { | ||
fputs($fp, $data); | ||
fwrite($fp, $data); | ||
fclose($fp); | ||
} | ||
} | ||
|
@@ -154,7 +154,9 @@ public static function createLogo($dirname) | |
// unset($func); | ||
} | ||
|
||
if (!file_exists($imageBase = $GLOBALS['xoops']->path('modules/' . $dirname . '/assets/images/logo.png')) || !file_exists($font = $GLOBALS['xoops']->path('modules/' . $dirname . '/assets/images/VeraBd.ttf'))) { | ||
if (!file_exists($imageBase = $GLOBALS['xoops']->path('modules/' . $dirname . '/assets/images/logo.png')) || | ||
!file_exists($font = $GLOBALS['xoops']->path('modules/' . $dirname . '/assets/images/VeraBd.ttf')) | ||
) { | ||
return false; | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
* @since 1.0 | ||
* @author trabis <[email protected]> | ||
* @author The SmartFactory <www.smartfactory.ca> | ||
* @version $Id: file.php 10374 2012-12-12 23:39:48Z trabis $ | ||
*/ | ||
|
||
include_once __DIR__ . '/admin_header.php'; | ||
|
@@ -43,7 +42,7 @@ function publisher_editFile($showmenu = false, $fileid = 0, $itemid = 0) | |
// exit(); | ||
} | ||
|
||
echo "<br />\n"; | ||
echo "<br>\n"; | ||
echo "<span style='color: #2F5376; font-weight: bold; font-size: 16px; margin: 6px 6px 0 0; '>" . _AM_PUBLISHER_FILE_EDITING . '</span>'; | ||
echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_PUBLISHER_FILE_EDITING_DSC . '</span>'; | ||
publisherOpenCollapsableBar('editfile', 'editfileicon', _AM_PUBLISHER_FILE_INFORMATIONS); | ||
|
@@ -111,11 +110,11 @@ function publisher_editFile($showmenu = false, $fileid = 0, $itemid = 0) | |
|
||
// Storing the file | ||
if (!$fileObj->store()) { | ||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid().'#tab_2', 3, _AM_PUBLISHER_FILE_EDITING_ERROR . publisherFormatErrors($fileObj->getErrors())); | ||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid() . '#tab_2', 3, _AM_PUBLISHER_FILE_EDITING_ERROR . publisherFormatErrors($fileObj->getErrors())); | ||
// exit; | ||
} | ||
|
||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid().'#tab_2', 2, _AM_PUBLISHER_FILE_EDITING_SUCCESS); | ||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid() . '#tab_2', 2, _AM_PUBLISHER_FILE_EDITING_SUCCESS); | ||
// exit(); | ||
break; | ||
|
||
|
@@ -130,18 +129,18 @@ function publisher_editFile($showmenu = false, $fileid = 0, $itemid = 0) | |
|
||
if ($confirm) { | ||
if (!$publisher->getHandler('file')->delete($fileObj)) { | ||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid().'#tab_2', 2, _AM_PUBLISHER_FILE_DELETE_ERROR); | ||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid() . '#tab_2', 2, _AM_PUBLISHER_FILE_DELETE_ERROR); | ||
// exit; | ||
} | ||
|
||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid().'#tab_2', 2, sprintf(_AM_PUBLISHER_FILEISDELETED, $fileObj->name())); | ||
redirect_header('item.php?op=mod&itemid=' . $fileObj->itemid() . '#tab_2', 2, sprintf(_AM_PUBLISHER_FILEISDELETED, $fileObj->name())); | ||
// exit(); | ||
} else { | ||
// no confirm: show deletion condition | ||
$fileid = XoopsRequest::getInt('fileid', 0, 'GET'); | ||
|
||
publisherCpHeader(); | ||
xoops_confirm(array('op' => 'del', 'fileid' => $fileObj->fileid(), 'confirm' => 1, 'name' => $fileObj->name()), 'file.php', _AM_PUBLISHER_DELETETHISFILE . ' <br />' . $fileObj->name() . ' <br /> <br />', _AM_PUBLISHER_DELETE); | ||
xoops_confirm(array('op' => 'del', 'fileid' => $fileObj->fileid(), 'confirm' => 1, 'name' => $fileObj->name()), 'file.php', _AM_PUBLISHER_DELETETHISFILE . ' <br>' . $fileObj->name() . ' <br> <br>', _AM_PUBLISHER_DELETE); | ||
xoops_cp_footer(); | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
* @since 1.0 | ||
* @author trabis <[email protected]> | ||
* @author The SmartFactory <www.smartfactory.ca> | ||
* @version $Id: import.php 12825 2014-10-31 02:42:34Z zyspec $ | ||
*/ | ||
|
||
include_once __DIR__ . '/admin_header.php'; | ||
|
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,7 +17,6 @@ | |
* @author trabis <[email protected]> | ||
* @author The SmartFactory <www.smartfactory.ca> | ||
* @author Marius Scurtescu <[email protected]> | ||
* @version $Id: ams.php 10374 2012-12-12 23:39:48Z trabis $ | ||
*/ | ||
|
||
include_once dirname(__DIR__) . '/admin_header.php'; | ||
|
@@ -58,7 +57,7 @@ | |
// add 'publisher' category to 'imagecategory' table | ||
|
||
// if (!$GLOBALS['xoopsSecurity']->check()) { | ||
// redirect_header('admin.php?fct=images', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); | ||
// redirect_header('admin.php?fct=images', 3, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); | ||
// } | ||
|
||
$imageCategoryHandler = xoops_getHandler('imagecategory'); | ||
|
@@ -128,7 +127,7 @@ | |
$cat_cbox_options[$cid] = "$cat_title ($art_count)"; | ||
} | ||
|
||
$cat_label = new XoopsFormLabel(_AM_PUBLISHER_IMPORT_CATEGORIES, implode('<br />', $cat_cbox_options)); | ||
$cat_label = new XoopsFormLabel(_AM_PUBLISHER_IMPORT_CATEGORIES, implode('<br>', $cat_cbox_options)); | ||
$cat_label->setDescription(_AM_PUBLISHER_IMPORT_CATEGORIES_DSC); | ||
$form->addElement($cat_label); | ||
|
||
|
@@ -362,7 +361,7 @@ | |
$fileObj->setVar('short_url', $arrFile['filerealname']); | ||
|
||
if ($fileObj->store($allowed_mimetypes, true, false)) { | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_ARTICLE_FILE, $arrFile['filerealname']) . '<br />'; | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_ARTICLE_FILE, $arrFile['filerealname']) . '<br>'; | ||
} | ||
} | ||
} | ||
|
@@ -371,7 +370,7 @@ | |
//------------------------ | ||
|
||
$newArticleArray[$arrArticle['storyid']] = $itemObj->itemid(); | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_ARTICLE, $itemObj->getTitle()) . '<br />'; | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_ARTICLE, $itemObj->getTitle()) . '<br>'; | ||
++$cnt_imported_articles; | ||
} | ||
} | ||
|
@@ -406,7 +405,7 @@ | |
unset($oldid, $newCat); | ||
|
||
// Looping through the comments to link them to the new articles and module | ||
echo _AM_PUBLISHER_IMPORT_COMMENTS . '<br />'; | ||
echo _AM_PUBLISHER_IMPORT_COMMENTS . '<br>'; | ||
|
||
$publisher_module_id = $publisher->getModule()->mid(); | ||
|
||
|
@@ -419,9 +418,9 @@ | |
$comment->setVar('com_modid', $publisher_module_id); | ||
$comment->setNew(); | ||
if (!$commentHandler->insert($comment)) { | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT_ERROR, $comment->getVar('com_title')) . '<br />'; | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT_ERROR, $comment->getVar('com_title')) . '<br>'; | ||
} else { | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT, $comment->getVar('com_title')) . '<br />'; | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT, $comment->getVar('com_title')) . '<br>'; | ||
} | ||
} | ||
// unset($comment); | ||
|
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,7 +17,6 @@ | |
* @author trabis <[email protected]> | ||
* @author The SmartFactory <www.smartfactory.ca> | ||
* @author Marius Scurtescu <[email protected]> | ||
* @version $Id: cjaycontent.php 10374 2012-12-12 23:39:48Z trabis $ | ||
*/ | ||
|
||
include_once dirname(__DIR__) . '/admin_header.php'; | ||
|
@@ -146,15 +145,15 @@ | |
continue; | ||
} else { | ||
$newArticleArray[$arrArticle['id']] = $itemObj->itemid(); | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_ARTICLE, $itemObj->getTitle()) . '<br />'; | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_ARTICLE, $itemObj->getTitle()) . '<br>'; | ||
++$cnt_imported_articles; | ||
} | ||
} | ||
|
||
echo '<br/>'; | ||
|
||
// Looping through the comments to link them to the new articles and module | ||
echo _AM_PUBLISHER_IMPORT_COMMENTS . '<br />'; | ||
echo _AM_PUBLISHER_IMPORT_COMMENTS . '<br>'; | ||
|
||
$publisher_module_id = $publisher->getModule()->mid(); | ||
|
||
|
@@ -167,9 +166,9 @@ | |
$comment->setVar('com_modid', $publisher_module_id); | ||
$comment->setNew(); | ||
if (!$commentHandler->insert($comment)) { | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT_ERROR, $comment->getVar('com_title')) . '<br />'; | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT_ERROR, $comment->getVar('com_title')) . '<br>'; | ||
} else { | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT, $comment->getVar('com_title')) . '<br />'; | ||
echo ' ' . sprintf(_AM_PUBLISHER_IMPORTED_COMMENT, $comment->getVar('com_title')) . '<br>'; | ||
} | ||
} | ||
// unset($comment); | ||
|
Oops, something went wrong.