X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.h;h=3d99a11f03603cd7ec319efd0e3c13612c18ab4c;hb=c90b9009ad3b2411389d3dad969c19ec17688268;hp=8968551aaa92e860f35ed6455392b2530055c4e2;hpb=05b7980adba4f517c3fc30d3ce97adb5c337c750;p=citadel.git diff --git a/webcit/webcit.h b/webcit/webcit.h index 8968551aa..3d99a11f0 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -1,8 +1,8 @@ /* $Id$ */ -#define SLEEPING 180 /* TCP connection timeout */ -#define WEBCIT_TIMEOUT 900 /* WebCit session timeout */ -#define PORT_NUM 2000 /* port number to listen on */ +#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 v2.0 (Velma)" /* who's in da house */ #define DEVELOPER_ID 0 #define CLIENT_ID 4 @@ -13,37 +13,44 @@ #define RB (2) #define QU (3) #define TARGET "webcit01" -#define HOUSEKEEPING 60 /* Housekeeping frequency */ +#define HOUSEKEEPING 60 /* Housekeeping frequency */ -#define QR_PERMANENT 1 /* Room does not purge */ -#define QR_INUSE 2 /* Set if in use, clear if avail */ -#define QR_PRIVATE 4 /* Set for any type of private room */ -#define QR_PASSWORDED 8 /* Set if there's a password too */ -#define QR_GUESSNAME 16 /* Set if it's a guessname room */ -#define QR_DIRECTORY 32 /* Directory room */ -#define QR_UPLOAD 64 /* Allowed to upload */ -#define QR_DOWNLOAD 128 /* Allowed to download */ -#define QR_VISDIR 256 /* Visible directory */ -#define QR_ANONONLY 512 /* Anonymous-Only room */ -#define QR_ANONOPT 1024 /* Anonymous-Option room */ -#define QR_NETWORK 2048 /* Shared network room */ -#define QR_PREFONLY 4096 /* Preferred status needed to enter */ -#define QR_READONLY 8192 /* Aide status required to post */ -#define QR_MAILBOX 16384 /* Set if this is a private mailbox */ +/* Values that can be returned by browser_braindamage_check() */ +#define B_YES 0 /* Ok to use frames and JavaScript */ +#define B_NO 1 /* Do not use frames and JavaScript */ +#define B_ASK 2 /* Ask the user */ + + +/* Room flags (from Citadel) */ +#define QR_PERMANENT 1 /* Room does not purge */ +#define QR_INUSE 2 /* Set if in use, clear if avail */ +#define QR_PRIVATE 4 /* Set for any type of private room */ +#define QR_PASSWORDED 8 /* Set if there's a password too */ +#define QR_GUESSNAME 16 /* Set if it's a guessname room */ +#define QR_DIRECTORY 32 /* Directory room */ +#define QR_UPLOAD 64 /* Allowed to upload */ +#define QR_DOWNLOAD 128 /* Allowed to download */ +#define QR_VISDIR 256 /* Visible directory */ +#define QR_ANONONLY 512 /* Anonymous-Only room */ +#define QR_ANONOPT 1024 /* Anonymous-Option room */ +#define QR_NETWORK 2048 /* Shared network room */ +#define QR_PREFONLY 4096 /* Preferred status needed to enter */ +#define QR_READONLY 8192 /* Aide status required to post */ +#define QR_MAILBOX 16384 /* Set if this is a private mailbox */ struct webcontent { struct webcontent *next; char w_data[256]; - }; +}; struct urlcontent { struct urlcontent *next; char url_key[32]; char *url_data; - }; +}; struct serv_info { int serv_pid; @@ -56,7 +63,7 @@ struct serv_info { char serv_sysadm[64]; char serv_moreprompt[256]; int serv_ok_floors; - }; +}; extern char wc_username[256]; extern char wc_password[256]; @@ -76,9 +83,7 @@ extern int upload_length; extern char *upload; extern char floorlist[128][256]; extern int noframes; -extern char browser[256]; void stuff_to_cookie(char *, int, char *, char *, char *, int); void cookie_to_stuff(char *, int *, char *, char *, char *, int *); void locate_host(char *, int); -