TheMasterGeneral Posted September 16, 2014 Share Posted September 16, 2014 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. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted September 16, 2014 Share Posted September 16, 2014 http://pastebin.com/7tfTe0kJ thats a little bit better. Also you can use the user_dropdown function if you would like instead of putting in a users id Quote Link to comment Share on other sites More sharing options...
sniko Posted September 16, 2014 Share Posted September 16, 2014 (edited) 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 September 16, 2014 by sniko Quote Link to comment Share on other sites More sharing options...
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.