cleanup_monthly.inc.php
来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 22 行
PHP
22 行
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$RCSfile: cleanup_monthly.inc.php,v $
$Revision: 1.7.4.3 $
$Date: 2007/03/21 15:53:02 $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$myrecordtimes = $timestamp - $_DCACHE['settings']['myrecorddays'] * 86400;
$db->query("DELETE FROM {$tablepre}mythreads WHERE dateline<'$myrecordtimes'", 'UNBUFFERED');
$db->query("DELETE FROM {$tablepre}myposts WHERE dateline<'$myrecordtimes'", 'UNBUFFERED');
$db->query("TRUNCATE {$tablepre}relatedthreads");
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?