$saveRedir = false;
    if (!empty($domainredirect) && !preg_match('#^' . $regex . '$#i', $domainredirect)) {
        $regex .= '|' . $domainredirect;
        $saveRedir = true;
    }
    if (!empty($domainredirectunsub) && !preg_match('#^' . $regex . '$#i', $domainredirectunsub)) {
        $regex .= '|' . $domainredirectunsub;
        $saveRedir = true;
    }
    if ($saveRedir) {
        $newConfig = new stdClass();
        $newConfig->module_redirect = $regex;
        $config->save($newConfig);
    }
}
$formName = acymailing_getModuleFormName();
if (!empty($overridedesign)) {
    $params->set('includejs', 'module');
}
$introText = $params->get('introtext');
$postText = $params->get('finaltext');
$mootoolsIntro = $params->get('mootoolsintro', '');
if (!empty($introText) && preg_match('#^[A-Z_]*$#', $introText)) {
    $introText = JText::_($introText);
}
if (!empty($postText) && preg_match('#^[A-Z_]*$#', $postText)) {
    $postText = JText::_($postText);
}
if (!empty($mootoolsIntro) && preg_match('#^[A-Z_]*$#', $mootoolsIntro)) {
    $mootoolsIntro = JText::_($mootoolsIntro);
}
Esempio n. 2
0
 static function getModuleFormName()
 {
     return acymailing_getModuleFormName();
 }