Changeset 3444
- Timestamp:
- 10/29/10 17:08:55 (13 years ago)
- Location:
- branches/2.2
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/phpgwapi/templates/default/login_default.php
r3437 r3444 422 422 { 423 423 $aux_captcha = '<div class="login_label" > 424 <img src="./security/captcha.php" title="'.lang('Security code').'" alt="'.lang('Security code').'" style=" width:60;"><br/>424 <img src="./security/captcha.php" title="'.lang('Security code').'" alt="'.lang('Security code').'" style="position:static;"><br/> 425 425 <input class="input" type="text" maxlength="50" size="20" name="codigo" id="codigo" value="" > 426 426 </div>'; -
branches/2.2/security/captcha.php
r3437 r3444 83 83 $image = imagecreate($imagelength, $imageheight); 84 84 $bgcolor = imagecolorallocate($image, 146, 176, 212); 85 $stringcolor = imagecolorallocate($image, 0, 0, 155);85 $stringcolor = imagecolorallocate($image, 0, rand(0,100), rand(0,155)); 86 86 $linecolor = imagecolorallocate($image, 0, 0, 0); 87 imagettftext($image, 2 5, -4, 8, 25,87 imagettftext($image, 20, rand(-4,4),8,30, 88 88 $stringcolor, 89 89 $this->Font, 90 90 $this->CaptchaString); 91 91 imagecolortransparent($image,$bgcolor); 92 93 94 $src = imagecreatefrompng('captcha_images/img00'.rand(1,4).'.png'); 95 imagecopymerge($image, $src, 0, 0, 0, 0, 151, 37, 25); 96 92 97 switch ($this->ImageType) 93 98 {
Note: See TracChangeset
for help on using the changeset viewer.