[ 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: NailgunClosureCompiler.php
<?php /** * Class Minify_ClosureCompiler * @package Minify */ /** * Run Closure Compiler via NailGun * * @package Minify * @author Elan Ruusamรคe <glen@delfi.ee> * @link https://github.com/martylamb/nailgun */ class Minify_NailgunClosureCompiler extends Minify_ClosureCompiler { const NG_SERVER = 'com.martiansoftware.nailgun.NGServer'; const CC_MAIN = 'com.google.javascript.jscomp.CommandLineRunner'; /** * For some reasons Nailgun thinks that it's server * broke the connection and returns 227 instead of 0 * We'll just handle this here instead of fixing * the nailgun client itself. * * It also sometimes breaks on 229 on the devbox. * To complete this whole madness and made future * 'fixes' easier I added this nice little array... * @var array */ private static $NG_EXIT_CODES = array(0, 227, 229); /** * Filepath of "ng" executable (from Nailgun package) * * @var string */ public static $ngExecutable = 'ng'; /** * Filepath of the Nailgun jar file. * * @var string */ public static $ngJarFile; /** * Get command to launch NailGun server. * * @return array */ protected function getServerCommandLine() { $this->checkJar(self::$ngJarFile); $this->checkJar(self::$jarFile); $classPath = array( self::$ngJarFile, self::$jarFile, ); // The command for the server that should show up in the process list $server = array( self::$javaExecutable, '-server', '-cp', implode(':', $classPath), self::NG_SERVER, ); return $server; } /** * @return array * @throws Minify_ClosureCompiler_Exception */ protected function getCompilerCommandLine() { $server = array( self::$ngExecutable, escapeshellarg(self::CC_MAIN) ); return $server; } /** * @param string $tmpFile * @param array $options * @return string * @throws Minify_ClosureCompiler_Exception */ protected function compile($tmpFile, $options) { $this->startServer(); $command = $this->getCommand($options, $tmpFile); return implode("\n", $this->shell($command, self::$NG_EXIT_CODES)); } private function startServer() { $serverCommand = implode(' ', $this->getServerCommandLine()); $psCommand = $this->shell("ps -o cmd= -C " . self::$javaExecutable); if (in_array($serverCommand, $psCommand, true)) { // already started! return; } $this->shell("$serverCommand </dev/null >/dev/null 2>/dev/null & sleep 10"); } }