This commit is contained in:
2023-07-22 14:51:57 -04:00
commit 52e546f286
360 changed files with 528 additions and 0 deletions

27
mumble.php Executable file
View File

@@ -0,0 +1,27 @@
<?php
header("Content-Type: application/json");
include "mumble-ping.php";
if(!isset($_GET["ip"])){
echo json_encode(["status" => "You need to provide an IP address you fat fuck"]);
die();
}
try{
$mumble = new mumble("GeoLite2-Country.mmdb");
echo json_encode(
$mumble->ping(
$_GET["ip"],
isset($_GET["port"]) ? $_GET["port"] : 64738,
)
);
}catch(Exception $error){
echo json_encode(["status" => $error->getMessage()]);
}
?>