| 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 : |
<?php
if (!isset($_GET['id'])) {
header('Location: browse.php?type=videos');
exit();
}
include('config.php');
dbConn();
$content_id = mysql_real_escape_string($_GET['id']);
$video_info_sql = mysql_query("SELECT * FROM cms_content WHERE releasedate <= '" . $today . "' AND content_id = '" . $content_id . "' AND content_type = '2'") or die(mysql_error());
if (mysql_num_rows($video_info_sql) == 0) {
header('Location: video.php');
exit();
}
$video_info = mysql_fetch_object($video_info_sql);
if ($video_info->rate_count == 0) {
$video_info->rate_count = 1;
}
$content_rating = round($video_info->rate_total / $video_info->rate_count);
$content_type = 3; // Video
include('mod_fav_check.php');
include('mod_rate.php');
// WISHLIST
include('mod_wishlist_check.php'); // output: $wishlist
$lightbox = 1;
//$section_header = $video_name;
$section_header = "";
include('mod_html_top.php');
// if ($member_id == 0) {
// $purchase_url = "join.php";
// } else {
$purchase_url = "video.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`.`model_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($video_info->title) && isset($video_info->price)) {
$msgSystem = cartAdd($member_id, $content_id, '2', '0', $video_info->price);
}
}
?>
<div class="brown18px" style="float: left; margin-bottom: 10px; font-size: 13px; font-weight: bold;"><a href="videos.php">Videos</a> / <?php echo $models_html; ?> / <?php echo $video_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;" />
<div style="display: inline-block; width: 362px;"><?php echo $wishlist; ?></div>
<div style="display: inline-block; width: 127px;"><strong>price</strong> $<?php echo $video_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 $video_info->directory . '/' . $video_info->title . '_landscape.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">Screenshots</div>';
$dirname = $videos_location . $video_info->directory . '/tn/';
$images = glob($dirname . "*.jpg");
echo '<div class="sampleThumbnails">';
$show_counter = 1;
foreach ($images as $image) {
$image = str_replace("content/models/", "", $image);
echo '<img src="' . $videos_location . $image . '">';
if ($show_counter == 20) {
break;
}
$show_counter++;
}
echo '</div>';
include('mod_html_middle.php');
?>
<div class="brown18px">» The Models</div>
<?
$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`.`model_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); ?> • <strong>sets: </strong><?php echo $model_info->total_sets; ?> • <strong>photos: </strong><?php echo $model_info->total_photos; ?>
<?php
if ($model_info->featured == 1) {
include('mod_model_stats.php');
}
}
include('mod_side_new_videos.php');
include('mod_side_rate_videos.php');
include('mod_side_suggest_models.php');
include('mod_html_bottom.php');