__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Validates the border property as defined by CSS.
*/
class HTMLPurifier_AttrDef_CSS_Border extends HTMLPurifier_AttrDef
{
/**
* Local copy of properties this property is shorthand for.
* @type HTMLPurifier_AttrDef[]
*/
protected $info = array();
/**
* @param HTMLPurifier_Config $config
*/
public function __construct($config)
{
$def = $config->getCSSDefinition();
$this->info['border-width'] = $def->info['border-width'];
$this->info['border-style'] = $def->info['border-style'];
$this->info['border-top-color'] = $def->info['border-top-color'];
}
/**
* @param string $string
* @param HTMLPurifier_Config $config
* @param HTMLPurifier_Context $context
* @return bool|string
*/
public function validate($string, $config, $context)
{
$string = $this->parseCDATA($string);
$string = $this->mungeRgb($string);
$bits = explode(' ', $string);
$done = array(); // segments we've finished
$ret = ''; // return value
foreach ($bits as $bit) {
foreach ($this->info as $propname => $validator) {
if (isset($done[$propname])) {
continue;
}
$r = $validator->validate($bit, $config, $context);
if ($r !== false) {
$ret .= $r . ' ';
$done[$propname] = true;
break;
}
}
}
return rtrim($ret);
}
}
// 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 |
|