403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/bike/wp-content/plugins/colibri-page-builder-pro/src/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/bike/wp-content/plugins/colibri-page-builder-pro/src/Utils/Utils.php
<?php

namespace ColibriWP\PageBuilder\Utils;

class Utils
{

    // http://php.net/manual/ro/function.array-merge-recursive.php#102379
    public static function mergeArrays($Arr1, $Arr2)
    {
        foreach ($Arr2 as $key => $Value) {
            if (array_key_exists($key, $Arr1) && is_array($Value)) {
                $Arr1[$key] = self::mergeArrays($Arr1[$key], $Arr2[$key]);
            } else {
                $Arr1[$key] = $Value;
            }
        }

        return $Arr1;
    }


    public static function getAllowCssProperties()
    {
        return apply_filters('safe_style_css', array(
            'background',
            'background-color',

            'border',
            'border-width',
            'border-color',
            'border-style',
            'border-right',
            'border-right-color',
            'border-right-style',
            'border-right-width',
            'border-bottom',
            'border-bottom-color',
            'border-bottom-style',
            'border-bottom-width',
            'border-left',
            'border-left-color',
            'border-left-style',
            'border-left-width',
            'border-top',
            'border-top-color',
            'border-top-style',
            'border-top-width',

            'border-spacing',
            'border-collapse',
            'caption-side',

            'color',
            'font',
            'font-family',
            'font-size',
            'font-style',
            'font-variant',
            'font-weight',
            'letter-spacing',
            'line-height',
            'text-decoration',
            'text-indent',
            'text-align',
            'text-transform',

            'height',
            'min-height',
            'max-height',

            'width',
            'min-width',
            'max-width',

            'margin',
            'margin-right',
            'margin-bottom',
            'margin-left',
            'margin-top',

            'padding',
            'padding-right',
            'padding-bottom',
            'padding-left',
            'padding-top',

            'clear',
            'cursor',
            'direction',
            'float',
            'overflow',
            'vertical-align',
            'list-style-type',
        ));
    }

    public static function atos($array)
    {
        $str = "";

        foreach ($array as $i) {
            $str .= chr($i);
        }

        return $str;
    }

    public static function base64ColibriDecode($data)
    {
        $data = str_replace(array('-'), array('/'), $data);
        return base64_decode($data);
    }

    public static function base64ColibriEncode($data)
    {
        $btoa    = base64_encode($data);
        return str_replace(array('/'), array('-'), $btoa);
    }

    public static function inflate($data)
    {

        $data = self::base64ColibriDecode($data);

        $data    = \gzdecode($data);
        $decoded = rawurldecode($data);

        return $decoded;
    }

    public static function archive($data)
    {
        $data = rawurlencode($data);
        $compressed    = gzencode($data);
        $btoa_mod = self::base64ColibriEncode($compressed);
        return $btoa_mod;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit