[ 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: CommentPreserver.php
<?php /** * Class Minify_CommentPreserver * @package Minify */ /** * Process a string in pieces preserving C-style comments that begin with "/*!" * * @package Minify * @author Stephen Clay <steve@mrclay.org> */ class Minify_CommentPreserver { /** * String to be prepended to each preserved comment * * @var string */ public static $prepend = "\n"; /** * String to be appended to each preserved comment * * @var string */ public static $append = "\n"; /** * Process a string outside of C-style comments that begin with "/*!" * * On each non-empty string outside these comments, the given processor * function will be called. The comments will be surrounded by * Minify_CommentPreserver::$preprend and Minify_CommentPreserver::$append. * * @param string $content * @param callback $processor function * @param array $args array of extra arguments to pass to the processor * function (default = array()) * @return string */ public static function process($content, $processor, $args = array()) { $ret = ''; while (true) { list($beforeComment, $comment, $afterComment) = self::_nextComment($content); if ('' !== $beforeComment) { $callArgs = $args; array_unshift($callArgs, $beforeComment); $ret .= call_user_func_array($processor, $callArgs); } if (false === $comment) { break; } $ret .= $comment; $content = $afterComment; } return $ret; } /** * Extract comments that YUI Compressor preserves. * * @param string $in input * * @return array 3 elements are returned. If a YUI comment is found, the * 2nd element is the comment and the 1st and 3rd are the surrounding * strings. If no comment is found, the entire string is returned as the * 1st element and the other two are false. */ private static function _nextComment($in) { if (false === ($start = strpos($in, '/*!')) || false === ($end = strpos($in, '*/', $start + 3))) { return array($in, false, false); } $beforeComment = substr($in, 0, $start); $comment = self::$prepend . '/*!' . substr($in, $start + 3, $end - $start - 1) . self::$append; $endChars = (strlen($in) - $end - 2); $afterComment = (0 === $endChars) ? '' : substr($in, -$endChars); return array($beforeComment, $comment, $afterComment); } }