mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-11-04 20:50:23 -08:00
3e9f4006c4
This reverts commit 6eca29714a
.
21 lines
692 B
PHP
21 lines
692 B
PHP
<?php
|
||
/**
|
||
* TorrentPier – Bull-powered BitTorrent tracker engine
|
||
*
|
||
* @copyright Copyright (c) 2005-2024 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__));
|
||
}
|
||
|
||
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) {
|
||
\TorrentPier\Legacy\Admin\Common::topic_delete('prune', $row['forum_id'], (TIMENOW - 86400 * $row['prune_days']));
|
||
}
|
||
}
|