Example #1
0
     require_once JCOMMENTS_SITE . '/jcomments.rss.php';
     JCommentsRSS::showObjectComments();
     break;
 case 'rss_full':
     require_once JCOMMENTS_SITE . '/jcomments.rss.php';
     JCommentsRSS::showAllComments();
     break;
 case 'rss_user':
     require_once JCOMMENTS_SITE . '/jcomments.rss.php';
     JCommentsRSS::showUserComments();
     break;
 case 'unsubscribe':
     JComments::unsubscribe();
     break;
 case 'cmd':
     JComments::executeCmd();
     break;
 case 'notifications-cron':
     $limit = $app->input->getInt('limit', 10);
     $secret = trim($app->input->get('secret', ''));
     if ($secret == $app->getCfg('secret')) {
         JCommentsNotificationHelper::send($limit);
     }
     break;
 case 'refreshObjectsAjax':
     require_once JCOMMENTS_SITE . '/jcomments.ajax.php';
     JCommentsAJAX::refreshObjectsAjax();
     exit;
     break;
 default:
     $jc_option = $app->input->get('option', '');