5d837d61083dbcab8a41e629536e156ffab13694 braney Mon Aug 22 16:36:41 2011 -0700 add the ability to put the hgHubConnect contact email address in hg.conf (by request of the Lowe lab) diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index ffce0cf..8bd6d10 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -9,30 +9,31 @@ #include "dystring.h" #include "jksql.h" #include "cheapcgi.h" #include "htmshell.h" #include "hdb.h" #include "hui.h" #include "cart.h" #include "dbDb.h" #include "web.h" #include "trackHub.h" #include "hubConnect.h" #include "dystring.h" #include "hPrint.h" #include "jsHelper.h" #include "obscure.h" +#include "hgConfig.h" #define hgHub "hgHub_" /* prefix for all control variables */ #define hgHubDo hgHub "do_" /* prefix for all commands */ #define hgHubDoClear hgHubDo "clear" #define hgHubDoDisconnect hgHubDo "disconnect" #define hgHubDoReset hgHubDo "reset" struct cart *cart; /* The user's ui state. */ struct hash *oldVars = NULL; static char *destUrl = "../cgi-bin/hgTracks"; static char *pageTitle = "Import Tracks from Data Hubs"; char *database = NULL; char *organism = NULL; @@ -405,31 +406,35 @@ printf("
\n", destUrl); cartSaveSession(cart); // we have two tabs for the public and unlisted hubs printf("
" " "); hgHubConnectPublic(); hgHubConnectUnlisted(); printf("
"); printf("
"); cgiMakeButton("Submit", "Load Selected Hubs"); -printf("Contact genome@soe.ucsc.edu to add a public hub.\n"); + +char *emailAddress = cfgOptionDefault("hub.emailAddress","genome@soe.ucsc.edu"); +printf("" + "Contact %s to add a public hub." + "\n", emailAddress,emailAddress); printf("
"); if ((newId != 0) || gotDisconnect) // make MyHubs the default tab { printf("\n"); } cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); printf("\n"); puts("
"); cartWebEnd();