Re: Re: CaptchaCodeの画像が表示されず、「CaptchaCode」と出たままです。
2011年3月8日 at 16:10
yamanoi様
アドバイスありがとうございます。
GDFONTを指定したら動きました。
/helpers/validation/captcha.php
を下記に書き換えてCaptchaが動いた
defined('C5_EXECUTE') or die("Access Denied.");
class ValidationCaptchaHelper {
private $securimage;
public function __construct() {
Loader::library("3rdparty/securimage/securimage");
$this->securimage = new Securimage();
/* specify securimage to use gd fonts becuase freetype is not compiled into gd */
$this->securimage->use_gd_font = true;
$this->securimage->gd_font_file = DIR_LIBRARIES_3RDPARTY_CORE.'/securimage/gdfonts/caveman.gdf';
$this->securimage->ttf_file = DIR_LIBRARIES_3RDPARTY_CORE . '/securimage/elephant.ttf';
}
Your post has been saved and will be published after approval by the forum moderator.