wrx Posted February 28, 2010 Posted February 28, 2010 This will create a simple and easy to use captcha system for lite users. the example is shown using it as a security check during login process but is easily adapted to any file/form in game. ########################## Create file captcha.php ########################## You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ########################## Open login.php and find ########################## You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ########################## replace existing ########################## You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ########################## with ########################## You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This adds the captcha image and text field to your form in a simple formatted table. ########################## Open authenticate.php and find ########################## You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ########################## Above that add ########################## You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save image as captcha.jpg and upload to root dir with captcha.php Sample Output Quote
Redex Posted February 28, 2010 Posted February 28, 2010 Looking good. How many languages do you know how to code, if you don't mind me asking ? Quote
wrx Posted February 28, 2010 Author Posted February 28, 2010 Looking good. How many languages do you know how to code, if you don't mind me asking ? 5 or 6 i guess maybe more im fairly new to php as my last job was mainly VBscript,ASP creating sharepoint services and managing a intranet using SharePoint Portal Server. not missing the SPS enviroment at all either 8) Thanks jordan wrx Quote
c0rkscrew Posted March 13, 2010 Posted March 13, 2010 Nice That should come in handy in the future Quote
Redex Posted March 14, 2010 Posted March 14, 2010 I think this is in V2, i might be wrong but if that's the case it's a easy conversion ;) Quote
jds137 Posted March 14, 2010 Posted March 14, 2010 There is one in v2, but it really sucks. lol Quote
jds137 Posted March 14, 2010 Posted March 14, 2010 Would you mind looking @ my login? I am ill today, and cant think. Funny part is I never leave the house. lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
wrx Posted March 14, 2010 Author Posted March 14, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Adds the captcha to the form You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
jds137 Posted March 15, 2010 Posted March 15, 2010 I did that, and got this error, so I thought I added it wrong. "Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /data/users/jsmigle/mobslife.net/mobslife.net/public/login.php on line 167" Quote
Haunted Dawg Posted March 15, 2010 Posted March 15, 2010 Within this script: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change all instances of ' to " Quote
jds137 Posted March 15, 2010 Posted March 15, 2010 Does anyone got a sec to help me. It works, now in authenticate.php I am getting an error. Sorry to be a pain in the ass.. "Captcha Passed Warning: Cannot modify header information - headers already sent by (output started at /data/users/jsmigle/mobslife.net/mobslife.net/public/authenticate.php:29) in /data/users/jsmigle/mobslife.net/mobslife.net/public/authenticate.php on line 61" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Haunted Dawg Posted March 15, 2010 Posted March 15, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That should work. 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.