AOA Forums AOA Forums AOA Forums Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA Forums > Software > Programming and Assembly Language

Programming and Assembly Language Please read this Topic's rules!!


Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 9th January, 2008, 09:51 AM
force123's Avatar
Member
 
Join Date: July 2007
Posts: 166

captcha

hi .

does AOA registeration captcha image use php ?

if so , can you tell me :
1.how to rotate EACH letter or number ?
2. how to set background image ? (all i use is solid colors)
3.how to set color for EACH letter or number?

can anyone show some example codes ?

thanks in advance

(if not uses php , just some tip on how to do it will be so helpful)
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 9th January, 2008, 10:34 AM
Chief Systems Administrator
 
Join Date: September 2001
Location: Europe
Posts: 13,075

It does indeed use PHP, together with GD to do graphical manipulation.

There are a number of example scripts already on the 'net - Google php captcha to find some of them. I can't provide details for AOA, as the code itself is under license. If you wish to write your own captcha code, then it might be worth looking at pages like Breaking a Visual CAPTCHA to get an idea of what's breakable.
__________________

Last edited by Áedán; 9th January, 2008 at 10:37 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 9th January, 2008, 10:50 AM
force123's Avatar
Member
 
Join Date: July 2007
Posts: 166

thanks for the links.
i can write mu own captcha.

i don't want the code under licence.
in the second link you posted, the are examples , almost all of them use an image for their background. i don't know how can i set an image for my captcha background . or rotate just one letter or digit or change each color ...
i'll keep searching , most i found on the net was each making captchas.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 9th January, 2008, 11:03 AM
force123's Avatar
Member
 
Join Date: July 2007
Posts: 166

i just download a captcha image zip file, and looked into his code :


ImageCreateFromJPG("image.jpg");

now must search for letter rotating and color .
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 9th January, 2008, 11:30 AM
force123's Avatar
Member
 
Join Date: July 2007
Posts: 166

find it AALLL !!!!

thanks aedan!

BTW , that breaking link of captcha is using a dictionary to match similar words . all of their exampls are words NOT CODES .
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 9th January, 2008, 11:34 AM
Chief Systems Administrator
 
Join Date: September 2001
Location: Europe
Posts: 13,075

It might be possible to render a letter to an image, distort that image and then overlay the distorted image on top of the background. That'd get you one letter. Rinse and repeat for other letters.

If you're using GD:
imagecopymerge allows you to overlay one image onto another existing image, and to specify where the copy should sit - it also honours alpha channel.)

imagerotate allows you to rotate the image through 360 degrees (in 2D space, not 3D)

imageconvolution allows you to do matrix transforms on an image.

imageresize can be used to distort the dimensions of an image.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 9th January, 2008, 04:21 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Actually, we use ImageMagick, not GD.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 9th January, 2008, 04:39 PM
Chief Systems Administrator
 
Join Date: September 2001
Location: Europe
Posts: 13,075

Which is even better...
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:53 PM.


Copyright ©2001 - 2023, AOA Forums
Don't Click Here Don't Click Here Either

Search Engine Friendly URLs by vBSEO 3.3.0