Ejemplo n.º 1
0
     require_once JCOMMENTS_BASE . '/jcomments.php';
 } else {
     switch ($task) {
         case "comments":
             JCommentsAdmin::checkPhpVersion();
             JCommentsAdmin::show();
             break;
         case 'comments.edit':
             JCommentsAdmin::edit();
             break;
         case 'comments.apply':
         case 'comments.save':
             JCommentsAdmin::save();
             break;
         case 'comments.cancel':
             JCommentsAdmin::cancel();
             break;
         case 'comments.publish':
             JCommentsAdmin::publish(1);
             break;
         case 'comments.unpublish':
             JCommentsAdmin::publish(0);
             break;
         case 'comments.remove':
             JCommentsAdmin::remove();
             break;
         case "settings":
             JCommentsAdmin::checkPhpVersion();
             JCommentsAdmin::showSettings();
             break;
         case "settings.cancel":