forked from Workaholic-Studios/XIWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
17 lines (14 loc) · 658 Bytes
/
index.php
File metadata and controls
17 lines (14 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
require_once("includes/config.php");
require_once("includes/global.php");
// If the page requires authentication, and you are not authenticated, redirect to the login page
if (pagePermissions(basename($_SERVER['SCRIPT_FILENAME'],".php")) == 'require_auth') {
if (empty($user['authed'])) {
$_SESSION['destination'] = basename($_SERVER['SCRIPT_FILENAME']);
redirect("/login.php"); // Should be changed to the login page once it's completed
}
}
include("themes/".$config['theme']."/views/header.php");
include("themes/".$config['theme']."/views/index.php");
include("themes/".$config['theme']."/views/footer.php");
echo $output;