Update api.php
This commit is contained in:
committed by
GitHub
parent
05166c347e
commit
1e79740420
@@ -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") "', ");
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user