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/DBDBOption016_GallerySizes.php
<?php

class DBDBOption016_GallerySizes extends DBDBOption {
		
	protected $option;
	
	public function __construct($option) {
		$this->option = $option;
	}
	
	protected $defaults = array(
		'imagewidth' => 225,
		'imageheight' => 169,
		'imagescount' => 4
	);
	
	public function imageWidthPx() {
		return $this->filter_int('imagewidth');
	}
	
	public function imageWidthPxDefault() {
		return $this->defaults['imagewidth'];
	}
	
	public function imageHeightPx() {
		return $this->filter_int('imageheight');
	}	
	
	public function imageHeightPxDefault() {
		return $this->defaults['imageheight'];
	}
	
	public function imagesPerRow() {
		return $this->filter_int('imagescount');
	}
	
	public function imagesPerRowDefault() {
		return $this->defaults['imagescount'];
	}
	
	public function filter_int($key) {
		$default = $this->getDefault($key);
        $option = $this->option;
        if (!isset($option[$key])) {
            $option[$key] = $default;
        }
		// $option = wp_parse_args(
		// 	$this->option, 
		// 	array($key => $default)
		// );
		return filter_var($option[$key], FILTER_VALIDATE_INT, array(
			"options" => array(
				'min_range' => 1, 
				'default' => $default
			)
		));
	}
	
	protected function getDefault($key) {
		return isset($this->defaults[$key])?$this->defaults[$key]:null;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit