WickedShell / echelon

http://echelon.bigbrotherbot.net
14 stars 7 forks source link

GUID External Ban Check #40

Open WickedShell opened 13 years ago

WickedShell commented 13 years ago

Link offsite GUID check's based on type of game, so as to better hit appropirate bans.

Disable the link for games that have no known external banlists. (aka altitude)

FrikFry commented 13 years ago

This is some code for PBBans.

if($bans = simplexml_load_file('http://www.pbbans.com/xml/mbi/search/guid/'.$guid.'.xml')) { if($bans->xpath('/PBBansMBI/Error') == null) { $banlink = $bans->xpath('/PBBansMBI/Ban/GeneralInfo/BanLink'); echo '
This guid has been banned on PBBans'; } }

WickedShell commented 13 years ago

I thought about doing it like that before, but in the end I decided this was a bad idea, as it ties every clientdetails page to the loading and parseing of an external server page, which takes all control over performance away from the echelon server, and makes clientdetails much slower.

What I want to do is either get a clientside javascript to do the load/check, or a colorbox check. I'm not sure which way to go...