digizijn / captcha-extended Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Captcha Extended ================ Captcha Extended is an extension written for Yii framework. It enhances original captcha code delivered along with the framework. Features ======== - supports modes: logical, words, mathverbal, math, default - supports extended characters latin1, latin2 (utf-8) including middle- east- european and cyrillyc characters - implements masking elements: dots density, through lines, fillSections, font color varying. INSTALLATION ============ 1) Unzip CaptchaExtended.zip files into ../protected/extensions/captchaExtended/*.* 2) Register class paths to [CaptchaExtendedAction] and [CaptchaExtendedValidator], e.g. in components/controller.php: public function init(){ // register class paths for extension captcha extended Yii::$classMap = array_merge( Yii::$classMap, array( 'CaptchaExtendedAction' => Yii::getPathOfAlias('ext.captchaExtended').DIRECTORY_SEPARATOR.'CaptchaExtendedAction.php', 'CaptchaExtendedValidator' => Yii::getPathOfAlias('ext.captchaExtended').DIRECTORY_SEPARATOR.'CaptchaExtendedValidator.php' )); } 3) Define action in controller, e.g. SiteController: public function actions(){ return array( 'captcha'=>array( 'class'=>'CaptchaExtendedAction', ), ); } 4) Define client validation in model::rules(): public function rules(){ return array( array('verifyCode', 'CaptchaExtendedValidator', 'allowEmpty'=>!CCaptcha::checkRequirements()), ); } 5) If needed, collect localized strings via CLI command "yiic message messages/config.php" and translate captcha related strings. 6) If needed, you can tune captcha modes and visibility options: - In "words" mode, you can place your own file [words.txt] or [words.yourlanguage.txt] - If needed, you can .. -> set the dots density [0-100], -> the number of through lines [0-] -> the number of fillSections [0-], -> font and background colors 7) Test & enjoy! ============================= Please report bug to lubosdz AT hotmail DOT com. Thanx Lubos 29/08/2011 Bratislava, Slovakia
sometimes will erros
this code
$scale = min(($this->width - $this->padding * 2) / $w,($this->height - $this->padding * 2) / $h);
errs:"Division by zero "
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.