Merge branch 'master' of https://github.com/jslightham/MC-Plugins
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
define("key", KEY); // TODO: Make key customizable.
|
define("key", KEY); // TODO: Make key customizable.
|
||||||
|
|
||||||
function get_mysql(){
|
function get_mysql(){
|
||||||
$mysql = new MySQLi("remotemysql.com", "wptYz7NcqF", "62WcmjpDNu", "wptYz7NcqF");
|
$mysql = new MySQLi("", "", "", ""); // login details removed
|
||||||
|
|
||||||
if($mysql->connect_error){
|
if($mysql->connect_error){
|
||||||
die($mysql->connect_error);
|
die($mysql->connect_error);
|
||||||
@@ -13,4 +13,4 @@
|
|||||||
function add($uuid, $reason){
|
function add($uuid, $reason){
|
||||||
get_mysql()->query("INSERT INTO bans (uuid, date, reason) values ('$uuid', '" date("Y-M-D H:M:S") "', ");
|
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