Curt Posted August 27, 2010 Posted August 27, 2010 Hello, I havent released any free mods for a long while now because i've been busy with my own game, anyway i created a simplefunction where an admin can rate all players thats been online within the past 2 days with a single click. With a small bit of editing it should be able to work with any mmcode rating modification. I like to rate my active players up and this is a HUGE time saver :)... Keep in mind this code must be edited to work with your own game. just replace the values with your database values and it should work fine. The code below is a simple function not a complete php page. I simply added this function to my staff.php file. the choice is yours. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lol...i know this is a very simple modification but i figured someone might find it useful....its free so do what you want with it :P cheers Quote
Joshua Posted August 27, 2010 Posted August 27, 2010 Good small modification. No need for the $h in globals as you're not calling to it, could change the mysql_query to $db-> and remove the $c operator from globals as well :D Good job Quote
Curt Posted August 27, 2010 Author Posted August 27, 2010 thanks :) Also updated code to fix what you mentioned... Quote
Wazam Posted August 27, 2010 Posted August 27, 2010 @ Thugbattle: It's actually quite a good little update. My only concern is that your is un-secure. You might want to fix that. ;) @ Joshua: Your second part of typing. mysql_query = $db-> || $db->query = mysql_queryquery I think you'll catch on when you read your post above. ;) Quote
Curt Posted August 27, 2010 Author Posted August 27, 2010 It's actually quite a good little update. My only concern is that your is un-secure. You might want to fix that. ;) thanks i actually just made it today a little bit before i posted it here, where exactly is it unsecure ?...ive heard to always secure $_GET and $_POST and the one i use in this mod has no connectivity with the database so i didnt see the need to secure it. Other than that not sure where it would be unsecure at.. Quote
Wazam Posted August 27, 2010 Posted August 27, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Despite it has no connections with the DB, it's still needs to be secured. Your never certin' until Decio comes along. ;) EDIT: Select what's needed for the DB Query. Users is probably a big table, so you don't want to select the LEVEL - ID - HELTH for a rating. :) Quote
Curt Posted August 27, 2010 Author Posted August 27, 2010 lol...i see..thanks for the info Top post updated :) Cheers Quote
Wazam Posted August 27, 2010 Posted August 27, 2010 Looking better now, and should be faster. Good job :thumbup: 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.