[ 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: Report.php
<?php namespace WebPConvert\Serve; use WebPConvert\Helpers\InputValidator; use WebPConvert\Loggers\EchoLogger; use WebPConvert\WebPConvert; /** * Class for generating a HTML report of converting an image. * * @package WebPConvert * @author BjΓΈrn Rosell <it@rosell.dk> * @since Class available since Release 2.0.0 */ class Report { public static function convertAndReport($source, $destination, $options) { InputValidator::checkSourceAndDestination($source, $destination); ?> <html> <head> <style>td {vertical-align: top} table {color: #666}</style> <script> function showOptions(elToHide) { document.getElementById('options').style.display='block'; elToHide.style.display='none'; } </script> </head> <body> <table> <tr><td><i>source:</i></td><td><?php echo htmlentities($source) ?></td></tr> <tr><td><i>destination:</i></td><td><?php echo htmlentities($destination) ?><td></tr> </table> <br> <?php try { $echoLogger = new EchoLogger(); $options['log-call-arguments'] = true; WebPConvert::convert($source, $destination, $options['convert'], $echoLogger); } catch (\Exception $e) { $msg = $e->getMessage(); echo '<b>' . $msg . '</b>'; //echo '<p>Rethrowing exception for your convenience</p>'; //throw ($e); } ?> </body> </html> <?php } }