done
This commit is contained in:
commit
52e546f286
360 changed files with 528 additions and 0 deletions
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()]);
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue