__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Decorator which enables CSS properties to be disabled for specific elements.
*/
class HTMLPurifier_AttrDef_CSS_DenyElementDecorator extends HTMLPurifier_AttrDef
{
/**
* @type HTMLPurifier_AttrDef
*/
public $def;
/**
* @type string
*/
public $element;
/**
* @param HTMLPurifier_AttrDef $def Definition to wrap
* @param string $element Element to deny
*/
public function __construct($def, $element)
{
$this->def = $def;
$this->element = $element;
}
/**
* Checks if CurrentToken is set and equal to $this->element
* @param string $string
* @param HTMLPurifier_Config $config
* @param HTMLPurifier_Context $context
* @return bool|string
*/
public function validate($string, $config, $context)
{
$token = $context->get('CurrentToken', true);
if ($token && $token->name == $this->element) {
return false;
}
return $this->def->validate($string, $config, $context);
}
}
// vim: et sw=4 sts=4
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AlphaValue.php | File | 793 B | 0777 |
|
| Background.php | File | 3.24 KB | 0777 |
|
| BackgroundPosition.php | File | 4.07 KB | 0777 |
|
| Border.php | File | 1.55 KB | 0777 |
|
| Color.php | File | 4.57 KB | 0777 |
|
| Composite.php | File | 1.3 KB | 0777 |
|
| DenyElementDecorator.php | File | 1.05 KB | 0777 |
|
| Filter.php | File | 2.27 KB | 0777 |
|
| Font.php | File | 6.45 KB | 0777 |
|
| FontFamily.php | File | 9.13 KB | 0777 |
|
| Ident.php | File | 724 B | 0777 |
|
| ImportantDecorator.php | File | 1.56 KB | 0777 |
|
| Length.php | File | 1.85 KB | 0777 |
|
| ListStyle.php | File | 2.84 KB | 0777 |
|
| Multiple.php | File | 2.04 KB | 0777 |
|
| Number.php | File | 2.23 KB | 0777 |
|
| Percentage.php | File | 1.25 KB | 0777 |
|
| TextDecoration.php | File | 1.13 KB | 0777 |
|
| URI.php | File | 2.51 KB | 0777 |
|