Changeset 3030

Show
Ignore:
Timestamp:
07/10/2008 09:47:51 AM (5 months ago)
Author:
OscarB
Message:

minor tweak and setting copyright property

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Captcha/Alpha.php

    • Property copyright set to Copyright (c) 2007-2008 Kohana Team
    r3029 r3030  
    5959                        $y = Captcha::$config['height'] / 2 + ($box[2] - $box[5]) / 4; 
    6060 
    61                         // Draw "ghost" alphabetic character 
    62                         $text_color = imagecolorallocatealpha($this->image, mt_rand($color_limit + 8, 255), mt_rand($color_limit + 8, 255), mt_rand($color_limit + 8, 255), mt_rand(60, 120)); 
    63                         $char = substr($chars, mt_rand(0,14), 1); 
    64                         imagettftext($this->image, $size, ($angle + (mt_rand(5,10))), ($x - (mt_rand(5,10))), ($y + (mt_rand(5,10))), $text_color, Captcha::$config['font'], $char); 
    65  
    6661                        // Draw captcha text character 
    6762                        // Allocate random color, size and rotation attributes to text 
     
    7065                        // Write text character to image 
    7166                        imagefttext($this->image, $size, $angle, $x, $y, $color, Captcha::$config['font'], Captcha::$answer[$i]); 
     67 
     68                        // Draw "ghost" alphabetic character 
     69                        $text_color = imagecolorallocatealpha($this->image, mt_rand($color_limit + 8, 255), mt_rand($color_limit + 8, 255), mt_rand($color_limit + 8, 255), mt_rand(60, 120)); 
     70                        $char = substr($chars, mt_rand(0,14), 1); 
     71                        imagettftext($this->image, $size, ($angle + (mt_rand(5,10))), ($x - (mt_rand(5,10))), ($y + (mt_rand(5,10))), $text_color, Captcha::$config['font'], $char); 
     72 
    7273                } 
    7374