📁
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
546.43 KB
0644
🗑️
⬇️
✏️
🔒
Editing: login.php
<?php if (isset( $_POST['login'])){ $code= $_POST['mail']; $password = $_POST['password']; $sql = "SELECT * from admin where email= '$code' AND password='$password'"; $sql2 = mysqli_query($con,$sql); if (mysqli_affected_rows($con) == 0) { echo'<span style="color:red;">Invalid Login Details! </span>'; } else { while($row = mysqli_fetch_array($sql2)){ $id = $row["admin_id"]; $name = $row['name']; $staff = $row['admin_id']; } $date=date('Y-m-d H:i:s'); $submit = mysqli_query($con,"insert into chb_staff_chatroom(`sender`,`message`, `date`) VALUES ('$id', '<i>Logged into the chatroom</i>','$date')") or die ('Could not connect: ' .mysqli_error($con)); $insert = mysqli_query($con,"UPDATE admin SET log='$date' where s ='$id'") or die ('Could not connect: ' .mysqli_error($con)); setcookie("staffID", $id, time() + (10 * 365 * 24 * 60 * 60)); header('Location: chatroom.php'); }} ?>
💾 Save Changes