Changeset 26554 for extensions/CryptograPHP/securimage/securimage_show.php
- Timestamp:
- Jan 9, 2014, 1:36:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/securimage/securimage_show.php
r19428 r26554 60 60 } 61 61 62 foreach (array(' image_bg_color','text_color','line_color','noise_color') as $color)62 foreach (array('bg_color','text_color','line_color','noise_color') as $color) 63 63 { 64 64 if ($conf['cryptographp'][$color] == 'random') $conf['cryptographp'][$color] = randomColor(); … … 75 75 $img->image_height = $conf['cryptographp']['height']; 76 76 $img->perturbation = $conf['cryptographp']['perturbation']; 77 $img->image_bg_color = new Securimage_Color('#'.$conf['cryptographp']['image_bg_color']);78 77 $img->text_color = new Securimage_Color('#'.$conf['cryptographp']['text_color']); 79 78 $img->num_lines = $conf['cryptographp']['num_lines']; … … 83 82 $img->code_length = $conf['cryptographp']['code_length']; 84 83 85 $img->show(); 86 87 ?> 84 if ($conf['cryptographp']['background'] == 'image') 85 { 86 if ($conf['cryptographp']['bg_image'] == 'random') 87 { 88 $img->background_directory = realpath(CRYPTO_PATH . 'securimage/backgrounds/'); 89 $img->show(); 90 } 91 else 92 { 93 $img->show(realpath(CRYPTO_PATH . 'securimage/backgrounds/' . $conf['cryptographp']['bg_image'])); 94 } 95 } 96 else 97 { 98 $img->image_bg_color = new Securimage_Color('#'.$conf['cryptographp']['bg_color']); 99 $img->show(); 100 }
Note: See TracChangeset
for help on using the changeset viewer.