mk_submdir() 삭제

This commit is contained in:
gnuboard
2013-01-23 18:41:38 +09:00
parent 2eba861e02
commit 637e114c51
3 changed files with 2 additions and 17 deletions

View File

@ -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'])) {

View File

@ -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;
}
?>

View File

@ -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'];