lib = $lib; $this->db = $this->lib->game->db; } public function run($account) { // Get the planet name from the queue $q = $this->db->query("SELECT p_name FROM planet_reg_queue WHERE account = $account"); if (!($q && dbCount($q))) { $this->db->end(false); return false; } list($pName) = dbFetchArray($q); // Delete the registration entry $this->db->query("DELETE FROM planet_reg_queue WHERE account = $account"); // Register if ($this->lib->call('register', $account, $pName, null)) { $this->db->end(false); return false; } return true; } } ?>