관리자: 일괄삭제 마크업 및 스타일 수정
This commit is contained in:
@ -9,39 +9,40 @@ $g5['title'] = '캐시파일 일괄삭제';
|
|||||||
include_once('./admin.head.php');
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="cache_del">
|
<div class="local_desc02 local_desc">
|
||||||
<p>
|
<p>
|
||||||
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
||||||
</p>
|
</p>
|
||||||
<?php
|
|
||||||
flush();
|
|
||||||
|
|
||||||
if (!$dir=@opendir(G5_DATA_PATH.'/cache')) {
|
|
||||||
echo '<p>캐시디렉토리를 열지못했습니다.</p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$cnt=0;
|
|
||||||
echo '<ul>'.PHP_EOL;
|
|
||||||
|
|
||||||
$files = glob(G5_DATA_PATH.'/cache/latest-*');
|
|
||||||
if (is_array($files)) {
|
|
||||||
foreach ($files as $cache_file) {
|
|
||||||
$cnt++;
|
|
||||||
unlink($cache_file);
|
|
||||||
echo '<li>'.$cache_file.'</li>'.PHP_EOL;
|
|
||||||
|
|
||||||
flush();
|
|
||||||
|
|
||||||
if ($cnt%10==0)
|
|
||||||
echo PHP_EOL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
|
||||||
echo '<p><span>최신글 캐시파일 '.$cnt.'건 삭제가 완료됐습니다.</span><br>프로그램의 실행을 끝마치셔도 좋습니다.</p>'.PHP_EOL;
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
flush();
|
||||||
|
|
||||||
|
if (!$dir=@opendir(G5_DATA_PATH.'/cache')) {
|
||||||
|
echo '<p>캐시디렉토리를 열지못했습니다.</p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$cnt=0;
|
||||||
|
echo '<ul>'.PHP_EOL;
|
||||||
|
|
||||||
|
$files = glob(G5_DATA_PATH.'/cache/latest-*');
|
||||||
|
if (is_array($files)) {
|
||||||
|
foreach ($files as $cache_file) {
|
||||||
|
$cnt++;
|
||||||
|
unlink($cache_file);
|
||||||
|
echo '<li>'.$cache_file.'</li>'.PHP_EOL;
|
||||||
|
|
||||||
|
flush();
|
||||||
|
|
||||||
|
if ($cnt%10==0)
|
||||||
|
echo PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
||||||
|
echo '<div class="local_desc01 local_desc"><p><strong>최신글 캐시파일 '.$cnt.'건 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>'.PHP_EOL;
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
?>
|
?>
|
||||||
@ -9,44 +9,45 @@ $g5['title'] = '캡챠파일 일괄삭제';
|
|||||||
include_once('./admin.head.php');
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="cache_del">
|
<div class="local_desc02 local_desc">
|
||||||
<p>
|
<p>
|
||||||
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
||||||
</p>
|
</p>
|
||||||
<?php
|
|
||||||
flush();
|
|
||||||
|
|
||||||
if (!$dir=@opendir(G5_DATA_PATH.'/cache')) {
|
|
||||||
echo '<p>캐시디렉토리를 열지못했습니다.</p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$cnt=0;
|
|
||||||
echo '<ul>'.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 '<li>'.$gcaptcha_file.'</li>'.PHP_EOL;
|
|
||||||
|
|
||||||
flush();
|
|
||||||
|
|
||||||
if ($cnt%10==0)
|
|
||||||
echo PHP_EOL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
|
||||||
echo '<p><span>캡챠파일 '.$cnt.'건의 삭제가 완료됐습니다.</span><br>프로그램의 실행을 끝마치셔도 좋습니다.</p>'.PHP_EOL;
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
flush();
|
||||||
|
|
||||||
|
if (!$dir=@opendir(G5_DATA_PATH.'/cache')) {
|
||||||
|
echo '<p>캐시디렉토리를 열지못했습니다.</p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$cnt=0;
|
||||||
|
echo '<ul>'.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 '<li>'.$gcaptcha_file.'</li>'.PHP_EOL;
|
||||||
|
|
||||||
|
flush();
|
||||||
|
|
||||||
|
if ($cnt%10==0)
|
||||||
|
echo PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
||||||
|
echo '<div class="local_desc01 local_desc"><p><strong>캡챠파일 '.$cnt.'건의 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>'.PHP_EOL;
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
?>
|
?>
|
||||||
@ -9,10 +9,11 @@ $g5['title'] = "세션파일 일괄삭제";
|
|||||||
include_once("./admin.head.php");
|
include_once("./admin.head.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="session_del">
|
<div class="local_desc02 local_desc">
|
||||||
<p>
|
<p>
|
||||||
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
flush();
|
flush();
|
||||||
@ -52,10 +53,8 @@ include_once("./admin.head.php");
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo $list_tag_end;
|
echo $list_tag_end;
|
||||||
//echo "<script>document.getElementById('ct').innerHTML += '세션데이터 {$cnt}건 삭제 완료.<br><br>프로그램의 실행을 끝마치셔도 좋습니다.';</script>\n";
|
echo '<div class="local_desc01 local_desc"><p><strong>세션데이터 '.$cnt.'건 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>'.PHP_EOL;
|
||||||
echo "<p><span>세션데이터 {$cnt}건 삭제 완료.</span><br>프로그램의 실행을 끝마치셔도 좋습니다.</p>\n";
|
|
||||||
?>
|
?>
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once("./admin.tail.php");
|
include_once("./admin.tail.php");
|
||||||
|
|||||||
@ -9,59 +9,60 @@ $g5['title'] = '썸네일 일괄삭제';
|
|||||||
include_once('./admin.head.php');
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="thumbnail_del">
|
<div class="local_desc02 local_desc">
|
||||||
<p>
|
<p>
|
||||||
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
|
||||||
</p>
|
</p>
|
||||||
<?php
|
|
||||||
$directory = array();
|
|
||||||
$dl = array('file', 'editor');
|
|
||||||
|
|
||||||
foreach($dl as $val) {
|
|
||||||
if($handle = opendir(G5_DATA_PATH.'/'.$val)) {
|
|
||||||
while(false !== ($entry = readdir($handle))) {
|
|
||||||
if($entry == '.' || $entry == '..')
|
|
||||||
continue;
|
|
||||||
|
|
||||||
$path = G5_DATA_PATH.'/'.$val.'/'.$entry;
|
|
||||||
|
|
||||||
if(is_dir($path))
|
|
||||||
$directory[] = $path;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
flush();
|
|
||||||
|
|
||||||
if (empty($directory)) {
|
|
||||||
echo '<p>썸네일디렉토리를 열지못했습니다.</p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$cnt=0;
|
|
||||||
echo '<ul>'.PHP_EOL;
|
|
||||||
|
|
||||||
foreach($directory as $dir) {
|
|
||||||
$files = glob($dir.'/thumb-*');
|
|
||||||
if (is_array($files)) {
|
|
||||||
foreach($files as $thumbnail) {
|
|
||||||
$cnt++;
|
|
||||||
@unlink($thumbnail);
|
|
||||||
|
|
||||||
echo '<li>'.$thumbnail.'</li>'.PHP_EOL;
|
|
||||||
|
|
||||||
flush();
|
|
||||||
|
|
||||||
if ($cnt%10==0)
|
|
||||||
echo PHP_EOL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
|
||||||
echo '<p><span>썸네일 '.$cnt.'건의 삭제가 완료됐습니다.</span><br>프로그램의 실행을 끝마치셔도 좋습니다.</p>'.PHP_EOL;
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$directory = array();
|
||||||
|
$dl = array('file', 'editor');
|
||||||
|
|
||||||
|
foreach($dl as $val) {
|
||||||
|
if($handle = opendir(G5_DATA_PATH.'/'.$val)) {
|
||||||
|
while(false !== ($entry = readdir($handle))) {
|
||||||
|
if($entry == '.' || $entry == '..')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
$path = G5_DATA_PATH.'/'.$val.'/'.$entry;
|
||||||
|
|
||||||
|
if(is_dir($path))
|
||||||
|
$directory[] = $path;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
flush();
|
||||||
|
|
||||||
|
if (empty($directory)) {
|
||||||
|
echo '<p>썸네일디렉토리를 열지못했습니다.</p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$cnt=0;
|
||||||
|
echo '<ul>'.PHP_EOL;
|
||||||
|
|
||||||
|
foreach($directory as $dir) {
|
||||||
|
$files = glob($dir.'/thumb-*');
|
||||||
|
if (is_array($files)) {
|
||||||
|
foreach($files as $thumbnail) {
|
||||||
|
$cnt++;
|
||||||
|
@unlink($thumbnail);
|
||||||
|
|
||||||
|
echo '<li>'.$thumbnail.'</li>'.PHP_EOL;
|
||||||
|
|
||||||
|
flush();
|
||||||
|
|
||||||
|
if ($cnt%10==0)
|
||||||
|
echo PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
||||||
|
echo '<div class="local_desc01 local_desc"><p><strong>썸네일 '.$cnt.'건의 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>'.PHP_EOL;
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
?>
|
?>
|
||||||
@ -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}
|
#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}
|
|
||||||
|
|
||||||
/* ########## 쇼핑몰 사용시 적용 ########## */
|
/* ########## 쇼핑몰 사용시 적용 ########## */
|
||||||
|
|
||||||
/* 쇼핑몰 설정 */
|
/* 쇼핑몰 설정 */
|
||||||
|
|||||||
Reference in New Issue
Block a user