fix: MySQLi in MultiHunter installation step works now :P

This commit is contained in:
Martin Ambrus
2017-08-28 22:22:37 +02:00
parent d8f349d2f3
commit 9a3aff2efe
+3 -3
View File
@@ -6,12 +6,12 @@ $gameinstall = 1;
include ("../../GameEngine/Admin/database.php");
include ("../../GameEngine/Lang/" . LANG . ".php");
mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysqli_select_db(SQL_DB);
$conn = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysqli_select_db($conn, SQL_DB);
if(isset($_POST['mhpw'])) {
$password = $_POST['mhpw'];
mysqli_query("UPDATE " . TB_PREFIX . "users SET password = '" . md5($password) . "' WHERE username = 'Multihunter'");
mysqli_query($conn, "UPDATE " . TB_PREFIX . "users SET password = '" . md5($password) . "' WHERE username = 'Multihunter'");
$wid = $admin->getWref(0, 0);
$uid = 5;
$status = $database->getVillageState($wid);