| 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/designerclone/xfcadmin/ |
Upload File : |
<?php
include("adm.config.php");
include("adm.header.php");
function unbelieveablethiswasnotafunction ($current) {
$output = "";
$hourCount = 0;
while ($hourCount < 24) {
if ($hourCount == 0) {
$hourformatted = '12:00 am';
} elseif ($hourCount == 12) {
$hourformatted = '12:00 pm';
} elseif ($hourCount > 12) {
$hourformatted = $hourCount - 12 . ':00 pm';
} else {
$hourformatted = $hourCount . ':00 am';
}
$output .= '<option value="' . $hourCount . '"' . ($current == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';
$hourCount++;
}
return $output;
}
if (isset($userDetails->model_id) && $userDetails->model_id > 0) {
$get = @mysql_query("SELECT * FROM cms_model_call_options WHERE model_id = '".$userDetails->model_id."'");
if (@mysql_num_rows($get) == 0) {
$get = @mysql_query("INSERT INTO cms_model_call_options SET model_id = '".$userDetails->model_id."'");
$get = @mysql_query("SELECT * FROM cms_model_call_options WHERE model_id = '".$userDetails->model_id."'");
}
$model_call_options = @mysql_fetch_object($get);
}
$modelcallList = array(
"timezone",
"a15min_video",
"a30min_video",
"a45min_video",
"a60min_video",
"schedule_status",
"monday_start",
"monday_end",
"tuesday_start",
"tuesday_end",
"wednesday_start",
"wednesday_end",
"thursday_start",
"thursday_end",
"friday_start",
"friday_end",
"saturday_start",
"saturday_end",
"sunday_start",
"sunday_end"
);
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($userDetails->model_id) && is_numeric($userDetails->model_id)) {
foreach ($modelcallList as $modelcallOption) {
if (isset($_POST[$modelcallOption]) && isset($model_call_options->$modelcallOption) && $_POST[$modelcallOption] != $model_call_options->$modelcallOption) {
if ($modelcallOption == "timezone" || $modelcallOption == "phone_number") {
// Pass
} else {
$price = str_replace("+", "", $_POST[$modelcallOption]);
$price = str_replace("$", "", $price);
if (is_numeric($price)) {
$price = number_format($price, 2, '.', '');
} else {
$price = '0.00';
}
$_POST[$modelcallOption] = $price;
}
$update_sql = @mysql_query("UPDATE cms_model_call_options SET " . $modelcallOption . " = '".$_POST[$modelcallOption]."' WHERE model_id = '" . $userDetails->model_id . "'");
$model_call_options->$modelcallOption = $_POST[$modelcallOption];
$msgSystem .= msgSystem(ucfirst($modelcallOption) . " has been updated.", "success");
}
}
}
?>
<h3>Private Video Chat Settings</h3>
<?php modelNav(); ?>
<form action="adm.settings.private.php" method="POST" class="form-horizontal">
<div class="form-group">
<label class="col-lg-1 control-label"><h5>Schedule</h5></label>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Schedule Status:</label>
<div class="col-lg-2">
<select name="schedule_status" class="form-control">
<option value="0" <?php echo (isset($model_call_options->schedule_status) && $model_call_options->schedule_status == 0 ? "selected" : ""); ?>>OFF</option>
<option value="1" <?php echo (isset($model_call_options->schedule_status) && $model_call_options->schedule_status == 1 ? "selected" : ""); ?>>ON</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Timezone:</label>
<div class="col-lg-2">
<input type="text" class="form-control" name="timezone" placeholder="PST" value="<?php echo (isset($model_call_options->timezone) ? $model_call_options->timezone : ""); ?>" />
</div>
</div>
<?php
$days = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
foreach($days as $day) {
$start = strtolower($day) . '_start';
$stop = strtolower($day) . '_end';
?>
<div class="form-group">
<label class="col-lg-2 control-label"><?php echo $day; ?>:</label>
<div class="col-lg-2"><select name="<?php echo strtolower($day); ?>_start" class="form-control"><?php echo unbelieveablethiswasnotafunction($model_call_options->{$start}); ?></select></div>
<label class="col-lg-1 control-label">TO</label>
<div class="col-lg-2"><select name="<?php echo strtolower($day); ?>_end" class="form-control"><?php echo unbelieveablethiswasnotafunction($model_call_options->{$stop}); ?></select></div>
</div>
<? } ?>
<div class="form-group">
<label class="col-lg-1 control-label"><h5>Pricing</h5></label>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">15 Minutes Video:</label>
<div class="col-lg-2">
<input type="text" class="form-control" name="a15min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a15min_video) ? $model_call_options->a15min_video : ""); ?>" />
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">30 Minutes Video:</label>
<div class="col-lg-2">
<input type="text" class="form-control" name="a30min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a30min_video) ? $model_call_options->a30min_video : ""); ?>" />
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">45 Minutes Video:</label>
<div class="col-lg-2">
<input type="text" class="form-control" name="a45min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a45min_video) ? $model_call_options->a45min_video : ""); ?>" />
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">60 Minutes Video:</label>
<div class="col-lg-2">
<input type="text" class="form-control" name="a60min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a60min_video) ? $model_call_options->a60min_video : ""); ?>" />
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default"> Save Settings </button>
</div>
</div>
<input type="hidden" name="model_id" value="<?php echo $modelDetails -> model_id; ?>">
</form>
<?php
include("adm.footer.php");
?>