-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
40 lines (32 loc) · 829 Bytes
/
index.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
<!--
THIS FILE ISN'T SUPPOSED TO BE MODIFIED!!
YOU CAN'T EDIT A PAGE HERE!!
To make a new page, please duplicate the
template-article.php file in /wiki.
The page will work as soon as it's created.
The code for this shell page is inside lines 15-37.
-->
<!DOCTYPE html>
<html>
<head>
<title>WikiMeower</title>
<link rel="stylesheet" href="/includes/wm.css" />
</head>
<body>
<?php include 'includes/header.php'; ?>
<div id="page"><?php
if ($_GET['wiki']) {
if (file_exists('wiki/' . $_GET['wiki'] . '.php')) {
include 'wiki/' . $_GET['wiki'] . '.php';
} else {
include 'wiki/404.php';
}
} else {
include 'wiki/start.php';
}
?><br></div>
<?php include 'includes/footer.php'; ?>
</body>
</html>
<!-- You very likely don't want to modify this page.
Scroll up! -->