diff options
Diffstat (limited to '')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index b5ee0f8..28dddfe 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -3966,9 +3966,9 @@ void loginPage(reqData *Rd, char *message) | |||
3966 | HTMLtext(Rd->reply, "text", "name", "name", name, 42, 63, TRUE); | 3966 | HTMLtext(Rd->reply, "text", "name", "name", name, 42, 63, TRUE); |
3967 | HTMLtext(Rd->reply, "password", "password", "password", "", 16, 0, TRUE); | 3967 | HTMLtext(Rd->reply, "password", "password", "password", "", 16, 0, TRUE); |
3968 | Rd->reply->addstr(Rd->reply, "<p>Warning, the limit on password length is set by your viewer, some can't handle longer than 16 characters.</p>\n"); | 3968 | Rd->reply->addstr(Rd->reply, "<p>Warning, the limit on password length is set by your viewer, some can't handle longer than 16 characters.</p>\n"); |
3969 | Rd->reply->addstr(Rd->reply, "<p>While viewers will usually remember your name and password for you, you'll need to remember it for this web site to. %nbsp; " | 3969 | Rd->reply->addstr(Rd->reply, "<p>While viewers will usually remember your name and password for you, you'll need to remember it for this web site to. " |
3970 | "I highly recommend using a password manager. KeePass and it's variations is a great password manager.</p>\n"); | 3970 | "I highly recommend using a password manager. KeePass and it's variations is a great password manager.</p>\n"); |
3971 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />"); // Stop Enter key on text fields triggering the first submit button. | 3971 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />\n"); // Stop Enter key on text fields triggering the first submit button. |
3972 | HTMLbutton(Rd->reply, "login"); | 3972 | HTMLbutton(Rd->reply, "login"); |
3973 | HTMLbutton(Rd->reply, "create"); | 3973 | HTMLbutton(Rd->reply, "create"); |
3974 | if (0 != Rd->errors->size(Rd->errors)) | 3974 | if (0 != Rd->errors->size(Rd->errors)) |
@@ -3997,14 +3997,14 @@ void accountCreationPage(reqData *Rd, char *message) | |||
3997 | HTMLform(Rd->reply, "", Rd->shs.munchie); | 3997 | HTMLform(Rd->reply, "", Rd->shs.munchie); |
3998 | HTMLhidden(Rd->reply, "name", name); | 3998 | HTMLhidden(Rd->reply, "name", name); |
3999 | HTMLhidden(Rd->reply, "UUID", getStrH(Rd->stuff, "UUID")); | 3999 | HTMLhidden(Rd->reply, "UUID", getStrH(Rd->stuff, "UUID")); |
4000 | HTMLtext(Rd->reply, "password", "Re-enter your password", "password", "", 16, 0, FALSE); | ||
4001 | Rd->reply->addstr(Rd->reply, "<p>Warning, the limit on password length is set by your viewer, some can't handle longer than 16 characters.</p>\n"); | ||
4002 | Rd->reply->addstr(Rd->reply, "<p>While viewers will usually remember your name and password for you, you'll need to remember it for this web site to. " | ||
4003 | "I highly recommend using a password manager. KeePass and it's variations is a great password manager.</p>\n"); | ||
4000 | HTMLtext(Rd->reply, "email", "email", "email", getStrH(Rd->stuff, "email"), 42, 254, FALSE); | 4004 | HTMLtext(Rd->reply, "email", "email", "email", getStrH(Rd->stuff, "email"), 42, 254, FALSE); |
4001 | HTMLtext(Rd->reply, "email", "Repeat your email, to be sure you got it correct", "emayl", getStrH(Rd->stuff, "emayl"), 42, 254, FALSE); | 4005 | HTMLtext(Rd->reply, "email", "Repeat your email, to be sure you got it correct", "emayl", getStrH(Rd->stuff, "emayl"), 42, 254, FALSE); |
4002 | Rd->reply->addstr(Rd->reply, "<p>A validation email will be sent to this email address, you will need to click on the link in it to continue your account creation.</p>\n"); | 4006 | Rd->reply->addstr(Rd->reply, "<p>A validation email will be sent to this email address, you will need to click on the link in it to continue your account creation.</p>\n"); |
4003 | HTMLtext(Rd->reply, "password", "Re-enter your password", "password", "", 16, 0, FALSE); | 4007 | Rd->reply->addstr(Rd->reply, "<table><tr><td>\n"); |
4004 | Rd->reply->addstr(Rd->reply, "<p>Warning, the limit on password length is set by your viewer, some can't handle longer than 16 characters.</p>\n"); | ||
4005 | Rd->reply->addstr(Rd->reply, "<p>While viewers will usually remember your name and password for you, you'll need to remember it for this web site to. %nbsp; " | ||
4006 | "I highly recommend using a password manager. KeePass and it's variations is a great password manager.</p>\n"); | ||
4007 | Rd->reply->addstr(Rd->reply, "<table><tr><td>"); | ||
4008 | HTMLselect(Rd->reply, "Date of birth", "year"); | 4008 | HTMLselect(Rd->reply, "Date of birth", "year"); |
4009 | t = getStrH(Rd->stuff, "year"); | 4009 | t = getStrH(Rd->stuff, "year"); |
4010 | if (NULL == t) | 4010 | if (NULL == t) |
@@ -4035,10 +4035,12 @@ void accountCreationPage(reqData *Rd, char *message) | |||
4035 | HTMLoption(Rd->reply, months[i], sel); | 4035 | HTMLoption(Rd->reply, months[i], sel); |
4036 | } | 4036 | } |
4037 | HTMLselectEnd(Rd->reply); | 4037 | HTMLselectEnd(Rd->reply); |
4038 | Rd->reply->addstr(Rd->reply, "</td></tr></table>"); | 4038 | Rd->reply->addstr(Rd->reply, "</td></tr></table>\n"); |
4039 | HTMLcheckBox(Rd->reply, "adult", "I'm allegedly an adult in my country.", !strcmp("on", getStrH(Rd->stuff, "adult"))); | 4039 | HTMLcheckBox(Rd->reply, "adult", "I'm allegedly an adult in my country.", !strcmp("on", getStrH(Rd->stuff, "adult"))); |
4040 | HTMLcheckBox(Rd->reply, "agree", "I accept the Terms & Conditions of Use.", !strcmp("on", getStrH(Rd->stuff, "agree"))); | 4040 | HTMLcheckBox(Rd->reply, "agree", "I accept the Terms of Service.", !strcmp("on", getStrH(Rd->stuff, "agree"))); |
4041 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />"); // Stop Enter key on text fields triggering the first submit button. | 4041 | Rd->reply->addstrf(Rd->reply, "<h2>Terms of Service</h2><pre>%s</pre>\n", getStrH(Rd->configs, "ToS")); |
4042 | // For maxlength - the MySQL database field is type text, which has a max length of 64 Kilobytes byets, but characters might take up 1 - 4 bytes, and maxlength is in characters. | ||
4043 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />\n"); // Stop Enter key on text fields triggering the first submit button. | ||
4042 | HTMLbutton(Rd->reply, "confirm"); | 4044 | HTMLbutton(Rd->reply, "confirm"); |
4043 | HTMLbutton(Rd->reply, "cancel"); | 4045 | HTMLbutton(Rd->reply, "cancel"); |
4044 | if (0 != Rd->errors->size(Rd->errors)) | 4046 | if (0 != Rd->errors->size(Rd->errors)) |
@@ -4075,7 +4077,7 @@ void loggedOnPage(reqData *Rd, char *message) | |||
4075 | HTMLoption(Rd->reply, "disabled", false); | 4077 | HTMLoption(Rd->reply, "disabled", false); |
4076 | HTMLoption(Rd->reply, "god", false); | 4078 | HTMLoption(Rd->reply, "god", false); |
4077 | HTMLselectEnd(Rd->reply); | 4079 | HTMLselectEnd(Rd->reply); |
4078 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />"); // Stop Enter key on text fields triggering the first submit button. | 4080 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />\n"); // Stop Enter key on text fields triggering the first submit button. |
4079 | HTMLbutton(Rd->reply, "delete"); | 4081 | HTMLbutton(Rd->reply, "delete"); |
4080 | HTMLbutton(Rd->reply, "list"); | 4082 | HTMLbutton(Rd->reply, "list"); |
4081 | HTMLbutton(Rd->reply, "logout"); | 4083 | HTMLbutton(Rd->reply, "logout"); |
@@ -4106,7 +4108,7 @@ void listPage(reqData *Rd, char *message) | |||
4106 | HTMLform(Rd->reply, "", Rd->shs.munchie); | 4108 | HTMLform(Rd->reply, "", Rd->shs.munchie); |
4107 | HTMLhidden(Rd->reply, "name", name); | 4109 | HTMLhidden(Rd->reply, "name", name); |
4108 | HTMLhidden(Rd->reply, "UUID", getStrH(Rd->stuff, "UUID")); | 4110 | HTMLhidden(Rd->reply, "UUID", getStrH(Rd->stuff, "UUID")); |
4109 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />"); // Stop Enter key on text fields triggering the first submit button. | 4111 | Rd->reply->addstrf(Rd->reply, "<input type='submit' disabled style='display: none' aria-hidden='true' />\n"); // Stop Enter key on text fields triggering the first submit button. |
4110 | HTMLbutton(Rd->reply, "me"); | 4112 | HTMLbutton(Rd->reply, "me"); |
4111 | HTMLbutton(Rd->reply, "logout"); | 4113 | HTMLbutton(Rd->reply, "logout"); |
4112 | if (0 != Rd->errors->size(Rd->errors)) | 4114 | if (0 != Rd->errors->size(Rd->errors)) |