name in a Citadel IDEN command rather than its own name.
the transition back to the Lobby after it's all done.
* Added ExpressMessageCat() to allow code to send the user messages
along with incoming express messages
the transition back to the Lobby after it's all done.
* Added ExpressMessageCat() to allow code to send the user messages
along with incoming express messages
+ * WebCit now sends the name of the end user's browser as the client
+ name in a Citadel IDEN command rather than its own name.
Fri May 21 23:35:17 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Minor code cleanups
Fri May 21 23:35:17 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Minor code cleanups
void slrp_highest(void);
void gotonext(void);
void ungoto(void);
void slrp_highest(void);
void gotonext(void);
void ungoto(void);
-void get_serv_info(char *);
+void get_serv_info(char *, char *);
int connectsock(char *host, char *service, char *protocol);
void serv_gets(char *strbuf);
void serv_puts(char *string);
int connectsock(char *host, char *service, char *protocol);
void serv_gets(char *strbuf);
void serv_puts(char *string);
wprintf("</FONT></TD>");
/* Let the user know if new mail has arrived */
wprintf("</FONT></TD>");
/* Let the user know if new mail has arrived */
- if (new_mail > remember_new_mail) {
+ if ( (new_mail > remember_new_mail) && (new_mail>0) ) {
wprintf("<TD VALIGN=TOP>"
"<IMG SRC=\"/static/mail.gif\" border=0 "
"ALT=\"You have new mail\">"
wprintf("<TD VALIGN=TOP>"
"<IMG SRC=\"/static/mail.gif\" border=0 "
"ALT=\"You have new mail\">"
/*
* get info about the server we've connected to
*/
/*
* get info about the server we've connected to
*/
-void get_serv_info(char *browser_host)
+void get_serv_info(char *browser_host, char *user_agent)
{
char buf[256];
int a;
serv_printf("IDEN %d|%d|%d|%s|%s",
{
char buf[256];
int a;
serv_printf("IDEN %d|%d|%d|%s|%s",
- DEVELOPER_ID,
- CLIENT_ID,
- CLIENT_VERSION,
- SERVER,
- browser_host
- );
+ DEVELOPER_ID,
+ CLIENT_ID,
+ CLIENT_VERSION,
+ user_agent,
+ browser_host
+ );
serv_gets(buf);
serv_puts("INFO");
serv_gets(buf);
serv_puts("INFO");
-void session_loop(char *browser_host)
+void session_loop(char *browser_host, char *user_agent)
{
char cmd[256];
char action[256];
{
char cmd[256];
char action[256];
serv_sock = connectsock(c_host, c_port, "tcp");
connected = 1;
serv_gets(buf); /* get the server welcome message */
serv_sock = connectsock(c_host, c_port, "tcp");
connected = 1;
serv_gets(buf); /* get the server welcome message */
- get_serv_info(browser_host);
+ get_serv_info(browser_host, user_agent);
}
check_for_express_messages();
}
check_for_express_messages();
noframes = 0;
while (1) {
noframes = 0;
while (1) {
+ session_loop(argv[4], browser);