along with GlobalBan. If not, see <http://www.gnu.org/licenses/>. */ require_once ROOTDIR . "/include/database/class.BadNameQueries.php"; $id = $_GET['id']; $kick = $_GET['kick']; // Switch the current active state to the other state // off becomes on, and on becomes off if ($kick == 0) { $kick = 1; } else { $kick = 0; } $badNameQueries = new BadNameQueries(); // Must be logged in to change the status if ($fullPower) { $badNameQueries->updateBadNameKick($id, $kick); } // 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 $kick; ?>