コード例 #1
0
ファイル: jnews.php プロジェクト: naka211/kkvn
     }
     break;
 case 'change':
     frontEnd::changeSubscriptions($subscriber, $subscriberId, $cle, 'save');
     break;
 case 'unsubscribe':
     frontEnd::unsubscribe($subscriber, $subscriberId, $cle, $mailingId, 'remove');
     $showPanel = false;
     break;
 case 'unsubscribeall':
     $message = jnews::printYN(frontEnd::unsubscribeall($subscriber, $subscriberId, $cle), _JNEWS_UNSUBSCRIBE_ALL_MESS, _NOT_AUTH);
     $showPanel = true;
     break;
 case 'remove':
     JRequest::checkToken() or die('Invalid Token');
     $message = jnews::printYN(frontEnd::remove($subscriber, $subscriberId, $cle, $listId), _JNEWS_UNSUBSCRIBE_MESS, _NOT_AUTH);
     $showPanel = true;
     break;
 case 'save':
     $subIdd = 0;
     if ($userId !== 0) {
         $subIdd = (int) jNews_Subscribers::getSubscriberIdFromUserId($userId);
     }
     //redirect if user = 2 and this user tries to change not his own list
     if ($subIdd !== 0 && $subIdd !== (int) JRequest::getVar('subscriber_id')) {
         jnews::printYN(false, '', _JNEWS_ERROR);
         break;
     } else {
         if ($subIdd !== 0 && $subIdd === (int) JRequest::getVar('subscriber_id')) {
             //donot need to check captcha
         } else {
コード例 #2
0
ファイル: acajoom.php プロジェクト: reeleis/ohiocitycycles
         $subscriberId = 0;
     }
     frontEnd::subscriptions($subscriberId, 0, 'save');
     break;
 case 'subone':
     frontEnd::subscriptions($subscriberId, $listId, 'subscribe');
     break;
 case 'change':
     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;