403Webshell
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/xfcadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/xfcadmin/adm.settings.private.php
<?php
	include("adm.config.php");

	include("adm.header.php");

	$msgSystem = "";



	if (isset($userDetails->model_id) && $userDetails->model_id > 0) {

		$sth = $dbh->prepare("SELECT * FROM `cms_model_call_options` WHERE `model_id` = ?");
		$sth->execute(array($userDetails->model_id));
		if ($sth->rowCount() == 0) {

			$createEntry_sql = $dbh->prepare("INSERT INTO `cms_model_call_options` (`model_id`) VALUES (?)");
			$createEntry_sql->execute(array($userDetails->model_id));

			$sth = $dbh->prepare("SELECT * FROM `cms_model_call_options` WHERE `model_id` =?");
			$sth->execute(array($userDetails->model_id));

		} 

		$model_call_options = $sth->fetch(PDO::FETCH_OBJ);

	}

	$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 = "UPDATE cms_model_call_options SET " . $modelcallOption . " = ? WHERE model_id = " . $userDetails->model_id;
				$q = $dbh->prepare($update_sql);
				$q->execute(array($_POST[$modelcallOption]));

				$model_call_options->$modelcallOption = $_POST[$modelcallOption];

				$msgSystem .= msgSystem(ucfirst($modelcallOption) . " has been updated.", "success");

			}

		}

	}

?>
<form action="" method="POST">
<div class="row">
    <div class="large-12 columns">
		<?php
			if (isset($msgSystem) && $msgSystem != "") {

				echo $msgSystem;

			}
		?>


      <div class="panel">
        <h4>Private Video Chat Settings</h4>
        <div class="row">
          <div class="large-12 columns">


<div class="tabs-content">
  <div class="content active" id="panel1">
    <p>
    <h5>Pricing</h5>
  <div class="row">
    <div class="large-6 columns">
      <label>Timezone
        <input type="text" name="timezone" placeholder="PST" value="<?php echo (isset($model_call_options->timezone) ? $model_call_options->timezone : ""); ?>" />

</label>
    </div>

   </div>
   <div class="row">
    



    <div class="large-6 columns">
      <label>15 Minutes Video
        <input type="text" name="a15min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a15min_video) ? $model_call_options->a15min_video : ""); ?>" />
      </label>
    </div>
   </div>
   <div class="row">
    <div class="large-6 columns">
      <label>30 Minutes Video
        <input type="text" name="a30min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a30min_video) ? $model_call_options->a30min_video : ""); ?>" />
      </label>
    </div>

       </div>
   <div class="row">
        <div class="large-6 columns">
      <label>45 Minutes Video
        <input type="text" name="a45min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a45min_video) ? $model_call_options->a45min_video : ""); ?>" />
      </label>
    </div>
   </div>
   <div class="row">
    
    
    <div class="large-6 columns">
      <label>60 Minutes Video
        <input type="text" name="a60min_video" placeholder="$0.00" value="<?php echo (isset($model_call_options->a60min_video) ? $model_call_options->a60min_video : ""); ?>" />
      </label>
    </div>
   </div>
    </p>
  </div>

  <div class="content" id="panel3">
    <p>
    <h5>Schedule</h5>
  <div class="row">
    <div class="large-12 columns">
      <label>Schedule Status
        <select name="schedule_status">
         <option value="0">OFF</option>
         <option value="1">ON</option>
        </select>
      </label>
    </div>
    <div class="large-6 columns">
      <label>Monday Start Time
        <select name="monday_start">
	<?php

		$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';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->monday_start) && $model_call_options->monday_start == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>      </label>
    </div>
    <div class="large-6 columns">
      <label>
      Monday End Time
        <select name="monday_end">
	<?php

		$hourCount = 0;

		while ($hourCount < 24) {

			if ($hourCount == 0) {
				$hourformatted = '12:59 am';
			} elseif ($hourCount == 12) {
				$hourformatted = '12:59 pm';
			} elseif ($hourCount > 12) {
				$hourformatted = $hourCount - 12 . ':59 pm';
			} else {
				$hourformatted = $hourCount . ':59 am';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->monday_end) && $model_call_options->monday_end == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>

      </label>
    </div>
    <div class="large-6 columns">
      <label>Tuesday Start Time
        <select name="tuesday_start">
	<?php

		$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';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->tuesday_start) && $model_call_options->tuesday_start == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>      </label>
    </div>
    <div class="large-6 columns">
      <label>
      Tuesday End Time
        <select name="tuesday_end">
	<?php

		$hourCount = 0;

		while ($hourCount < 24) {

			if ($hourCount == 0) {
				$hourformatted = '12:59 am';
			} elseif ($hourCount == 12) {
				$hourformatted = '12:59 pm';
			} elseif ($hourCount > 12) {
				$hourformatted = $hourCount - 12 . ':59 pm';
			} else {
				$hourformatted = $hourCount . ':59 am';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->tuesday_end) && $model_call_options->tuesday_end == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>

      </label>
    </div>

    <div class="large-6 columns">
      <label>Wednesday Start Time
        <select name="wednesday_start">
	<?php

		$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';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->wednesday_start) && $model_call_options->wednesday_start == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>      </label>
    </div>
    <div class="large-6 columns">
      <label>
      Wednesday End Time
        <select name="wednesday_end">
	<?php

		$hourCount = 0;

		while ($hourCount < 24) {

			if ($hourCount == 0) {
				$hourformatted = '12:59 am';
			} elseif ($hourCount == 12) {
				$hourformatted = '12:59 pm';
			} elseif ($hourCount > 12) {
				$hourformatted = $hourCount - 12 . ':59 pm';
			} else {
				$hourformatted = $hourCount . ':59 am';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->wednesday_end) && $model_call_options->wednesday_end == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>

      </label>
    </div>
    <div class="large-6 columns">
      <label>Thursday Start Time
        <select name="thursday_start">
	<?php

		$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';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->thursday_start) && $model_call_options->thursday_start == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>      </label>
    </div>
    <div class="large-6 columns">
      <label>
      Thursday End Time
        <select name="thursday_end">
	<?php

		$hourCount = 0;

		while ($hourCount < 24) {

			if ($hourCount == 0) {
				$hourformatted = '12:59 am';
			} elseif ($hourCount == 12) {
				$hourformatted = '12:59 pm';
			} elseif ($hourCount > 12) {
				$hourformatted = $hourCount - 12 . ':59 pm';
			} else {
				$hourformatted = $hourCount . ':59 am';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->thursday_end) && $model_call_options->thursday_end == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>

      </label>
    </div>
    <div class="large-6 columns">
      <label>Friday Start Time
        <select name="friday_start">
	<?php

		$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';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->friday_start) && $model_call_options->friday_start == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>      </label>
    </div>
    <div class="large-6 columns">
      <label>
      Friday End Time
        <select name="friday_end">
	<?php

		$hourCount = 0;

		while ($hourCount < 24) {

			if ($hourCount == 0) {
				$hourformatted = '12:59 am';
			} elseif ($hourCount == 12) {
				$hourformatted = '12:59 pm';
			} elseif ($hourCount > 12) {
				$hourformatted = $hourCount - 12 . ':59 pm';
			} else {
				$hourformatted = $hourCount . ':59 am';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->friday_end) && $model_call_options->friday_end == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>

      </label>
    </div>
    <div class="large-6 columns">
      <label>Saturday Start Time
        <select name="saturday_start">
	<?php

		$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';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->saturday_start) && $model_call_options->saturday_start == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>      </label>
    </div>
    <div class="large-6 columns">
      <label>
      Saturday End Time
        <select name="saturday_end">
	<?php

		$hourCount = 0;

		while ($hourCount < 24) {

			if ($hourCount == 0) {
				$hourformatted = '12:59 am';
			} elseif ($hourCount == 12) {
				$hourformatted = '12:59 pm';
			} elseif ($hourCount > 12) {
				$hourformatted = $hourCount - 12 . ':59 pm';
			} else {
				$hourformatted = $hourCount . ':59 am';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->saturday_end) && $model_call_options->saturday_end == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>

      </label>
    </div>
    <div class="large-6 columns">
      <label>Sunday Start Time
        <select name="sunday_start">
	<?php

		$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';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->sunday_start) && $model_call_options->sunday_start == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>      </label>
    </div>
    <div class="large-6 columns">
      <label>
      Sunday End Time
        <select name="sunday_end">
	<?php

		$hourCount = 0;

		while ($hourCount < 24) {

			if ($hourCount == 0) {
				$hourformatted = '12:59 am';
			} elseif ($hourCount == 12) {
				$hourformatted = '12:59 pm';
			} elseif ($hourCount > 12) {
				$hourformatted = $hourCount - 12 . ':59 pm';
			} else {
				$hourformatted = $hourCount . ':59 am';
			}

			echo '<option value="' . $hourCount . '"' . (isset($model_call_options->sunday_end) && $model_call_options->sunday_end == $hourCount ? " selected" : "") . '>' . $hourformatted . '</option>';

			$hourCount++;

		}

	?>
        </select>

      </label>
    </div>
    <div class="large-12 columns">
      <label>
        <input type="submit" value="Set Schedule" class="button">
      </label>
    </div>
    </p>  </div>
</div>
			</div>
		</div>
      </div>
    </div>
  </div>
</form>
<?php
	include("adm.footer.php");
	?>

Youez - 2016 - github.com/yon3zu
LinuXploit