Changeset 19703
- Timestamp:
- 06/30/09 15:50:30 (7 months ago)
- Files:
-
- plugins/sfCryptoCaptchaPlugin/trunk/README (modified) (3 diffs)
- plugins/sfCryptoCaptchaPlugin/trunk/config/app.yml (modified) (1 diff)
- plugins/sfCryptoCaptchaPlugin/trunk/lib/sfCryptoCaptcha.class.php (modified) (4 diffs)
- plugins/sfCryptoCaptchaPlugin/trunk/lib/validator/sfValidatorSfCryptoCaptcha.class.php (modified) (1 diff)
- plugins/sfCryptoCaptchaPlugin/trunk/package.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfCryptoCaptchaPlugin/trunk/README
r19572 r19703 88 88 The first helper displays the captcha image, the second one is the reload button (if the user can't read the picture and want to use another one). 89 89 90 >**Note**91 >If there is no image displayed, it may be because you are using a :format in your url (adding .html for example) [see the troubleshooting section below]92 93 94 90 ## Validation 95 91 … … 158 154 159 155 Each one of there images __must__ be present in each culture folder or in the main error folder. 160 By default, a french and english version is provided. You can add as many languages and needed and customize the error images in any graphic editor(Gimp, Photoshop ...) as long as it is in jpeg, png or gif format .156 By default, a french and english version is provided. You can add as many languages and needed and customize the error images in any graphic editor(Gimp, Photoshop ...) as long as it is in jpeg, png or gif format [the same as the captcha `format` option]. 161 157 162 158 ## Dependencies … … 175 171 * The pear install seems to malfunction :( 176 172 * The functionality to reuse a captcha (by saving it in clear in the user session) has been removed from the original library, it could be nice to code it back in and add an option to activate that feature - still, this is a less secure method than making a new captcha everytime. 173 * Not tested on 1.1 but it should also work correctly. 177 174 178 175 ## Troubleshooting plugins/sfCryptoCaptchaPlugin/trunk/config/app.yml
r19570 r19703 25 25 char_vertical_offset: true # add a random vertical offset to letters 26 26 #Fonts 27 char_fonts: [ luggerbu.ttf,SCRAWL.ttf,Alanden_.ttf] # the randomly used fonts to generate the characters27 char_fonts: [ luggerbu.ttf ] # the randomly used fonts to generate the characters 28 28 char_fonts_dir: '/plugins/sfCryptoCaptchaPlugin/media/fonts/' # directory containing the fonts in the symfony root directory 29 error_font: 'arial.ttf' # font used for error messages30 29 #Authorized characters 31 30 chars_used: 'ABCDEFGHKLMNPRTWXYZ234569' # characters used for random captchas without "easy" option plugins/sfCryptoCaptchaPlugin/trunk/lib/sfCryptoCaptcha.class.php
r19570 r19703 1039 1039 return true; 1040 1040 } 1041 1041 /* 1042 1042 private function generateErrorImage($error_text) 1043 1043 { … … 1061 1061 { 1062 1062 //font 1063 $this->captcha['letters'][$i]['font'] = $this->config['error_font'];1063 $this->captcha['letters'][$i]['font'] = 'arial.ttf'//$this->config['error_font']; 1064 1064 $this->captcha['letters'][$i]['font_path'] = $this->config['char_fonts_dir'].$this->captcha['letters'][$i]['font']; 1065 1065 … … 1130 1130 return $this->sendImageToBrowser(); 1131 1131 } 1132 */ 1132 1133 1133 1134 private function sendErrorImage($error_message) … … 1217 1218 $this->config['char_fonts_dir'] = sfConfig::get('app_sf_crypto_captcha_char_fonts_dir', '/plugins/sfCryptoCaptchaPlugin/media/fonts/'); // directory with the fonts 1218 1219 $this->config['char_fonts_dir'] = $root_dir.$this->config['char_fonts_dir']; 1219 $this->config['error_font'] = sfConfig::get('app_sf_crypto_captcha_error_font', 'arial.ttf');1220 1221 1220 1222 1221 //Setting authorized characters plugins/sfCryptoCaptchaPlugin/trunk/lib/validator/sfValidatorSfCryptoCaptcha.class.php
r19560 r19703 13 13 * @see sfValidatorBase 14 14 */ 15 p rotectedfunction configure($options = array(), $messages = array())15 public function configure($options = array(), $messages = array()) 16 16 { 17 17 $this->setOption('trim', true); plugins/sfCryptoCaptchaPlugin/trunk/package.xml
r19573 r19703 11 11 <active>yes</active> 12 12 </lead> 13 <date>2009-06- 26</date>14 <time> 01:41:36</time>13 <date>2009-06-30</date> 14 <time>13:29:23</time> 15 15 <version> 16 <release>0.0. 7</release>17 <api>0.0. 7</api>16 <release>0.0.8</release> 17 <api>0.0.8</api> 18 18 </version> 19 19 <stability> … … 124 124 <phprelease /> 125 125 <changelog> 126 127 <release> 128 <version> 129 <release>0.0.8</release> 130 <api>0.0.8</api> 131 </version> 132 <stability> 133 <release>beta</release> 134 <api>beta</api> 135 </stability> 136 <license uri="http://www.symfony-project.com/license">MIT license</license> 137 <license>MIT</license> 138 <date>2009-06-30</date> 139 <notes> 140 * henearkrxern: updated the validator to public instead of private to allow it's use in the action if needed - thanks to spilo101 for noticing it 141 * henearkrxern: fixed a "bug" in the symfony configuration cascade that was making the plugin behave strangely - thanks to CedCannes for noticing this and other small glitches 142 </notes> 143 </release> 126 144 <release> 127 145 <version>

