cron_cleantrace.php 430 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: cron_cleantrace.php 24958 2011-10-19 02:54:32Z zhengqingpeng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $maxday = 90;
  12. $deltime = $_G['timestamp'] - $maxday*3600*24;
  13. C::t('home_clickuser')->delete_by_dateline($deltime);
  14. C::t('home_visitor')->delete_by_dateline($deltime);
  15. ?>