Пример #1
0
         if ($config->getInt('enable_plugins') == 1) {
             JCommentsEventHelper::trigger('onJCommentsCaptchaImage');
         }
     }
     break;
 case 'rss':
     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':
Пример #2
0
         JCommentsCaptcha::image();
     } else {
         if ($config->getInt('enable_mambots') == 1) {
             require_once JCOMMENTS_HELPERS . DS . 'plugin.php';
             JCommentsPluginHelper::importPlugin('jcomments');
             JCommentsPluginHelper::trigger('onJCommentsCaptchaImage');
         }
     }
     break;
 case 'rss':
     require_once JCOMMENTS_BASE . DS . 'jcomments.rss.php';
     JCommentsRSS::feedLastComments();
     break;
 case 'rss_full':
     require_once JCOMMENTS_BASE . DS . 'jcomments.rss.php';
     JCommentsRSS::feedLastCommentsGlobal();
     break;
 case 'unsubscribe':
     JComments::unsubscribe();
     break;
 case 'cmd':
     JComments::executeCmd();
     break;
 case 'go2object':
     JComments::redirectToObject();
     break;
 default:
     $jc_option = JCommentsInput::getVar('option', '');
     $jc_ajax = JCommentsInput::getVar('jtxf', '');
     if ($jc_option == 'com_jcomments' && $jc_ajax == '' && !$mainframe->isAdmin()) {
         $_Itemid = (int) JCommentsInput::getVar('Itemid');