__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php


namespace Nextend\Framework\Style;


use Nextend\Framework\Misc\Base64;
use Nextend\Framework\Model\Section;

class StyleParser {

    /**
     * @param $data
     *
     * @return string
     */
    public static function parse($data) {
        if (empty($data)) {
            return '';
        } else if (is_numeric($data)) {
            /**
             * Linked style
             */

            $style = Section::getById($data, 'style');

            if (!$style) {
                /**
                 * Linked style not exists anymore
                 */
                return '';
            }


            if (is_string($style['value'])) {
                /**
                 * Old format when value stored as Base64
                 */
                $decoded = $style['value'];
                if ($decoded[0] != '{') {
                    $decoded = Base64::decode($decoded);
                }

                return $decoded;
            }

            /**
             * Value stored as array
             */
            $value = json_encode($style['value']);
            if ($value == false) {
                return '';
            }

            return $value;
        } else if ($data[0] != '{') {
            return Base64::decode($data);
        }

        return $data;
    }

}

Filemanager

Name Type Size Permission Actions
Block Folder 0775
ControllerAjaxStyle.php File 300 B 0775
ModelCss.php File 1.16 KB 0775
ModelStyle.php File 2.89 KB 0775
Style.php File 2.67 KB 0775
StyleManager.php File 360 B 0775
StyleParser.php File 1.28 KB 0775
StyleRenderer.php File 7.76 KB 0775
StyleStorage.php File 2.32 KB 0775
Filemanager