add('SITENAME', instaDisc_getConfig('siteName')); $template->add('USERNAME', $_SESSION['username']); $template->display(); } else { header('Location: index.php'); } ?>