-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from mambax7/master
2.11 Beta 1
- Loading branch information
Showing
45 changed files
with
1,792 additions
and
1,152 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 |
---|---|---|
@@ -1,28 +1,48 @@ | ||
<?php | ||
/* | ||
You may not change or alter any portion of this comment or credits of | ||
supporting developers from this source code or any supporting source code | ||
which is considered copyrighted (c) material of the original comment or credit | ||
authors. | ||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
*/ | ||
/** | ||
* Module: RandomQuote | ||
* | ||
* You may not change or alter any portion of this comment or credits | ||
* of supporting developers from this source code or any supporting source code | ||
* which is considered copyrighted (c) material of the original comment or credit authors. | ||
* | ||
* PHP version 5 | ||
* | ||
* @category Module | ||
* @package Randomquote | ||
* @author XOOPS Development Team, Mamba | ||
* @copyright 2001-2016 XOOPS Project (http://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link http://xoops.org/ | ||
* @since 2.0.0 | ||
* @package randomquote | ||
* @author XOOPS Module Development Team | ||
* @author Mamba | ||
* @copyright {@link http://xoops.org 2001-2016 XOOPS Project} | ||
* @license {@link http://www.fsf.org/copyleft/gpl.html GNU public license} | ||
* @link http://xoops.org XOOPS | ||
* @since 2.00 | ||
*/ | ||
|
||
global $pathIcon32; | ||
echo "<div class='adminfooter'>\n" | ||
. " <div style='text-align: center;'>\n" | ||
. " <a href='http://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" | ||
. " </div>\n" . ' ' | ||
. _AM_MODULEADMIN_ADMIN_FOOTER . "\n" | ||
. "</div>\n"; | ||
|
||
echo "<div class='adminfooter'>\n" | ||
. " <div class='center'>\n" | ||
. " <a href='" | ||
. $GLOBALS['xoopsModule']->getInfo('author_website_url') | ||
. "' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='" | ||
. $GLOBALS['xoopsModule']->getInfo('author_website_name') | ||
. "' title='" | ||
. $GLOBALS['xoopsModule']->getInfo('author_website_name') | ||
. "'></a>\n" | ||
. " </div>\n" | ||
. " <div class='center smallsmall italic pad5'>\n" | ||
. " " | ||
. _AM_RANDOMQUOTE_MAINTAINED_BY | ||
. " <a class='tooltip' rel='external' href='http://" | ||
. $GLOBALS['xoopsModule']->getInfo('module_website_url') | ||
. "' " | ||
. "title='" | ||
. _AM_RANDOMQUOTE_MAINTAINED_TITLE | ||
. "'>" | ||
. _AM_RANDOMQUOTE_MAINTAINED_TEXT | ||
. "</a>\n" | ||
. " </div>\n" | ||
. "</div>"; | ||
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 |
---|---|---|
@@ -1,52 +1,54 @@ | ||
<?php | ||
/* | ||
You may not change or alter any portion of this comment or credits of | ||
supporting developers from this source code or any supporting source code | ||
which is considered copyrighted (c) material of the original comment or credit | ||
authors. | ||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
*/ | ||
/** | ||
* Module: RandomQuote | ||
* | ||
* You may not change or alter any portion of this comment or credits | ||
* of supporting developers from this source code or any supporting source code | ||
* which is considered copyrighted (c) material of the original comment or credit authors. | ||
* | ||
* PHP version 5 | ||
* | ||
* @category Module | ||
* @package Randomquote | ||
* @author XOOPS Development Team, Mamba | ||
* @copyright 2001-2016 XOOPS Project (http://xoops.org) | ||
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) | ||
* @link http://xoops.org/ | ||
* @since 2.0.0 | ||
* @package randomquote | ||
* @author XOOPS Module Development Team | ||
* @author Mamba | ||
* @copyright {@link http://xoops.org 2001-2016 XOOPS Project} | ||
* @license {@link http://www.fsf.org/copyleft/gpl.html GNU public license} | ||
* @link http://xoops.org XOOPS | ||
* @since 2.00 | ||
*/ | ||
|
||
include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php'; | ||
include_once XOOPS_ROOT_PATH . '/include/cp_header.php'; | ||
include_once dirname(__DIR__) . '/include/config.php'; | ||
include_once dirname(__DIR__) . '/include/functions.php'; | ||
include_once $GLOBALS['xoops']->path('/include/cp_header.php'); | ||
|
||
$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname'); | ||
$moduleDirName = $GLOBALS['xoopsModule']->getVar('dirname'); | ||
|
||
$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); | ||
$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); | ||
$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); | ||
//load handlers | ||
$quotesHandler = xoops_getModuleHandler('quotes', $thisDirname); | ||
XoopsLoad::load('xoopsrequest'); | ||
XoopsLoad::load('quotes', $moduleDirName); | ||
XoopsLoad::load('constants', $moduleDirName); | ||
|
||
$pathIcon16 = $GLOBALS['xoops']->url('www/' . $GLOBALS['xoopsModule']->getInfo('icons16')); | ||
$pathIcon32 = $GLOBALS['xoops']->url('www/' . $GLOBALS['xoopsModule']->getInfo('icons32')); | ||
$pathModuleAdmin = $GLOBALS['xoops']->path('www/' . $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin')); | ||
$quotesHandler = xoops_getModuleHandler('quotes', $moduleDirName); | ||
|
||
$myts = MyTextSanitizer::getInstance(); | ||
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { | ||
include_once(XOOPS_ROOT_PATH . '/class/template.php'); | ||
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { | ||
include_once $GLOBALS['xoops']->path("/class/template.php"); | ||
$xoopsTpl = new XoopsTpl(); | ||
} | ||
|
||
$xoopsTpl->assign('pathIcon16', $pathIcon16); | ||
$xoopsTpl->assign('pathIcon32', $pathIcon32); | ||
$GLOBALS['xoopsTpl']->assign('pathIcon16', $pathIcon16); | ||
$GLOBALS['xoopsTpl']->assign('pathIcon32', $pathIcon32); | ||
//Load languages | ||
xoops_loadLanguage('admin', $thisDirname); | ||
xoops_loadLanguage('modinfo', $thisDirname); | ||
xoops_loadLanguage('main', $thisDirname); | ||
// Locad admin menu class | ||
if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) { | ||
require_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); | ||
} else { | ||
redirect_header('../../../admin.php', 5, _AM_MODULEADMIN_MISSING, false); | ||
} | ||
xoops_loadLanguage('admin', $moduleDirName); | ||
xoops_loadLanguage('modinfo', $moduleDirName); | ||
xoops_loadLanguage('main', $moduleDirName); | ||
require_once "{$pathModuleAdmin}/moduleadmin/moduleadmin.php"; | ||
|
||
xoops_cp_header(); | ||
$adminMenu = new ModuleAdmin(); |
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
Oops, something went wrong.