HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcodewordpressapi/public/wp-content/plugins/webp-express/lib/classes/ConvertLog.php
<?php

namespace WebPExpress;

use \WebPExpress\ConvertHelperIndependent;
use \WebPExpress\Paths;

class ConvertLog
{
    public static function processAjaxViewLog()
    {
        if (!check_ajax_referer('webpexpress-ajax-view-log-nonce', 'nonce', false)) {
            wp_send_json_error('The security nonce has expired. You need to reload the settings page (press F5) and try again)');
            wp_die();
        }

        // We need to be absolute certain that this feature cannot be misused.
        // - so disabling until I get the time...

        $msg = 'This feature is on the road map...';
        echo json_encode($msg, JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK | JSON_PRETTY_PRINT);
        /*
        $source = sanitize_text_field($_POST['source']);
        $logFile = ConvertHelperIndependent::getLogFilename($source, Paths::getLogDirAbs());
        $msg = 'Log file: <i>' . $logFile . '</i><br><br><hr>';

        if (!file_exists($logFile)) {
            $msg .= '<b>No log file found on that location</b>';

        } else {
            $log = file_get_contents($logFile);
            if ($log === false) {
                $msg .= '<b>Could not read log file</b>';
            } else {
                $msg .= nl2br($log);
            }

        }

        //$log = $source;
        //file_get_contents

        echo json_encode($msg, JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK | JSON_PRETTY_PRINT);
        */
        wp_die();
    }

}