mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-15 07:41:00 +00:00
fix: MySQLi in MultiHunter installation step works now :P
This commit is contained in:
@@ -6,12 +6,12 @@ $gameinstall = 1;
|
|||||||
include ("../../GameEngine/Admin/database.php");
|
include ("../../GameEngine/Admin/database.php");
|
||||||
include ("../../GameEngine/Lang/" . LANG . ".php");
|
include ("../../GameEngine/Lang/" . LANG . ".php");
|
||||||
|
|
||||||
mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
$conn = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysqli_select_db(SQL_DB);
|
mysqli_select_db($conn, SQL_DB);
|
||||||
|
|
||||||
if(isset($_POST['mhpw'])) {
|
if(isset($_POST['mhpw'])) {
|
||||||
$password = $_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);
|
$wid = $admin->getWref(0, 0);
|
||||||
$uid = 5;
|
$uid = 5;
|
||||||
$status = $database->getVillageState($wid);
|
$status = $database->getVillageState($wid);
|
||||||
|
|||||||
Reference in New Issue
Block a user