Development

Changeset 19703

You must first sign up to be able to contribute.

Changeset 19703

Show
Ignore:
Timestamp:
06/30/09 15:50:30 (7 months ago)
Author:
henearkrxern
Message:

Updated to v0.0.8

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfCryptoCaptchaPlugin/trunk/README

    r19572 r19703  
    8888The 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). 
    8989 
    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  
    9490## Validation 
    9591 
     
    158154 
    159155Each 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
     156By 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]
    161157 
    162158## Dependencies 
     
    175171 * The pear install seems to malfunction :( 
    176172 * 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. 
    177174 
    178175## Troubleshooting 
  • plugins/sfCryptoCaptchaPlugin/trunk/config/app.yml

    r19570 r19703  
    2525    char_vertical_offset:             true                # add a random vertical offset to letters 
    2626  #Fonts 
    27     char_fonts:                       [luggerbu.ttf,SCRAWL.ttf,Alanden_.ttf] # the randomly used fonts to generate the characters 
     27    char_fonts:                       [ luggerbu.ttf ] # the randomly used fonts to generate the characters 
    2828    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 messages 
    3029  #Authorized characters 
    3130    chars_used:                       'ABCDEFGHKLMNPRTWXYZ234569'  # characters used for random captchas without "easy" option 
  • plugins/sfCryptoCaptchaPlugin/trunk/lib/sfCryptoCaptcha.class.php

    r19570 r19703  
    10391039    return true; 
    10401040  } 
    1041    
     1041  /* 
    10421042  private function generateErrorImage($error_text) 
    10431043  { 
     
    10611061    { 
    10621062      //font 
    1063       $this->captcha['letters'][$i]['font'] = $this->config['error_font']; 
     1063      $this->captcha['letters'][$i]['font'] = 'arial.ttf'//$this->config['error_font']; 
    10641064      $this->captcha['letters'][$i]['font_path'] = $this->config['char_fonts_dir'].$this->captcha['letters'][$i]['font']; 
    10651065       
     
    11301130    return $this->sendImageToBrowser(); 
    11311131  } 
     1132  */ 
    11321133   
    11331134  private function sendErrorImage($error_message) 
     
    12171218    $this->config['char_fonts_dir'] = sfConfig::get('app_sf_crypto_captcha_char_fonts_dir', '/plugins/sfCryptoCaptchaPlugin/media/fonts/'); // directory with the fonts 
    12181219    $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      
    12211220     
    12221221    //Setting authorized characters 
  • plugins/sfCryptoCaptchaPlugin/trunk/lib/validator/sfValidatorSfCryptoCaptcha.class.php

    r19560 r19703  
    1313   * @see sfValidatorBase 
    1414   */ 
    15   protected function configure($options = array(), $messages = array()) 
     15  public function configure($options = array(), $messages = array()) 
    1616  { 
    1717    $this->setOption('trim', true); 
  • plugins/sfCryptoCaptchaPlugin/trunk/package.xml

    r19573 r19703  
    1111  <active>yes</active> 
    1212 </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> 
    1515 <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> 
    1818 </version> 
    1919 <stability> 
     
    124124 <phprelease /> 
    125125 <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> 
    126144  <release> 
    127145   <version> 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.