define("SMARTMAIL_ROOT_PATH", XOOPS_ROOT_PATH . '/modules/' . SMARTMAIL_DIRNAME . '/'); } if (!defined("SMARTMAIL_IMAGES_URL")) { define("SMARTMAIL_IMAGES_URL", SMARTMAIL_URL . '/images/'); } /** Include SmartObject framework **/ include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartloader.php'; include SMARTOBJECT_ROOT_PATH . "class/smartobjectcategory.php"; /* * Including the common language file of the module */ $fileName = SMARTMAIL_ROOT_PATH . 'language/' . $GLOBALS['xoopsConfig']['language'] . '/common.php'; if (!file_exists($fileName)) { $fileName = SMARTMAIL_ROOT_PATH . 'language/english/common.php'; } include_once $fileName; include_once SMARTMAIL_ROOT_PATH . "class/newsletter.php"; include_once SMARTMAIL_ROOT_PATH . "class/subscriber.php"; include_once SMARTMAIL_ROOT_PATH . "include/functions.php"; // Creating the SmartModule object $smartContentModule =& smart_getModuleInfo('smartmail'); // Find if the user is admin of the module $smartmail_isAdmin = smart_userIsAdmin('smartmail'); $myts = MyTextSanitizer::getInstance(); $smartmail_moduleName = $smartContentModule->getVar('name'); // Creating the SmartModule config Object $smartContentConfig =& smart_getModuleConfig('smartmail'); // Creating the Newsletter handler $smartmail_newsletter_handler = xoops_getmodulehandler('newsletter', 'smartmail'); // Creating the Subscriber handler $smartmail_subscriber_handler = xoops_getmodulehandler('subscriber', 'smartmail');
function getModuleConfig() { return smart_getModuleConfig($this->_moduleName); }
* Module: SmartClone * Author: The SmartFactory <www.smartfactory.ca> * Licence: GNU */ if (!defined("XOOPS_ROOT_PATH")) { die("XOOPS root path not defined"); } if (!defined("SMARTCLONE_DIRNAME")) { define("SMARTCLONE_DIRNAME", 'smartclone'); } if (!defined("SMARTCLONE_URL")) { define("SMARTCLONE_URL", XOOPS_URL . '/modules/' . SMARTCLONE_DIRNAME . '/'); } if (!defined("SMARTCLONE_ROOT_PATH")) { define("SMARTCLONE_ROOT_PATH", XOOPS_ROOT_PATH . '/modules/' . SMARTCLONE_DIRNAME . '/'); } if (!defined("SMARTCLONE_IMAGES_URL")) { define("SMARTCLONE_IMAGES_URL", SMARTCLONE_URL . '/images/'); } /** Include SmartObject Framework **/ include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; include_once SMARTCLONE_ROOT_PATH . "include/functions.php"; // Creating the SmartModule object $smartclone_module =& smart_getModuleInfo(SMARTCLONE_DIRNAME); // Find if the user is admin of the module $smartclone_isAdmin = smart_userIsAdmin(SMARTCLONE_DIRNAME); $myts = MyTextSanitizer::getInstance(); $smartclone_moduleName = $smartclone_module->getVar('name'); // Creating the SmartModule config Object $smartclone_config =& smart_getModuleConfig(SMARTCLONE_DIRNAME);
function smart_modFooter() { global $xoopsConfig, $xoopsModule, $xoopsModuleConfig; include_once XOOPS_ROOT_PATH . '/class/template.php'; $tpl =& new XoopsTpl(); $hModule =& xoops_gethandler('module'); $versioninfo =& $hModule->get($xoopsModule->getVar('mid')); $modfootertxt = "Module " . $versioninfo->getInfo('name') . " - Version " . $versioninfo->getInfo('version') . ""; $modfooter = "<a href='" . $versioninfo->getInfo('support_site_url') . "' target='_blank'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/images/cssbutton.gif' title='" . $modfootertxt . "' alt='" . $modfootertxt . "'/></a>"; $tpl->assign('modfooter', $modfooter); if (!defined('_AM_SOBJECT_XOOPS_PRO')) { define("_AM_SOBJECT_XOOPS_PRO", "Do you need help with this module ?<br />Do you need new features not yet available ?"); } $smartobject_config = smart_getModuleConfig('smartobject'); $tpl->assign('smartobject_enable_admin_footer', $smartobject_config['enable_admin_footer']); $tpl->display(SMARTOBJECT_ROOT_PATH . 'templates/smartobject_admin_footer.html'); }
$i++; $adminmenu[$i]['title'] = _MI_SOBJECT_SENT_LINKS; $adminmenu[$i]['link'] = "admin/link.php"; $i++; $adminmenu[$i]['title'] = _MI_SOBJECT_TAGS; $adminmenu[$i]['link'] = "admin/customtag.php"; $i++; $adminmenu[$i]['title'] = _MI_SOBJECT_ADSENSES; $adminmenu[$i]['link'] = "admin/adsense.php"; $i++; $adminmenu[$i]['title'] = _MI_SOBJECT_RATINGS; $adminmenu[$i]['link'] = "admin/rating.php"; if (!defined('SMARTOBJECT_ROOT_PATH')) { include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php'; } $smartobject_config = smart_getModuleConfig('smartobject'); if (isset($smartobject_config['enable_currencyman']) && $smartobject_config['enable_currencyman'] == true) { $i++; $adminmenu[$i]['title'] = _MI_SOBJECT_CURRENCIES; $adminmenu[$i]['link'] = "admin/currency.php"; } global $xoopsModule; if (isset($xoopsModule)) { $i = -1; $i++; $headermenu[$i]['title'] = _PREFERENCES; $headermenu[$i]['link'] = '../../system/admin.php?fct=preferences&op=showmod&mod=' . $xoopsModule->getVar('mid'); $i++; $headermenu[$i]['title'] = _CO_SOBJECT_UPDATE_MODULE; $headermenu[$i]['link'] = XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin&op=update&module=" . $xoopsModule->getVar('dirname'); $i++;