Ejemplo n.º 1
0
        if (!is_object($module)) {
            $module = new stdClass();
        }
        $module->params = '{"enable_captcha":"0","captcha_width":"110","captcha_height":"40"}';
    }
    if (!empty($module->params)) {
        $moduleParams->loadString($module->params);
    }
}
$param = 2;
switch ($action) {
    case 'subscribers':
        frontend::showSubscribersFE($listId, $action, $task, true);
        break;
    case 'confirm':
        $message = jnews::printYN(frontend::confirmRegistration($d), _JNEWS_ACCOUNT_CONFIRMED, _JNEWS_VERIFY_INFO);
        $showPanel = true;
        $db = JFactory::getDBO();
        $query = 'UPDATE IGNORE `#__jnews_subscribers` as S LEFT JOIN `#__users` AS U ON U.`email` = S.`email` SET S.`user_id` = U.`id` WHERE U.`id` > 0 AND S.`id` = ' . $subscriberId;
        $db->setQuery($query);
        $db->query();
        if (!empty($GLOBALS[JNEWS . 'redirectconfirm'])) {
            jNews_Tools::redirect($GLOBALS[JNEWS . 'redirectconfirm'], $message);
        }
        break;
    case 'sublist':
        frontEnd::showSubscriberLists($subscriberId, 'subscribeAll');
        break;
    case 'mailing':
        frontEnd::mailingOptions($action, $task, $listId, $mailingId, $subscriberId, $lisType, $artId, $contentType, $blogId, $blogType, $dealId, $dealType, $tmplid, $flexiid, $flexitype, $captchaWidth, $captchaHeight, $captchaBGColor, $captchaFTColor);
        break;
Ejemplo n.º 2
0
        $subscriberId = 0;
    }
}
global $mainframe;
$mainframe->addCustomHeadTag('<link rel="stylesheet" href="components/com_acajoom/css/acajoom.css" type="text/css" >');
$d['subscriberId'] = $subscriberId;
$d['cle'] = $cle;
if ($userId > 0 && empty($cle)) {
    $validated = true;
    $subscriberId = subscribers::getSubscriberIdFromUserId($userId);
}
$showPanel = false;
echo '<!--  Beginning : ' . acajoom::version() . '   -->' . "\n\r";
switch ($action) {
    case 'confirm':
        $message = acajoom::printYN(frontend::confirmRegistration($d), _ACA_ACCOUNT_CONFIRMED, _ACA_VERIFY_INFO);
        $showPanel = true;
        if (!empty($GLOBALS[ACA . 'redirectconfirm'])) {
            compa::redirect($GLOBALS[ACA . 'redirectconfirm'], $message);
        }
        break;
    case 'sublist':
        frontEnd::showSubscriberLists($subscriberId, 'subscribeAll');
        break;
    case 'mailing':
        frontEnd::mailingOptions($action, $task, $listId, $mailingId, $subscriberId, $lisType);
        break;
    case 'savemailing':
        $message = acajoom::printYN(xmailing::saveMailing($mailingId, $listId), _ACA_MAILING_SAVED, _ACA_ERROR);
        $showPanel = true;
        break;