lwb5-in-2025/scripts/game/main/forums/library/getModerator.inc

22 lines
342 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
class main_forums_getModerator {
2024-12-31 00:50:29 +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($uid) {
$q = $this->db->query("SELECT forum FROM f_moderator WHERE \"user\"=$uid");
$a = array();
while ($r = dbFetchArray($q)) {
array_push($a, $r[0]);
}
return $a;
}
}
?>