Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixes by NY
#6
Url disputing: well urls should only be alphanumerical only. since it uses that for slugs I would assume that.

Checking files: yes, its safer for different types of servers as well since the function basename works differently on most.

Username dispute: Its for me personally most sites do it anyway, lastfm, myspace, twitter, ect. It's not a security issue on the username, the seperation part with parenthesis is more secure coding at least.

The huge function its a great function that simplifies having thirty different alpha[name here] check functions into one. It can be used throughout the whole script to secure more things and probably is one of the best functions I've made. I implemented it into codeigniter, cake, symphony, it's universally a great function that should be fundamentally in the top ten of any php programmer.

Examples:
Code:
if(!alpha($username)){ $error = "username must be alphanumeric"; }
if(!alpha($number, 'numeric')){ $error = $thats not a valid number, negative numbers do not apply."; }

Its just a great function. Don't throw away the rest for one thing, they could be used for something else without having to create another function.
http://nijikokun.com
random stuff. idk.
Reply


Messages In This Thread
Fixes by NY - by Nijikokun - 2010-01-08, 03:13:48
Fixes by NY - by Nijikokun - 2010-01-08, 03:28:01
Fixes by NY - by Nijikokun - 2010-01-08, 03:35:04
Fixes by NY - by Nijikokun - 2010-01-08, 04:10:01
Fixes by NY - by Zegnåt - 2010-01-08, 05:29:27
Fixes by NY - by Nijikokun - 2010-01-08, 06:00:08
Fixes by NY - by Nijikokun - 2010-01-08, 06:32:37
Fixes by NY - by ccagle8 - 2010-01-08, 11:41:47
Fixes by NY - by ccagle8 - 2010-01-08, 11:44:19
Fixes by NY - by Nijikokun - 2010-01-08, 12:59:43
Fixes by NY - by Zegnåt - 2010-01-08, 19:48:27
Fixes by NY - by Nijikokun - 2010-01-09, 02:53:56



Users browsing this thread: 1 Guest(s)