Пример #1
0
     frontEnd::changeSubscriptions($subscriberId, $cle, $listId, 'save');
     break;
 case 'unsubscribe':
     frontEnd::unsubscribe($subscriberId, $cle, $listId, 'remove');
     $showPanel = false;
     break;
 case 'remove':
     $message = acajoom::printYN(frontEnd::remove($subscriberId, $cle, $listId), _ACA_UNSUBSCRIBE_MESS, _NOT_AUTH);
     $showPanel = true;
     break;
 case 'save':
     $message = acajoom::printYN(subscribers::updateOneSubscriber(), _ACA_UPDATED_SUCCESSFULLY, _ACA_ERROR);
     $showPanel = true;
     break;
 case 'log':
     acajoom_mail::logStatistics($mailingId, $subscriberId);
     break;
 case 'updatesubscription':
     $message = frontEnd::updateFrontSubscription($subscriberId);
     if (!empty($redirectlink)) {
         compa::redirect($redirectlink, $message);
     } else {
         $showPanel = true;
     }
     break;
 case 'subscribe':
     $userid = intval(mosGetParam($_REQUEST, 'userid', 0));
     if ($userid > 0) {
         global $database;
         $query = 'SELECT * FROM `#__users` WHERE `id` = \'' . $userid . '\'';
         $database->setQuery($query);