1618f943df5d435b2ec6b1fa6738b0d50f90a19a
jcasper
Fri Jan 11 15:47:11 2019 -0800
Revamp of CIRM CGI look to match static pages, refs #22765
diff --git src/hg/lib/web.c src/hg/lib/web.c
index 317a2bd..f598ada 100644
--- src/hg/lib/web.c
+++ src/hg/lib/web.c
@@ -92,30 +92,40 @@
{
extraStyle = style;
}
void webPragmasEtc()
/* Print out stuff that tells people not to cache us, and that we use the
* usual character set and scripting langauge. (Normally done by webStartWrap) */
{
printf("" "\n"
"" "\n"
"" "\n"
"" "\n"
);
}
+void webCirmPragmasEtc()
+/* Print out stuff similar to webPragmasEtc (don't cache us, character set, etc.), but
+ * use values appropriate for a more modern website (like CIRM). */
+{
+printf("\t\t\n" // Be nice to be utf-8, but that's a bigger issue to tackle
+ "\t\t\n"
+ "\t\t\n"
+ "\t\t\n");
+}
+
void webStartText()
/* output the head for a text page */
{
/*printf("Content-Type: text/plain\n\n");*/
webHeadAlreadyOutputed = TRUE;
webInTextMode = TRUE;
webPushErrHandlers();
}
static void webStartWrapperDetailedInternal(struct cart *theCart,
char *db, char *headerText, char *textOutBuf,
boolean withHttpHeader, boolean withLogo, boolean skipSectionHeader,
boolean withHtmlHeader)
/* output a CGI and HTML header with the given title in printf format */