summary refs log tree commit diff stats
path: root/admin/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/index.php')
-rwxr-xr-xadmin/index.php27
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
3session_start();
4
5ob_start();
6
7include('../header.php');
8
9if (!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
23include('../footer.php');
24
25ob_end_flush();
26
27?>