관리자: 메일테스트 스타일
This commit is contained in:
@ -19,28 +19,28 @@ if (!$dir=@opendir($session_path)) {
|
||||
|
||||
$cnt=0;
|
||||
while($file=readdir($dir)) {
|
||||
|
||||
|
||||
if (!strstr($file,'sess_')) {
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strpos($file,'sess_')!=0) {
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!$atime=@fileatime("$session_path/$file")) {
|
||||
continue;
|
||||
}
|
||||
if (time() > $atime + (3600 * 6)) { // 지난시간을 초로 계산해서 적어주시면 됩니다. default : 6시간전
|
||||
if (!$atime=@fileatime("$session_path/$file")) {
|
||||
continue;
|
||||
}
|
||||
if (time() > $atime + (3600 * 6)) { // 지난시간을 초로 계산해서 적어주시면 됩니다. default : 6시간전
|
||||
$cnt++;
|
||||
$return = unlink("$session_path/$file");
|
||||
echo "<script>document.getElementById('ct').innerHTML += '$session_path/$file<br/>';</script>\n";
|
||||
$return = unlink("$session_path/$file");
|
||||
echo "<script>document.getElementById('ct').innerHTML += '$session_path/$file<br/>';</script>\n";
|
||||
|
||||
flush();
|
||||
|
||||
if ($cnt%10==0)
|
||||
echo "<script>document.getElementById('ct').innerHTML = '';</script>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
echo "<script>document.getElementById('ct').innerHTML += '<br><br>세션데이터 {$cnt}건 삭제 완료.<br><br>프로그램의 실행을 끝마치셔도 좋습니다.';</script>\n";
|
||||
?>
|
||||
@ -147,6 +147,9 @@ td {padding:10px}
|
||||
.visit_bar {position:relative}
|
||||
.visit_bar span {position:absolute;top:-8px;left:0;height:15px;background:#ddd}
|
||||
|
||||
/* 메일 테스트 */
|
||||
#fsendmailtest p {margin-bottom:20px;padding:13px;border:1px solid #ced9de;background:#fff;font-size:0.75em}
|
||||
|
||||
/* pagination */
|
||||
.pg {clear:both;margin:0 0 10px;padding-top:20px;font-size:0.75em;text-align:center}
|
||||
.pg_wrap {display:inline-block;border:1px solid #c7cfd5;letter-spacing:-4px}
|
||||
|
||||
Reference in New Issue
Block a user