Done !
Server IP : 162.0.217.223 / Your IP : 216.73.216.153 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/wp-content/plugins/webp-express/web-service/ |
Upload File : |
<?php require __DIR__ . '/../vendor/autoload.php'; use \WebPConvertCloudService\WebPConvertCloudService; include_once __DIR__ . '../../lib/classes/Config.php'; use \WebPExpress\Config; include_once __DIR__ . '../../lib/classes/Paths.php'; use \WebPExpress\Paths; include_once __DIR__ . '/../lib/classes/Config.php'; // Patch together $options object for wpc... $options = []; $config = Config::loadConfigAndFix(false); if (!isset($config['web-service'])) { WebPConvertCloudService::exitWithError(WebPConvertCloudService::ERROR_ACCESS_DENIED, 'Web Service is not configured'); } $webServiceConfig = $config['web-service']; if (!$webServiceConfig['enabled']) { WebPConvertCloudService::exitWithError(WebPConvertCloudService::ERROR_ACCESS_DENIED, 'Web Service is not enabled'); } $options['destination-dir'] = Paths::getCacheDirAbs() . '/wpc'; $options['access'] = [ //'allowed-ips' => ['127.0.0.1'], 'whitelist' => $webServiceConfig['whitelist'] ]; $options['webp-convert'] = Config::generateWodOptionsFromConfigObj($config); WebPConvertCloudService::handleRequest($options);