diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2009-02-21 18:05:42 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2009-02-21 18:05:42 -0500 |
commit | d0601a55010cd9fe2f2587ce157ce059e5da732e (patch) | |
tree | 6c56f73f6d2dfa1bbaab5c053321458014709377 /admin/index.php | |
parent | 877fa5a38fefe2bdd0e00768b6ec4b52a81d7a69 (diff) | |
download | pillowcase-d0601a55010cd9fe2f2587ce157ce059e5da732e.tar.gz pillowcase-d0601a55010cd9fe2f2587ce157ce059e5da732e.tar.bz2 pillowcase-d0601a55010cd9fe2f2587ce157ce059e5da732e.zip |
Started admin panel
Diffstat (limited to 'admin/index.php')
-rwxr-xr-x | admin/index.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/admin/index.php b/admin/index.php new file mode 100755 index 0000000..3a5f6be --- /dev/null +++ b/admin/index.php | |||
@@ -0,0 +1,27 @@ | |||
1 | <?php | ||
2 | |||
3 | session_start(); | ||
4 | |||
5 | ob_start(); | ||
6 | |||
7 | include('../header.php'); | ||
8 | |||
9 | if (!isset($_SESSION['username'])) | ||
10 | { | ||
11 | include('login.php'); | ||
12 | } else { | ||
13 | if (!isset($_GET['file'])) | ||
14 | { | ||
15 | $file = 'main.php'; | ||
16 | } else { | ||
17 | $file = basename($_GET['file'] . '.php'); | ||
18 | } | ||
19 | |||
20 | include($file); | ||
21 | } | ||
22 | |||
23 | include('../footer.php'); | ||
24 | |||
25 | ob_end_flush(); | ||
26 | |||
27 | ?> | ||