SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 3.129.70.138
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/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/www//checkout.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.'/payment_address.php');
		exit;
}

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

$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);
	}
		
}



if( ( isset( $_POST['submitLogin'] ) ) && ( $_POST['submitLogin'] == 'yes' ) ){
	
     $email = $_POST['email'];
     $password = $_POST['password'];
	 $md5password  = md5($password );

	 
	$sql = "SELECT * FROM  tbl_register WHERE email = '$email' AND password = '$md5password' AND c_status = '1'  " ; 
	$result=$db->query($sql);
	if($result->num_rows) 
	{  
		$row = $result->row;
		
		$i_customerID  = $row['i_customerID'];
		$email  = $row['email'];
		$first_name  = $row['first_name'];
		$last_name  = $row['last_name'];
		$email  = $row['email'];
		$phone  = $row['phone']; 
		$city  = $row['city'];
		$state  = $row['state'];
		
		
		$_SESSION['SESS_cust_i_customerID'] = $i_customerID;
		$_SESSION['SESS_cust_email'] = $email;
		$_SESSION['SESS_cust_firstName'] = $first_name;
		$_SESSION['SESS_cust_lastName'] = $last_name;
		$_SESSION['SESS_cust_phone'] = $phone;
		$_SESSION['SESS_cust_city'] = $city;
		$_SESSION['SESS_cust_state'] = $state;
		$_SESSION['SESS_cust_loggedIn'] = 1;

		header('Location: '.SUB_DIR_PROJECT.'/payment_address.php');
		exit;

	}else{
	    
		$PROMPT ='<div class="alert alert-success alert-dismissable">
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
								<strong><i class="fa fa-check-circle"></i> Success :</strong>There is invalid either email or password.
		</div>';

		$_SESSION['msg'] = $PROMPT; 		
	}


}



?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>RV Way</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" style="">
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar " >01. Summary</div>								
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar ">02. Sign in</div>
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar1 ">03. Shipping</div>
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar1 " >05. Payment method</div>	
				</div>
				<div class="row">
					<div class="col-lg-12 col-sm-12 col-xs-12"> &nbsp; <div>
				</div>

                <div class="row">
                    <div class="col-lg-3 d-none d-sm-block" style="border-right:2px solid #ccc;" >
						<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_sidebar1.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>						
                        
						<section class="product_loop login-area">
						        <?php if( $_SESSION['msg'] ){ 
									 echo $_SESSION['msg']; 
									 unset($_SESSION['msg']);
								} ?>
								<div class="row">
									<div class="col-sm-6">
										<!-- Login Panel Starts -->
										<div class="panel panel-smart">
											<div class="panel-heading">
												<h3 class="panel-title">Login:</h3>
											</div>
											<div class="panel-body">
												<div class="form-group row">
															<div class="col-sm-12 col-xs-12 col-md-12 col-lg-12">Please login using your existing account</div>
												</div>
												<!-- Login Form Starts -->
												<form class="" role="form" action="" method="POST">														
														<div class="form-group row">
															<div class="col-sm-12 col-xs-12 col-md-12 col-lg-12">	
																<label class="sr-only col-sm-12" for="id_email">Email</label>						
																<input type="text" name="email" id="email" class="form-control col-sm-12 col-xs-12 col-md-12 col-lg-12 " required value="<?php echo $email; ?>">
															</div>
														</div>
														
														<div class="form-group row">
															<div class="col-sm-12 col-xs-12 col-md-12 col-lg-12">	
																<label class="sr-only col-sm-12" for="id_email">Password</label>						
																<input type="password" name="password" id="password" class="form-control " required >
															</div>
														</div>

														<div class="form-group row">
															<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">	
																<input type="hidden" name="submitLogin" id="submitLogin" class="form-control " value="yes">
																<button type="submit" name="submit" class="btn btn-success pull-left">Login</button>
																<div class="btn btn-black" style="float: right; overflow: hidden"><a href="/user/password/reset/" style="color: white; text-decoration: none">Reset password</a></div>
																<div class="errorField"></div>
															</div>															
														</div>

												</form>
												<!-- Login Form Ends -->
											</div>
										</div>
										<!-- Login Panel Ends -->
									</div>
									<div class="col-sm-6">
										<!-- Account Panel Starts -->
										<div class="panel panel-smart">
											<div class="panel-heading">
												<h3 class="panel-title">
													Create new account:
												</h3>
											</div>
											<div class="panel-body">
												<p>Registration allows you to avoid filling in billing and shipping forms every time you checkout on this website</p>
											</div><BR/>
											<a href="<?php echo site_url.'register.php'; ?>" class="btn btn-black" style="padding:0px;" ><button type="submit" name="submit" class="btn btn-success pull-left">Register</button></a>
										</div>
										
										<!-- Account Panel Ends -->
										
									</div>

								</div>
						</section>
                        

						<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