Jump to content
MakeWebGames

Recommended Posts

Posted

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

photo-73-1e41d109.jpg

 

Sample Output

photo-72-eb72d39f.jpg

Posted
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

  • 2 weeks later...
Posted

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.

Posted

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.

Posted

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"

Posted

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.

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