#define SLEEPING 180 /* TCP connection timeout */
#define WEBCIT_TIMEOUT 900 /* WebCit session timeout */
#define PORT_NUM 2000 /* port number to listen on */
-#define SERVER "WebCit v5.28" /* who's in da house */
+#define SERVER "WebCit v6.03" /* who's in da house */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
-#define CLIENT_VERSION 528 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 626 /* min required Citadel vers */
+#define CLIENT_VERSION 603 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 640 /* min required Citadel vers */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
#define LB (1) /* Internal escape chars */
char ImportantMessage[SIZ];
char last_chat_user[SIZ];
int ctdl_pid; /* Session ID on the Citadel server */
+ char httpauth_user[SIZ]; /* only for GroupDAV sessions */
+ char httpauth_pass[SIZ]; /* only for GroupDAV sessions */
+
+ size_t burst_len;
+ char *burst;
+ int gzip_ok; /* Nonzero if Accept-encoding: gzip */
};
#define extract(dest,source,parmnum) extract_token(dest,source,parmnum,'|')
extern char *ctdlhost, *ctdlport;
extern char *server_cookie;
extern int is_https;
-
+extern int setup_wizard;
+extern char wizard_filename[];
+void do_setup_wizard(void);
void stuff_to_cookie(char *cookie, int session,
char *user, char *pass, char *room);
void do_welcome(void);
void do_logout(void);
void display_main_menu(void);
+void display_aide_menu(void);
void display_advanced_menu(void);
void slrp_highest(void);
void gotonext(void);
void post_message(void);
void confirm_delete_msg(void);
void delete_msg(void);
-void do_stuff_to_one_msg(void);
void confirm_move_msg(void);
void move_msg(void);
void userlist(void);
void netedit(void);
void editroom(void);
void display_whok(void);
+void do_invt_kick(void);
void server_to_text(void);
void save_edit(char *description, char *enter_cmd, int regoto);
void display_edit(char *description, char *check_cmd,
void submit_vcard(void);
void striplt(char *);
void select_user_to_edit(char *message, char *preselect);
+void delete_user(char *);
void display_edituser(char *who, int is_new);
void create_user(void);
void edituser(void);
char *safestrncpy(char *dest, const char *src, size_t n);
void display_addressbook(long msgnum, char alpha);
void offer_start_page(void);
+void convenience_page(char *titlebarcolor, char *titlebarmsg, char *messagetext);
void change_start_page(void);
void output_html(void);
void display_floorconfig(char *);
void client_write_ssl(char *buf, int nbytes);
#endif
+#ifdef HAVE_ZLIB
+#include <zlib.h>
+int ZEXPORT compress_gzip(Bytef * dest, uLongf * destLen,
+ const Bytef * source, uLong sourceLen, int level);
+#endif
+
+
+void begin_burst(void);
+void end_burst(void);
+
extern char *ascmonths[];
+void http_datestring(char *buf, size_t n, time_t xtime);
/* Views (from citadel.h) */
#define VIEW_CALENDAR 3 /* Calendar view */
#define VIEW_TASKS 4 /* Tasks view */
#define VIEW_NOTES 5 /* Notes view */
+
+
+/* These should be empty, but we have them for testing */
+#define DEFAULT_HTTPAUTH_USER ""
+#define DEFAULT_HTTPAUTH_PASS ""