6469e916f4e7cd2797e63f1e0943bb2b65764632 hiram Mon May 18 09:59:47 2026 -0700 empty shell to build out for a liftRequest CGI refs #31811 diff --git src/hg/liftRequest/liftRequest.c src/hg/liftRequest/liftRequest.c new file mode 100644 index 00000000000..3c4fa7efc5d --- /dev/null +++ src/hg/liftRequest/liftRequest.c @@ -0,0 +1,49 @@ +/* liftRequest - manage user requests for lift over alignments. */ +#include "common.h" +#include "linefile.h" +#include "hash.h" +#include "options.h" +#include "jksql.h" +#include "htmshell.h" +#include "web.h" +#include "cheapcgi.h" +#include "cart.h" +#include "hui.h" +#include "udc.h" +#include "knetUdc.h" +#include "genbank.h" + +/* Global Variables */ +struct cart *cart; /* CGI and other variables */ +struct hash *oldVars = NULL; + +void doMiddle(struct cart *theCart) +/* Set up globals and make web page */ +{ +cart = theCart; +char *database = NULL; +char *genome = NULL; +getDbAndGenome(cart, &database, &genome, oldVars); +initGenbankTableNames(database); + +int timeout = cartUsualInt(cart, "udcTimeout", 300); +if (udcCacheTimeout() < timeout) + udcSetCacheTimeout(timeout); +knetUdcInstall(); + +cartWebStart(cart, database, "manage user requests for lift over alignments"); +printf("Your code goes here...."); +cartWebEnd(); +} + +/* Null terminated list of CGI Variables we don't want to save + * permanently. */ +char *excludeVars[] = {"Submit", "submit", NULL,}; + +int main(int argc, char *argv[]) +/* Process command line. */ +{ +cgiSpoof(&argc, argv); +cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars); +return 0; +}