음성캡챠 스킨화하기 위해 코드 수정

This commit is contained in:
gnuboard
2013-04-15 17:55:26 +09:00
parent 5a8c8cf9e0
commit 2731e998a8
3 changed files with 25 additions and 4 deletions

View File

@ -135,12 +135,12 @@ class gcaptcha
function make_mp3($captcha_filename)
{
global $g4;
global $g4, $config;
$number = (string)$_SESSION['ss_captcha_key'];
$mp3s = array();
for($i=0;$i<strlen($number);$i++){
$file = G4_GCAPTCHA_PATH.'/mp3/'.$number[$i].'.mp3';
$file = G4_GCAPTCHA_PATH.'/mp3/'.$config['cf_gcaptcha_mp3'].'/'.$number[$i].'.mp3';
$mp3s[] = $file;
}