github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

neotohin / Captcha-library-for-CodeIgniter

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

It's a CodeIgniter Library for Captcha Generation. With additional Flexibility . — Read more

  cancel

tohin.wordpress.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Readme file 
neotohin (author)
Sun Sep 13 03:23:42 -0700 2009
commit  69dab9b27ee449da3e9601cc6e332eca045d6d00
tree    4736b0c33a84bbc2eb04a04aae137a5ef8669373
parent  b3ec34e59e593fe57616a84d93631cfd1782cc07
Captcha-library-for-CodeIgniter /
name age
history
message
file .project Sun Sep 13 03:06:04 -0700 2009 workable version :D [neotohin]
file README.txt Sun Sep 13 03:23:42 -0700 2009 Readme file [neotohin]
directory application/ Sun Sep 13 03:06:04 -0700 2009 workable version :D [neotohin]
directory fonts/ Sun Sep 13 03:06:04 -0700 2009 workable version :D [neotohin]
README.txt
  Original Source : Pavel Tzonkov <pavelc@users.sourceforge.net>
  Source Link : http://gscripts.net/free-php-scripts/Anti_Spam_Scripts/Image_Validator/details.html
  
  CodeIgniter library created by : 
    Mohammad Amzad Hossain
    http://tohin.wordpress.com
    
  
  License: Have Fun 
  
  # How To Use In CodeIgniter 
  
    // First Store Some fonts in fonts folder 
    // You can choose a font_name by overriding default value or this 
    // will randomly select a font.
    
  
    // In Controller 
    
      $this->load->library('antispam');
      $configs = array(
          'img_path' => './captcha/',
          'img_url' => base_url() . 'captcha/',
          'img_height' => '50',
        );      
      $captcha = $this->antispam->get_antispam_image($configs);
      
    // $captcha is an array exmaple
    //  array('word' => 'sfsdf', 'time' => time , 'image' => '<img .... ');
    
    
    // In View Print the $captcha['image'] to show captcha image.
    
    
  // Future Extension 
  
    Generated Captcha images always stored in captcha folder which is memory consuming
    unless you clear them out manually. 
    
    Looking for a feasible idea to delete them all.
    
    
Available Parameters FOR Configs: 

  'img_url'     =>  Image URL 
  'img_path'    => Image PATH
  'img_width'    => Image Width
  'img_height'   => Image Height

  'font_name'    => Font Name example Test.ttp
  'font_path'   => FONT PATH
  
  'font_size'    =>   15
  
  'char_set'     => "ABCDEFGHJKLMNPQRSTUVWXYZ2345689";
  'char_length'   =>  integer captcha word length in character
  
  'char_color'   => 
            Example :   "#880000,#008800,#000088,#888800,#880088,#008888,#000000";  
            This colors will be randomly use for character coloring.
  
  
  
  'line_count'  =>  10;    Number of lines to Create Noise  
  'line_color'  => 
            Example: "#DD6666,#66DD66,#6666DD,#DDDD66,#DD66DD,#66DDDD,#666666"
            This colors will be randomly use for line coloring.
  
   
  'bg_color'    =>  '#FFFFFF';    Captcha Image Background Color
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server