mk_submdir() 삭제
This commit is contained in:
@ -2,8 +2,7 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
$file = addslashes($_GET['file']);
|
||||
$captcha_path = mk_subdir($g4['cache_captcha_dir']);
|
||||
$filepath = $captcha_path.'/'.$file;
|
||||
$filepath = $g4['cache_captcha_path'].'/'.$file;
|
||||
$original = "number.wav";
|
||||
|
||||
if(preg_match("/msie/i", $_SERVER['HTTP_USER_AGENT']) && preg_match("/5\.5/", $_SERVER['HTTP_USER_AGENT'])) {
|
||||
|
||||
@ -246,8 +246,6 @@ function join_wavs($wavs)
|
||||
function captcha_file($extension='.png')
|
||||
{
|
||||
global $g4;
|
||||
mk_subdir($g4['cache_dir']);
|
||||
$captcha_path = mk_subdir($g4['cache_captcha_dir']);
|
||||
return $captcha_path.'/'.abs_ip2long().'_'.$_COOKIE['PHPSESSID'].$extension;
|
||||
return $g4['cache_captcha_path'].'/'.abs_ip2long().'_'.$_COOKIE['PHPSESSID'].$extension;
|
||||
}
|
||||
?>
|
||||
|
||||
@ -1620,18 +1620,6 @@ function is_checked($field)
|
||||
}
|
||||
|
||||
|
||||
function mk_subdir($subdir)
|
||||
{
|
||||
global $g4;
|
||||
$data_subpath = $g4['path_path'].'/'.$subdir;
|
||||
if (!is_dir($data_subpath)) {
|
||||
@mkdir($data_subpath, 0707);
|
||||
@chmod($data_subpath, 0707);
|
||||
}
|
||||
return $data_subpath;
|
||||
}
|
||||
|
||||
|
||||
function abs_ip2long($ip='')
|
||||
{
|
||||
$ip = $ip ? $ip : $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
Reference in New Issue
Block a user