Update api.php

This commit is contained in:
Johnathon Slightham
2020-04-22 21:25:31 -04:00
committed by GitHub
parent 05166c347e
commit 1e79740420

View File

@@ -2,7 +2,7 @@
define("key", KEY); // TODO: Make key customizable.
function get_mysql(){
$mysql = new MySQLi("remotemysql.com", "wptYz7NcqF", "62WcmjpDNu", "wptYz7NcqF");
$mysql = new MySQLi("", "", "", ""); // login details removed
if($mysql->connect_error){
die($mysql->connect_error);
@@ -13,4 +13,4 @@
function add($uuid, $reason){
get_mysql()->query("INSERT INTO bans (uuid, date, reason) values ('$uuid', '" date("Y-M-D H:M:S") "', ");
}
?>
?>