#include "messages.h"
#include "paramhandling.h"
#include "preferences.h"
+#include "roomops.h"
#ifdef HAVE_OPENSSL
/* Work around RedHat's b0rken OpenSSL includes */
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>
+extern char *ssl_cipher_list;
+#define DEFAULT_SSL_CIPHER_LIST "DEFAULT" /* See http://openssl.org/docs/apps/ciphers.html */
#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 766 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 766 /* min required Citadel ver */
+#define CLIENT_VERSION 780 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 780 /* min required Citadel ver */
#define LIBCITADEL_MIN 766 /* min required libcitadel ver */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
WebcitHandlerFunc F;
long Flags;
StrBuf *Name;
+ StrBuf *DisplayName;
} WebcitHandler;
-void WebcitAddUrlHandler(const char * UrlString, long UrlSLen, WebcitHandlerFunc F, long Flags);
+
+
+void WebcitAddUrlHandler(const char * UrlString, long UrlSLen, const char *DisplayName, long dslen, WebcitHandlerFunc F, long Flags);
typedef struct _headereval {
ExamineMsgHeaderFunc evaluator;
int gzip_ok; /* Nonzero if Accept-encoding: gzip */
int prohibit_caching;
int dav_depth;
+ int Static;
/* these are references into Hdr->HTTPHeaders, so we don't need to free them. */
StrBuf *ContentType;
StrBuf *ReqLine;
StrBuf *http_host; /* HTTP Host: header */
StrBuf *browser_host;
+ StrBuf *browser_language;
StrBuf *user_agent;
StrBuf *plainauth;
StrBuf *dav_ifmatch;
char ImportantMessage[SIZ];
StrBuf *ImportantMsg;
HashList *Directory; /* Parts of the directory URL in snippets */
+ const floor *CurrentFloor; /**< when Parsing REST, which floor are we on? */
/* accounting */
StrBuf *wc_username; /* login name of current user */
int cache_max_folders;
int cache_num_floors;
time_t cache_timestamp;
- HashList *IconBarSettings; /* which icons should be shown / not shown? */
+ long *IBSettingsVec; /* which icons should be shown / not shown? */
const StrBuf *floordiv_expanded; /* which floordiv currently expanded */
void display_advanced_menu(void);
void slrp_highest(void);
ServInfo *get_serv_info(StrBuf *, StrBuf *);
+void RegisterEmbeddableMimeType(const char *MimeType, long MTLen, int Priority);
+void CreateMimeStr(void);
int GetConnected(void);
void DeleteServInfo(ServInfo **FreeMe);
int uds_connectsock(char *);
int suppress_check,
int cache);
void output_custom_content_header(const char *ctype);
-void wprintf(const char *format,...)__attribute__((__format__(__printf__,1,2)));
+void wc_printf(const char *format,...)__attribute__((__format__(__printf__,1,2)));
void hprintf(const char *format,...)__attribute__((__format__(__printf__,1,2)));
void output_static(const char* What);
int get_time_format_cached (void);
int xtoi(const char *in, size_t len);
const char *get_selected_language(void);
+void display_wiki_pagelist(void);
#define DATEFMT_FULL 0
#define DATEFMT_BRIEF 1