Файл torrentpier-master/library/includes/cron/jobs/clean_log.php Вес запакованого файла 353b (353 b) Вес распакованого файла: 549b (549 b) Метод сжатия: 8
<?php
/**
* TorrentPier – Bull-powered BitTorrent tracker engine
*
* @copyright Copyright (c) 2005-2018 TorrentPier (https://torrentpier.com)
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
*/
if (!defined('BB_ROOT')) {
die(basename(__FILE__));
}
$log_days_keep = (int)$bb_cfg['log_days_keep'];
DB()->query("
DELETE FROM " . BB_LOG . "
WHERE log_time < " . (TIMENOW - 86400 * $log_days_keep) . "
");