Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Detection of Blank Human Verification Images
Users Browsing Forum
No Members and 1 Guests

Detection of Blank Human Verification Images  This thread currently has 443 views. Print
1 Pages 1 Recommend Thread
moondog
March 7, 2007, 8:55am Report to Moderator Report to Moderator
E-Blah Member
Posts: 8
Posts Per Day: 0.01
Time Online: 4 hours 23 minutes
Hello. What do you think about the ability for E-Blah to detect issues with the Human Verification Images?

My suggestion stems from a solved issue that I posted about in the support forum regarding the creation of Human Verification Images which contained a grid, but no text. The details of the fix have been posted there, but here I would like to expound on how to detect this issue.

The documentation on CPAN for the GD::SecurityImage module lists a method called gdbox_empty() which they suggest may be used in troubleshooting path issues (containing spaces, etc.). However, it appears as though gdbox_empty() can troubleshoot libgd errors as well.

gdbox_empty() must be called after create(). Line 164 of /forum/Code/Register.pl (v.10.2.5) is
Code
$image->create(ttf,rect);

When troubleshooting, I made it the following
Code
$ebout .= "\n\n<!-- Empty Image: \"$@\" -->\n\n" if( $image->gdbox_empty() );


That's not the cleanest way, but it allowed me to look for an HTML comment that contained any errors. Should you choose to catch this very non-frequent problem, I would suggest something like an e-mail or warning to the forum administrator. Maybe this can be tested during setup, or maybe it can be tested when enabling the option for Human Verification Images.
Logged Offline
Private Message Private message
Justin
March 7, 2007, 4:27pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
I will add it to my list.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 1
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Detection of Blank Human Verification Images