/*
* Main Citadel header file
*
- * Copyright (c) 1987-2011 by the citadel.org team
+ * Copyright (c) 1987-2012 by the citadel.org team
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
+ * This program is open source software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* system customizations are in sysconfig.h */
* usually more strict because you're not really supposed to dump/load and
* upgrade at the same time.
*/
-#define REV_LEVEL 803 /* This version */
+#define REV_LEVEL 810 /* This version */
#define REV_MIN 591 /* Oldest compatible database */
#define EXPORT_REV_MIN 760 /* Oldest compatible export files */
-#define LIBCITADEL_MIN 802 /* Minimum required version of libcitadel */
+#define LIBCITADEL_MIN 810 /* Minimum required version of libcitadel */
#define SERVER_TYPE 0 /* zero for stock Citadel; other developers please
obtain SERVER_TYPE codes for your implementations */
*/
typedef struct ExpirePolicy ExpirePolicy;
struct ExpirePolicy {
-/*
-#include "datadefinitions.h"
-#include "dtds/expirepolicy-defs.h"
-#include "undef_data.h"
-*/
int expire_mode;
int expire_value;
};
*/
typedef struct march march;
struct march {
-/*
-#include "datadefinitions.h"
-#include "dtds/march-defs.h"
-#include "undef_data.h"
-*/
struct march *next;
char march_name[ROOMNAMELEN];
unsigned int march_flags;
*/
typedef struct ctdluser ctdluser;
struct ctdluser { /* User record */
-/*
-#include "datadefinitions.h"
-#include "dtds/user-defs.h"
-#include "undef_data.h"
-*/
int version; /* Cit vers. which created this rec */
uid_t uid; /* Associate with a unix account? */
char password[32]; /* password */
*/
typedef struct ctdlroom ctdlroom;
struct ctdlroom {
-/*
-#include "datadefinitions.h"
-#include "dtds/room-defs.h"
-#include "undef_data.h"
-*/
char QRname[ROOMNAMELEN]; /* Name of room */
char QRpasswd[10]; /* Only valid if it's a private rm */
long QRroomaide; /* User number of room aide */
*/
typedef struct floor floor;
struct floor {
-/*
-#include "datadefinitions.h"
-#include "dtds/floor-defs.h"
-#include "undef_data.h"
-*/
unsigned short f_flags; /* flags */
char f_name[256]; /* name of floor */
int f_ref_count; /* reference count */
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
-AC_INIT([Citadel], [8.03], [http://www.citadel.org/])
+AC_INIT([Citadel], [8.10], [http://www.citadel.org/])
AC_REVISION([$Revision: 5108 $])
AC_CONFIG_SRCDIR([citserver.c])
AC_CONFIG_HEADER(sysdep.h)
dnl Ensure that libcitadel is configured with autoconf 2.52 or newer
AC_PREREQ(2.52)
-AC_INIT(libcitadel, 8.02, http://uncensored.citadel.org)
+AC_INIT(libcitadel, 8.10, http://uncensored.citadel.org)
AC_CONFIG_SRCDIR(Makefile.in)
AC_CONFIG_AUX_DIR(conftools)
dnl
LIBCURRENT=2
-LIBREVISION=1
-LIBAGE=0
+LIBREVISION=2
+LIBAGE=1
sinclude(conftools/libtool.m4)
sinclude(conftools/ac_c_bigendian_cross.m4)
dnl Process this file with autoconf to produce a configure script.
dnl $Id$
-AC_INIT([WebCit], [8.03], [http://www.citadel.org/])
+AC_INIT([WebCit], [8.10], [http://www.citadel.org/])
AC_SUBST(PROG_SUBDIRS)
#define PORT_NUM 2000 /* port number to listen on */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
-#define CLIENT_VERSION 802 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 802 /* min required Citadel ver */
-#define LIBCITADEL_MIN 802 /* min required libcitadel ver */
+#define CLIENT_VERSION 810 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 810 /* Minimum required version of Citadel server */
+#define LIBCITADEL_MIN 810 /* Minimum required version of libcitadel */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
-#define TARGET "webcit01" /* Target for inline URL's */
+#define TARGET "webcit01" /* Window target for inline URL's */
#define HOUSEKEEPING 15 /* Housekeeping frequency */
#define MAX_WORKER_THREADS 250
#define LISTEN_QUEUE_LENGTH 100 /* listen() backlog queue */
#define EXPIRE_MANUAL 1 /* Don't expire messages at all */
#define EXPIRE_NUMMSGS 2 /* Keep only latest n messages */
#define EXPIRE_AGE 3 /* Expire messages after n days */
+
typedef struct __ExpirePolicy {
int loaded; /* has this been loaded from the server? */
int expire_mode;
int expire_value;
-}ExpirePolicy;
+} ExpirePolicy;
void LoadExpirePolicy(GPEXWhichPolicy which);
void SaveExpirePolicyFromHTTP(GPEXWhichPolicy which);
StrBuf *ConvertBuf1;
StrBuf *ConvertBuf2;
-/* cache stuff for templates. TODO: find a smartrer way */
+/* cache stuff for templates. TODO: find a smarter way */
HashList *ServCfg; /* cache our server config for editing */
HashList *InetCfg; /* Our inet server config for editing */
ExpirePolicy Policy[maxpolicy];
ssize_t write(int fd, const void *buf, size_t count);
void cal_process_attachment(wc_mime_attachment *Mime);
-void generate_uuid(char *);
-
void address_book_popup(void);
void begin_ajax_response(void);
void end_ajax_response(void);
-
extern char *months[];
extern char *days[];
long locate_user_vcard_in_this_room(message_summary **VCMsg,
void begin_tab(int tabnum, int num_tabs);
void end_tab(int tabnum, int num_tabs);
-
int get_time_format_cached (void);
void display_wiki_pagelist(void);
HashList *GetRoomListHashLKRA(StrBuf *Target, WCTemplputParams *TP);