HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux acmehomecare 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: www-data (33)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wp-content/plugins/colibri-page-builder/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;
    }
}