Raised This Month: $12 Target: $400
 3% 

Advanced Bans (Real Time) by Exolent


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-31-2009 , 14:06   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #391

Quote:
Originally Posted by alexinno View Post
This time it's working
just one thing , if you created allready the table in mysql with the old one chage
Code:
#define KEY_NAME        "victim_name"
#define KEY_STEAMID        "victim_steamid"
with
Code:
#define KEY_NAME        "name"
#define KEY_STEAMID        "steamid"
You can't do that because "name" is a reserved SQL term.
Also, with my previous versions, the table couldn't have been created because the syntax was wrong or the database couldn't be connected.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
alexinno
Senior Member
Join Date: Mar 2007
Location: C:\
Old 05-31-2009 , 16:02   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #392

Quote:
Originally Posted by alexinno View Post
yes, it's working now just a little anoying error , i don't know why it shows this because the table is there , i think it's trying to create it one more time or something like that

Code:
L 05/29/2009 - 21:26:48: [advanced_bans_sql.amxx] Failed to create table for ban
s: You have an error in your SQL syntax; check the manual that corresponds to yo
ur MySQL server version for the right syntax to us
i don't know then how the table was created but it was there!



I attached a little php script for advanced bans , it is very simple so don't expect much.
If anybody wants to update it or add any new functions feel free to do so.

Install is very simple

Unzip the archive , change the settings in config.php then upload the files to your webserver and you're done

Screen:
http://img194.**************/my.php?image=banlist.png

07.08.2011
- Did some cleanup on the web interface requested by modernatur
02.10.2012
- Added missing error function reported by guipatinador
27.12.2012
- More cleanup: removed inline styling
- Fixed sql injection vulnerability.
[IMG]http://img194.**************/my.php?image=banlist.png[/IMG]
Attached Files
File Type: zip advanced_bans_web.zip (40.8 KB, 529 views)
__________________

[IMG]http://img188.**************/img188/5787/banner2rcw.png[/IMG]

Last edited by alexinno; 01-21-2013 at 03:52. Reason: updated web interface
alexinno is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-31-2009 , 19:34   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #393

Try this version.
It uses threaded queries which will be executed with the server, instead of at the exact time they were executed.
Attached Files
File Type: sma Get Plugin or Get Source (advanced_bans_sql.sma - 3076 views - 52.6 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
alexinno
Senior Member
Join Date: Mar 2007
Location: C:\
Old 06-01-2009 , 09:25   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #394

Quote:
Originally Posted by Exolent[jNr] View Post
Try this version.
It uses threaded queries which will be executed with the server, instead of at the exact time they were executed.
works
__________________

[IMG]http://img188.**************/img188/5787/banner2rcw.png[/IMG]

Last edited by alexinno; 06-01-2009 at 09:28.
alexinno is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-01-2009 , 14:54   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #395

Quote:
Originally Posted by alexinno View Post
works
Thanks for being my tester
You'd receive lots of +karma if it still existed
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
alexinno
Senior Member
Join Date: Mar 2007
Location: C:\
Old 06-01-2009 , 18:12   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #396

you're wellcome & thx for taking the time to do this sql thing it's really hepful for those who run more then just one server (and not just them)
__________________

[IMG]http://img188.**************/img188/5787/banner2rcw.png[/IMG]
alexinno is offline
Kukulis :*
Member
Join Date: Apr 2009
Location: www.godlike.lt
Old 06-02-2009 , 11:54   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #397

Lithuanian translation

Code:
[lt]
AB_BAN_INFORMATION = Bano Informacija
AB_NAME = Vardas
AB_IP = IP
AB_STEAMID = SteamoID
AB_REASON = Pirezastis
AB_BAN_LENGTH = Bano Ilgis
AB_UNBAN_TIME = Atbaninimo Laikas
AB_ADMIN_NAME = Admino Vardas
AB_ADMIN_STEAMID = Admino SteamoID
AB_WEBSITE = Jei jus manote, kad jus buvote uzbanintas neteisingai, praneskite visa tai musu svetainei:
AB_NOT_AUTHORIZED = Tikslas neigaliojo su serveriu! Negalima uzbaninti!
AB_ALREADY_BANNED_STEAMID = Sio zaidejo SteamoID jau yra uzbanintas!
AB_ALREADY_BANNED_IP = Sio zaidejo IP jau yra uzbanintas!
AB_PERMANENT_BAN = Nuolatinis Banas
AB_INVALID_STEAMID = Blogas SteamoID!
AB_VALID_STEAMID_FORMAT = Teisingas formatas: STEAM_0:X:XXXXXXX
AB_INVALID_IP = Blogas IP!
AB_NOT_IN_BAN_LIST = Negalejo surasti %s terpt banu saraso!
AB_NO_BANS = Nera nieko uzbaninto siuo metu.
AB_BAN_LIST_NUM = Uzbanintu zaideju sarasas %i - %i.
AB_BAN_LIST_NEXT = Naudok amx_banlist %i pamatyti kitiems zmonems sarase.
AB_MAX_BAN_TIME = Maksimalus leidziamas bano laikas yra %i.
Kukulis :* is offline
Send a message via Skype™ to Kukulis :*
Thrill
Member
Join Date: Apr 2007
Old 06-04-2009 , 10:20   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #398

I'm requesting this for amx_voteban command: amx_voteban "id/name" "minutes", hope you will consider it! When i voteban ppl i dont want to permanently ban them each time.
Thrill is offline
Meathead~MBG~
Junior Member
Join Date: Mar 2009
Old 06-05-2009 , 01:26   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #399

Running this plugin in dod, amx_unban not working for me.
__________________
Meathead~MBG~ is offline
alexinno
Senior Member
Join Date: Mar 2007
Location: C:\
Old 06-05-2009 , 04:28   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #400

Quote:
Originally Posted by Meathead~MBG~ View Post
Running this plugin in dod, amx_unban not working for me.
if remember correctly it doesn't print anything in console when you use the unban command , did you checked the banlist to see if the banned steamid wasn't removed ?
__________________

[IMG]http://img188.**************/img188/5787/banner2rcw.png[/IMG]
alexinno is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode