\n");
}
void showLoadingOptions(char *userName, boolean savedSessionsSupported)
/* Show options for loading settings from another user's session, a file
* or URL. */
{
printf("
Restore Settings
\n");
if (savedSessionsSupported)
showOtherUserOptions();
printf("
\n");
printf("\n");
}
static struct dyString *dyPrintCheckExistingSessionJs(struct slName *existingSessionNames,
char *exceptName)
/* Write JS that will pop up a confirm dialog if the user's new session name is the same
* (case-insensitive) as any existing session name, i.e. they would be overwriting it.
* If exceptName is given, then it's OK for the new session name to match that. */
{
struct dyString *js = dyStringNew(1024);
struct slName *sn;
// MySQL does case-insensitive comparison because our DEFAULT CHARSET=latin1;
@@ -556,67 +556,67 @@
printf("
Save current settings as named session:"
"
\n"
"
name:
\n");
cgiMakeOnKeypressTextVar(hgsNewSessionName,
hubConnectSkipHubPrefix(cartUsualString(cart, "db", "mySession")),
20, jsPressOnEnter(hgsDoNewSession));
printf(" ");
cgiMakeCheckBox(hgsNewSessionShare,
cartUsualBoolean(cart, hgsNewSessionShare, TRUE));
printf("allow this session to be loaded by others\n");
printf("
\n");
printf("\n");
}
void showSessionControls(char *userName, boolean savedSessionsSupported,
boolean webStarted)
/* If userName is non-null, show sessions that belong to user and allow
* saving of named sessions.
* If savedSessionsSupported, allow import of named sessions.
* Allow export/import of settings from file/URL. */
{
char *formMethod = cartUsualString(cart, "formMethod", "POST");