query_fetchDB("
SELECT user_status
FROM ot_users
WHERE id = '" . $_GET['user'] . "'
LIMIT 1
");
if($User)
{
if($User['0']['user_status'] == "active")
{
$DB->query_execDB("
UPDATE ot_users
SET user_status = 'activation'
WHERE id = '" . $_GET['user'] . "'
LIMIT 1
");
echo '';
}
else
{
$DB->query_execDB("
UPDATE ot_users
SET user_status = 'active'
WHERE id = '" . $_GET['user'] . "'
LIMIT 1
");
echo '';
}
}
}
else
{
echo "Fout";
}
}
else
{
echo "Fout";
}
}
else
{
echo "Fout";
}
?>