PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/upload/includes/datastore/build_ranks.php

http://torrentpier2.googlecode.com/
PHP | 14 lines | 9 code | 5 blank | 0 comment | 1 complexity | cc04a4e533ccb6473786e65cde841a5a MD5 | raw file
 1<?php
 2
 3if (!defined('BB_ROOT')) die(basename(__FILE__));
 4
 5$ranks = array();
 6
 7$sql = "SELECT rank_id, rank_title, rank_image, rank_style FROM ". BB_RANKS;
 8
 9foreach (DB()->fetch_rowset($sql) as $row)
10{
11	$ranks[$row['rank_id']] = $row;
12}
13
14$this->store('ranks', $ranks);