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