<?php if ($_COOKIE['bbuserid']==0 || $_COOKIE['bbuserid']==null) { die('You must be logged in to reset dismissed notices.'); } include('includes/config.php'); $con = mysql_connect("localhost",$config['MasterServer']['username'],$config['MasterServer']['password']); mysql_select_db($config['Database']['dbname'], $con); mysql_query("DELETE FROM tta_noticedismissed WHERE userid=" . $_COOKIE['bbuserid']); mysql_close($con); echo '<script type="text/javascript"> <!-- window.location = "http://toontowners.com/forums/" //--> </script>'; ?>