if ($bb==""){
echo "
<form method=\"post\" action=\"/?do=hubs&id=" . $row [0] . "&action=ban\">
<table class=\"nospacing multicol\">
<tr>
<td>ID:</td>
<td>
<a href=\"/?do=hubs&id=" . $row [0] . "\" target=\"_blank\">" . $row [0] . "</a>
</td>
</tr>
<tr>
<td>Ban reason</td>
<td> </td>
</tr>
<tr>
<td>
<select name=\"ban_reason\">
<option value=\"\">- Select ban reason -</option>
<option value=\"Duplicate\">Duplicate</option>
<option value=\"Fake users\">Fake users</option>
<option value=\"Other\">Other</option>
</select>
</td>
<td> </td>
</tr>
</table>
<input style=\"margin-top: 5px;\" class=\"button\" type=\"submit\" name=\"ban_send\" value=\"Submit\" />
</form>
";
}elseif(isSET($_GET['action']) && $_GET['action'] == "unban" && $class > 0) {
mysql_query ("UPDATE hubs SET status = 20, banreason = null WHERE id = " . $row [0] . " LIMIT 1");
header ("location: /?do=hubs&id=" . $row [0]);
}elseif(isSET ($_GET['action']) && $_GET['action'] == "enable" && $class > 0) {
mysql_query ("UPDATE hubs SET status = 20 WHERE id = " . $row [0] . " LIMIT 1");
header ("location: /?do=hubs&id=" . $row [0]);
}elseif(isSET ($_GET['action']) && $_GET['action'] == "disable" && $class > 0) {
mysql_query ("DELETE FROM users WHERE hub = " . $row [0]);
mysql_query ("UPDATE hubs SET status = 8, onlineusers = 0, totalshare = 0 WHERE id = " . $row [0] . " LIMIT 1");
header ("location: /?do=hubs&id=" . $row [0]);
}elseif(isSET ($_GET['action']) && $_GET['action'] == "restore" && $class > 0) {
mysql_query ("UPDATE hubs SET status = 0 WHERE id = " . $row [0] . " LIMIT 1");
header ("location: /?do=hubs&id=" . $row [0]);
}elseif (isSET ($_GET['action']) && $_GET['action'] == "delete" && $class > 0) {
mysql_query ("DELETE FROM users WHERE hub = " . $row [0]);
mysql_query ("DELETE FROM news WHERE hub = " . $row [0]);
mysql_query ("UPDATE hubs SET status = 19, onlineusers = 0, totalshare = 0 WHERE id = " . $row [0] . " LIMIT 1");
header ("location: /?do=hubs&id=" . $row [0]);
}elseif (isSET ($_GET['action']) && $_GET['action'] == "debug" && $class > 0) {
mysql_query ("UPDATE hubs SET debug = 1 WHERE id = " . $row [0] . " LIMIT 1");
header ("location: /?do=hubs&id=" . $row [0]);
}elseif (isSET ($_GET['action']) && $_GET['action'] == "undebug" && $class > 0) {
mysql_query ("UPDATE hubs SET debug = 0 WHERE id = " . $row [0] . " LIMIT 1");
header ("location: /?do=hubs&id=" . $row [0]);
} else {
if (!empty ($row [4])) {
$pinco = explode (" - ", $row [4], 2);
$hub_name = htmlentities($pinco [0]);
}else{
$hub_name = "<span style=\"color: #808080;\">Not available</span>";
}
}