'; } if (!IsAuthorizedToWrite($domain) || (array_key_exists('read_only', $domain_info) && $domain_info['read_only'] === true)) { $is_ok = false; $status .= ' '; } if (array_key_exists('maintenance_note', $domain_info)) { $is_ok = false; $status .= ' '; } if (array_key_exists('note', $domain_info)) { $status .= '  '; } if ($is_ok) return '' . $status; return $status; } //! Generates a PSF table object with all zones with links to manage each zone, including their status public static function GetSelectForm($parent) { global $g_domains; $table = new BS_Table($parent); $table->Headers = [ "Domain name", "Status", "Update server", "Transfer server" ]; $table->SetColumnWidth(1, '80px'); foreach ($g_domains as $domain => $properties) { if (!IsAuthorizedToRead($domain)) continue; $table->AppendRow([ '' . $domain . '', self::getStatusOfZone($domain), $properties["update_server"], $properties["transfer_server"] ]); } return $table; } }