-
Notifications
You must be signed in to change notification settings - Fork 1
/
include.php
52 lines (36 loc) · 2.23 KB
/
include.php
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
46
47
48
49
50
51
52
<?php
/** Include File **/
if(isset($_GET['p'])) {
$p = addslashes($_GET['p']);
/* Main Page */
if($p == "") { include("./files/control/controller.php"); }
else if($p == "logout") { include("./files/main/logout.php"); }
else if($p == "about") { include("./files/main/about.php"); }
else if($p == "control") { include("./files/control/controller.php"); }
else if($p == "webcam.main") { include("./files/main/webcam.php"); }
else if($p == "tablet.main") { include("./tablet/index.php"); }
else if($p == "info.main") { include("./files/main/info.php"); }
if($this_user['rank'] >= "2") {
if($p == "") { include("./files/control/controller.php"); }
else if($p == "LOGS.main") { include("./files/logs/main.php"); }
else if($p == "LOGS.system") { include("./files/logs/system.php"); }
else if($p == "LOGS.power") { include("./files/logs/power.php"); }
else if($p == "LOGS.curves") { include("./files/logs/curves.php"); }
else if($p == "LOGS.push") { include("./files/logs/push.php"); }
else if($p == "SCHEDULE.main") { include("./files/schedule/schedule.php"); }
else if($p == "drinks") { include("./files/main/drinks.php"); }
else if($p == "CONF.main") { include("./files/configuration/main.php"); }
else if($p == "CONF.server") { include("./files/configuration/server.php"); }
else if($p == "CONF.sensors") { include("./files/configuration/sensors.php"); }
else if($p == "CONF.relays") { include("./files/configuration/relays.php"); }
else if($p == "CONF.controller") { include("./files/configuration/controller.php"); }
else if($p == "CONF.users") { include("./files/configuration/users.php"); }
else if($p == "CONF.iplist") { include("./files/configuration/iplist.php"); }
}
else if($p == "logout") { include("./files/main/logout.php"); }
else { include("./files/control/controller.php"); }
}
else {
include("./files/control/controller.php");
}
?>