mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
10 lines
208 B
PHP
10 lines
208 B
PHP
<?php
|
|
|
|
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) ."
|
|
"); |