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/store.tiacyrusxxx.com/public_html/dev/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/photoset.php
<?php

	$imageTotalshow = 20;

	$showFullcontent = FALSE;

	if (!isset($_GET['id'])) {
		header('Location: browse.php?type=photos');
		exit();
	}

	include('config.php');
	dbConn();

	$content_id = mysql_real_escape_string($_GET['id']);

	$photoset_info_sql = mysql_query("SELECT * FROM cms_content WHERE releasedate <= '" . $today . "' AND content_id = '" . $content_id . "' AND content_type = '1'") or die(mysql_error());

	if (mysql_num_rows($photoset_info_sql) == 0) {
		header('Location: photos.php');
		exit();
	}

	$photoset_info = mysql_fetch_object($photoset_info_sql);


	if (isset($member_id) && $member_id > 0 && isset($content_id)) {
		$purchased_sql = mysql_query("SELECT * FROM cms_billing_purchases WHERE memberID = '" . $memberID . "' AND  relatedID = '0' AND itemID = '".$content_id."'") or die(mysql_error());
		if (mysql_num_rows($purchased_sql) == 1) {
			$showFullcontent = TRUE;
		}
	}
/*
	if (isset($member_id) && $member_id > 0) {

		// Check if item is purchased

		$orders_sql = mysql_query("SELECT * FROM `orders` WHERE `buyerID` = '" . $member_id . "'") or die(mysql_error());

		if (mysql_num_rows($orders_sql) > 0) {

			while ($orders = mysql_fetch_object($orders_sql)) {

				$orderDetails_sql = mysql_query("SELECT * FROM `orderDetails` WHERE `orderID` = '" . $orders->orderID . "' AND `itemID` = '" . $content_id . "'") or die(mysql_error());

				if (mysql_num_rows($orderDetails_sql) > 0) {
					$showFullcontent = TRUE;
				}
			}
		}
	}
*/
	if ($photoset_info->rate_count == 0) {
		$photoset_info->rate_count = 1;
	}

	$content_rating = round($photoset_info->rate_total / $photoset_info->rate_count);

	$content_type = 2; // Photoset

	include('mod_fav_check.php');

	include('mod_rate.php');

// WISHLIST
include('mod_wishlist_check.php'); // output: $wishlist

$lightbox = 1;
//$section_header = $photoset_name;
$section_header = "";

include('mod_html_top.php');

//	if ($member_id == 0) {
//		$purchase_url = "join.php";
//	} else {
		$purchase_url = "photoset.php?id=" . $content_id . "&action=addtocart";
//	}

	$models_html = '';
	$models_sql = mysql_query("SELECT `cms_models`.*,
				(`cms_models`.`rate_total` / `cms_models`.`rate_count`) as rate,
				`cms_content_models`.`featured`
				FROM `cms_content_models`
				INNER JOIN `cms_models` ON `cms_models`.`model_id` = `cms_content_models`.`model_id`
				WHERE `cms_content_models`.`content_id` = '".$content_id."' AND `cms_models`.`releasedate` <= '".$today."' ORDER BY `cms_content_models`.`featured` DESC") or die(mysql_error());

	while ($models = mysql_fetch_object($models_sql)) {
		if (isset($models_html) && $models_html != "") {
			$models_html .= ', ';
		}
		$models_html .= '<a href="model.php?id=' . $models->model_id . '">' . stripslashes($models->name) . '</a>';
	}

	if (isset($_GET['action']) && $_GET['action'] == 'addtocart') {		
		if (isset($content_id) && isset($photoset_info->title) && isset($photoset_info->price)) {
			$msgSystem = cartAdd($member_id, $content_id, '1', '0', $photoset_info->price);
		}
	}
?>
<div class="brown18px" style="float: left; margin-bottom: 10px; font-size: 13px; font-weight: bold;"><a href="photosets.php">Photosets</a> / <?php echo $models_html; ?> / <?php echo $photoset_info->title; ?></div>
<div id="favorite_<?php echo $id; ?>" style="float: left; margin-left: 10px;"><?php echo $favorite; ?></div>
<div style="float: right"><?php echo $rate_html; ?></div>
<hr size="1" noshade="noshade" color="#ebeae9" style="clear: both;" />
<?php
	if (isset($msgSystem)) {
		echo $msgSystem;
	}

	if ($showFullcontent) {

		$allFiles = array_map('basename', glob('../../content/models/' . $photoset_info->directory . '/*'));
		$images = preg_grep('/\.(jpg|jpeg|png|gif)$/i', $allFiles);

		$total_images = count($images);
		$total_pages = ceil($total_images / $imageTotalshow);

		if (isset($_GET['page'])) {
			$page = $_GET['page'];
		} else {
			$page = 1;
		}

		if ($total_pages > 1) {
			$pagination = pagination("photoset.php?id=" . $content_id, $page, $total_pages);
		} else {
			$pagination = "";
		}

		echo $pagination;
		echo '<div class="sampleThumbnails"><div class="sampleThumbnails_thumbnails">';

		$imageCount = 1;
		$image_start = ($page * $imageTotalshow) - $imageTotalshow;
		$image_end = ($page * $imageTotalshow);

		foreach ($images as $image) {

			if ($imageCount >= $image_start && $imageCount <= $image_end) {

				$image = str_replace("content/models/", "", $image);

				echo '<a href="photoset_gal.php?id=' . $content_id . '&img=' . $imageCount . '"><img src="' . $photosets_location . $photoset_info->directory . '/tn/' . $image . '"></a>';

			}

			$imageCount++;

		}

		echo '</div></div>';

	} else {
?>
<div style="display: inline-block; width: 300px;"><?php echo $wishlist; ?></div>
<div style="display: inline-block; width: 62px;"><strong>pics</strong> <?php echo $photoset_info->num_photos; ?></div>      
<div style="display: inline-block; width: 127px;"><strong>price</strong> $<?php echo $photoset_info->price; ?></div>
<div style="display: inline-block;"><a href="<?php echo $purchase_url; ?>"><img src="images/purchase.jpg" width="15" height="19"> add to cart</a></div>
<div style="margin-top: 7px; margin-bottom: 7px;"><img src="content/models/<?php echo $photoset_info->directory . '/main_image.jpg'; ?>" width="600" height="450"></div>
<?php

		$tags_sql = mysql_query("SELECT `cms_tags_s`.`ctag_id` , `cms_tags_s`.`description` FROM `cms_tags`
					INNER JOIN `cms_tags_s` ON `cms_tags_s`.`stag_id` = `cms_tags`.`stag_id`
					WHERE `cms_tags`.`content_id` = '" . $content_id . "'") or die(mysql_error());

		$tag_html = "";

		if (mysql_num_rows($tags_sql) > 0) {

			while ($tag = mysql_fetch_object($tags_sql)) {

				if (isset($tag_html) && $tag_html != "") {
					$tag_html .= ', ';
				}

				$tag_html .= '<a href="search.php?tag=' . stripslashes($tag->description) . '">' . stripslashes($tag->description) . '</a>';
			}
		}

		echo '<div class="brown24px">Tags</div>' . $tag_html . '<br /><br />';

		echo '<div class="brown24px">Sample Thumbnails</div>';

		$dirname = $photosets_location . $photoset_info->directory . '/tn/';
		$images = glob($dirname . "*.jpg");

		$total_images = count($images);
		$total_pages = ceil($total_images / 16);

		if (isset($_GET['page'])) {
			$page = $_GET['page'];
		} else {
			$page = 1;
		}

		if ($total_pages > 1) {
			$pagination = pagination("buy.php?id=" . $content_id, $page, $total_pages);
		} else {
			$pagination = "";
		}

		echo $pagination;
		echo '<div class="sampleThumbnails"><div class="sampleThumbnails_overlay"></div><div class="sampleThumbnails_thumbnails">';

		$pagination_counter = 1;
		$show_counter = 1;
		$thumbnail_count = ($page * 20) - 19;

		foreach ($images as $image) {

			if ($pagination_counter >= $thumbnail_count) {

				$image = str_replace("content/models/", "", $image);

				echo '<img src="' . $photosets_location . $image . '">';

				if ($show_counter == 20) {
					break;
				}

				$show_counter++;

			}

			$pagination_counter++;

		}

		echo '</div></div>';

	}

	include('mod_html_middle.php');
?>
<div class="brown18px">&raquo; The Models</div>
<?php
	$models_sql = mysql_query("SELECT `cms_models`.*,
					(`cms_models`.`rate_total`/`cms_models`.`rate_count`) as rate,
					`cms_content_models`.`featured`
					FROM `cms_content_models`
					INNER JOIN `cms_models` ON `cms_models`.`model_id` = `cms_content_models`.`model_id`
					WHERE `cms_content_models`.`content_id` = '" . $content_id . "' AND `cms_models`.`releasedate` <= '" . $today . "' ORDER BY `cms_content_models`.`featured` DESC") or die(mysql_error());

	while ($model_info = mysql_fetch_object($models_sql)) {

		$model_id = $model_info->model_id;

		if ($model_info->featured == 1) {
			$match_modelid = $model_info->model_id;
			$match_hair = $model_info->hair;
			$match_cup = $model_info->cup;
			$match_eyes = $model_info->eyes;
		}
	
		$model_name = $model_info->name;

		?>
		<div class="brown18px"><a href="model.php?id=<?php echo $model_info->model_id; ?>"><?php echo stripslashes($model_info->name); ?></a></div>
		<strong>rating: </strong><?php echo round($model_info->rate); ?>     &bull;     <strong>sets: </strong><?php echo $model_info->total_sets; ?>     &bull;     <strong>photos: </strong><?php echo $model_info->total_photos; ?>
		<?php 

		if ($model_info->featured == 1) {
			include('mod_model_stats.php');
		}
}

include('mod_side_new_photosets.php');
include('mod_side_rate_photosets.php');
//include('mod_side_suggest_models.php');
include('mod_html_bottom.php');

Youez - 2016 - github.com/yon3zu
LinuXploit