Update passwd.php

This commit is contained in:
jakani24
2024-01-15 17:09:09 +01:00
parent cc2c6584f4
commit 7b66c2e2c6

View File

@@ -1,5 +1,16 @@
<?php <?php
session_start(); session_start();
// Check if the user is logged in
if (!isset($_SESSION['username']) or !isset($_SESSION["login"])) {
// Redirect to the login page or handle unauthorized access
header("Location: /login.php");
exit();
}
$username = $_SESSION['username'];
$perms = $_SESSION["perms"];
$email = $_SESSION["email"];
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">