e70152e44cc66cc599ff6b699eb8adc07f3e656a
kent
Sat May 24 21:09:34 2014 -0700
Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment.
diff --git src/hg/hgBatch/hgBatch.c src/hg/hgBatch/hgBatch.c
index 05911a3..36c9ded 100644
--- src/hg/hgBatch/hgBatch.c
+++ src/hg/hgBatch/hgBatch.c
@@ -1,58 +1,61 @@
/* hgBatch - Use to do batch queries of genome database over web,
* now it sends user to Table Browser which has incorporated its functions. */
+
+/* Copyright (C) 2011 The Regents of the University of California
+ * See README in this or parent directory for licensing information. */
#include "common.h"
#include "options.h"
#include "htmshell.h"
#include "cheapcgi.h"
#include "web.h"
#include "cart.h"
#include "hui.h"
#include "hCommon.h"
static struct cart *cart = NULL;
void doMiddle(struct cart *theCart)
/* Set up a few preliminaries and dispatch to a
* particular form. */
{
cart = theCart;
char headerText[256];
int redirDelay = 5;
safef(headerText, sizeof(headerText),
"",
redirDelay, hgTextName());
webStartHeader(cart, headerText, "hgBatch: replaced by hgText");
puts("The Table Browser now supports batch queries, so this page "
"has been retired. \n"
"You will be automatically redirected to the Table Browser in ");
printf("%d seconds, or you can
\n"
"click here to continue.\n",
redirDelay, hgTextName());
webEnd();
}
/* Null terminated list of CGI Variables we don't want to save
* permanently. */
char *excludeVars[] = {"Submit", "submit",
"hgb.userKeys",
"hgb.pasteKeys", "hgb.uploadKeys", "hgb.showPasteResults",
"hgb.showUploadResults"};
int main(int argc, char *argv[])
/* Process command line. */
{
struct cart *theCart;
struct hash *oldVars = hashNew(8);
cgiSpoof(&argc, argv);
// Sometimes we output HTML and sometimes plain text; let each outputter
// take care of headers instead of using a fixed cart*Shell().
theCart = cartAndCookieWithHtml(hUserCookie(), excludeVars, oldVars, FALSE);
doMiddle(theCart);
cartCheckout(&theCart);
return 0;
}