forked from Queens-College-Libraries/openroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
23 lines (19 loc) · 709 Bytes
/
index.php
File metadata and controls
23 lines (19 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
declare(strict_types=1);
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
require_once('vendor/autoload.php');
include("includes/or-theme.php");
if (isset($_COOKIE["redirected"]) && $_COOKIE["redirected"] == "true") {
setcookie("redirected", "false");
}
include($_SESSION["themepath"] . "header.php");
if (!(isset($_SESSION["username"])) || $_SESSION["username"] == "") {
include("modules/login.php");
} elseif ($_SESSION["systemid"] == "" || !(isset($_SESSION["systemid"])) || $_SESSION["systemid"] != $settings["systemid"]) {
include("modules/login.php");
} else {
include($_SESSION["themepath"] . "content.php");
}
include($_SESSION["themepath"] . "footer.php");