mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-11-21 04:50:19 -08:00
22 lines
563 B
PHP
22 lines
563 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__));
|
||
}
|
||
|
||
$sql = "SELECT * FROM " . BB_BANLIST;
|
||
$bans = [];
|
||
|
||
foreach (DB()->fetch_rowset($sql) as $row) {
|
||
$bans[$row['ban_userid']] = $row;
|
||
}
|
||
|
||
$this->store('ban_list', $bans);
|