mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-14 15:21:01 +00:00
fix: a lot of MySQL calls in templates replaced by MySQLi ones
This commit is contained in:
@@ -10,15 +10,15 @@
|
||||
#################################################################################
|
||||
|
||||
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!");
|
||||
|
||||
|
||||
|
||||
$userid = $_POST['userid'];
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE userid = ".$userid."");
|
||||
mysqli_query($GLOBALS["link"], "DELETE FROM ".TB_PREFIX."medal WHERE userid = ".$userid."");
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=player&uid=".$userid."");
|
||||
?>
|
||||
Reference in New Issue
Block a user