done
This commit is contained in:
27
mumble.php
Executable file
27
mumble.php
Executable 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()]);
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user