Welcome to the SVR.JS Mods moderation panel!
Navigate to one of the sections in SVR.JS Mods moderation panel.
Statistics
query("SELECT COUNT(id) AS count FROM users WHERE is_suspended = 0 AND is_verified = 1 AND is_deleted = 0");
if (!$activeUsersResult) {
echo "- An unexcepted error occurred when fetching the active user count.
";
} else {
$activeUsersRow = $activeUsersResult->fetch_assoc();
if (!$activeUsersRow || is_null($activeUsersRow['count'])) {
echo "- An unexcepted error occurred when fetching the active user count.
";
} else {
echo "- Active users: " . htmlspecialchars($activeUsersRow['count']) . "
";
}
}
$pendingModsResult = $connection->query("SELECT
COUNT(mods_pending.id) AS count
FROM mods_pending
JOIN users ON users.id = mods_pending.user
WHERE mods_pending.is_rejected = 0
AND users.is_suspended = 0
AND users.is_verified = 1
AND users.is_deleted = 0");
if (!$pendingModsResult) {
echo "- An unexcepted error occurred when fetching the pending mod count.
";
} else {
$pendingModsRow = $pendingModsResult->fetch_assoc();
if (!$pendingModsRow || is_null($pendingModsRow['count'])) {
echo "- An unexcepted error occurred when fetching the pending mod count.
";
} else {
echo "- Pending mods: " . htmlspecialchars($pendingModsRow['count']) . "
";
}
}
$listedModsResult = $connection->query("SELECT
COUNT(mods.id) AS count
FROM mods
JOIN users ON users.id = mods.user
WHERE mods.is_removed = 0
AND users.is_suspended = 0
AND users.is_verified = 1
AND users.is_deleted = 0");
if (!$listedModsResult) {
echo "- An unexcepted error occurred when fetching the listed mod count.
";
} else {
$listedModsRow = $listedModsResult->fetch_assoc();
if (!$listedModsRow || is_null($listedModsRow['count'])) {
echo "- An unexcepted error occurred when fetching the listed mod count.
";
} else {
echo "- Listed mods: " . htmlspecialchars($listedModsRow['count']) . "
";
}
}
?>