mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-27 05:37:15 +00:00
fix: a lot of MySQL calls in templates replaced by MySQLi ones
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
|
||||
include_once("../../Account.php");
|
||||
|
||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysql_select_db(SQL_DB);
|
||||
mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysqli_select_db(SQL_DB);
|
||||
|
||||
if (!isset($_SESSION)) session_start();
|
||||
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
|
||||
@@ -20,7 +20,7 @@ $did = $_POST['did'];
|
||||
$name = $_POST['villagename'];
|
||||
$sql = "UPDATE ".TB_PREFIX."vdata SET name = '$name' WHERE wref = $did";
|
||||
|
||||
mysql_query($sql);
|
||||
mysqli_query($GLOBALS["link"], $sql);
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=village&did=".$did."&name=".$name."");
|
||||
?>
|
||||
Reference in New Issue
Block a user