현재 시간을 상수로 적용 G4_SERVER_TIME

This commit is contained in:
gnuboard
2013-02-20 10:31:57 +09:00
parent b5953eb3c9
commit 6bf06270c0
14 changed files with 23 additions and 36 deletions

View File

@ -10,7 +10,7 @@ include_once(G4_PATH.'/head.sub.php');
// 설정일이 지난 메모 삭제
$sql = " delete from {$g4['memo_table']}
where me_recv_mb_id = '{$member['mb_id']}'
and me_send_datetime < '".date("Y-m-d H:i:s", $g4['server_time'] - (86400 * $config['cf_memo_del']))."' ";
and me_send_datetime < '".date("Y-m-d H:i:s", G4_SERVER_TIME - (86400 * $config['cf_memo_del']))."' ";
sql_query($sql);
if (!$kind) $kind = 'recv';