403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/divi-booster/core/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/divi-booster/core/classes/DBDBCssManagerOption.php
<?php
if (!class_exists('DBDBCssManagerOption')) {
	class DBDBCssManagerOption {

        private $option;
        
        static function fromRawOption($option) {
            if (!is_array($option)) {
                $option = array();
            }
            if (empty($option['customcss']['css'])) { 
                // set up a blank custom css box if none exists
                $boxes = DBDBCustomCssBoxes::create(); 
                $option['customcss'] = $boxes->toArray();
            } else {
                // fix checkbox vals
                $option['customcss']['enabled'] = self::processEnabledVals($option['customcss']['enabled']);
            }
            return new self($option);
        }

        private function __construct($option) {
            $this->option = $option;
        }

        public function toArray() {
            return $this->option;
        }

        // Deals with html checkbox issue where unchecked values are not submitted. Uses zeros from hidden field as divider.
        private static function processEnabledVals($orig) {
            $vals = array();
            while ($count = count($orig)) {
                if ($count>=2 and $orig[1]=='1') { // starts with 0,1 so enabled
                    $vals[]=1; 
                    $orig = array_slice($orig, 2); 
                } else { 
                    $vals[]=0; 
                    $orig = array_slice($orig,1); 
                }
            }
            return $vals;
        }
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit