#266 경로수정
This commit is contained in:
@ -3,7 +3,7 @@ $sub_menu = "100900";
|
|||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
|
|
||||||
if ($is_admin != "super")
|
if ($is_admin != "super")
|
||||||
alert("최고관리자만 접근 가능합니다.", $g4[path]);
|
alert("최고관리자만 접근 가능합니다.", G4_URL);
|
||||||
|
|
||||||
$g4['title'] = "캐시파일 일괄삭제";
|
$g4['title'] = "캐시파일 일괄삭제";
|
||||||
include_once("./admin.head.php");
|
include_once("./admin.head.php");
|
||||||
@ -21,7 +21,7 @@ include_once("./admin.head.php");
|
|||||||
include_once("./admin.tail.php");
|
include_once("./admin.tail.php");
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
if (!$dir=@opendir($g4['cache_latest_path'])) {
|
if (!$dir=@opendir(G4_DATA_PATH.'/cache')) {
|
||||||
echo "최신글 캐시디렉토리를 열지못했습니다.";
|
echo "최신글 캐시디렉토리를 열지못했습니다.";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ $cnt=0;
|
|||||||
while($file=readdir($dir)) {
|
while($file=readdir($dir)) {
|
||||||
if ($file=='.' || $file=='..') continue;
|
if ($file=='.' || $file=='..') continue;
|
||||||
|
|
||||||
$cache_file = $g4['cache_latest_path'].'/'.$file;
|
$cache_file = G4_DATA_PATH.'/cache/'.$file;
|
||||||
|
|
||||||
if (!$atime=@fileatime($cache_file))
|
if (!$atime=@fileatime($cache_file))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@ -3,7 +3,7 @@ $sub_menu = "100800";
|
|||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
|
|
||||||
if ($is_admin != "super")
|
if ($is_admin != "super")
|
||||||
alert("최고관리자만 접근 가능합니다.", $g4[path]);
|
alert("최고관리자만 접근 가능합니다.", G4_URL);
|
||||||
|
|
||||||
$g4['title'] = "세션파일 일괄삭제";
|
$g4['title'] = "세션파일 일괄삭제";
|
||||||
include_once("./admin.head.php");
|
include_once("./admin.head.php");
|
||||||
@ -21,7 +21,7 @@ include_once("./admin.head.php");
|
|||||||
include_once("./admin.tail.php");
|
include_once("./admin.tail.php");
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
if (!$dir=@opendir($g4['session_path'])) {
|
if (!$dir=@opendir(G4_DATA_PATH.'/session')) {
|
||||||
echo "세션 디렉토리를 열지못했습니다.";
|
echo "세션 디렉토리를 열지못했습니다.";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ while($file=readdir($dir)) {
|
|||||||
if (!strstr($file,'sess_')) continue;
|
if (!strstr($file,'sess_')) continue;
|
||||||
if (strpos($file,'sess_')!=0) continue;
|
if (strpos($file,'sess_')!=0) continue;
|
||||||
|
|
||||||
$session_file = $g4['session_path'].'/'.$file;
|
$session_file = G4_DATA_PATH.'/session/'.$file;
|
||||||
|
|
||||||
if (!$atime=@fileatime($session_file)) {
|
if (!$atime=@fileatime($session_file)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user