summary refs log tree commit diff stats
path: root/admin/index.php
blob: 3a5f6be6ed10b3ddf447affd0aa94f59df717845 (plain) (blame)
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
<?php

session_start();

ob_start();

include('../header.php');

if (!isset($_SESSION['username']))
{
	include('login.php');
} else {
	if (!isset($_GET['file']))
	{
		$file = 'main.php';
	} else {
		$file = basename($_GET['file'] . '.php');
	}

	include($file);
}

include('../footer.php');

ob_end_flush();

?>