diff --git a/install/include/multihunter.php b/install/include/multihunter.php index dd7bc8bd..9ea1bf9c 100644 --- a/install/include/multihunter.php +++ b/install/include/multihunter.php @@ -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);