2016-01-10 11:01:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class main_account_getKickList {
|
|
|
|
|
2024-12-31 00:25:05 +01:00
|
|
|
public function __construct($lib) {
|
2016-01-10 11:01:49 +01:00
|
|
|
$this->lib = $lib;
|
|
|
|
$this->db = $this->lib->game->db;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function run() {
|
|
|
|
$lists = array(array(),array(),array());
|
|
|
|
$types = array("P" => 0, "Y" => 1, "N" => 2);
|
|
|
|
|
|
|
|
$q = $this->db->query("SELECT * FROM adm_kick");
|
|
|
|
while ($r = dbFetchHash($q)) {
|
|
|
|
array_push($lists[$types[$r['status']]], $r);
|
|
|
|
}
|
|
|
|
|
|
|
|
return $lists;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|