File manager - Edit - /home/autoph/public_html/portal/password_recovery.php
Back
<?php include 'core/init.php'; ?> <html> <head> <title>THE AUTOHUB SUPPORT GROUP</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/screen_white.css"> </head> <!DOCTYPE html> <!--https://www.w3schools.com/bootstrap/bootstrap_forms_inputs.asp --> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/screen_white.css"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <style> body { position: relative; } #section1 {padding-top:50px;height:500px;color: #fff; background-color: #1E88E5;} #section2 {padding-top:50px;height:500px;color: #fff; background-color: #673ab7;} #section3 {padding-top:50px;height:500px;color: #fff; background-color: #ff9800;} #section41 {padding-top:50px;height:500px;color: #fff; background-color: #00bcd4;} #section42 {padding-top:50px;height:500px;color: #fff; background-color: #009688;} </style> <style> * { box-sizing: border-box; } body{ margin:0px; } .menu { float:left; width:20%; } .menuitem { padding:8px; margin-top:7px; border-bottom:1px solid #f1f1f1; } .main { float:left; width:60%; padding:0 20px; } .right { background-color:lightblue; float:left; width:20%; padding:10px 15px; margin-top:7px; } @media only screen and (max-width:800px) { /* For tablets: */ .main { width:80%; } .right { width:100%; } } @media only screen and (max-width:500px) { /* For mobile phones: */ .menu, .main, .right { width:100%; } } </style> </head> <!-- <body style="font-family:Verdana;"> --> <body data-spy="scroll" data-target=".navbar" data-offset="50"> <center> <div style='width:500px;margin-top:100px;border:1px solid lightgray;border-radius:5px;padding:10px;'> <?php if(isset($_POST['SaveNewPass'])){ $token=$_POST['token']; $tuser=$_POST['tuser']; $newPass=$_POST['newPass']; $newPassB=$_POST['newPassb']; $newPassA=$newPass; $newPassA = md5($newPassA); //echo "TOKEN:".$token; //echo "<br>EMAIL:".$tuser; //break; if($newPass != $newPassB){ $mess ='Password mis-matched. Please check your entry and try again. '; }else{ mysql_query("UPDATE `c_users` SET `pw`='$newPass', `u_password`='$newPassA', `u_password2`='$newPassA' WHERE `email`='$tuser' AND `recovery_token`='$token'"); $mess ='Password Reset Complete....<a href=\'index.php\'>Login</a>'; } } $token=$_GET['token']; $tuser = $_GET['recovery']; $checkIfExpired = mysql_result(mysql_query("SELECT `recovery_date` FROM `c_users` WHERE `recovery_token`='$token' AND `email`='$tuser'"),0); if($toDate > $checkIfExpired){ echo "<b style='font-family:Calibri;font-size:14px;color:red;font-weight:normal'>Your Token has been expired</b>"; exit; } echo "<form action='' method='POST'>"; echo "<input type='hidden' name='token' value='$token'>"; echo "<input type='hidden' name='tuser' value='$tuser'>"; echo "<p align='left' style='width:100%;font-family:Calibri Light;font-size:26px;color:red;margin-bottom:0px;margin-left:20px'>Password Recovery</p><hr><div style='font-family:Calibri;font-size:14px;color:blue;padding-right:30px;padding-left:30px' align='left'> TYPE YOUR NEW PASSWORD: <input type='password' name='newPass' required style='text-align:center;width:100%;padding:5px;font-family:Calibri Light;font-size:18px;color:blue;border:1px solid lightgray'> <br><BR>CONFIRM YOUR NEW PASSWORD: <input type='password' name='newPassb' required style='text-align:center;width:100%;padding:5px;font-family:Calibri Light;font-size:18px;color:blue;border:1px solid lightgray'> <center><input type='submit' name='SaveNewPass' value='UPDATE MY PASSWORD' style='text-align:center;width:150px;height:30px;border:1px solid lightgray;margin-top:30px;margin-bottom:25px;border-radius:5px;padding:5px;font-family:Calibri;font-weight:bold;color:gray'><br> <b style='font-family:Calibri;font-size:14px;color:red;font-weight:normal'>".$mess."</b><br><br></center> </div>"; echo "</form>"; ?> </div> </center> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings