📁
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
11450.74 KB
0644
🗑️
⬇️
✏️
🔒
Editing: changepassword.php
<?php include "connect_to_mysqli.php"; if (isset( $_POST['old'])){ $changepass = $_POST['old']; $npass = $_POST['new']; $confirmp = $_POST['renew']; $sql = "SELECT * from admin where user = '".$name."'" ; $sql2 = mysqli_query($con,$sql); while ($row = mysqli_fetch_array($sql2)) { $d_pass = $row['password']; if($changepass != $d_pass) { $err='<center>Incorrect Password</center> '; } else if (strlen($npass) < 8) { $rrs = 'Password must have 8 or more characters'; } elseif($npass != $confirmp) { $mac = '<center>Password does not match</center>'; } else { $insert = mysqli_query($con,"UPDATE admin SET password= '$npass' where user ='$name'") or die ('Could not connect: ' .mysqli_error($con)); $suc = '<span style="color:blue;">Password Changed Successfully!</span>'; } } } ?>
💾 Save Changes