Location: PHPKode > projects > Uchome and Discuz > source/cron/cleantrace.php
<?php
/*
	[UCenter Home] (C) 2007-2008 Comsenz Inc.
	$Id: cleantrace.php 11954 2009-04-17 09:29:53Z liguode $
*/

if(!defined('IN_UCHOME')) {
	exit('Access Denied');
}

//ÇåÀí½ÅÓ¡ºÍ×îзÿÍ
$maxday = 90;//±£Áô90ÌìµÄ
$deltime = $_SGLOBAL['timestamp'] - $maxday*3600*24;

//ÇåÀí½ÅÓ¡
$_SGLOBAL['db']->query("DELETE FROM ".tname('clickuser')." WHERE dateline < '$deltime'");

//×îзÿÍ
$_SGLOBAL['db']->query("DELETE FROM ".tname('visitor')." WHERE dateline < '$deltime'");

?>
Return current item: Uchome and Discuz