src/hg/lib/validateGisaid.dummy 1.1

1.1 2009/06/26 14:34:45 fanhsu
Created validateGisaid.dummy, which should be used as validateGisaid.c for non-GISAID servers.
Index: src/hg/lib/validateGisaid.dummy
===================================================================
RCS file: src/hg/lib/validateGisaid.dummy
diff -N src/hg/lib/validateGisaid.dummy
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/hg/lib/validateGisaid.dummy	26 Jun 2009 14:34:45 -0000	1.1
@@ -0,0 +1,18 @@
+/* This is a dummy function for non-GISAID server */
+#include "common.h"
+
+#include "hCommon.h"
+
+boolean validateGisaidUser()
+{
+if (hIsGisaidServer())
+    {
+    /* The real implementation has confidential logic, which could not be exposed */
+    errAbort("The correct validateGisaidUser() implementation is not installed on this GISAID server.");
+    return FALSE;
+    }
+else
+    {
+    return TRUE;
+    }
+}