-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebfront.php
More file actions
45 lines (23 loc) · 885 Bytes
/
webfront.php
File metadata and controls
45 lines (23 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/*
* Project: CleanWebfront
* File: webfront.php
* Author: Alex Kersten
*
* The "index" page of Webfront. Here will be all of the options available to
* the user, with some information about the server as well. These options will
* be accessible through a navbar at the top of the page which conveniently
* hides irrelevant things until the user selects that one.
*
* This file shouldn't need to change much (that's the power of modularity!)
*/
require "globalHeader.php";
require "php/navbar.php";
//Generate content from modules.
for ($i = 0; $i < sizeof($_SESSION['modules']); $i++) {
echo "<div class=\"well\" id=\"module_" . $i . "\" style=\"display: " .
($i == 0 ? "block" : "none" ) . "\">" .
$_SESSION['modules'][$i]->getInnerContent() . "</div>";
}
require "globalFooter.php";
?>