| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/www.superporner.com/porn/admin/ |
Upload File : |
<?
//generates thumbnails for photo galleries
function makeThumbs($dir) {
global $gallery_path;
global $basepath;
global $picthumbwidth;
global $picthumbheight;
global $convert_path;
unset($array);
$array = scandir($gallery_path.'/'.$dir);
foreach($array as $i) {
if($i != '.' && $i != '..' && !is_dir($gallery_path.'/'.$dir.'/'.$i) && (stripos($i,'.jpg') || stripos($i,'.jpeg') || stripos($i,'.gif') ||stripos($i,'.png')) ) {
if(!file_exists($gallery_path.'/'.$dir.'/thumbs/'.$i)) {
$input = $gallery_path.'/'.$dir.'/'.$i;
$output = $gallery_path.'/'.$dir.'/thumbs/'.$i;
shell_exec("$convert_path -resize ".($picthumbwidth)."x".($picthumbheight)."^ -gravity Center -extent ".$picthumbwidth."x".$picthumbheight." \"$input\" \"$output\"");
}
}
}
}
?>