src/hg/lib/hCommon.c 1.37

1.37 2009/06/04 21:06:18 fanhsu
Added hIsGisaidServer().
Index: src/hg/lib/hCommon.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hCommon.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -b -B -U 4 -r1.36 -r1.37
--- src/hg/lib/hCommon.c	31 Oct 2008 22:32:29 -0000	1.36
+++ src/hg/lib/hCommon.c	4 Jun 2009 21:06:18 -0000	1.37
@@ -238,8 +238,23 @@
     }
 return mgcHost;
 }
 
+boolean hIsGisaidServer()
+/* Is this the GISAID-customized server? Change for config variable
+ * gisaid.server=yes */
+{
+static boolean gisaidHost = FALSE;
+static boolean haveChecked = FALSE;
+if (!haveChecked)
+    {
+    char *serverOpt = cfgOption("gisaid.server");
+    gisaidHost = (serverOpt != NULL) && sameString(serverOpt, "yes");
+    haveChecked = TRUE;
+    }
+return gisaidHost;
+}
+
 boolean hIsGsidServer()
 /* Is this the GSID-customized server? Change for config variable
  * gsid.server=yes */
 {