From d3f41c99d79c5f1898f1ea9d92b0e868662075ba Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 14 Oct 2013 12:03:28 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90:=20=EC=9D=BC?= =?UTF-8?q?=EA=B4=84=EC=82=AD=EC=A0=9C=20=EB=A7=88=ED=81=AC=EC=97=85=20?= =?UTF-8?q?=EB=B0=8F=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/cache_file_delete.php | 57 ++++++++++---------- adm/gcaptcha_file_delete.php | 67 ++++++++++++------------ adm/session_file_delete.php | 7 ++- adm/thumbnail_file_delete.php | 97 ++++++++++++++++++----------------- css/admin.css | 4 -- 5 files changed, 115 insertions(+), 117 deletions(-) diff --git a/adm/cache_file_delete.php b/adm/cache_file_delete.php index 077851ea6..1374acdaf 100644 --- a/adm/cache_file_delete.php +++ b/adm/cache_file_delete.php @@ -9,39 +9,40 @@ $g5['title'] = '캐시파일 일괄삭제'; include_once('./admin.head.php'); ?> -
+

완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.

- 캐시디렉토리를 열지못했습니다.

'; - } - - $cnt=0; - echo '
    '.PHP_EOL; - - $files = glob(G5_DATA_PATH.'/cache/latest-*'); - if (is_array($files)) { - foreach ($files as $cache_file) { - $cnt++; - unlink($cache_file); - echo '
  • '.$cache_file.'
  • '.PHP_EOL; - - flush(); - - if ($cnt%10==0) - echo PHP_EOL; - } - } - - echo '
  • 완료됨
'.PHP_EOL; - echo '

최신글 캐시파일 '.$cnt.'건 삭제가 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.

'.PHP_EOL; - ?>
+캐시디렉토리를 열지못했습니다.

'; +} + +$cnt=0; +echo ''.PHP_EOL; +echo '

최신글 캐시파일 '.$cnt.'건 삭제 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.

'.PHP_EOL; +?> + \ No newline at end of file diff --git a/adm/gcaptcha_file_delete.php b/adm/gcaptcha_file_delete.php index 8b3f3ed73..1638d6dfb 100644 --- a/adm/gcaptcha_file_delete.php +++ b/adm/gcaptcha_file_delete.php @@ -9,44 +9,45 @@ $g5['title'] = '캡챠파일 일괄삭제'; include_once('./admin.head.php'); ?> -
+

완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.

- 캐시디렉토리를 열지못했습니다.

'; - } - - $cnt=0; - echo '
    '.PHP_EOL; - - $files = glob(G5_DATA_PATH.'/cache/gcaptcha-*'); - if (is_array($files)) { - $before_time = G5_SERVER_TIME - 3600; // 한시간전 - foreach ($files as $gcaptcha_file) { - $modification_time = filemtime($gcaptcha_file); // 파일접근시간 - - if ($modification_time > $before_time) continue; - - $cnt++; - unlink($gcaptcha_file); - echo '
  • '.$gcaptcha_file.'
  • '.PHP_EOL; - - flush(); - - if ($cnt%10==0) - echo PHP_EOL; - } - } - - echo '
  • 완료됨
'.PHP_EOL; - echo '

캡챠파일 '.$cnt.'건의 삭제가 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.

'.PHP_EOL; - ?>
+캐시디렉토리를 열지못했습니다.

'; +} + +$cnt=0; +echo '
    '.PHP_EOL; + +$files = glob(G5_DATA_PATH.'/cache/gcaptcha-*'); +if (is_array($files)) { + $before_time = G5_SERVER_TIME - 3600; // 한시간전 + foreach ($files as $gcaptcha_file) { + $modification_time = filemtime($gcaptcha_file); // 파일접근시간 + + if ($modification_time > $before_time) continue; + + $cnt++; + unlink($gcaptcha_file); + echo '
  • '.$gcaptcha_file.'
  • '.PHP_EOL; + + flush(); + + if ($cnt%10==0) + echo PHP_EOL; + } +} + +echo '
  • 완료됨
'.PHP_EOL; +echo '

캡챠파일 '.$cnt.'건의 삭제 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.

'.PHP_EOL; +?> + \ No newline at end of file diff --git a/adm/session_file_delete.php b/adm/session_file_delete.php index 3294e2933..bd5bad1e7 100644 --- a/adm/session_file_delete.php +++ b/adm/session_file_delete.php @@ -9,10 +9,11 @@ $g5['title'] = "세션파일 일괄삭제"; include_once("./admin.head.php"); ?> -
+

완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.

+
document.getElementById('ct').innerHTML += '세션데이터 {$cnt}건 삭제 완료.

프로그램의 실행을 끝마치셔도 좋습니다.';\n"; - echo "

세션데이터 {$cnt}건 삭제 완료.
프로그램의 실행을 끝마치셔도 좋습니다.

\n"; + echo '

세션데이터 '.$cnt.'건 삭제 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.

'.PHP_EOL; ?> -
-
+

완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.

- 썸네일디렉토리를 열지못했습니다.

'; - } - - $cnt=0; - echo '
    '.PHP_EOL; - - foreach($directory as $dir) { - $files = glob($dir.'/thumb-*'); - if (is_array($files)) { - foreach($files as $thumbnail) { - $cnt++; - @unlink($thumbnail); - - echo '
  • '.$thumbnail.'
  • '.PHP_EOL; - - flush(); - - if ($cnt%10==0) - echo PHP_EOL; - } - } - } - - echo '
  • 완료됨
'.PHP_EOL; - echo '

썸네일 '.$cnt.'건의 삭제가 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.

'.PHP_EOL; - ?>
+썸네일디렉토리를 열지못했습니다.

'; +} + +$cnt=0; +echo '
    '.PHP_EOL; + +foreach($directory as $dir) { + $files = glob($dir.'/thumb-*'); + if (is_array($files)) { + foreach($files as $thumbnail) { + $cnt++; + @unlink($thumbnail); + + echo '
  • '.$thumbnail.'
  • '.PHP_EOL; + + flush(); + + if ($cnt%10==0) + echo PHP_EOL; + } + } +} + +echo '
  • 완료됨
'.PHP_EOL; +echo '

썸네일 '.$cnt.'건의 삭제 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.

'.PHP_EOL; +?> + \ No newline at end of file diff --git a/css/admin.css b/css/admin.css index 4b23e0638..9ae647c6b 100644 --- a/css/admin.css +++ b/css/admin.css @@ -393,10 +393,6 @@ td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center} /* 메일 테스트 */ #fsendmailtest {margin-bottom:20px;padding:30px 0;border:1px solid #ced9de;background:#fff;text-align:center} -/* 세션파일일괄삭제 */ -#session_del p, #cache_del p {margin-bottom:20px;padding:13px;border:1px solid #ced9de;background:#fff} -#session_del p span, #cache_del p span {color:#ff3061} - /* ########## 쇼핑몰 사용시 적용 ########## */ /* 쇼핑몰 설정 */