- Timestamp:
- Jan 9, 2014, 1:36:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/securimage/securimage_preview.php
r26041 r26554 15 15 'height' => (int)$_GET['height'], 16 16 'perturbation' => (float)$_GET['perturbation'], 17 'image_bg_color' => $_GET['image_bg_color'], 17 'background' => $_GET['background'], 18 'bg_color' => $_GET['bg_color'], 19 'bg_image' => $_GET['bg_image'], 18 20 'code_length' => (int)$_GET['code_length'], 19 21 'text_color' => $_GET['text_color'], … … 38 40 } 39 41 40 foreach (array(' image_bg_color','text_color','line_color','noise_color') as $color)42 foreach (array('bg_color','text_color','line_color','noise_color') as $color) 41 43 { 42 44 if ($temp_conf[$color] == 'random') $temp_conf[$color] = randomColor(); … … 53 55 $img->image_height = $temp_conf['height']; 54 56 $img->perturbation = $temp_conf['perturbation']; 55 $img->image_bg_color = new Securimage_Color('#'.$temp_conf['image_bg_color']);56 57 $img->text_color = new Securimage_Color('#'.$temp_conf['text_color']); 57 58 $img->num_lines = $temp_conf['num_lines']; … … 61 62 $img->code_length = $temp_conf['code_length']; 62 63 63 $img->show(); 64 65 ?> 64 if ($temp_conf['background'] == 'image') 65 { 66 if ($temp_conf['bg_image'] == 'random') 67 { 68 $img->background_directory = realpath(CRYPTO_PATH . 'securimage/backgrounds/'); 69 $img->show(); 70 } 71 else 72 { 73 $img->show(realpath(CRYPTO_PATH . 'securimage/backgrounds/' . $temp_conf['bg_image'])); 74 } 75 } 76 else 77 { 78 $img->image_bg_color = new Securimage_Color('#'.$temp_conf['bg_color']); 79 $img->show(); 80 }
Note: See TracChangeset
for help on using the changeset viewer.