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

[ANY] Threaded Mysql Bans


Post New Thread Reply   
 
Thread Tools Display Modes
senseit
Member
Join Date: Aug 2009
Old 08-11-2012 , 01:24   Re: [ANY] Threaded Mysql Bans
Reply With Quote #51

Quote:
Originally Posted by rautamiekka View Post
Would be good if I could ban according to the ID instead of the UserID or name of a connected Player; had to manually insert the ban into db.
Using the most recent version you should be able to ban using any type. It's now using OnClientBan, so even sm_ban, etc will appear. Make sure your plugin is up to date.

In regards to the database, you are correct there is room for some optimization there in the SQL. I'll change that on the next update if there will be one.

Last edited by senseit; 08-11-2012 at 02:02.
senseit is offline
khh0315
New Member
Join Date: Sep 2009
Old 08-11-2012 , 02:41   Re: [ANY] Threaded Mysql Bans
Reply With Quote #52

i want to add sm_addban.
khh0315 is offline
Jim E. Rustler
BANNED
Join Date: Jul 2012
Old 08-11-2012 , 08:29   Re: [ANY] Threaded Mysql Bans
Reply With Quote #53

Quote:
Originally Posted by senseit View Post
next update if there will be one.
Damn, sounds like there will be very few if any updates to this in the future. I had such high hopes for it too. Back to SourceBans for me then.
Jim E. Rustler is offline
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 12-13-2012 , 02:12   Re: [ANY] Threaded Mysql Bans
Reply With Quote #54

If you could, can you please make this compatible with existing MySQL Bans tables? Make the table be named mysql_bans, rather than my_bans. Also, Even if you don't use the IP Field, could you at least have it there for compatibility sake, so I can manage the bans via SourceMod WebAdmin?
StrikerMan780 is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 12-16-2012 , 18:43   Re: [ANY] Threaded Mysql Bans
Reply With Quote #55

hi, we use this. but when we ban someone the player name is never stored in the database? is there a reason that the player_name column exists in the database if the players name is never stored in it? all other information stores fine.
thank you
lyric is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 12-18-2012 , 19:26   Re: [ANY] Threaded Mysql Bans
Reply With Quote #56

player_name isn't even stored why is that? also, it looks like the banned_by, ban_reason are suspect to sql injections which is a security issue, why is this even allowed here?

this plugin is dangerous for anyone to use, i would stay far away from it unless these issues are fixed though the author stated he doesn't care to fix the issues. can this be put in trash since it's got a sql injection problem and author don't care?
lyric is offline
Nikey646
Member
Join Date: Apr 2011
Old 12-29-2012 , 11:34   Re: [ANY] Threaded Mysql Bans
Reply With Quote #57

Quote:
Originally Posted by lyric View Post
player_name isn't even stored why is that? also, it looks like the banned_by, ban_reason are suspect to sql injections which is a security issue, why is this even allowed here?

this plugin is dangerous for anyone to use, i would stay far away from it unless these issues are fixed though the author stated he doesn't care to fix the issues. can this be put in trash since it's got a sql injection problem and author don't care?
Both ban by and reason are controlled by admins, why would you give an untrustful person admin in the first place, and what are the chances that an admin will ban for " '*Sql Delete All* " or be named that....

As for your previous post, the reason the player name isn't stored is because it gives the public a SQL Injection chance....
__________________
ğUnAUĞ UnknownAU ğUnAUĞ
A Proud Australian TFDodgeball Server!




Nikey646 is offline
ES3TH
Junior Member
Join Date: May 2012
Location: Chișinău
Old 01-16-2013 , 10:55   Re: [ANY] Threaded Mysql Bans
Reply With Quote #58

Hi, can you add the possibility to write bans into a sqlite database? I used STB2 to store temporary bans into a sqlite db. I modified it, so it can save permanent bans too, not only those up to one year as it was provided by author, but that plugin doesn't write admin, banned player name and reason of ban as your plugin which writes bans into a mysql db.
ES3TH is offline
Send a message via Yahoo to ES3TH Send a message via Skype™ to ES3TH
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-18-2013 , 23:26   Re: [ANY] Threaded Mysql Bans
Reply With Quote #59

with the help of google, I modified a little by adding multi language :

https://github.com/Owned67/MySQL_Ban

Demo :
http://blablabla.olympe.in/bans.php


If people want to improve or modify it ... join me on GitHub

There are just these two codes are not translate with no knowledge :
PHP Code:
if($currentPage>1){
                                echo 
'<a href="',$pageUrl,($currentPage-1),'">Previous</a>&nbsp;';
                            }
                            
$totalPages ceil($pageResults/$config['perpage']);
                            for(
$i=1;$i<=$totalPages;++$i){
                                echo 
'<a href="',$pageUrl,$i,'">',$i,'</a>&nbsp;';
                            }
                            if(
$currentPage<$totalPages){
                                echo 
'<a href="',$pageUrl,($currentPage+1),'">Next</a>&nbsp;'

Last edited by eric0279; 01-18-2013 at 23:50.
eric0279 is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-19-2013 , 11:32   Re: [ANY] Threaded Mysql Bans
Reply With Quote #60

banned_by result hostname :s

How to modifiy for admin user ?
eric0279 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 23:45.


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