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