<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>
";
} else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "unban") and ($class > 0)) { // action=unban
mysql_query ("update `hubs` set `status` = 20, `banreason` = null where `id` = " . $row [0] . " limit 1");
header ("Location: /?do=hubs&id=" . $row [0]);
} else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "enable") and ($class > 0)) { // action=enable
mysql_query ("update `hubs` set `status` = 20 where `id` = " . $row [0] . " limit 1");
header ("Location: /?do=hubs&id=" . $row [0]);
} else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "disable") and ($class > 0)) { // action=disable
mysql_query ("delete from `users` where `hub` = " . $row [0]); // delete old users
mysql_query ("update `hubs` set `status` = 8, `onlineusers` = 0, `totalshare` = 0 where `id` = " . $row [0] . " limit 1");
header ("Location: /?do=hubs&id=" . $row [0]);
} else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "restore") and ($class > 0)) { // action=restore
mysql_query ("update `hubs` set `status` = 0 where `id` = " . $row [0] . " limit 1");
header ("Location: /?do=hubs&id=" . $row [0]);
} else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "delete") and ($class > 0)) { // action=delete
mysql_query ("delete from `users` where `hub` = " . $row [0]); // delete old users
mysql_query ("delete from `news` where `hub` = " . $row [0]); // delete news
mysql_query ("update `hubs` set `status` = 19, `onlineusers` = 0, `totalshare` = 0 where `id` = " . $row [0] . " limit 1");
header ("Location: /?do=hubs&id=" . $row [0]);
} else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "debug") and ($class > 0)) { // action=debug
mysql_query ("update `hubs` set `debug` = 1 where `id` = " . $row [0] . " limit 1");
header ("Location: /?do=hubs&id=" . $row [0]);
} else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "undebug") and ($class > 0)) { // action=undebug
mysql_query ("update `hubs` set `debug` = 0 where `id` = " . $row [0] . " limit 1");
header ("Location: /?do=hubs&id=" . $row [0]);
} else { // action=show
if (te_empty ($row [4]) === false) { // hub information
$hub_name = explode (" - ", $row [4], 2);
$hub_name = te_html_encode ($hub_name [0]);
} else {
$hub_name = "<span style=\"color: #808080;\">Not available</span>";
}
$content = "