| 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/store.tiacyrusxxx.com/public_html/dev/ |
Upload File : |
<?php
if (!isset($_GET['id'])) { // IF NO MODEL_ID... REDIRECT
if (isset($_POST['model_id']) && is_numeric($_POST['model_id'])) {
$_GET['id'] = $_POST['model_id'];
} else {
header('Location: models.php');
exit();
}
}
include('config.php');
dbConn();
$id = mysql_real_escape_string($_GET['id']);
// GRAB ALL THE MODEL INFORMATION ----- START
$model_info_sql = mysql_query("SELECT * FROM cms_models WHERE releasedate <= '" . $today . "' AND model_id = '" . $id . "'") or die(mysql_error());
if (mysql_num_rows($model_info_sql) == 0) { // IF NO RECORD, OR MODEL_ID IS NOT RELEASED... REDIRECT
header('Location: models.php');
exit();
} else {
$model_info = mysql_fetch_object($model_info_sql);
}
if ($model_info->rate_count == 0) {
$model_info->rate_count = 1;
}
$model_rating = round($model_info->rate_total / $model_info->rate_count);
// GRAB ALL THE MODEL INFORMATION ----- END
$content_id = $id;
$content_type = 1; // Model
// CHECK IF FAVORITED
$section = 0; // MODEL
include('mod_fav_check.php'); // output: $favorite
// CHECK IF FAVORITED
// RATE
$section = 0; // MODEL
$content_rating = $model_rating;
include('mod_rate.php'); // output: $rate_html
// RATE
//$section_header = $model_info->name;
if (isset($_GET['v']) && $_GET['v'] == 2) {
$lightbox = 1;
}
$section_header = "";
include('mod_html_top.php');
$followTitle = 'Follow';
$followButtonstyle = 'button_blue';
if (isset($member_id) && $member_id > 0) {
$follow_sql = mysql_query("SELECT * FROM cms_members_follow WHERE member_id = '" . $member_id . "' AND model_id = '" . $id . "'") or die(mysql_error());
if (mysql_num_rows($follow_sql) == 1) {
$followTitle = 'Following';
$followButtonstyle = 'button_red';
}
$followLink = '<a href="javascript:void(0)" id="toggleFollow" data="' . $id . '">' . $followTitle . '</a>';
} else {
$followLink = '<a href="join.php">' . $followTitle . '</a>';
}
if (isset($_POST['tribute']) || isset($_POST['tribute_custom'])) {
if (isset($_POST['tribute_custom']) && $_POST['tribute_custom'] > 0) {
$tribute = $_POST['tribute_custom'];
} elseif (isset($_POST['tribute']) && $_POST['tribute'] > 0) {
$tribute = $_POST['tribute'];
}
if (isset($tribute)) {
if (isset($content_id) && isset($model_info->name) && isset($tribute)) {
$msgSystem = cartAdd($member_id, $content_id, '5', $model_info->name, $tribute);
}
}
}
?>
<div class="brown18px" style="float: left; margin-bottom: 10px;"><a href="models.php">Models</a> / <a href="model.php?id=<?php echo $model_info->model_id; ?>"><?php echo $model_info->name; ?></a></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 class="profile_menu_links">
<a href="model.php?id=<?php echo $id; ?>">Profile</a>
<span class="profile_menu_links_spacer">|</span>
<a href="model.php?id=<?php echo $id; ?>&v=1&tag=<?php echo $model_info->name; ?>"<?php echo (isset($_GET['v']) && $_GET['v'] == 1 ? ' class="profile_menu_links_highlighted"' : ''); ?>>Photos</a>
<span class="profile_menu_links_spacer">|</span>
<a href="model.php?id=<?php echo $id; ?>&v=2"<?php echo (isset($_GET['v']) && $_GET['v'] == 2 ? ' class="profile_menu_links_highlighted"' : ''); ?>>Private Video Chat</a>
<span class="profile_menu_links_spacer">|</span>
<a href="model.php?id=<?php echo $id; ?>&v=3"<?php echo (isset($_GET['v']) && $_GET['v'] == 3 ? ' class="profile_menu_links_highlighted"' : ''); ?>>Customs</a>
<span class="profile_menu_links_spacer">|</span>
<a href="model.php?id=<?php echo $id; ?>&v=4"<?php echo (isset($_GET['v']) && $_GET['v'] == 4 ? ' class="profile_menu_links_highlighted"' : ''); ?>>Special Request</a>
</div>
<?php
if (isset($msgSystem)) {
echo $msgSystem;
}
?>
<div class="profile_cover">
<div class="profile_cover_photo"><img src="<?php echo $modelsweb . $id; ?>_coverphoto.jpg" width="610" height="300"></div>
<div class="profile_avatar_holder">
<div class="profile_avatar_thumb"><img src="<?php echo $modelsweb . $id; ?>_avatar.jpg" width="120" height="120"></div>
<div id="profile_avatar_follow" class="profile_avatar_follow <?php echo $followButtonstyle; ?>"><?php echo $followLink; ?></div>
</div>
<div class="profile_model_name"><?php echo $model_info->name; ?></div>
<div class="profile_send_message"><a href="model.php?id=<?php echo $model_info->model_id; ?>&v=5"><img src="images/icon_mail.png">send me a message</a></div>
</div>
<?php
if (isset($_GET['v']) && $_GET['v'] < 6) {
if ($_GET['v'] == 1) {
include('model_content.php');
} elseif ($_GET['v'] == 2) {
include('model_cam_phone.php');
} elseif ($_GET['v'] == 3) {
include('model_customs.php');
} elseif ($_GET['v'] == 4) {
include('model_requests.php');
} elseif ($_GET['v'] == 5) {
include('send_message.php');
}
} else {
include('model_index.php');
}
/*
$tags = mysql_query("SELECT `cms_tags_s`.`ctag_id` , `cms_tags_s`.`description` FROM `cms_models_tags`
INNER JOIN `cms_tags_s` ON `cms_tags_s`.`stag_id` = `cms_models_tags`.`stag_id` WHERE `cms_models_tags`.`model_id` = '".$model_info->model_id."'") or die(mysql_error());
$tag_html = "";
while ($tag = mysql_fetch_array($tags)) {
$tag_html .= " <a href=\"search.php?tag=".stripslashes($tag['description'])."\">".stripslashes($tag['description'])."</a>,";
}
if ($tag_html = rtrim($tag_html, ',')) {
echo "<span class=\"brown24px\">Tags...</span><br />".$tag_html."<br /><br />";
}
*/
include('mod_html_middle.php');
/*
// GRAB NEXT & PREVIOUS MODELS
$next_model = mysql_query("SELECT model_id, name FROM cms_models WHERE releasedate <= '".$today."' AND name > '".$model_info->name."' ORDER BY name ASC LIMIT 1") or die(mysql_error());
if (mysql_num_rows($next_model) == 0) { // IF NO RECORD, GET FIRST MODEL (A)
$next_model = mysql_query("SELECT model_id, name FROM cms_models WHERE releasedate <= '".$today."' ORDER BY name ASC LIMIT 1") or die(mysql_error());
$next_model_id = mysql_result($next_model, 0, 'model_id');
$next_model_name = mysql_result($next_model, 0, 'name');
} else {
$next_model_id = mysql_result($next_model, 0, 'model_id');
$next_model_name = mysql_result($next_model, 0, 'name');
}
$prev_model = mysql_query("SELECT model_id, name FROM cms_models WHERE releasedate <= '".$today."' AND name < '".$model_info->name."' ORDER BY name DESC LIMIT 1") or die(mysql_error());
if (mysql_num_rows($prev_model) == 0) { // IF NO RECORD, GET LAST MODEL (Z)
$prev_model = mysql_query("SELECT model_id, name FROM cms_models WHERE releasedate <= '".$today."' ORDER BY name DESC LIMIT 1") or die(mysql_error());
$prev_model_id = mysql_result($prev_model, 0, 'model_id');
$prev_model_name = mysql_result($prev_model, 0, 'name');
} else {
$prev_model_id = mysql_result($prev_model, 0, 'model_id');
$prev_model_name = mysql_result($prev_model, 0, 'name');
}
// GRAB NEXT & PREVIOUS MODELS
?>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><a href="model.php?id=<?php echo $prev_model_id; ?>">« previous model</a></div></td>
<td><div align="center"><a href="model.php?id=<?php echo $next_model_id; ?>">next model »</a></div></td>
</tr>
<tr>
<td valign="top"><div align="center"><a href="model.php?id=<?php echo $prev_model_id; ?>"><img src="content/models/<?php echo $prev_model_id; ?>_icon.jpg" width="100" height="160" border="0" style="filter:alpha(opacity=50);-moz-opacity:0.5" onmouseover="makevisible(this,0);" onmouseout="makevisible(this,1);" /></a><br />
<?php echo $prev_model_name; ?></div></td>
<td valign="top"><div align="center"><a href="model.php?id=<?php echo $next_model_id; ?>"><img src="content/models/<?php echo $next_model_id; ?>_icon.jpg" width="100" height="160" border="0" style="filter:alpha(opacity=50);-moz-opacity:0.5" onmouseover="makevisible(this,0);" onmouseout="makevisible(this,1);" /></a><br />
<?php echo $next_model_name; ?></div></td>
</tr>
</table>
<br />
<?php
*/
echo '<div class="profile_social_buttons">';
if (isset($model_info->link_amazon) && $model_info->link_amazon != "") {
echo '<a href="http://' . $model_info->link_amazon . '" target="_Blank"><img src="images/icon_amazon.png"></a>';
}
if (isset($model_info->link_facebook) && $model_info->link_facebook != "") {
echo '<a href="' . $model_info->link_facebook . '" target="_Blank"><img src="images/icon_facebook.png"></a>';
}
if (isset($model_info->link_instagram) && $model_info->link_instagram != "") {
echo '<a href="http://instagram.com/' . $model_info->link_instagram . '" target="_Blank"><img src="images/icon_instagram.png"></a>';
}
if (isset($model_info->link_twitter) && $model_info->link_twitter != "") {
echo '<a href="http://twitter.com/' . $model_info->link_twitter . '" target="_Blank"><img src="images/icon_twitter.png"></a>';
}
if (isset($model_info->link_snapchat) && $model_info->link_snapchat != "") {
echo '<img src="images/icon_snapchat.png" title="' . $model_info->link_snapchat . '">';
}
echo '</div>';
include('mod_model_stats.php');
?>
<div class="tribute_holder">
<form action="" method="POST">
<div class="tribute_dropdown">
Spoil Me<br />
<select name="tribute">
<option value="10">$10</option>
<option value="50">$50</option>
<option value="100">$100</option>
<option value="500">$500</option>
</select><br />
<div class="tribute_enter">Or enter amount: $</div>
</div>
<div class="tribute_input">
<input type="text" name="tribute_custom" size="4">
<input type="submit" value="Tribute" class="tribute_input_Submit">
</div>
<input type="hidden" name="model_id" value="<?php echo (isset($model_info->model_id) ? $model_info->model_id : "0"); ?>">
</form>
</div>
<?php
/*
$bannerspot_one_sql = mysql_query("SELECT * FROM `cms_banners` WHERE `location` = 'sidebar_1' LIMIT 1") or die(mysql_error());
if (mysql_num_rows($bannerspot_one_sql) == 1) {
$bannerOne = mysql_fetch_object($bannerspot_one_sql);
if (isset($bannerOne->html) && $bannerOne->html != "") {
echo '<div class="sidebar_banner">' . $bannerOne->html . '</div>';
}
}
*/
//include('mod_side_live_models.php');
/*
$bannerspot_two_sql = mysql_query("SELECT * FROM `cms_banners` WHERE `location` = 'sidebar_2' LIMIT 1") or die(mysql_error());
if (mysql_num_rows($bannerspot_two_sql) == 1) {
$bannerTwo = mysql_fetch_object($bannerspot_two_sql);
if (isset($bannerTwo->html) && $bannerTwo->html != "") {
echo '<div class="sidebar_banner">' . $bannerTwo->html . '</div>';
}
}
*/
//include('mod_side_blog.php');
include('mod_html_bottom.php');