Exemple #1
0
 case 'rss_full':
     require_once JCOMMENTS_BASE . '/jcomments.rss.php';
     JCommentsRSS::showAllComments();
     break;
 case 'rss_user':
     require_once JCOMMENTS_BASE . '/jcomments.rss.php';
     JCommentsRSS::showUserComments();
     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', '');
     $app = JCommentsFactory::getApplication('site');
     if ($jc_option == 'com_jcomments' && $jc_ajax == '' && !$app->isAdmin()) {
         $_Itemid = (int) JCommentsInput::getVar('Itemid');
         $_tmpl = JCommentsInput::getVar('tmpl');
         if ($_Itemid !== 0 && $_tmpl !== 'component') {
             if (JCOMMENTS_JVERSION == '1.5') {
                 $params = JComponentHelper::getParams('com_jcomments');
             } elseif (JCOMMENTS_JVERSION == '1.7') {
                 $params = $app->getParams();
             } else {
                 $menu = $app->get('menu');