<?
require_once("../config.php");
require_once("header.php");

if($HTTP_COOKIE_VARS["admin_log"]=="in")
{
echo "<p class=\"bodymd\">[ <a href=\"index.php\">Link Admin Home</a> | <a href=\"index.php?ax=addcat\">Add a Category</a> | <a href=\"index.php?ax=add\">Add a Link</a> | <a href=\"index.php?ax=logout\">Logout</a> | <a href=\"index.php?ax=install\">Install Links</a> ]</p>";


if ($nemail && $subject && $message)
{
	
		$mailheaders = "From: $noreply_mail <$noreply_mail>";
			
		mail($nemail, $subject, $message, $mailheaders);
		echo "<br><br><br><center><div class=\"contex\">Your message was sent successfully!</div></center>";
}
else
{
	echo "<br><br><br><center><div class=\"contex\">Your message could not be sent.</div></center>";
}


}
else
{
	echo "<a href=index.php>Click here to login</a>";
			
			}

require_once("footer.php");
	ob_end_flush();
?>