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'); } ?>