PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
// Enable error reporting for debugging
ini_set('display_errors', 1);
error_reporting(E_ALL);
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'vendor/autoload.php'; // PHPMailer autoload
include('includes/connect.php');
include('includes/functions.php');
session_start();
$_SESSION["code"] = rand(111111, 999999);
if (isset($_POST['email'])) {
$email = trim($_POST['email']);
$vcode = $_SESSION["code"];
if (!EmailExist($email)) {
header("location: forgot.php?n=errorrr");
exit();
}
$_SESSION["email"] = $email;
$mail = new PHPMailer(true);
try {
// SMTP Configuration
$mail->isSMTP();
$mail->Host = 'smtp.titan.email';
$mail->SMTPAuth = true;
$mail->Username = 'support@silverscrestasset.com';
$mail->Password = '$7tSilvtRefw3t65r'; // Your SMTP password (Titan)
$mail->SMTPSecure = 'ssl'; // Use SSL
$mail->Port = 465; // SSL port
// Sender and recipient
$mail->setFrom('support@silverscrestasset.com', 'Silvers Crest');
$mail->addAddress($email); // Send to user
// Email content
$mail->isHTML(true);
$mail->Subject = 'Reset Code';
$mail->Body = "
<html>
<head>
<title>Reset Code</title>
<style>
.container {
width: 600px;
margin: 50px auto;
padding: 20px;
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
font-family: Arial, sans-serif;
text-align: center;
}
.logo img {
max-width: 200px;
border-radius: 10px;
}
.button {
padding: 15px 30px;
font-size: 36px;
background-color: #f2f2f2;
border-radius: 10px;
margin-top: 30px;
display: inline-block;
}
.footer {
margin-top: 30px;
font-size: 14px;
color: #555;
}
</style>
</head>
<body>
<div class='container'>
<div class='logo'>
<img src='https://silverscrestasset.com/assets/img/logo.png' alt='Silvers Crest'>
</div>
<h2>Reset Code</h2>
<p>Your password reset code is:</p>
<div class='button'>{$vcode}</div>
<p class='footer'>
If you did not request this, please ignore this message.<br>
Contact: support@silverscrestasset.com
</p>
</div>
</body>
</html>
";
$mail->send();
header("Location: code.php?er=" . urlencode($email));
exit();
} catch (Exception $e) {
echo "Mailer Error: " . $mail->ErrorInfo;
exit();
}
}
?>
<?php include "header.php";?>
<style>
.finger{
display:none;
}
@media only screen and (max-width: 768px) {
.finger{
display:block;
}
}
</style>
<!-- partial:partia/__subheader.html -->
<!-- partial -->
<!-- Map Start --
<div class="sigma_map">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2624.9914406081493!2d2.292292615201654!3d48.85837360866272!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47e66e2964e34e2d%3A0x8ddca9ee380ef7e0!2sEiffel%20Tower!5e0!3m2!1sen!2sin!4v1571115084828!5m2!1sen!2sin" allowfullscreen=""></iframe>
</div>
<!-- Map End -->
<!-- Contact form Start -->
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6">
<a href="service-details.html" class="sigma_service style-3 mt-5">
<div class="sigma_service-thumb">
<img src="assets/img/forex.jpg" alt="img">
<i class="flaticon-briefcase-1"></i>
</div>
</a>
</div>
<div class="section mt-negative mt-5 col-lg-6">
<h3 class="text-center" > Welcome To SILVERCREST </h3>
<div class="container">
<form class="sigma_box box-lg m-0 form_validate ajax_submit form_alert" action="forgot.php" method="post" enctype="multipart/form-data">
<h5 class="text-center"> Forget Password</h5>
<p class="text-center"> Insert Email Registered With Us </p>
<div class="row">
<div class="col-lg-12">
<div class="form-group">
<i class="far fa-user"></i>
<input type="text" placeholder="Email Address" class="form-control dark" name="email">
</div>
<div class="form-group">
<button type="submit" class="sigma_btn-custom btn-block" name="submit"> Recover <i class="far fa-arrow-right"></i> </button>
</div>
<a class="finger" href="login.php"> Login with Fingerprint <i class="far fa-arrow-right"></i></a>
<p>Don't Have an Account<a class="text-center" href="register.php"> Register Here <i class="far fa-arrow-right"></i></a>
</div>
</div>
<div class=" ">
<div class="sigma_service-body sigma_service style-3">
<p><code><strong style="color:red;">Warning*</strong></code> Please keep your login details Secure from others </p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Contact form End -->
<!-- Icons Start -->
<?php include "footer.php";?>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E