Security Audit

$info) { if ($ip !== "port") { echo(""); $index++; } } ?>
IP address Connections Username(s) Actions
" . $ip . "
Please wait...");?> You"); } echo("
"); $success = 0; $invalid = 0; $failed = 0; foreach ($info["connections"] as $connection) { if ($connection["status"] === "invalid") { $invalid++; } if ($connection["status"] === "error") { $failed++; } if ($connection["status"] === "ok") { $success++; } } if (count($info["connections"]) === 0) { echo("Never connected"); } else { echo($success . " succeeded, " . $failed . " failed, " . $invalid . " invalid"); } echo("
Last: "); if ($info["connections"][0]["status"] === "ok") { echo("Succeeded"); } if ($info["connections"][0]["status"] === "error") { echo("Failed"); } if ($info["connections"][0]["status"] === "invalid") { echo("Invalid"); } echo("
Show full list
    "); $uniqueUsers = []; $connectionsWithUsers = 0; foreach ($info["connections"] as $connection) { if (!in_array($connection["user"], $uniqueUsers) && $connection["user"] !== null) { if (isset($uniqueUsers[$connection["user"]])) { $uniqueUsers[$connection["user"]]++; $connectionsWithUsers++; } else { $uniqueUsers[$connection["user"]] = 1; $connectionsWithUsers++; } } } foreach ($uniqueUsers as $user => $occurrences) { echo("
  • " . $user . " (" . $occurrences . "×, " . round(($occurrences/$connectionsWithUsers)*100, 2) . "%)
  • "); } if (count($uniqueUsers) === 0) { echo("
  • Username was never sent to server
  • "); } echo("
Details · Report