Jump to content
MakeWebGames

Forum Warn Players Via Events!!


TheMasterGeneral

Recommended Posts

This mod can be used to warn forum posters for doing actions. The warning will be sent to their events. This mod will not auto-ban, its just a way to warn users. Please note, that this is my first PHP mod, so I expect there to be newbie mistakes and overall lack of security. Please don't burn me at the stake. D:

Everything can be found in the Pastebin.

Images

Input

Warning

Events

Staff Logs

Once again, this is my first mod. Hope you enjoy.

Link to comment
Share on other sites

Nice.

But

1.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 
This isn't a valid check. What if (for some reason), I delete user id 3, and a new user signs up at user id 4 - but the count will be 3 (because there are 3 rows).

 

2.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 
Why are you using floatval?! ID's have never been floats, always integers.
 
Something like this would be much better;

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

3.

 

You're also not sanitizing
$_POST['Reason']
Edited by sniko
Link to comment
Share on other sites

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