mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
14 lines
288 B
PHP
14 lines
288 B
PHP
|
<?php
|
||
|
|
||
|
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||
|
|
||
|
if ($bb_cfg['topic_moved_days_keep'])
|
||
|
{
|
||
|
$prune_time = TIMENOW - 86400*$bb_cfg['topic_moved_days_keep'];
|
||
|
|
||
|
DB()->query("
|
||
|
DELETE FROM ". BB_TOPICS ."
|
||
|
WHERE topic_status = ". TOPIC_MOVED ."
|
||
|
AND topic_time < $prune_time
|
||
|
");
|
||
|
}
|