ÿØÿà JPEG ÿþ;
| Server IP : 68.65.120.201 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : taxhyuvu ( 2294) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/proc/self/root/proc/self/root/home/./././././taxhyuvu/www/ |
Upload File : |
<?php
require '/home/taxhyuvu/public_html/PHPMailer/src/Exception.php';
require '/home/taxhyuvu/public_html/PHPMailer/src/PHPMailer.php';
require '/home/taxhyuvu/public_html/PHPMailer/src/SMTP.php';
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
// Make sure PHPMailer is installed via Composer
include_once "admin/db.php";
session_start();
if (isset($_POST['login'])) {
$_SESSION['forget_power'] = $Email = $_POST['email'];
$Password = rand(100000, 999999);
$Uquery = "SELECT * FROM `signup` WHERE `Email_Address`= '$Email' ";
$Data = mysqli_query($con, $Uquery);
$fk = mysqli_fetch_assoc($Data);
$count = mysqli_num_rows($Data);
if ($count == 1) {
$Para1 = "<html><body>";
$Para1 .= "<h2>Hi " . $fk['Full_Name'] . ",</h2>";
$Para1 .= "<p>We\'re excited to have you get started. Here is your verification code:</p>";
$Para1 .= "<h3 style='color: #1c959e;'>$Password</h3>";
$Para1 .= "<p>Enter this code in the verification page.</p>";
$Para1 .= "<p>If you didn't request this, please ignore this email.</p>";
$Para1 .= "<p>Regards,<br>TaxHelpline Team</p>";
$Para1 .= "</body></html>";
$mail = new PHPMailer(true);
try {
// Server settings
$mail->isSMTP();
$mail->Host = 'smtp.gmail.com'; // Replace with your SMTP server
$mail->SMTPAuth = true;
$mail->Username = '786.taxhelpline@gmail.com'; // SMTP username
$mail->Password = 'ckgd lkgx jysx qqhx'; // SMTP password
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587;
// Recipients
$mail->setFrom('info@taxhelplines.com.pk', 'TaxHelpline');
$mail->addAddress($Email);
// Content
$mail->isHTML(true);
$mail->Subject = "TaxHelpline Account Verification Code: $Password";
$mail->Body = $Para1;
$mail->send();
// Update verification code in the database
$pp = "UPDATE `signup` SET `code`='$Password' WHERE `Email_Address` = '$Email'";
mysqli_query($con, $pp);
echo '<script>alert("Kindly check your email inbox.");</script>';
header('Location: verification');
exit();
} catch (Exception $e) {
echo "<script>alert('Email could not be sent. Mailer Error: " . $mail->ErrorInfo . "');</script>";
}
} else {
echo '<script>alert("Wrong Email. Kindly enter the correct email.");</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>User Login</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="icon.png" />
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="ulogin/vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="ulogin/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="ulogin/vendor/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="ulogin/vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="ulogin/vendor/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="ulogin/css/util.css">
<link rel="stylesheet" type="text/css" href="ulogin/css/main.css">
<!--===============================================================================================-->
<style>
img {
vertical-align: middle;
border-style: none;
width: 100%;
margin-bottom: 10%;
}
.container-login100 {
background: linear-gradient(-135deg, #a2a1a0, #1c959e) !important;
}
.wrap-login100 {
width: 960px;
background: #fff;
padding: 80px 130px 80px 100px;
}
.p-t-136 {
padding-top: 20px;
}
.login100-form-title {
font-family: math;
font-size: 35px;
color: #0e7786;
font-weight: 900;
line-height: 1.2;
text-align: center;
width: 330px;
display: block;
padding-bottom: 35px;
padding-top: 10px;
}
.input100 {
width: 330px;
font-family: math !important;
font-size: 18px !important;
font-weight: 700 !important;
background: #ebebeb !important;
border-radius: 12px !important;
border: 1px solid #c0c9cb !important;
}
.container-login100-form-btn {
width: 330px;
}
.symbol-input100 {
font-size: 16px;
color: #1c7785 !important;
}
.focus-input100 {
box-shadow: 0px 0px 0px 0px;
color: rgb(255 255 255 / 80%) !important;
}
.p-t-12 {
padding-top: 25px;
width: 330px;
}
.p-t-136 {
padding-top: 10px;
padding-left: 0px;
width: 330px;
}
.login100-form-btn {
font-family: math !important;
font-size: 17px !important;
color: white !important;
background: #1c959e !important;
font-weight: 900 !important;
border-radius: 10px;
}
.login100-form-btn:hover {
background: #e9e9e9 !important;
color: #257784 !important;
border: 1px solid #1e929b !important;
transition: 0.5s;
}
.input100 {
padding: 0 0px 0 40px;
}
.symbol-input100 {
font-size: 16px;
padding-left: 14px;
}
.txt1 {
font-family: math;
font-size: 17px;
line-height: 1.5;
color: #646262;
font-weight: 700;
}
.txt2 {
font-family: math;
font-size: 17px;
line-height: 1.5;
color: #646262;
font-weight: 700;
}
textarea:focus,
input:focus {
/* border-color: transparent !important; */
padding-left: 40px !important;
}
.input100:focus+.focus-input100+.symbol-input100 {
padding-left: 14px;
}
#user {
font-weight: 500;
width: 100%;
/* margin-left: 15px; */
border-radius: 5px;
font-family: math;
height: 5%;
/* color: #107e86; */
background: whitesmoke;
}
a:hover {
text-decoration: none;
color: #05666d;
font-weight: 700;
}
@media (max-width: 992px){
.login100-pic {
width: 100%;
display: none !important;
}
}
@media (max-width: 768px){
.wrap-login100 {padding: 10% !important;}
img{width:100% !important;
margin-bottom: 4%;}
.input100 {
width: 100%;
}
.symbol-input100 {
display: flex;
margin-left: 0%;
font-size: 15px !important;
}
.container-login100-form-btn {
width: 100%;
}
.login100-form-title{width: 100%;}
.p-t-12{width: 100%;}
.p-t-136{width: 100%;}
}
</style>
</head>
<body>
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100">
<div class="login100-pic js-tilt" data-tilt
style="display: flex;text-align: center;align-items: center;justify-content: center;">
<img src="ulogin/images/img-01.png" alt="IMG">
</div>
<form class="login100-form validate-form" method="post">
<a href="index">
<div><img src="Logo.png" alt=""></div>
</a>
<span class="login100-form-title">
Find Account
</span>
<div class="wrap-input100 validate-input" data-validate="Valid email is required: ex@abc.xyz">
<input class="input100" type="email" name="email" placeholder="Enter Your Email">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-envelope" aria-hidden="true"></i>
</span>
</div>
<!-- <div class="wrap-input100 validate-input" data-validate="Password is required">
<input class="input100" type="" name="password" value="<?php ?>">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-lock" aria-hidden="true"></i>
</span>
</div> -->
<!-- <div class="wrap-input100 validate-input" data-validate = "Password is required">
<input class="input100" type="hidden" name="usap" value="n">
<span class="focus-input100"></span>
<span class="symbol-input100">
</span>
</div> -->
<!-- <select name="user" id="user" required>
<option value="" disabled selected hidden>Select Account</option>
<option value="a">Admin Account</option>
<option value="e">Employee Account</option>
</select> -->
<div class="container-login100-form-btn">
<button class="login100-form-btn" type="submit" name="login">
Submit
</button>
</div>
<!-- <div class="text-center p-t-12">
<span class="txt1">
Forgot
</span>
<a class="txt2" href="#">
Email / Password?
</a>
</div> -->
<div class="text-center p-t-136">
<a class="txt2" href="login">
Back to Login
<i class="fa fa-long-arrow-right m-l-5" aria-hidden="true"></i>
</a>
</div>
</form>
</div>
</div>
</div>
<!--===============================================================================================-->
<script src="ulogin/vendor/jquery/jquery-3.2.1.min.js"></script>
<!--============= ==================================================================================-->
<script src="ulogin/vendor/bootstrap/js/popper.js"></script>
<script src="ulogin/vendor/bootstrap/js/bootstrap.min.js"></script>
<!--===============================================================================================-->
<script src="ulogin/vendor/select2/select2.min.js"></script>
<!--===============================================================================================-->
<script src="ulogin/vendor/tilt/tilt.jquery.min.js"></script>
<script>
$('.js-tilt').tilt({
scale: 1.1
})
</script>
<!--===============================================================================================-->
<script src="ulogin/js/main.js"></script>
</body>
</html>