[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: loginR.php
<?php include("header.php"); require_once('google/settings.php'); ?> <!-- Banner Start --> <div class="signupform"> <div class="spec_1" data-aos="fade-down" style="transition:all 1500ms ease-in-out"> <h3>Login Form</h3> <div class="ser-t"> <b></b> <span><i></i></span> <b class="line"></b> </div> </div> <!-- //tittle heading --> <div class="container"> <div class="sub-main-w3"> <form action="" method="post"> <div class="icon_fb"> <a id="login-button" href="<?='https://accounts.google.com/o/oauth2/auth?scope=' . urlencode('https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email') . '&redirect_uri=' . urlencode(CLIENT_REDIRECT_URL) . '&response_type=code&client_id=' . CLIENT_ID . '&access_type=online' ?>"> <img src="images/fb-ico.png" alt=""> <h6>Facebook</h6> </a> </div> <div class="icon_fb"> <a id="login-button" href="<?='https://accounts.google.com/o/oauth2/auth?scope=' . urlencode('https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email') . '&redirect_uri=' . urlencode(CLIENT_REDIRECT_URL) . '&response_type=code&client_id=' . CLIENT_ID . '&access_type=online' ?>"> <div class="w3l_gp"> <img src="images/go-ico.png" width="10px" alt=""> <h6>Google</h6> </div> </a> </div> <div class="form-group"> <input type="email" class="form-control textbox" name="email" placeholder="E-mail" required=""> </div> <div class="form-group"> <input type="password" class="form-control textbox" name="password" placeholder="Password" required=""> </div> <div class="form-group-2"> <input type="submit" value="Login" name="sub"> </div> <p class="account1">Forgot Your password?<a href="reset_pass.php"><strong>Click Here</strong></a></p> <div class="alert alert-success hidden" role="alert">You Have Successfully Logged In</div> </form> <?php $login=new Oops($db); if(isset($_POST['sub'])){ $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="client"; $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); $uid=session_id(); $_SESSION['Logged'] = 1; $_SESSION['login_user'] = $row['name']; $_SESSION['username'] = $_POST['email']; $_SESSION['login_id'] = $row['client_id']; $_SESSION['sessionid'] = $uid; // echo 'Success!'; // header("location:guest/dashboard.php"); if(!empty($_REQUEST['pg'])){ $location=base64_decode($_REQUEST['pg']); header("location:cart.php"); }else{ header("location:index.php"); } //exit(); } }else{ echo "<script>alert('Please give correct email/password');</script>"; } } } ?> </div> </div> </div> <!-- validify plugin --> <script src="js/validify.js"></script> <script> $("#demo").validify({ onSubmit: function (e, $this) { $this.find('.alert').removeClass('hidden') }, onFormSuccess: function (form) { console.log("Form is valid now!") }, onFormFail: function (form) { console.log("Form is not valid :(") } }); $("#demo").validify({ errorStyle: "validifyError", successStyle: "validifySuccess", emailFieldName: "email", emailCheck: true, requiredAttr: "required", }); </script> <!-- //validify plugin --> <?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.04 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