88         $this->_aRegParams = $aParams;
 
   90         if (!$aParams[
'oxuser__oxusername']) {
 
   91             oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'ERROR_MESSAGE_COMPLETE_FIELDS_CORRECTLY');
 
   96             oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'MESSAGE_INVALID_EMAIL');
 
  103         $oUser = 
oxNew(
'oxuser');
 
  106         $blUserLoaded = 
false;
 
  109         if (!$oUser->exists()) {
 
  114                 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'NEWSLETTER_EMAIL_NOT_EXIST');
 
  126                 $blUserLoaded = $oUser->save();
 
  130             $blUserLoaded = $oUser->load($oUser->getId());
 
  135         if ($blSubscribe && $blUserLoaded) {
 
  137             $oUser->setNewsSubscription(
false, 
false);
 
  139             $blOrderOptInEmail = $this->
getConfig()->getConfigParam(
'blOrderOptInEmail');
 
  140             if ($oUser->setNewsSubscription(
true, $blOrderOptInEmail)) {
 
  142                 if ($blOrderOptInEmail) {
 
  143                     $this->_iNewsletterStatus = 1;
 
  145                     $this->_iNewsletterStatus = 2;
 
  148                 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'MESSAGE_NOT_ABLE_TO_SEND_EMAIL');
 
  150         } elseif (!$blSubscribe && $blUserLoaded) {
 
  152             $oUser->setNewsSubscription(
false, 
false);
 
  153             $this->_iNewsletterStatus = 3;
 
  166         $oUser = 
oxNew(
'oxuser');
 
  168             $sConfirmCode = md5($oUser->oxuser__oxusername->value . $oUser->oxuser__oxpasssalt->value);
 
  171                 $oUser->getNewsSubscription()->setOptInStatus(1);
 
  172                 $oUser->addToGroup(
'oxidnewsletter');
 
  173                 $this->_iNewsletterStatus = 2;
 
  184         $oUser = 
oxNew(
'oxuser');
 
  186             $oUser->getNewsSubscription()->setOptInStatus(0);
 
  189             $oUser->removeFromGroup(
'oxidnewsletter');
 
  191             $this->_iNewsletterStatus = 3;
 
  210         if ($this->_oActionArticles === null) {
 
  211             $this->_oActionArticles = 
false;
 
  212             if ($this->
getConfig()->getConfigParam(
'bl_perfLoadAktion')) {
 
  213                 $oArtList = 
oxNew(
'oxarticlelist');
 
  214                 $oArtList->loadActionArticles(
'OXTOPSTART');
 
  215                 if ($oArtList->count()) {
 
  216                     $this->_oTopArticle = $oArtList->current();
 
  217                     $this->_oActionArticles = $oArtList;
 
  232         if ($this->_oTopArticle === null) {
 
  233             $this->_oTopArticle = 
false;
 
  249         if ($this->_sHomeCountryId === null) {
 
  250             $this->_sHomeCountryId = 
false;
 
  251             $aHomeCountry = $this->
getConfig()->getConfigParam(
'aHomeCountry');
 
  252             if (is_array($aHomeCountry)) {
 
  253                 $this->_sHomeCountryId = current($aHomeCountry);
 
  290         $aPath[
'title'] = 
oxRegistry::getLang()->translateString(
'STAY_INFORMED', $iBaseLanguage, 
false);
 
  291         $aPath[
'link'] = $this->
getLink();
 
  306             $sConstant = 
'STAY_INFORMED';
 
  308             $sConstant = 
'MESSAGE_THANKYOU_FOR_SUBSCRIBING_NEWSLETTERS';
 
  310             $sConstant = 
'MESSAGE_NEWSLETTER_CONGRATULATIONS';
 
  312             $sConstant = 
'SUCCESS';