mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
15 lines
351 B
PHP
15 lines
351 B
PHP
<?php
|
|
|
|
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
|
|
|
require_once(INC_DIR .'functions_admin.php');
|
|
|
|
if ($bb_cfg['prune_enable'])
|
|
{
|
|
$sql = "SELECT forum_id, prune_days FROM ". BB_FORUMS ." WHERE prune_days != 0";
|
|
|
|
foreach (DB()->fetch_rowset($sql) as $row)
|
|
{
|
|
topic_delete('prune', $row['forum_id'], (TIMENOW - 86400*$row['prune_days']));
|
|
}
|
|
} |