Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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

Posted

@ 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. ;)

Posted
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..
Posted

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. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...