SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 3.15.211.55
Web Server : Apache
System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User : rvway5nu4 ( 1018)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/rvway5nu4/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/public_html/payment.php
<?php
//require_once('./setting.php');
//echo ABSPATH;  exit; //  F:\xampp\htdocs\carivon/
include("./config/data.config.php"); 
include("$LIB_DIR/functions.lib.php");
include("$LIB_DIR/db.php");
include("$LIB_DIR/db/mysqli.php"); 
include("$LIB_DIR/data.constant.php");
include("$LIB_DIR/sitemsgs.php");
include("$LIB_DIR/class.paging.php");
include("$LIB_DIR/functions.mailer.php");
$error='';
$msg='';
if( !isset( $_SESSION['SESS_cust_i_customerID'] ) ){  		
		
		header('Location: '.SUB_DIR_PROJECT.'/checkout.php');
		exit;
}

global $SITE_URL, $IMG_DIR;  
$db	=	new Db( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME, $DB_REPORT_ERROR, $DB_PERSISTENT_CONN);

// echo '<pre>ss'; print_r( $_SESSION ); echo '</pre>'; 
// echo '<pre>ss'; print_r( $_REQUEST ); echo '</pre>';  exit;
$sqlpara = '';
$rvtype = '';

   // echo '<pre>';  print_r($_SESSION);  echo '</pre>'; // exit;
	$sql = "SELECT * FROM tbl_setting  WHERE i_settingID = '1'  "; 
	$result=$db->query($sql);
	if($result->num_rows) {		
		foreach( $result->row AS $key=>$val){
				$$key  = stripslashes($val);
		}
			
	}

	$v_deleivery_charge  = $_REQUEST['v_deleivery_charge'];
?>
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <title>Caravon</title>
    <!-- mobile responsive meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link1.php'); ?>
	<?php //require_once($ROOT_DIR.'/page_content/us/common/header_common_link2.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link3.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link4.php');  ?>
</head>
<body>
	
	<!-- <div class="preloader"></div> -->
    <div class="page-wrapper"  >

		<!-- space for preloader -->
		<header class="site-header header-one" >
			<div class="top-header">
				<?php require_once($ROOT_DIR.'/page_content/us/common/header_top.php'); ?>
			</div><!-- /.top-header -->
			<nav class="navbar navbar-expand-lg navbar-light header-navigation stricky header-style-one" >
				<?php require_once($ROOT_DIR.'/page_content/us/common/header_nav.php'); ?>
            </nav>
		</header><!-- /.site-header -->
		<?php // require_once($ROOT_DIR.'/page_content/minimal-bootstrap-carousel_h.php'); ?>
		<?php // require_once($ROOT_DIR.'/page_content/us/home/minimal-bootstrap-carousel.php'); ?>
		<!--Start AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
        <div style="margin:20px 0px 20px 0px;">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
<?php
if( isset($_REQUEST['para']) ){
	$para = $_REQUEST['para'];
	$para_key  = $rv_array[$para];

	$i_rv_settingID  = $_REQUEST['i_rv_settingID'];
	$sql = "SELECT * FROM tbl_rv_setting  WHERE i_rv_settingID = '1'  "; 
	$result=$db->query($sql);
	if($result->num_rows) {		
		foreach( $result->row AS $key=>$val){
				$$key  = stripslashes($val);
		}	
	}
}

?>


						<h3 class=""><?php echo $rvtype;  ?></h2>
						<h5 class=""><?php echo htmlentities($title_str); ?></h3>
					</div>
				</div>
			</div>
		</div>
        <div class="">
            <div class="container">
                <div class="row">
                    <div class="col-lg-3 d-none d-sm-block">
					<div class="blog-sidebar">
						<form class="mb-30" method="get" action="<?php echo site_url.'used.php'; ?>" >						
						<?php require_once($ROOT_DIR.'/page_content/used_sidebar.php'); ?>
						</form>						
					</div><!-- /.blog-sidebar -->						
                    </div><!-- /.col-lg-4 -->
                    <div class="col-lg-9 col-sm-12 col-xs-12">
						<div class="col-sm-12" style="margin-top:2px;" >
						 <?php echo htmlentities($desc_str); ?>
						</div>						
                        <article class="product_loop">
							<?php  if( !empty($_SESSION["cart_item"])){   ?>
							<div class="row" style="background-color: #424741;padding:5px; color:#fff;">

								<div class="col-lg-5 col-md-3 col-sm-12 col-xs-12">Product</div>								
								<div class="col-lg-1 col-md-1 col-sm-12 col-xs-12">Quantity</div>
								<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">Unit Price</div>
								<div class="col-lg-2 col-md-4 col-sm-12 col-xs-12">Price</div>								
							</div>
								<?php 
									
										$count  = 0;
										$subTotalPrice  = 0;
										$totalPrice  = 0;
										foreach($_SESSION["cart_item"] AS $key=>$val )
										{ 
										$count++;
										$rem  = ( $count % 2);
										if( $rem == 1){
											$itemrow = 'itemrow1';
										}else{
											$itemrow = 'itemrow2';
										}
										$v_tit1le  = 	$val['v_title'];  
										$i_itemID  = 	$val['i_itemID'];  
										$quantity  = 	(int)$val['quantity'];  
										$curreny_type  = 	$val['curreny_type']; 
										$normal_price  = 	(float)$val['normal_price'];  
										$sale_price  = 	(float)$val['sale_price'];  										
										$imgsrc  = 	$val['image'];  
									
										
										$target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc";	
										$imgSRC  = '';				
														if ( $imgsrc != ''  && file_exists("$target"))
														{	
															$imgSRC = $SITE_URL.'/pic/'.$imgsrc;
														}

										$Price   =  ( $sale_price * $quantity  );
										$subTotalPrice  = ( $subTotalPrice + $Price);
											
										?>
								<div class="row <?php echo $itemrow; ?>" style="" >
									<div class="col-lg-5 col-md-3 col-sm-12 col-xs-12">
										<div class="item-name"><?php echo $v_title; ?></div>
										<div class="card col-lg-8 col-lg-8 col-sm-12"><?php echo $img_src; ?>
												<a href="<?php echo site_url.'item_detail.php?i_itemID='.$i_itemID; ?>" class="item-title">
												  <img  class="img-fluid img-rounded lazyloaded" alt="<?php echo $v_title; ?>" title="<?php echo $v_title; ?>" src="<?php echo $imgSRC; ?>">
												  
												</a>										
												
										</div>
										
									</div>								
									<div class="col-lg-1 col-md-1 col-sm-12 col-xs-12"><?php echo $quantity; ?></div>
									<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12"><?php echo $sale_price; ?></div>
									<div class="col-lg-2 col-md-4 col-sm-12 col-xs-12"><?php echo $Price; ?></div>									
								</div>
										 
								<?php 		}  ?>

							<div class="row" style="">
								<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12" align="right"><strong>Sub Total:</strong></div>
								<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12" align="right"><strong><?php echo $subTotalPrice;  ?></strong></div>	
							</div>

							<?php if($v_deleivery_charge > 0 ) {  ?>
							<div class="row" style="">
								<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12" align="right"><strong>Delivery Charge:</strong></div>
								<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12" align="right"><strong><?php echo $v_deleivery_charge;  ?></strong></div>	
							</div>
							<?php }  ?>
							<div class="row" style="">
								<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12" align="right" ><strong>Total:</strong></div>
								<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12"  align="right" ><strong><?php 
								$totalPrice = ( $subTotalPrice + $v_deleivery_charge );	
								echo $totalPrice;  ?></strong></div>	
							</div>

							<BR/>
							

								<?php		
											
										//echo '<pre>'; print_r( $_SESSION ); echo '</pre>';
										$address_array  = array(
											'b_first_name'=> $_REQUEST['b_first_name'],
											'b_last_name'=> $_REQUEST['b_last_name'],
											'b_email'=> $_REQUEST['b_email'],
											'b_phone'=> $_REQUEST['b_phone'],
											'b_address'=> $_REQUEST['b_address'],
											'b_city'=> $_REQUEST['b_city'],
											'b_state'=> $_REQUEST['b_state'],
											'b_country'=> $_REQUEST['b_country'],
										 );
										 $item_array =  array('address'=> $address_array, 'cart_item' => $_SESSION["cart_item"] );
										 $item_array_encode  = json_encode($item_array, true);	
										 $sqlIn = "INSERT INTO tbl_order SET i_customerID = '".$_SESSION['SESS_cust_i_customerID']."',  items = '".addslashes($item_array_encode)."',   v_deleivery_charge = '".$v_deleivery_charge."',  subTotalPrice = '".$subTotalPrice."',  totalPrice = '".$totalPrice."',   c_status = '1',  dt_addedDate = NOW()   ";  

										$db->query($sqlIn);
										$new_i_orderID = $db->getLastId();   
										if($new_i_orderID){

										    foreach($_SESSION["cart_item"] AS $key=>$val){
											  
											  $sqlins = "INSERT INTO tbl_order_items SET v_title  = '".addslashes( $val['v_title'] )."', v_cart_key  = '".$key."', i_itemID  = '".addslashes( $val['i_itemID'] )."', quantity  = '".addslashes( $val['quantity'] )."' , price  = '".addslashes( $val['price'] )."' , curreny_type  = '".addslashes( $val['curreny_type'] )."' , normal_price  = '".addslashes( $val['normal_price'] )."' , sale_price  = '".addslashes( $val['sale_price'] )."' , image  = '".addslashes( $val['image'] )."' , sale_type  = '".addslashes( $val['sale_type'] )."' , i_orderID  = '".$new_i_orderID."' , i_customerID = '".$_SESSION['SESS_cust_i_customerID']."',  dt_addedDate = NOW()  ";
											  $db->query($sqlins);
											}


											if( site_url != 'http://localhost/carivon/' )
											{

        $sessionemail = $_SESSION['SESS_cust_email'];
												
																
		$to = "info@rvway.net";
        $subject = "New purchase";
        
        
         foreach($_SESSION["cart_item"] AS $key=>$val )
          {
          
             $BookedProduct .= '<p style="font-size:14px;margin:0;padding:10px;border:solid 1px #ddd;font-weight:bold;"><span style="display:block;font-size:13px;font-weight:normal;">'. $val['v_title'] .'</span> Rs. '. ($val['quantity']*$val['sale_price']) .'</p>';
		  
          }
		
        
        
        
        $messageb = '<html>

<body style="background-color:#e2e1e0;font-family: Open Sans, sans-serif;font-size:100%;font-weight:400;line-height:1.4;color:#000;">
  <table style="width:677px;margin:0px auto 10px;background-color:#fff;padding:50px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); border-top: solid 10px green;">
    <thead>
      <tr>
        <th style="text-align:left;"><img style="max-width: 150px;" src="http://rvway.net/project_rvway/img/logo-light.png" alt="bachana tours"></th>
        <th style="text-align:right;font-weight:400;">'. date('Y-m-d') .'</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td style="height:35px;"></td>
      </tr>
      <tr>
        <td colspan="2" style="border: solid 1px #ddd; padding:10px 20px;">
          <p style="font-size:14px;margin:0 0 6px 0;"><span style="font-weight:bold;display:inline-block;min-width:150px">Order status</span><b style="color:green;font-weight:normal;margin:0">Booked</b></p>
          <p style="font-size:14px;margin:0 0 6px 0;"><span style="font-weight:bold;display:inline-block;min-width:146px">Order ID</span> '. $new_i_orderID .'</p>
          <p style="font-size:14px;margin:0 0 0 0;"><span style="font-weight:bold;display:inline-block;min-width:146px">Order amount</span> Rs. '. $totalPrice .'</p>
        </td>
      </tr>
      <tr>
        <td style="height:35px;"></td>
      </tr>
      <tr>
        <td style="width:50%;padding:20px;vertical-align:top">
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px">Name</span> '. $_SESSION['SESS_cust_firstName'] .'  '. $_SESSION['SESS_cust_lastName'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">Email</span> '. $_SESSION['SESS_cust_email'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">Phone</span> '. $_SESSION['SESS_cust_phone'] .'</p>

        </td>
        <td style="width:50%;padding:20px;vertical-align:top">
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">City</span> '. $_SESSION['SESS_cust_city'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">State</span> '. $_SESSION['SESS_cust_state'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">Address</span> '. $_REQUEST['b_address'] .'</p>
        </td>
      </tr>
      <tr>
        <td colspan="2" style="font-size:20px;padding:30px 15px 0 15px;">Booking Items</td>
      </tr>
      <tr>
        <td colspan="2" style="padding:15px;">
          
         
		
          '. $BookedProduct .'
          
										
        </td>
      </tr>
    </tbody>
    <tfooter>
      <tr>
        <td colspan="2" style="font-size:14px;padding:50px 15px 0 15px;">
          <strong style="display:block;margin:0 0 10px 0;">Regards</strong> RV Way<br> Al-Qurain District, Kuwait<br><br>
          <b>Phone:</b> +965 622-21-335<br>
          <b>Phone:</b> +965 622-21-338<br>
          <b>Email:</b> info@rvway.net
        </td>
      </tr>
    </tfooter>
  </table>
</body>

</html>';
        
        
        
        
        $headers = "From: Rvway New Purchase<info@rvway.net>\r\nReply-To: $sessionemail\r\nX-Mailer: PHP/" . phpversion() . "\r\n" ."MIME-Version: 1.0\r\n" ."Content-type: text/html; charset: utf8\r\n";

        $repsub = "Order booking rvway.net";
        $repmsg = '<html>

<body style="background-color:#e2e1e0;font-family: Open Sans, sans-serif;font-size:100%;font-weight:400;line-height:1.4;color:#000;">
  <table style="width:682px;margin:0px auto 10px;background-color:#fff;padding:50px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); border-top: solid 10px green;">
    <thead>
      <tr>
        <th style="text-align:left;"><img style="max-width: 150px;" src="http://rvway.net/project_rvway/img/logo-light.png" alt="bachana tours"></th>
        <th style="text-align:right;font-weight:400;">'. date('Y-m-d') .'</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td style="height:35px;"></td>
      </tr>
      <tr>
        <td colspan="2" style="border: solid 1px #ddd; padding:10px 20px;">
          <p style="font-size:14px;margin:0 0 6px 0;"><span style="font-weight:bold;display:inline-block;min-width:150px">Order status</span><b style="color:green;font-weight:normal;margin:0">Booked</b></p>
          <p style="font-size:14px;margin:0 0 6px 0;"><span style="font-weight:bold;display:inline-block;min-width:146px">Order ID</span> '. $new_i_orderID .'</p>
          <p style="font-size:14px;margin:0 0 0 0;"><span style="font-weight:bold;display:inline-block;min-width:146px">Order amount</span> Rs. '. $totalPrice .'</p>
        </td>
      </tr>
      <tr>
        <td style="height:35px;"></td>
      </tr>
      <tr>
        <td style="width:50%;padding:20px;vertical-align:top">
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px">Name</span> '. $_SESSION['SESS_cust_firstName'] .'  '. $_SESSION['SESS_cust_lastName'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">Email</span> '. $_SESSION['SESS_cust_email'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">Phone</span> '. $_SESSION['SESS_cust_phone'] .'</p>

        </td>
        <td style="width:50%;padding:20px;vertical-align:top">
                  <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">City</span> '. $_SESSION['SESS_cust_city'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">State</span> '. $_SESSION['SESS_cust_state'] .'</p>
          <p style="margin:0 0 10px 0;padding:0;font-size:14px;"><span style="display:block;font-weight:bold;font-size:13px;">Address</span> '. $_REQUEST['b_address'] .'</p>
        </td>
      </tr>
      <tr>
        <td colspan="2" style="font-size:20px;padding:30px 15px 0 15px;">Booking Items</td>
      </tr>
      <tr>
        <td colspan="2" style="padding:15px;">
        
        
         '. $BookedProduct .'
          
          </td>
      </tr>
    </tbody>
    <tfooter>
      <tr>
        <td colspan="2" style="font-size:14px;padding:50px 15px 0 15px;">
          <strong style="display:block;margin:0 0 10px 0;">Regards</strong> RV Way<br> Al-Qurain District, Kuwait<br><br>
          <b>Phone:</b> +965 622-21-335<br>
          <b>Phone:</b> +965 622-21-338<br>
          <b>Email:</b> info@rvway.net
        </td>
      </tr>
    </tfooter>
  </table>
</body>

</html>';
        
        
        
        
        $repheaders = "From: Rvway Sales<no-reply@rvway.net>\r\nReply-To: $sessionemail\r\nX-Mailer: PHP/" . phpversion() . "\r\n" ."MIME-Version: 1.0\r\n" ."Content-type: text/html; charset: utf8\r\n";
			
		if(mail($to,$subject,$messageb,$headers))
		{
        mail($sessionemail, $repsub, $repmsg, $repheaders);
		}
											}

											echo "<div class='alert alert-success alert-dismissable'><H5> Thanks, <strong>".$_SESSION['SESS_cust_firstName']."&nbsp; ".$_SESSION['SESS_cust_lastName']."</strong>, we will contact soon in reference to your order</H5></div>";
											unset( $_SESSION['cart_item'] );
										}else{
											echo "<div class='alert alert-warning alert-dismissable'><H3> Sorry order could not submit </H3></div>";
										}
								
								}
								else{
									   echo " <div class='alert alert-warning alert-dismissable'>There is no product to cart.</div>";
									}

								?>

							</div>
                        </article>

						<div class="col-sm-12" style="margin-top:2px;" >
						 <?php echo $footer_desc_str; ?>
						</div>
                    </div><!-- /.col-lg-8 -->

                </div><!-- /.row -->
            </div><!-- /.container -->
        </div><!-- /.blog blog-single -->
		<!--End AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
	</div><!-- /.page-wrapper -->

	<footer class="crop">
		<?php  require_once($ROOT_DIR.'/page_content/us/common/footer_middle.php'); ?>
		<?php require_once($ROOT_DIR.'/page_content/us/common/footer_bottom.php'); ?>
	</footer>
    <a href="#" data-target="html" class="scroll-to-target scroll-to-top"><i class="fa fa-long-arrow-up"></i></a>
    <!-- /.scroll-to-top -->
	<?php require_once($ROOT_DIR.'/page_content/us/common/footer_js.php'); ?>

		<script >
		   $('#partner_tab_2').hide();
		   $(".tabparner").on("click", function(){
			var tabparner_id = $(this).attr('id');
				//alert("The paragraph was clicked." + tabparner_id);
				if( tabparner_id == 'tab_1' ){
					$("#tab_1").addClass("activetab");
					$("#tab_1").removeClass("deactivetab");
					$("#tab_2").removeClass("activetab");
					$("#tab_2").addClass("deactivetab");
					$('#partner_tab_1').show();
					$('#partner_tab_2').hide();
				}
				
				if( tabparner_id == 'tab_2' ){
					$("#tab_2").addClass("activetab");
					$("#tab_2").removeClass("deactivetab");
					$("#tab_1").removeClass("activetab");
					$("#tab_1").addClass("deactivetab");
					$('#partner_tab_1').hide();
					$('#partner_tab_2').show();
				}
				
		   }); 
		
		</script>


    </body>
</html>

Anon7 - 2022
SCDN GOK