mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-21 01:10:37 +00:00
Moved functions into classes
This commit is contained in:
parent
951871b983
commit
92a1c3500e
22 changed files with 224 additions and 234 deletions
|
@ -11,8 +11,12 @@
|
|||
include "ui/required.php";
|
||||
include "ui/nav.php";
|
||||
|
||||
use App\Account;
|
||||
|
||||
$user_info = new Account();
|
||||
|
||||
// Check if the user is logged in, otherwise redirect to login page
|
||||
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
|
||||
if ($user_info->is_loggedin() != true) {
|
||||
header("location: account.php");
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue