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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/model_admin/model-photos.php
<?php
	include("../config.php");

	include("auth.php");
	include("model-header.php");

if($_POST){

		$sql = "INSERT INTO cms_photos SET title=?, category=?, price=?, description=?, nudity=?, uniq_id=? ON DUPLICATE KEY UPDATE title=?, category=?, price=?, description=?, nudity=?";
		$q = $dbh->prepare($sql);
		$q->execute(array($_POST['title'],$_POST['category'],$_POST['price'],$_POST['description'],$_POST['nudity'],$_POST['uniq_id'],$_POST['title'],$_POST['category'],$_POST['price'],$_POST['description'],$_POST['nudity']));

$arr = $q->errorInfo();
	if($arr['0'] == "00000"){
# success
$error = "0";

	}

}

# here we generate a unique ID that will be used to tie the movie upload to the form submission

while(1){ # we run this loop until we find a uniq id that doesnt match anything in the db

$length=24;
$list=array_merge(range('a','z'),range(0,9), range('A', 'Z'), range('0','9'));
shuffle($list);
$uniq_id=substr(join($list),0,$length);

	$sth = $dbh->prepare("SELECT uniq_id FROM cms_content WHERE uniq_id=?");
	$sth->execute(array($uniq_id));
	$row = $sth->fetch(PDO::FETCH_ASSOC);
	if($row){ } else {  break; }

} # end infinite while


?>
<div class="row">
    <div class="large-12 columns">




      <div class="panel">


<?php if(isset($error) && $error == "0"){ ?>
  <div class="row">
    <div class="large-12 columns">
		<h3>Your photo set has been created!</h3><p> Please choose a photo set below to edit, or <a href="">Add another</a></p>
	</div>
  </div>
<?php } else { ?>

        <h4>Manage Photo Galleries</h4>

  <div class="row">
    <div class="large-12 columns">

<p>Create a photo gallery using the form</p>


</div></div>


        <div class="row">

          <div class="large-6 columns">


<form action="" method="POST" enctype="multipart/form-data">
<input type="hidden" name="uniq_id" value="<?php echo $uniq_id; ?>">
<input type="hidden" name="step" value="1">

  <div class="row">
    <div class="large-12 columns">
      <label>Title
        <input type="text" name="title" placeholder="Title of this gallery" value="<?php echo $row['display_name']; ?>" />
      </label>
    </div>
  </div>
  <div class="row">
    <div class="large-6 columns">
      <label>Category
<select name="category">
<option value="amateur">Amateur</option>
</select></label>
    </div>
    <div class="large-6 columns">
      <label>Price
        <input type="text" name="price" placeholder="$ USD" value="<?php echo $row['last_name']; ?>" />
      </label>
    </div>
  </div>

  <div class="row">
    <div class="large-12 columns">
      <label>Full Nudity?
        <input type="checkbox" name="nudity" value=1  />
      </label>
    </div>
  </div>




			</div>

          <div class="large-6 columns">


  <div class="row">
    <div class="large-12 columns">
      <label>Description
<textarea name="description" style="width:100%;height:200px;">

</textarea></label>
    </div>
  </div>




          </div>

        </div>



  <div class="row">
    <div class="large-6 columns">
        <input type="submit" value="Create Gallery" class="button" />
    </div>
  </div>



</div>

<?php } ?>
</div> <!-- end upper panel -->


<div class="row">
<?php
/*
	$sql = "SELECT * FROM cms_content WHERE model_id=0;";

$lat = 0;
$lng = 0;

	$sth = $dbh->prepare($sql);
	$sth->execute(array($lat,$lng,$lat));

	foreach ($sth->fetchAll() as $row) {
?>
<div class="large-4 columns dash-buttons">
<img src="/img/placeholder_thumb.jpg" style="border:1px solid #E6E6E6;width:250px;">
<h5><?php echo $row['title']; ?></h5>
<p><?php echo $row['price']; ?></p>
</div>
<?php
	}
*/
?>
</div>


      </div>


    </div>
  </div>

<?php
	include("footer.php");

Youez - 2016 - github.com/yon3zu
LinuXploit