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

[ANY] Map Reporter


Post New Thread Reply   
 
Thread Tools Display Modes
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 03-07-2012 , 14:18   Re: [ANY] Map Reporter
Reply With Quote #11

I would like to see the player locations and the option in the menu, that would be great if possible.
__________________
Arguing with a fool only proves there are two
snelvuur is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-08-2012 , 20:28   Re: [ANY] Map Reporter
Reply With Quote #12

I'm unapproving this until the author fixes the potential SQL injection that is possible because the comment string is not escaped.

Anyone running the plugin should remove it.
__________________
DarthNinja is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 03-09-2012 , 09:39   Re: [ANY] Map Reporter
Reply With Quote #13

Updated 1.3 fixed all problems and darthninjas requestes
ecca is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-09-2012 , 10:34   Re: [ANY] Map Reporter
Reply With Quote #14

I'll approve this once these changes are made:
  • Your bool on line 15 isn't needed, you can just check if(db == INVALID_HANDLE).
    This will also have the side effect of having the plugin fall back to file logging if the connection is dropped.
  • Your if statement on line 51 should be trashed and the connection code moved to the if statement on line 35.
  • Your cvar check on line 45 will always return true, because calling it in OnPluginStart doesn't give it an option to be changed.
    You should ether check it right before printing the message, or hook the cvar for changes and set a global bool to toggle the advert.
    Also you should be using GetConVarBool not Int.
  • You should also escape szMapName, although that isn't nearly as dangerous as szComment.
  • Your escaped string sizes should be larger then your un-escaped ones. You risk overflowing the string otherwise.
  • Your insert string is also too small since it could be as large as 445 characters if all your other strings are filled (even before what I said about the escaped strings).
That's all I see at the moment.

__________________
DarthNinja is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 03-09-2012 , 10:48   Re: [ANY] Map Reporter
Reply With Quote #15

Updated 1.4, fixed darthninjas stuff
ecca is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-09-2012 , 14:38   Re: [ANY] Map Reporter
Reply With Quote #16

Quote:
Originally Posted by ecca View Post
Updated 1.4, fixed darthninjas stuff
It looks like you forgot to upload the plugin file

By the way: You don't have to retain the old versions (and it's probably less confusing if you only have the latest posted).
__________________
DarthNinja is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 03-09-2012 , 16:26   Re: [ANY] Map Reporter
Reply With Quote #17

Uploaded file, forgotted to press upload :O
ecca is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-31-2012 , 00:23   Re: [ANY] Map Reporter
Reply With Quote #18

Version 1.4 looks fine; approved.

Some suggestions:
  • You could check and log sql errors in your SQL_Insert callback. (If const String:error isn't empty, log it).
  • Your GetConVarInt in RoundStart should really be a GetConVarBool.


__________________
DarthNinja is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 03-31-2012 , 08:18   Re: [ANY] Map Reporter
Reply With Quote #19

Updated 1.5 fixed error logs on the insert query

also added det getconvarbool instead
ecca is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-17-2012 , 21:09   Re: [ANY] Map Reporter
Reply With Quote #20

I think you should add a spam protection. A player should report a map once.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
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 07:16.


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