Wed Dec 9 11:13:48 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Smoothed out some of the login/logout code. Failed authentication
- now works the way it should. New user login not yet supported.
+ now works the way it should.
+ * Added support for new user login (still need to handle registration).
Tue Dec 8 15:45:42 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Discovered that the HTTP socket problem is related to a socket that
}
if (!strcasecmp(bstr("action"), "New User")) {
- display_login("New user login not yet supported.");
- return;
+ serv_printf("NEWU %s", bstr("name"));
+ serv_gets(buf);
+ if (buf[0]=='2') {
+ become_logged_in(bstr("name"), bstr("pass"), buf);
+ serv_printf("SETP %s", bstr("pass"));
+ serv_gets(buf);
+ }
+ else {
+ display_login(&buf[4]);
+ return;
+ }
}
if (logged_in) {
wprintf("<CENTER><H1>");
escputs(wc_username);
wprintf("</H1>\n");
- /* other stuff here */
+ /* FIX add user stats here */
+
+ wprintf("<HR>");
+ /* FIX --- what should we put here? the main menu,
+ * or new messages in the lobby?
+ */
+ embed_main_menu();
+
wprintf("</BODY></HTML>\n");
wDumpContent();
}
void escputs1(char *strbuf, int nbsp);
long extract_long(char *source, long int parmnum);
void dump_vars(void);
+void embed_main_menu(void);
<FRAME name="left" src="/static/menubar.html">
<FRAMESET rows="15%, 80%">
<FRAME name="top" src="/dotgoto?room=_BASEROOM_">
- <FRAME name="bottom" src="/display_main_menu">
+ <FRAME name="bottom" src="/do_welcome">
</FRAMESET>
<NOFRAMES>
Your browser doesn't support frames.<BR>