along with GlobalBan.  If not, see <http://www.gnu.org/licenses/>.
*/
require_once ROOTDIR . "/include/database/class.BadNameQueries.php";
$id = $_GET['id'];
$filter = $_GET['filter'];
// Switch the current active state to the other state
// off becomes on, and on becomes off
if ($filter == 0) {
    $filter = 1;
} else {
    $filter = 0;
}
$badNameQueries = new BadNameQueries();
// Must be logged in to change the status
if ($fullPower) {
    $badNameQueries->updateBadNameFilter($id, $filter);
}
// Send back the new active state
header('Content-Type: text/xml');
header("Cache-Control: no-cache, must-revalidate");
echo "<?xml version=\"1.0\"?>";
?>
<root>
  <id><?php 
echo $id;
?>
</id>
	<update><?php 
echo $filter;
?>
</update>