403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
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/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/sportyone.com/public_html/inc/browse_photos_inc.php
<?php
$id = $_GET['id'];
$size = $_GET['size'];

$query = " select a.asset_id, a.media, a.asset_title, a.asset_text, a.p_date, s.site_name, s.site_link
	from asset a 
 	join sites as s on s.site_id = a.site_id
	where a.asset_id = '$id' ";
$asset = $connection->query($query);
$asset = $asset[0];

$path = GALLERY_ROOT."/".$asset['asset_id']."/t/";

$url = 'images/galleries/' . $asset['asset_id'] . '/t/';
$link = '?content=browse_photos&id='.$id.'&size='.$size.'&page=';

$photos_per_page = 20;

$thumb_page = ceil($page / $photos_per_page);

$l = null;

if(!empty($_GET['type'])) {
	$photos_per_page = 1;
	
	$url = 'images/galleries/' . $asset['asset_id'] . '/' . $size . '/';
	$link = '?content=browse_photos&id='.$id.'&size='.$size.'&type=view&page=';
		
	$l = "&type=view";
	
	if($_GET['type'] == 'slide') {
		$slide = true;
		$slides = browseFiles($path);
		
		$l = "&type=slide";
		
		$tmp = array();
		foreach($slides['array'] as $key => $value) {
			$tmp[] = "{$key}:'{$value}'";
		}
		
		$slides['array'] = '{' . implode(',', $tmp) . '}';
	}
}

$pg = ($page - 1) * $photos_per_page;

$files = browseFiles($path, $pg, $photos_per_page);



if($files['count'] > $photos_per_page) {
	$pagination['pages'] = ceil($files['count'] / $photos_per_page);
	$pagination['page'] = $page;
	$pagination['links'] = 3;
	$pagination['link'] = $link;
}



$display = "<table border=0 align=center cellspacing=0 cellpadding=5 width=100%><tr>";
foreach ($files['array'] as $key => $value) {
	$photo = ($pg + 1) + $key;
	
	if(@$_GET['type'] == 'view') {
		$photo++;
		
		if($photo > $files['count'])
			$photo = 1;
	}
	// this is each cell,  each photo
	$display .= "<td width = \"185\" align=\"center\" valign=\"top\" >";
	if($page == $files['count'] && @$_GET['type'] == 'view')
		{
		$display .= "<a href=\"".$asset['site_link']."\" target =blank>";
		}
	else
		{
		$display .= "<a href=\"?content=browse_photos&id=$id&size=$size&page=$photo&type=view\">";
		}
	
	
	$display .= "<img id=\"slide_$key\" src=\"$url$value\" border=\"1\">";
	$display .= "</a>";
	$display .= "</td>\n";
	
	if(!(($key+1) % 5)) {
		$display .= "</tr><tr>";
		$display .= "<tr><td><img src=\"images/spacer.gif\" height=25></td></tr>";
	}
}
$display .= "</table>";

 $models_s = models_starring($id);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit