<? 
	include "header.inc";
	include_once "survey.inc";
?>

<?
if (!(isAdmin ()))
{
	print ("<h2>You do not have permission to access this page</h2>");
}
else if (isset ($rewardText))
{
	print ("<h3>Successfully saved admin preferences</h3>");
	$admin->rewardText = $rewardText;
	saveAdminStore ();
}
else
{
?>
<h1>The Harvard-MIT Survey of Pig Latin and its Dialects administration (html tags are allowed):</h1>
<form method="post">
	Text that the user will see after they complete the survey:<br />
	<textarea name="rewardText" cols="80" rows="30"><?=$admin->rewardText;?></textarea>
	<br />
	<input type="submit" value="Submit" />
</form>
<?
}
?>

<? include "footer.inc" ?>
