mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Ban System Update - better mirroring
Mirrors have been updated to actually fetch the active mirror, as opposed to using an old mirror and referencing that, and then letting the banned individual through. You can also now view the mirrors for a ban. Also denies entry for people who for _some_ reason lack a computer ID or an IP address. The former can be done by using a specific wsock32.dll in your BYOND bin to bypass bans.
This commit is contained in:
@@ -93,6 +93,28 @@
|
||||
|
||||
DB_ban_record(bantype, playermob, banduration, banreason, banjob, null, banckey, banip, bancid )
|
||||
|
||||
else if(href_list["dbbanmirrors"])
|
||||
var/ban_id = text2num(href_list["dbbanmirrors"])
|
||||
|
||||
var/list/mirrors = get_ban_mirrors(ban_id)
|
||||
|
||||
if (!mirrors)
|
||||
usr << "<span class='warning'>Something went horribly wrong.</span>"
|
||||
return
|
||||
|
||||
if (!mirrors.len)
|
||||
usr << "<span class='warning'>No mirrors for this ban found.</span>"
|
||||
return
|
||||
|
||||
var/output = "<b><center>Ban mirrors for ban #[ban_id]</center></b><br>"
|
||||
output += "<center>Each line indicates a new bypass attempt.</center><hr>"
|
||||
for (var/mirror in mirrors)
|
||||
var/list/details = mirrors[mirror]
|
||||
|
||||
output += "[details["date"]] - [details["ckey"]] - IP: [details["ip"]] - CID: [details["computerid"]]<br>"
|
||||
|
||||
usr << browse(output, "window=banmirrors")
|
||||
|
||||
else if(href_list["editrights"])
|
||||
if(!check_rights(R_PERMISSIONS))
|
||||
message_admins("[key_name_admin(usr)] attempted to edit the admin permissions without sufficient rights.")
|
||||
|
||||
Reference in New Issue
Block a user