📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
91.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
system.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
Editing: forge.php
<?php include "connect_to_mysqli.php"; if(empty($_POST['email'])) { echo ""; } else { $em= $_POST['email']; $extract_user = mysqli_query($con,"SELECT * FROM user WHERE email='$em'"); $count = mysqli_num_rows($extract_user); if ($count == 0) { $chk = '<center style="color:red;">Email is not registered with an account </center>'; } else { function randomPassword() { $alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $pass = array(); $alphaLength = strlen($alphabet) - 1; for ($i = 0; $i < 8; $i++) { $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } return implode($pass); } $pass = randomPassword(); $sql = "SELECT * from user where email= '".$em."'"; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $old= $row["pass"]; } ///////////////////////////////// Mail Function started////////////////////////////////////////////////////////////////// $comments = $email_to = $email_subject = $email_from = $msg = ""; $email_from="admin@oshofree.ng"; $email_to = "$em"; $email_subject = "NEW PASSWORD REQUEST FROM OSHOFREE(C)"; $comments = " <center><div style='background-color:#000000; color:#FFFFFF; height:500px; width:500px;'> <div style='background-color:#000000; width:500px; height:150px;'> <p style='text-align:left;'> <img src='https://ads.oshofree.ng/assets/img/logo.png' width='100px' height='60px;' style='margin-top:13px;'> </p> <p style='color:green; font-size:30px;'>Password Reset</p> </div> <p><table border='1px' bordercolor='#000000' cellpadding='10' style='color:#FFFFFF;' width='500px'> <tr style='border-bottom:#FFFFFF solid;'><td>Account Email</td><td>$em</td></tr> <tr style='border-bottom:#FFFFFF solid;'><td>Old Password</td><td>$old</td></tr> <tr style='border-bottom:#FFFFFF solid;'><td>New Password</td><td>$pass</td></tr> </table> </p> <p>Please login(https://ads.oshofree.ng/sign.php) with the new password and change it in your dashboard.if you were not the one who requested for the password change. please contact our support @ admin@oshofree.ng</p> <br><br> <p style='text-align:center;'><a href='https://oshofree.ng' style='color:green;'><u>OSHOFREE</u></a></p> </div></center> "; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message =""; $email_message .= " ". clean_string($user)."\n"; $email_message .= clean_string($comments)."\n"; // create email headers $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: admin@chblogistics.com' . "\r\n"; if(!@mail($email_to, $email_subject, $email_message, $headers)){ echo '<center><font color="red">mail cannot be submitted now due to server problems, Please try again.</font></center>'; } ////////////////////////////////////////////End mail Function////////////////////////////////////////////////////////////// $insert = mysqli_query($con,"UPDATE user SET pass= '$pass' where email ='$em'") or die ('Could not connect: ' .mysqli_error($con)); $we = '<center style="color:green;">Password Request Succesful,Check Your Email For More Details</center>'; } } ?>
💾 Save Changes