b312b42ad8c3e89350417bb7b05c9e05a1507281 kate Thu Jan 27 22:10:20 2011 -0800 Support for genome browser preview site. 1. Changes browser title in CGIs 2. Prints warning text on hgGateway 3. Prints warning text on home page 1. and 2. activated by HTTP_HOST prefix 'genome-preview', or by setting test.preview=true in hg.conf diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index e1f043d..d2b12e6 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -402,32 +402,45 @@ struct dbDb *hArchiveDbDbList(void); /* Return list of databases in archive central dbDb. * Free this with dbDbFree. */ int hDbDbCmpOrderKey(const void *va, const void *vb); /* Compare to sort based on order key */ char *hDbDbNibPath(char *database); /* return nibPath from dbDb for database */ struct sqlConnection *hMaybeConnectArchiveCentral(void); /* Connect to central database for archives. * Free this up with hDisconnectCentralArchive(). */ +boolean hHostHasPrefix(char *prefix); +/* Return TRUE if this is running on web-server with host name prefix */ + boolean hIsPrivateHost(void); -/* Return TRUE if this is running on private web-server. */ +/* Return TRUE if this is running on private (development) web-server. + * This was originally genome-test as well as hgwdev, however genome-test + * may be repurposed to direct users to the preview site instead of development site. */ + +boolean hIsPreviewHost(void); +/* Return TRUE if this is running on preview web-server. The preview + * server is a mirror of the development server provided for public + * early access. */ + +char *hBrowserName(); +/* Return browser name based on host name */ boolean hTrackOnChrom(struct trackDb *tdb, char *chrom); /* Return TRUE if track exists on this chromosome. */ struct trackDb *trackDbPolishAfterLinkup(struct trackDb *tdbList, char *db); /* Do various massaging that can only be done after parent/child * relationships are established. */ struct trackDb *hTrackDb(char *db); /* Load tracks associated with current db. * Supertracks are loaded as a trackDb, but are not in the returned list, * but are accessible via the parent pointers of the member tracks. Also, * the supertrack trackDb subtrack fields are not set here (would be * incompatible with the returned list) * Returns list sorted by priority