Subversion Repositories SmartDukaan

Rev

Rev 10613 | Rev 10620 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10613 Rev 10619
Line 229... Line 229...
229
 
229
 
230
		// -----------------------------------
230
		// -----------------------------------
231
		//  Generate the image
231
		//  Generate the image
232
		// -----------------------------------
232
		// -----------------------------------
233
 
233
 
234
		$img_name = $now.'.jpg';
234
		$img_name = $now.'.png';
235
 
-
 
236
		imagejpeg($im, $img_path.$img_name);
235
		imagepng($im, $img_path.$img_name);
237
 
236
 
238
		$img = "<img src=\"$img_url$img_name\" width=\"$img_width\" height=\"$img_height\" style=\"border:0;\" alt=\" \" />";
237
		$img = "<img src=\"$img_url$img_name\" width=\"$img_width\" height=\"$img_height\" style=\"border:0;\" alt=\" \" />";
239
 
-
 
240
		imagedestroy($im);
238
		imagedestroy($png);
241
 
239
 
242
		return array('word' => $word, 'time' => $now, 'image' => $img, 'name' => $img_name);
240
		return array('word' => $word, 'time' => $now, 'image' => $img, 'name' => $img_name);
243
	}
241
	}
244
}
242
}
245
 
243
 
246
// ------------------------------------------------------------------------
244
// ------------------------------------------------------------------------
247
 
245
 
248
/* End of file captcha_helper.php */
246
/* End of file captcha_helper.php */
249
/* Location: ./system/heleprs/captcha_helper.php */
-
 
250
247
/* Location: ./system/heleprs/captcha_helper.php */
-
 
248