diff --git a/bbs/gcaptcha/down.php b/bbs/gcaptcha/down.php index 4e02ae120..7bb655d24 100644 --- a/bbs/gcaptcha/down.php +++ b/bbs/gcaptcha/down.php @@ -2,7 +2,7 @@ include_once('./_common.php'); $file = addslashes($_GET['file']); -$captcha_path = mk_subdir($g4['cache_dir'].'/'.$g4['captcha_dir']); +$captcha_path = mk_subdir($g4['cache_captcha_dir']); $filepath = $captcha_path.'/'.$file; $original = "number.wav"; diff --git a/bbs/gcaptcha/gcaptcha.lib.php b/bbs/gcaptcha/gcaptcha.lib.php index 90e12a582..8b33aa866 100644 --- a/bbs/gcaptcha/gcaptcha.lib.php +++ b/bbs/gcaptcha/gcaptcha.lib.php @@ -247,7 +247,7 @@ function captcha_file($extension='.png') { global $g4; mk_subdir($g4['cache_dir']); - $captcha_path = mk_subdir($g4['cache_dir'].'/'.$g4['captcha_dir']); + $captcha_path = mk_subdir($g4['cache_captcha_dir']); return $captcha_path.'/'.abs_ip2long().'_'.$_COOKIE['PHPSESSID'].$extension; } ?> diff --git a/extend/g4s.extend.php b/extend/g4s.extend.php index d16641485..e5a09f060 100644 --- a/extend/g4s.extend.php +++ b/extend/g4s.extend.php @@ -12,14 +12,16 @@ if ($g4['https_url']) { $g4['https_bbs_url'] = $g4['https_url'].'/'.$g4['bbs']; } -$g4['data_dir'] = 'data'; -$g4['data_url'] = $g4['url'].'/'.$g4['data_dir']; -$g4['data_path'] = $g4['path'].'/'.$g4['data_dir']; +$g4['data_dir'] = 'data'; +$g4['data_url'] = $g4['url'].'/'.$g4['data_dir']; +$g4['data_path'] = $g4['path'].'/'.$g4['data_dir']; -$g4['cache_dir'] = 'cache'; -$g4['cache_path'] = $g4['data_path'].'/'.$g4['cache_dir']; +$g4['cache_dir'] = 'cache'; +$g4['cache_path'] = $g4['data_path'].'/'.$g4['cache_dir']; -$g4['captcha_dir'] = 'captcha'; +$g4['cache_latest_dir'] = $g4['cache_dir'].'/latest'; +$g4['cache_member_dir'] = $g4['cache_dir'].'/member'; +$g4['cache_captcha_dir']= $g4['cache_dir'].'/captcha'; // g4s 기본 DHTML EDITOR if (!defined('G4_EDITOR')) define('G4_EDITOR', 0); diff --git a/lib/common.lib.php b/lib/common.lib.php index 99b1b5217..659c8e4e3 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1623,8 +1623,7 @@ function is_checked($field) function mk_subdir($subdir) { global $g4; - $data_path = $g4['path'].'/'.$g4['data_dir']; - $data_subpath = $data_path.'/'.$subdir; + $data_subpath = $g4['path_path'].'/'.$subdir; if (!is_dir($data_subpath)) { @mkdir($data_subpath, 0707); @chmod($data_subpath, 0707); diff --git a/skin/board/neo/view.skin.php b/skin/board/neo/view.skin.php index b5a52d3ec..fa6e88c87 100644 --- a/skin/board/neo/view.skin.php +++ b/skin/board/neo/view.skin.php @@ -25,16 +25,24 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 - + + +

첨부파일

- +