65cc7eb95f048c9ee7aca28909f38f616ee3c26e chinhli Thu May 10 15:29:45 2012 -0700 Change coding style in hgLogin and hgSession to confirm to kent'style standard. diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index e50edac..b85d3ff 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -44,70 +44,72 @@ size_t len = strlen(encStr); char *decStr = needMem(len+1); cgiDecode(encStr, decStr, len); return decStr; } void welcomeUser(char *wikiUserName) /* Tell the user they are not logged in to the wiki or other login * system and tell them how to do so. */ { char *wikiHost = wikiLinkHost(); cartWebStart(cart, NULL, "Welcome %s", wikiUserName); jsInit(); -if (loginSystemEnabled()) +if (loginSystemEnabled()) /* Using the new hgLogin CGI for login? */ { printf("If you are not %s (on the %s at " "%s) " "and would like to sign out or change identity, \n", wikiUserName, loginSystemName(), wikiHost, wikiHost); printf("click here to sign out.\n", wikiLinkUserLogoutUrl(cartSessionId(cart))); - -} else { + } +else + { printf("If you are not %s (on the wiki at " "%s) " "and would like to sign out or change identity, \n", wikiUserName, wikiHost, wikiHost); printf("click here to sign out.\n", wikiLinkUserLogoutUrl(cartSessionId(cart))); } } void offerLogin() -/* Tell the user they are not logged in to the wiki and tell them how to +/* Tell the user they are not logged in to the system and tell them how to * do so. */ { char *wikiHost = wikiLinkHost(); cartWebStart(cart, NULL, "Sign in to UCSC Genome Bioinformatics"); jsInit(); if (loginSystemEnabled()) { printf("Signing in enables you to save current settings into a " "named session, and then restore settings from the session later.\n" "If you wish, you can share named sessions with other users.\n"); -printf("

The sign-in page is handled by our %s system. " - ,loginSystemName()); + printf("

The sign-in page is handled by our %s system. ", loginSystemName()); printf("click here to sign in.\n", wikiLinkUserLoginUrl(cartSessionId(cart))); printf("To register for an account, " "" "click here to sign up.\n",wikiHost); -} else { + } +else + { printf("Signing in enables you to save current settings into a " "named session, and then restore settings from the session later.\n" "If you wish, you can share named sessions with other users.\n"); printf("

The sign-in page is handled by our " "wiki system:\n", wikiHost); printf("click here to sign in.\n", wikiLinkUserLoginUrl(cartSessionId(cart))); printf("The wiki also serves as a forum for users " "to share knowledge and ideas.\n"); } } char *getLinkUserName() /* Return the user name specified in cookies from the browser, or NULL