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', ''); $jc_ajax = $app->input->get('jtxf', ''); if ($jc_option == 'com_jcomments' && $jc_ajax == '' && !$app->isAdmin()) { $_Itemid = $app->input->getInt('Itemid'); $_tmpl = $app->input->get('tmpl'); if ($_Itemid !== 0 && $_tmpl !== 'component') { // $params = JComponentHelper::getParams('com_jcomments'); $params = $app->getParams(); $object_group = $params->get('object_group'); $object_id = (int) $params->get('object_id', 0); if ($object_id != 0 && $object_group != '') { if ($params->get('language_suffix') != '') {