mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-12-25 13:31:17 -08:00
fad09cf0eb
* Updated copyright year * Updated
20 lines
532 B
PHP
20 lines
532 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__));
|
||
}
|
||
|
||
$search_results_expire = TIMENOW - 3 * 3600;
|
||
|
||
DB()->query("
|
||
DELETE FROM " . BB_SEARCH . "
|
||
WHERE search_time < $search_results_expire
|
||
");
|