#define DEFAULT_SSL_CIPHER_LIST "DEFAULT" /* See http://openssl.org/docs/apps/ciphers.html */
#endif
+#if SIZEOF_SIZE_T == SIZEOF_INT
+#define SIZE_T_FMT "%d"
+#else
+#define SIZE_T_FMT "%ld"
+#endif
+
+#if SIZEOF_LONG_UNSIGNED_INT == SIZEOF_INT
+#define ULONG_FMT "%d"
+#else
+#define ULONG_FMT "%ld"
+#endif
#define CALENDAR_ROOM_NAME "Calendar"
#define PRODID "-//Citadel//NONSGML Citadel Calendar//EN"
#define PORT_NUM 2000 /* port number to listen on */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
-#define CLIENT_VERSION 780 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 780 /* min required Citadel ver */
-#define LIBCITADEL_MIN 780 /* min required libcitadel ver */
+#define CLIENT_VERSION 783 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 781 /* min required Citadel ver */
+#define LIBCITADEL_MIN 781 /* min required libcitadel ver */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
#define TARGET "webcit01" /* Target for inline URL's */
StrBuf *httpauth_pass; /* only for GroupDAV sessions */
int axlevel; /* this user's access level */
int is_aide; /* nonzero == this user is an Aide */
- int is_room_aide; /* nonzero == this user is a Room Aide in this room */
int connected; /* nonzero == we are connected to Citadel */
int logged_in; /* nonzero == we are logged in */
int need_regi; /* This user needs to register. */
StrBuf *upload_filename; /* filename of http-uploaded data */
char upload_content_type[256]; /* content type of http-uploaded data */
- int new_mail; /* user has new mail waiting */
int remember_new_mail; /* last count of new mail messages */
/* Roomiew control */
void address_book_popup(void);
void begin_ajax_response(void);
void end_ajax_response(void);
-void initialize_viewdefs(void);
-void initialize_axdefs(void);
void burn_folder_cache(time_t age);
void list_all_rooms_by_floor(const char *viewpref);
void display_pictureview(void);
void http_transmit_thing(const char *content_type, int is_static);
long unescape_input(char *buf);
void do_selected_iconbar(void);
+void check_thread_pool_size(void);
void spawn_another_worker_thread(void);
void StrEndTab(StrBuf *Target, int tabnum, int num_tabs);
void StrBeginTab(StrBuf *Target, int tabnum, int num_tabs);
int is_mobile_ua(char *user_agent);
-void embed_room_banner(char *, int);
+void embed_room_banner(void);
HashList *GetFloorListHash(StrBuf *Target, WCTemplputParams *TP);
HashList *GetRoomListHash(StrBuf *Target, WCTemplputParams *TP);
int SortRoomsByListOrder(const void *room1, const void *room2);
-/* navbar types that can be passed to embed_room_banner */
-enum {
- navbar_none,
- navbar_default
-};
/* actual supported locales */
void TmplGettext(StrBuf *Target, WCTemplputParams *TP);
void begin_burst(void);
long end_burst(void);
+void AppendImportantMessage(const char *pch, long len);
+
extern char *hourname[]; /* Names of hours (12am, 1am, etc.) */
void http_datestring(char *buf, size_t n, time_t xtime);
#define WC_TIMEFORMAT_AMPM 1
#define WC_TIMEFORMAT_24 2
+extern int time_to_die; /* Nonzero if server is shutting down */