⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 disableexternalresources.php

📁 很棒的在线教学系统
💻 PHP
字号:
<?phprequire_once 'HTMLPurifier/URIFilter/DisableExternal.php';HTMLPurifier_ConfigSchema::define(    'URI', 'DisableExternalResources', false, 'bool',    'Disables the embedding of external resources, preventing users from '.    'embedding things like images from other hosts. This prevents '.    'access tracking (good for email viewers), bandwidth leeching, '.    'cross-site request forging, goatse.cx posting, and '.    'other nasties, but also results in '.    'a loss of end-user functionality (they can\'t directly post a pic '.    'they posted from Flickr anymore). Use it if you don\'t have a '.    'robust user-content moderation team. This directive has been '.    'available since 1.3.0.');class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal{    var $name = 'DisableExternalResources';    function filter(&$uri, $config, &$context) {        if (!$context->get('EmbeddedURI', true)) return true;        return parent::filter($uri, $config, $context);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -