Changeset 13545

Show
Ignore:
Timestamp:
11/22/07 11:07:39 (1 year ago)
Author:
tepehe
Message:

Changed parameters in order to fix malformed image. Added documentation to code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/MidCOM_2_8/midcom.helper.datamanager2/exec/captcha.php

    r13539 r13545  
    3838); 
    3939 
    40 // Generate a new Text_CAPTCHA object, Image driver 
     40/* Generate a new Text_CAPTCHA object, Image driver 
     41 * This is working at least with Text_CAPTCHAS latest alpha version. Older versions 
     42 * give missing font error 
     43 */ 
     44 
    4145$captcha = Text_CAPTCHA::factory('Image'); 
    42 //$result = $captcha->init($width, $height, $passphrase, $options); 
    43 $result = $captcha->init($height, $width, $passphrase, $options); 
     46$result = $captcha->init($width, $height, $passphrase, $options); 
     47// $result = $captcha->init($height, $width, $passphrase, $options); 
     48 
    4449if (PEAR::isError($result)) 
    4550{