Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
doc /
HTML_CSS /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
CSS_Advanced.php
1016
B
-rw-r--r--
CSS_DisplayOnline.php
1.1
KB
-rw-r--r--
css_error_custom.php
2.6
KB
-rw-r--r--
css_error_ignore.php
1.23
KB
-rw-r--r--
css_error_logger.php
4.13
KB
-rw-r--r--
css_errorstack_custom.php
5.04
KB
-rw-r--r--
css_errorstack_logger.php
6
KB
-rw-r--r--
CSS_grepStyles.php
2.91
KB
-rw-r--r--
CSS_InHeader.php
1.51
KB
-rw-r--r--
CSS_Inline.php
1.38
KB
-rw-r--r--
CSS_Logger.php
5.96
KB
-rw-r--r--
CSS_parseData.php
1.97
KB
-rw-r--r--
CSS_req12194_atrule_api.php
1.39
KB
-rw-r--r--
CSS_req12194_atrule_parser.php
570
B
-rw-r--r--
CSS_Stylesheet.php
1.04
KB
-rw-r--r--
CSS_validate.php
2.64
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CSS_grepStyles.php
<?php /** * New feature of version 1.1.0 explained : * Ability to find if an element or property is already defined and where * * PHP versions 4 and 5 * * @category HTML * @package HTML_CSS * @subpackage Examples * @author Laurent Laville <pear@laurent-laville.org> * @copyright 2006-2009 Laurent Laville * @license http://www.opensource.org/licenses/bsd-license.php BSD * @version CVS: $Id: CSS_grepStyles.php,v 1.6 2009/01/19 23:22:38 farell Exp $ * @link http://pear.php.net/package/HTML_CSS * @since File available since Release 1.1.0 * @ignore */ require_once 'HTML/CSS.php'; /** * HTML render for css grep results. * * @param array $styles HTML_CSS array output render * * @return void * @ignore */ function displayResults($styles) { if (count($styles) == 0) { echo 'does not exists'; } else { echo 'is already defined by '; echo '<h2>Class selectors </h2>'; echo implode(', ', array_keys($styles)); echo '<h2>Full Dump</h2>'; echo '<pre>'; var_dump($styles); echo '</pre>'; } } $styleSheet = ' #PB1.cellPB1I, #PB1.cellPB1A { width: 15px; height: 20px; font-family: Courier, Verdana; font-size: 8px; float: left; } #PB1.progressBorderPB1 { width: 172px; height: 24px; border-width: 1px; border-style: solid; border-color: #404040 #dfdfdf #dfdfdf #404040; background-color: #CCCCCC; } .progressPercentLabelpct1PB1 { width: 50px; text-align: right; background-color: transparent; font-size: 11px; font-family: Verdana, Tahoma, Arial; font-weight: normal; color: #000000; } .progressTextLabeltxt1PB1 { text-align: left; background-color: transparent; font-size: 11px; font-family: Verdana, Tahoma, Arial; font-weight: normal; color: #000000; } .cellPB1I { background-color: #CCCCCC; } .cellPB1A { background-color: #0033FF; } body { background-color: #E0E0E0; color: #000000; font-family: Verdana, Arial; } '; $css = new HTML_CSS(); $css->parseString($styleSheet); // 1. is class selector pattern ".progressBorder" already defined ? $styles = $css->grepStyle('/.*\.progressBorder/'); echo '<h1>1. class selector pattern ".progressBorder"</h1>'; displayResults($styles); // 2. is class selector pattern ".#PB1" already defined ? $styles = $css->grepStyle('/^#PB1/'); echo '<h1>2. class selector pattern "#PB1"</h1>'; displayResults($styles); // 3. is property "font-weight" already defined inside class selectors pattern #PB1? $styles = $css->grepStyle('/^#PB1/', '/^font-weight$/'); echo '<h1>3. property "font-weight" inside class selector pattern "#PB1"</h1>'; displayResults($styles); // 4. is property "color" already defined ? $styles = $css->grepStyle('/./', '/^color$/'); echo '<h1>4. property "color"</h1>'; displayResults($styles); ?>
Close