AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 172.71.28.145   [ 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/kainumber.com/cart/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home2/cp648411/public_html/kainumber.com/cart/index.php
<?php include('../include/header.php')?>
<?php $menu = 'cart';?>
<?php
if($_GET['action']=='cancel')
{
	session_unregister("cart");
	session_unregister("num_cart");

}
?>
<?php include('../theme/menu.php')?>
<?php //include('../banner/index.php')?>
<?php //include('../theme/category2.php')?>

<!-- /.body -->
<div class="container mt-5 mt-md-0 px-lg-5 px-3">
	 <div class="row px-md-5 mb-3 pt-md-0">
		 <div class="col-md-12 px-md-2 d-flex justify-content-between align-baseline" >
				 <div class="">
					 <h2 class="pb-0 mb-0 fw-loungethbold">ตะกร้าสินค้า</h2>
					 <!--<hr class="line1 my-1">-->
				 </div>

		 </div>
	 </div>
	 <style>.tb_cart td{ padding:10px;}</style>
</div>
<div class="container mt-5 mt-md-0 px-lg-5 px-3">
	 <form action="Del_phone.php" method="post" >
			<div class="row px-md-5 mb-3 ">
				<div class="col-12 border-kai2 py-3 px-4 overflow-auto">
					<div class="text-center d-flex">
						<div class="col-1 border-kai-bottom2 border-kai-right">#</div>
						<div class="col-6 col-md-4 border-kai-bottom2 border-kai-right">หมายเลข</div>
						<div class="col-3 col-md-1 border-kai-bottom2 border-kai-right">ผลรวม</div>
						<div class="col-3 col-md-1 border-kai-bottom2 border-kai-right">เครือข่าย</div>
						<div class="col-2 col-md-1 border-kai-bottom2 border-kai-right">หมวด</div>
						<div class="col-4 col-md-2 border-kai-bottom2 border-kai-right">ราคา</div>
						<div class="col-3 col-md-2 border-kai-bottom2 ">สถานะ</div>
					</div>
					<?php
					$l=1;
					$array_cart = array_unique($_SESSION["cart"]);
					foreach( $array_cart as $id_number )
					{

						$sql = array('table'=>'phonenumber','where'=>"id = '". $id_number."'");
						$view_sql = $view_db->view($sql);
						$row = $view_db->q($view_sql);

						$cate_img='';
						if($row['category']==7){$cate_img='icon-01-love.png';}
						if($row['category']==8){$cate_img='icon-02-office.png';}
						if($row['category']==10){$cate_img='icon-05-foster.png';}
						if($row['category']==11){$cate_img='icon-04-money.png';}
						if($row['category']==12){$cate_img='icon-03-family.png';}
						if($row['category']==13){$cate_img='icon-07-chat.png';}
						if($row['category']==16){$cate_img='icon-06-health.png';}
						if($row['category']==17){$cate_img='icon-08-avoid.png';}

						?>
						<div class="text-center d-flex h3 mb-0" style="height: 55px;">
							<div class="col-1 border-kai-right <?php echo ($l==1)?'pt-3':'pt-2'; ?> pb-0"><input type="checkbox" name="del[]" value="<?php echo $row['phonenumber'];?>"></div>
							<div class="col-6 col-md-4 border-kai-right  <?php echo ($l==1)?'pt-3':'pt-2'; ?> pb-0"><?php echo $Phone_class->phonenumber($row['phonenumber']); ?></div>
							<?php
							$sql_type = array('table'=>'mobilenetwork','where'=>"id = '". $row['mobilenetwork']."'");
							$view_type = $view_db->view($sql_type);
							$row_type = $view_db->q($view_type);

							$network_img='';
							if($row['mobilenetwork']==1){$network_img='0222- ais.png';}
							if($row['mobilenetwork']==2){$network_img='01- ddd.png';}
							if($row['mobilenetwork']==3){$network_img='03- true.png';}
							if($row['mobilenetwork']==8){$network_img='05- yyyy.png';}
							?>
							<div class="col-3 col-md-1 border-kai-right <?php echo ($l==1)?'pt-3':'pt-2'; ?> pb-0"><?php echo $Phone_class->phonenumber_total($row['phonenumber'])?></div>
							<div class="col-3 col-md-1 border-kai-right <?php echo ($l==1)?'pt-3':'pt-2'; ?> pb-0"><img src="../redbag/mobilenetwork/<?php echo $network_img;?>" width="58"></div>
							<div class="col-2 col-md-1 border-kai-right <?php echo ($l==1)?'pt-3':'pt-2'; ?> pb-0"><img src="../redbag/category/<?php echo $cate_img; ?>" alt="" class="img-fluid" width="40" ></div>
							<div class="col-4 col-md-2 border-kai-right <?php echo ($l==1)?'pt-3':'pt-2'; ?> pb-0"><?php echo $row['price'];//number_format($row['price'], 2, '.', ',');?></div>
							<div class="col-3 col-md-2  <?php echo ($l==1)?'pt-3':'pt-2'; ?> pb-0">-</div>
						</div>
						<?php
						$p_price = str_replace("," , "" ,$row['price']);
						$sum_price = $sum_price + $p_price;
					}
					?>

				</div>
				<div class="col-12 py-3 px-0 pe-md-4 h3">
					<div class="text-start d-md-flex">
						<div class="col-12 col-md-2 mb-3" ><button type="submit" class="btn btn-warning">ลบเบอร์</button></div>
						<div class="col col-md-2"></div>
						<div class="col col-md-2"></div>
						<div class="col col-md-1"></div>
						<div class="col col-md-1"></div>

						<div class="col-12 text-center col-md-fix-4 border-kai2">
							<div class="row py-2 pe-4">
								<div class="col-6 py-3 border-kai-right">รวมเป็นเงิน</div>
								<div class="col-6 py-3"><?php echo number_format($sum_price);?> บาท</div>

							</div>
						</div>

					</div>
				</div>
				<input type="hidden" name="code" id="code" value="">
				<div class="mt-5 mt-md-0 pe-0 text-md-end text-center" >
					<div >

						<button type="button" class="btn btn-primary btn-lg" onclick="location.href='../home/index.php'">เลือกซื้อสินค้าต่อ</button>
						<button type="button" class="btn btn-success btn-lg" onClick="checkout_1()">ยืนยันการสั่งซื้อ</button>
					</div>
					<a href="index.php?action=cancel" type="button" class="text-danger text-decoration-none" style="margin-top:13px;" >ยกเลิกการสั่งซื้อ </a> &nbsp;

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

<form name="checkout1" id="checkout1"  action="checkout.php" method="post">
	<input type="hidden" name="confirm" value="cm1">
	<input type="hidden" class="form-control" name="discount" id="discount" placeholder="">
</form>
<script>
	function checkout_1(){
		document.getElementById('discount').value = document.getElementById('code').value;
		document.getElementById("checkout1").submit();
	}
</script>

</div>

<?php include('../theme/forecast_reading.php'); //ทำนายเบอร์ / ทำนายบัตรประชาชน ?>

<div class="container mt-5 mt-md-0 px-md-5">
   <div class="row px-md-5 d-md-flex justify-content-center pt-md-0">
		 <div class="col-12 col-md-auto text-center px-0 mb-3 mb-md-0">
		 		<a href="https://lin.ee/egzGHWJ" target="_blank" class="text-decoration-none text-light">
		 			<img src="../image/line_n1.png" alt="" >
					 @kainumber
		 		</a>
			</div>

			<span class="col-md-auto px-2 d-none d-md-block">/</span>
			<div class="col-12 col-md-auto text-center px-0">
		 		<a href="https://th-th.facebook.com/kainumber/" target="_blank" class="text-decoration-none text-light">
		 			<img src="../image/fb_n1.png" alt="" >
					 อาจารย์ไก่ เบอร์มงคล
		 		</a>
		 </div>
	</div>
  <div class="row px-md-5 d-md-flex justify-content-center">

		 <div class="col-12 col-md-5 text-center mt-3">
			 <img src="../image/text_logotop.png" alt="" class="img-fluid col-8 col-md-8">
		 </div>

	 </div>

</div>

<!-- /.body -->
<?php include('../include/footer.php')?>
<?php include('../include/footer_js.php')?>

Anon7 - 2022
AnonSec Team