Jump to content
MakeWebGames

Recommended Posts

Posted

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

Guest Drizzle
Posted

does pregmatch also block any variations of them? like HTTP:// or htTp or HtTp or just http:// just wondering

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

  • 11 months later...

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