Ejemplo n.º 1
0
function smart_getModuleNameForSEO($moduleName = false)
{
    $smartModule =& smart_getModuleInfo($moduleName);
    $smartModuleConfig =& smart_getModuleConfig($moduleName);
    if (isset($smartModuleConfig['seo_module_name'])) {
        return $smartModuleConfig['seo_module_name'];
    }
    $ret = smart_getModuleName(false, false, $moduleName);
    return strtolower($ret);
}
Ejemplo n.º 2
0
    } else {
        $xoopsTpl->assign('newsletters', $allowedNewsletters);
    }
    $xoopsTpl->assign('subscription_action', 'default');
}
include "header.php";
if ($xoopsUser) {
    // Turn off caching of user-specific page
    $xoopsConfig['module_cache'][$xoopsModule->getVar('mid')] = 0;
}
$xoopsOption['template_main'] = 'smartmail_subscription.html';
include_once XOOPS_ROOT_PATH . "/header.php";
$submit = isset($_POST['subscription_block_submit']) ? true : false;
$aInfoMessages = array();
$aErrorMessages = array();
$xoopsTpl->assign('module_home', smart_getModuleName(true, true));
$xoopsTpl->assign('categoryPath', _NL_MA_SUBSCRIPTION);
$xoopsTpl->assign('subscription_action', 'login');
$xoopsTpl->assign('subscription_lang_lostpass', _MB_SYSTEM_LPASS);
$xoopsTpl->assign('subscription_lang_registernow', _MB_SYSTEM_RNOW);
$xoopsTpl->assign('lang_password', _PASSWORD);
$xoopsTpl->assign('lang_rememberme', _REMEMBERME);
// autologin hack GIJ
if ($xoopsConfig['use_ssl'] == 1 && $xoopsConfig['sslloginlink'] != '') {
    $xoopsTpl->assign('subscription_sslloginlink', "<a href=\"javascript:openWithSelfMain('" . $xoopsConfig['sslloginlink'] . "', 'ssllogin', 300, 200);\">" . _MB_SYSTEM_SECURE . "</a>");
}
$op = isset($_POST['op']) ? $_POST['op'] : false;
$op = isset($_GET['op']) ? $_GET['op'] : $op;
switch ($op) {
    case 'subscription_form_post':
        $user_email = $_POST['subscription_block_email'];