"); // tabSection apiKey
+}
+
void hgHubConnectDeveloperMode()
/* Put up the controls for the "Hub Development" Tab, which includes a button to run the
* hubCheck utility on a hub and load a hub with the udcTimeout and measureTiming
* variables turned on */
{
// put out the top of our page
char *hubUrl = cartOptionalString(cart, "validateHubUrl");
// the outer div for all the elements in the tab
puts("
");
char *hubUrlVal = "";
if (hubUrl != NULL)
hubUrlVal = catThreeStrings(" value='", hubUrl, "'");
@@ -495,33 +518,38 @@
{
timeLabel = "Hide timings";
timeVal = "";
timeDesc = "Shows loading time in milliseconds for each track, to help debug performance problems.";
timeStatus = "ON";
}
printf("Show load times: %s ", timeStatus);
printf("", timeVal, timeLabel);
printf("
Current setting: %s
\n", timeDesc);
puts("");
puts("
"); // margin-left
puts(""); // tabSection
-puts(""); // #hubDeveloper
jsOnEventById("click", "hubValidateButton", "makeIframe(event)");
+
+// API Key section
+if (cfgOptionBooleanDefault("showHubApiKey", FALSE)) // This should probably not be shown on mirrors, so default to FALSE
+ printApiKeySection();
+puts(""); // hub developement tab
+
}
void printSearchAndFilterBoxes(int searchEnabled, char *hubSearchTerms, char *dbFilter)
/* Create the text boxes for search and database filtering along with the required
* javscript */
{
printf("