4a12b8e105ea5b518de2c1ce33c1b94e3df09a2e hiram Mon Jun 25 10:56:10 2012 -0700 make the wiki track read only be an option in hg.conf diff --git src/hg/hgGene/wikiTrack.c src/hg/hgGene/wikiTrack.c index f746d1a..0fdde5f 100644 --- src/hg/hgGene/wikiTrack.c +++ src/hg/hgGene/wikiTrack.c @@ -4,32 +4,30 @@ #include "hash.h" #include "linefile.h" #include "dystring.h" #include "spDb.h" #include "web.h" #include "hgConfig.h" #include "hgGene.h" #include "htmlPage.h" #include "hgColors.h" #include "hdb.h" #include "binRange.h" #include "wikiLink.h" #include "wikiTrack.h" -/* enforce read-only 2012-06-22 */ -#ifdef NOT static char *hgGeneUrl() { static char retBuf[1024]; safef(retBuf, ArraySize(retBuf), "cgi-bin/hgGene?%s=1&%s", hggDoWikiTrack, cartSidUrlString(cart)); return retBuf; } static char *wikiTrackUserLoginUrl() /* Return the URL for the wiki user login page. */ { char *retEnc = encodedReturnUrl(hgGeneUrl); char buf[2048]; safef(buf, sizeof(buf), @@ -40,31 +38,30 @@ } static void offerLogin() /* display login prompts to the wiki when user isn't already logged in */ { char *wikiHost = wikiLinkHost(); char *loginUrl = wikiTrackUserLoginUrl(); printf("
Please login to add annotations to this UCSC gene.
\n"); printf("The login page is handled by our "
"wiki system:\n", wikiHost);
printf("click here to login.
\n", loginUrl);
printf("The wiki also serves as a forum for users "
"to share knowledge and ideas.\n