Jordan Palmer Posted March 20, 2010 Posted March 20, 2010 Ok, Well basically Webster Tried too create this and basically he couldn't and well I liked the basic idea so I went along and create a version, This isn't taken from his script, I've purely coded this, With help from notepad ++ Whats this mod do?; This allows current staff member's to resign, This make's them give a reason, The reason then checks if there's links in the reason supplied, and if there is an link, it'll error and the staff member will have to re do his reason until he gets it right without trying to spam/advertise This then logs the time they resigned and the reason the supplied, So you know why everyone's resigning from staff, So issue's can be resolved alot quicker, This also the IP, So that if a user says it wasn't me blah blah, You can then check what IP signed off as staff What's this consist off?; 1 PHP File 1 SQL One edit too staff_logs.php Anyway here goes, I think it's pretty well secured, However someone could spot an vulnerability, If they do either supply a fix or tell me and I'll sort it out Call this resign.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SQL; [mysql]CREATE TABLE IF NOT EXISTS `resign_log` ( `id` int(11) NOT NULL auto_increment, `user` int(11) NOT NULL default '0', `time` int(11) NOT NULL default '0', `reason` varchar(255) NOT NULL default '', `ip` varchar(15) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;[/mysql] Staff logs edits; Case; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Function; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I don't think I've missed anything, I won't supply screen shots as I've already stated what it does and what not so yeah Quote
CJ - Twitch Posted March 21, 2010 Posted March 21, 2010 It is a very good mod. :) I'm using this. Quote
Guest Drizzle Posted March 21, 2010 Posted March 21, 2010 does pregmatch also block any variations of them? like HTTP:// or htTp or HtTp or just http:// just wondering Quote
CrazyT Posted March 22, 2010 Posted March 22, 2010 does pregmatch also block any variations of them? like HTTP:// or htTp or HtTp or just http:// just wondering Well the way he is doing it it would only match lower case, if you wanted to match upper case and lower case you would need to change this line: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to this line: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thanks :) Quote
Djkanna Posted March 22, 2010 Posted March 22, 2010 And to explain "i" on the end means ignore case :) Quote
Jordan Palmer Posted March 22, 2010 Author Posted March 22, 2010 Thank's to both off you for the little addition and the explanation, I wasn't really thinking off that at the time xD Quote
MrEvilChaos Posted March 16, 2011 Posted March 16, 2011 There is a lot to be fixed in here and I have those fixes Quote
MrEvilChaos Posted March 16, 2011 Posted March 16, 2011 Nvm I can't read names -.- I feel stupid now 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.