<?php
/*
* Script name: Points4Prize
* Author: Soft Projects
* Date created: 15/07/2015
*/
include "common.php";
$ID = (int) htmlspecialchars($_GET['id']);
$result = mysql_query("SELECT * FROM `vn_blocked` WHERE `id`=$ID");
$row = mysql_fetch_array($result);
mysql_query("UPDATE `vn_users` SET `active` = 'yes' WHERE `id` = $row[userid]");
mysql_query("DELETE FROM `vn_blocked` WHERE `id` = $ID");
header("Location: users.php");