Пример #1
0
                    break;
                case 'blacklist.apply':
                case 'blacklist.save':
                    require_once dirname(__FILE__) . DS . 'admin.jcomments.blacklist.php';
                    JCommentsAdminBlacklistManager::save();
                    break;
                case 'blacklist.remove':
                    require_once dirname(__FILE__) . DS . 'admin.jcomments.blacklist.php';
                    JCommentsAdminBlacklistManager::remove();
                    break;
                case 'blacklist.cancel':
                    require_once dirname(__FILE__) . DS . 'admin.jcomments.blacklist.php';
                    JCommentsAdminBlacklistManager::cancel();
                    break;
                case 'refresh.objects':
                    JCommentsAdmin::refreshObjects();
                    break;
                default:
                    JCommentsAdmin::checkPhpVersion();
                    JCommentsAdmin::show();
                    break;
            }
        }
    }
}
class JCommentsAdmin
{
    public static function show()
    {
        require_once JCOMMENTS_BASE . '/jcomments.php';
        $app = JCommentsFactory::getApplication('administrator');