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

[TF2 Stats] With Web Ranking and Item Logger [v9.1.0]


Post New Thread Reply   
 
Thread Tools Display Modes
galadril
Senior Member
Join Date: Apr 2009
Old 06-15-2011 , 10:35   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1511

@DarthNinja

Is it possible to track the stats of shooting birds?
http://www.youtube.com/watch?v=6-hbgPzmb2U
http://wiki.teamfortress.com/wiki/Birds
__________________
galadril is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 06-15-2011 , 15:22   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1512

Quote:
Originally Posted by galadril View Post
@DarthNinja

Is it possible to track the stats of shooting birds?
http://www.youtube.com/watch?v=6-hbgPzmb2U
http://wiki.teamfortress.com/wiki/Birds
I don't think there's an event for the shooting the birds, so no.
You can't kill people with them, so you'd only be tracking dove kills to track dove kills. Plus Valve may remove them after the whole medic thing is over.

It would be possible to track them using SDK hooks, but I'd rather avoid that. At least for the moment.
__________________
DarthNinja is offline
galadril
Senior Member
Join Date: Apr 2009
Old 06-16-2011 , 03:33   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1513

Oke thanks..
Just thinking out loud :-)
__________________
galadril is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 06-20-2011 , 20:49   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1514

Is the web interface protected against SQL injection?
PAL-18 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 06-21-2011 , 05:04   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1515

Quote:
Originally Posted by PAL-18 View Post
Is the web interface protected against SQL injection?
looks like not so

player_class.php
Code:
// ...
$ppp = $_GET["ppp"];
// ...
if(empty($class))
{
	$sql .= ' ORDER BY `KILLS` DESC LIMIT '.$fromplayer.','.$ppp.' '; // HACK ME, PLEASE!!!!!11!1ONE
}
// ...

Last edited by Leonardo; 06-21-2011 at 05:14.
Leonardo is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 06-21-2011 , 14:43   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1516

Heh i figured as much.

Last edited by PAL-18; 06-22-2011 at 01:05.
PAL-18 is offline
galadril
Senior Member
Join Date: Apr 2009
Old 06-22-2011 , 04:01   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1517

Oke i've changed the $_GET 's on all the pages to also the mysql-real-escape-string function of php to prevent Sql Injection.

http://www.multiupload.com/VOPLTIFGD9


More Info:
http://php.net/manual/en/function.my...ape-string.php
__________________
galadril is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 06-22-2011 , 04:19   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1518

fix for numeric variables:
$ppp = (int)$_GET["ppp"];
$ppp = intval($_GET["ppp"]);
__________________
Leonardo is offline
galadril
Senior Member
Join Date: Apr 2009
Old 06-23-2011 , 07:06   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1519

Quote:
Originally Posted by Leonardo View Post
fix for numeric variables:
$ppp = (int)$_GET["ppp"];
$ppp = intval($_GET["ppp"]);
mysql-real-escape-string is not enough for numeric values?
__________________
galadril is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 06-23-2011 , 08:30   Re: [TF2 Stats] With Web Ranking and Item Logger [v7.8.1/v7.1.5]
Reply With Quote #1520

Quote:
Originally Posted by galadril View Post
mysql-real-escape-string is not enough for numeric values?
it's just a harder way
Leonardo 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 17:49.


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