This commit is contained in:
jslightham
2020-04-21 10:17:31 -04:00
parent 6ad4bb92e6
commit 05166c347e
223 changed files with 15185 additions and 1262 deletions

16
EasyBans-Web/api/api.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
define("key", KEY); // TODO: Make key customizable.
function get_mysql(){
$mysql = new MySQLi("remotemysql.com", "wptYz7NcqF", "62WcmjpDNu", "wptYz7NcqF");
if($mysql->connect_error){
die($mysql->connect_error);
}
return $mysql;
}
function add($uuid, $reason){
get_mysql()->query("INSERT INTO bans (uuid, date, reason) values ('$uuid', '" date("Y-M-D H:M:S") "', ");
}
?>