jnews::printYN(false, '', _JNEWS_ERROR); break; } else { if ($subIdd !== 0 && $subIdd === (int) JRequest::getVar('subscriber_id')) { //donot need to check captcha } else { $security_captcha_enter = JRequest::getVar('security_code'); if ($_SESSION['captcha'] != strtolower($security_captcha_enter)) { ob_end_clean(); echo "<script>alert('" . addslashes(_JNEWS_CAPTCHA_MSG) . "'); window.history.go(-1);</script>\n"; break; } } } JRequest::checkToken() or die('Invalid Token'); $message = jnews::printYN(jNews_Subscribers::updateCBFESubscriber(), _JNEWS_UPDATED_SUCCESSFULLY, _JNEWS_ERROR); $showPanel = true; break; case 'log': jNews_ProcessMail::logStatistics($mailingId); break; case 'rendermod': require_once JNEWSPATH_CLASS . 'rendermod.php'; $rendMod = new jnews_renderMod(); $rendMod->renderModule(); break; case 'updatesubscription': $message = frontEnd::updateFrontSubscription($subscriberId); if (!empty($redirectlink)) { jNews_Tools::redirect($redirectlink, $message); } else {
function userActivated($user, $success) { require_once JNEWS_JPATH_ROOT_NO_ADMIN . DS . 'administrator' . DS . 'components' . DS . JNEWS_OPTION . DS . 'classes' . DS . 'class.jnews.php'; require_once JNEWS_JPATH_ROOT_NO_ADMIN . DS . 'administrator' . DS . 'components' . DS . JNEWS_OPTION . DS . 'classes' . DS . 'class.subscribers.php'; jNews_Subscribers::updateCBSubscribers(true); $user->receive_html = 1; if (!jNews_Subscribers::updateCBFESubscriber($user->user_id, $user, true)) { $this->_setErrorMSG(_JNEWS_ERROR); } return; }