Guest Sniko` Posted December 28, 2008 Posted December 28, 2008 Hey All, Only a small thing, but it helps Magictallguy secured this for me i just added the event to admins 1 and 2 preport.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I only did this because when my game was kind of popular i didnt check the player reports Thanks Sniko` Quote
jds137 Posted December 28, 2008 Posted December 28, 2008 Re: [Mccodes Version 2] Player Report Fatal error: Call to undefined function clean() in /home/ml/public_html/preport.php on line 7 I added it, and did not get any events. Also I removed the word clean.. Quote
Guest Sniko` Posted December 28, 2008 Posted December 28, 2008 Re: [Mccodes Version 2] Player Report Oh it worked for me try this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Haunted Dawg Posted December 28, 2008 Posted December 28, 2008 Re: [Mccodes Version 2] Player Report he does not have the function clean()... Quote
jds137 Posted December 30, 2008 Posted December 30, 2008 Re: [mccodes v2] Player Report Function clean, I dont have that. Would anyone be willing to explain what it is? Quote
Haunted Dawg Posted December 30, 2008 Posted December 30, 2008 Re: [mccodes v2] Player Report It secures what ever part they are using.. Add this to your globals.php: function clean($string) { $var = htmlentities(mysql_real_escape_string(trim($string))); return $var; } I am sure there one has more but i just put that little bit there. Quote
Karlos Posted December 30, 2008 Posted December 30, 2008 Re: [mccodes v2] Player Report Add this to your globals.php: just do global_func.php :wink: Quote
jds137 Posted December 30, 2008 Posted December 30, 2008 Re: [mccodes v2] Player Report It worked like a charm. How could we go about adding a date to this? I know it would be helpfull in making sure reports are current. Quote
Haunted Dawg Posted December 30, 2008 Posted December 30, 2008 Re: [mccodes v2] Player Report Add this to your globals.php: just do global_func.php :wink: Or that. Quote
Karlos Posted December 30, 2008 Posted December 30, 2008 Re: [mccodes v2] Player Report It worked like a charm. How could we go about adding a date to this? I know it would be helpfull in making sure reports are current. unix_timestamp() ? then you get a time aswell. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.