lib = $lib; $this->db = $this->lib->game->db; } public function run($alliance, $mode) { if (!in_array($mode, self::$okModes)) { return false; } $x = $this->db->query("UPDATE alliance SET enable_tt = '$mode' WHERE id = $alliance"); return !!$x; } } ?>