-
Notifications
You must be signed in to change notification settings - Fork 0
/
controllers.php
executable file
·95 lines (93 loc) · 3.05 KB
/
controllers.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
function render_content($params) {
global $ROOT;
$c = "This site is under construction... content coming soon!";
if (sizeof($params) == 0) {
require_once($ROOT.'main.php');
return;
}
else {
switch($params[0]) {
case "news":
if (sizeof($params) == 1) {
require_once($ROOT."news/news.php");
}
else if ($params[1] == "newsletter") {
require_once($ROOT."news/newsletter/newsletter.php");
}
else if ($params[1] == "schedule") {
require_once($ROOT."news/schedule/schedule.php");
}
else {
echo "That content could not be found.";
}
break;
case "media":
if (sizeof($params) <= 1) {
require_once($ROOT."media/media.php");
return;
}
switch($params[1]){
case "links":
require_once($ROOT."media/links/links.php");
break;
case "zipstips":
require_once($ROOT."media/zipstips/zipstips.php");
break;
case "photos":
require_once($ROOT."media/photos/photos.php");
break;
default:
echo "That content could not be found.";
break;
}
break;
case "about":
if (sizeof($params) == 1) {
require_once($ROOT."about/about.php");
return;
}
else {
switch($params[1]) {
case "roster":
$profilename = NULL;
if (sizeof($params) >= 3) {
$profilename = $params[2];
}
require_once($ROOT."about/roster/roster.php");
break;
case "webmasters":
require_once($ROOT."about/webmasters/webmasters.php");
break;
default:
echo "That content could not be found.";
break;
}
}
break;
case "support":
if (sizeof($params) <= 1) {
require_once($ROOT."support/support.php");
return;
}
else {
switch($params[1]){
case "donate":
require_once($ROOT."support/donate/donate.php");
break;
case "merchandise":
require_once($ROOT."support/merchandise/merchandise.php");
break;
}
}
break;
case "history":
echo $c;
break;
default:
echo "That content could not be found.";
break;
}
}
}
?>