| 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/model_admin/ |
Upload File : |
<?php
include("../config.php");
include("auth.php");
include("model-header.php");
$msgSystem = "";
if (isset($_SESSION['model_id'])) {
$sth = $dbh->prepare("SELECT * FROM `cms_members` WHERE model_id=?");
$sth->execute(array($_SESSION['model_id']));
$userinfo = $sth->fetch(PDO::FETCH_OBJ);
} else {
if (isset($_SESSION['email']) && isset($_SESSION['password'])) {
$sth = $dbh->prepare("SELECT * FROM `cms_members` WHERE email=? AND password=?");
$sth->execute(array($_SESSION['email'],$_SESSION['password']));
$userinfo = $sth->fetch(PDO::FETCH_OBJ);
}
}
if (isset($userinfo->member_id) && is_numeric($userinfo->member_id)) {
$new_messages_sql = $dbh->prepare("SELECT * FROM `cms_messages` WHERE `to_id` = ? AND `message_read` = 0");
$new_messages_sql->execute(array($userinfo->member_id));
$newMessages = $new_messages_sql->rowCount();
if ($newMessages > 0) {
$msgSystem .= msgSystem("You have " . $newMessages . " new Messages.", "success");
}
}
if (isset($_SESSION['model_id']) && $_SESSION['model_id'] > 0) {
$new_customs_sql = $dbh->prepare("SELECT * FROM `cms_model_customs` WHERE `model_id` = ? AND `received` = 0");
$new_customs_sql->execute(array($_SESSION['model_id']));
$newCustoms = $new_customs_sql->rowCount();
if ($newCustoms > 0) {
$msgSystem .= msgSystem("You have " . $newCustoms . " new Custom Video Offers.", "success");
}
$new_requests_sql = $dbh->prepare("SELECT * FROM `cms_model_requests` WHERE `to_id` = ? AND `status` = 0");
$new_requests_sql->execute(array($_SESSION['model_id']));
$newRequests = $new_requests_sql->rowCount();
if ($newRequests > 0) {
$msgSystem .= msgSystem("You have " . $newRequests . " new Special Requests.", "success");
}
}
if (isset($msgSystem) && $msgSystem != "") {
echo '<div class="row"><div class="large-12 columns">' . $msgSystem . '</div></div>';
}
?>
<div class="row">
<div class="large-12 columns">
<div class="row">
<div class="large-4 columns dash-buttons">
<a href="model-custom-videos.php">
<h4>My Custom Videos<?php echo (isset($newCustoms) && $newCustoms > 0 ? '<div style="color: grey; font-size: 15px; margin-top: -5px;">' . $newCustoms . ' new</div>' : ''); ?></h4>
</a>
</div>
<div class="large-4 columns dash-buttons">
<a href="model-videos.php">
<h4>My Videos</h4>
</a>
</div>
<div class="large-4 columns dash-buttons">
<a href="model-photos.php">
<h4>My Photos</h4>
</a>
</div>
</div>
<div class="row">
<div class="large-4 columns dash-buttons">
<a href="model-calls.php">
<h4>Video Chats</h4>
</a>
</div>
<div class="large-4 columns dash-buttons">
<a href="model-offers.php">
<h4>Special Requests<?php echo (isset($newRequests) && $newRequests > 0 ? '<div style="color: grey; font-size: 15px; margin-top: -5px;">' . $newRequests . ' new</div>' : ''); ?></h4>
</a>
</div>
<div class="large-4 columns dash-buttons">
<a href="model-sales.php">
<h4>Sales - Payouts</h4>
</a>
</div>
</div>
<div class="row">
<div class="large-4 columns dash-buttons">
<a href="model-profile.php">
<h4>My Profile</h4>
</a>
</div>
<div class="large-4 columns dash-buttons">
<a href="model-blogs.php">
<h4>Post a Blog</h4>
</a>
</div>
<div class="large-4 columns dash-buttons">
<h4 style="color: grey;">My Store - coming soon</h4>
</div>
</div>
<div class="row">
<div class="large-4 columns dash-buttons">
<a href="model-messages.php">
<h4>Messages<?php echo (isset($newMessages) && $newMessages > 0 ? '<div style="color: grey; font-size: 15px; margin-top: -5px;">' . $newMessages . ' new</div>' : ''); ?></h4>
</a>
</div>
<div class="large-4 columns dash-buttons">
</div>
<div class="large-4 columns dash-buttons">
<a href="model-account.php">
<h4>Private Account</h4>
</a>
</div>
</div>
</div>
</div>
<?php
include("footer.php");