<?php

/* InstaDisc Server - A Four Island Project */

include('includes/instadisc.php');
include('includes/template.php');

if (isset($_SESSION['username']))
{
	$template = new FITemplate('userpanel');
	$template->add('SITENAME', instaDisc_getConfig('siteName'));
	$template->add('USERNAME', $_SESSION['username']);

	if (instaDisc_getConfig('owner') == $_SESSION['username'])
	{
		$template->adds_block('ADMIN',array('ex'=>1));
	}

	$template->display();
} else {
	header('Location: index.php');
}

?>