mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 15:17:13 +00:00
Fix ban, forgot to change access
Fix ban, forgot to change access
This commit is contained in:
@@ -81,6 +81,16 @@ if(isset($_POST['action']) && $_POST['action'] == 'addBan')
|
|||||||
($uid,'$name','$reason',".time().",$end,0,1)
|
($uid,'$name','$reason',".time().",$end,0,1)
|
||||||
");
|
");
|
||||||
|
|
||||||
|
// =========================
|
||||||
|
// BLOCK USER ACCESS
|
||||||
|
// =========================
|
||||||
|
mysqli_query($database->dblink, "
|
||||||
|
UPDATE ".TB_PREFIX."users
|
||||||
|
SET access = 0
|
||||||
|
WHERE id = $uid
|
||||||
|
LIMIT 1
|
||||||
|
");
|
||||||
|
|
||||||
$success = "User has been banned successfully!";
|
$success = "User has been banned successfully!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user