mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-11 07:36:34 -07:00
22 lines
606 B
PHP
22 lines
606 B
PHP
<?php
|
||
/**
|
||
* TorrentPier – Bull-powered BitTorrent tracker engine
|
||
*
|
||
* @copyright Copyright (c) 2005-2023 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__));
|
||
}
|
||
|
||
$ranks = array();
|
||
|
||
$sql = "SELECT rank_id, rank_title, rank_image, rank_style FROM " . BB_RANKS;
|
||
|
||
foreach (DB()->fetch_rowset($sql) as $row) {
|
||
$ranks[$row['rank_id']] = $row;
|
||
}
|
||
|
||
$this->store('ranks', $ranks);
|