_("CITADEL")
);
- wprintf("<li><a href=\"javascript:switch_to_room_list()\">switch to room list</a>\n");
+ wprintf("<li><div align=\"center\">"
+ "<a href=\"javascript:switch_to_room_list()\">switch to room list</a>"
+ "</div>"
+ );
if (ib_summary) {
wprintf("<li><a href=\"summary\" "
_("CITADEL")
);
- wprintf("<li><a href=\"javascript:switch_to_menu_buttons()\">back to menu...</a>");
+ wprintf("<li><div align=\"center\">"
+ "<a href=\"javascript:switch_to_menu_buttons()\">switch to menu</a>"
+ "</div>"
+ );
wprintf("</ul>\n");
#include "webcit.h"
-struct folder {
- int floor;
- char room[SIZ];
- char name[SIZ];
- int hasnewmsgs;
- int is_mailbox;
- int selectable;
- int view;
-};
-
char floorlist[128][SIZ];
char *viewdefs[6];
char buf[256];
char floor_name[256];
char old_floor_name[256];
- char boxtitle[256];
+ char floordivtitle[256];
int levels, oldlevels;
int i, t;
- int nf;
int num_drop_targets = 0;
strcpy(floor_name, "");
strcpy(old_floor_name, "");
- nf = num_floors;
-
levels = 0;
oldlevels = 0;
for (i=0; i<max_folders; ++i) {
if (levels == 1) {
/* Begin floor */
- stresc(boxtitle, floor_name, 1, 0);
+ stresc(floordivtitle, floor_name, 1, 0);
wprintf("<span class=\"ib_roomlist_floor\" "
"onClick=\"expand_floor('floordiv%d')\">"
- "%s</span><br>\n", i, boxtitle);
+ "%s</span><br>\n", i, floordivtitle);
wprintf("<div id=\"floordiv%d\" style=\"display:none\">", i);
}
int is_new;
};
+/* Data structure for roomlist-to-folderlist conversion */
+struct folder {
+ int floor;
+ char room[SIZ];
+ char name[SIZ];
+ int hasnewmsgs;
+ int is_mailbox;
+ int selectable;
+ int view;
+};
+
/*
* One of these is kept for each active Citadel session.
* HTTP transactions are bound to one at a time.
struct wcsession {
struct wcsession *next; /* Linked list */
int wc_session; /* WebCit session ID */
- char wc_username[SIZ];
- char wc_password[SIZ];
- char wc_roomname[SIZ];
+ char wc_username[128];
+ char wc_password[128];
+ char wc_roomname[256];
int connected;
int logged_in;
int axlevel;
long uglsn;
int upload_length;
char *upload;
- char upload_filename[SIZ];
- char upload_content_type[SIZ];
+ char upload_filename[PATH_MAX];
+ char upload_content_type[256];
int new_mail;
int remember_new_mail;
int need_regi; /* This user needs to register. */
int need_vali; /* New users require validation. */
- char cs_inet_email[SIZ]; /* User's preferred Internet addr. */
+ char cs_inet_email[256]; /* User's preferred Internet addr. */
pthread_mutex_t SessionMutex; /* mutex for exclusive access */
time_t lastreq; /* Timestamp of most recent HTTP */
int killthis; /* Nonzero == purge this session */
struct march *march; /* march mode room list */
- char reply_to[SIZ]; /* reply-to address */
+ char reply_to[512]; /* reply-to address */
long msgarr[10000]; /* for read operations */
int num_summ;
struct urlcontent *urlstrings;
int HaveInstantMessages; /* Nonzero if incoming msgs exist */
struct wcsubst *vars;
- char this_page[SIZ]; /* address of current page */
- char http_host[SIZ]; /* HTTP Host: header */
+ char this_page[512]; /* address of current page */
+ char http_host[512]; /* HTTP Host: header */
char *preferences;
#ifdef WEBCIT_WITH_CALENDAR_SERVICE
struct disp_cal {
#endif
struct wc_attachment *first_attachment;
char ImportantMessage[SIZ];
- char last_chat_user[SIZ];
+ char last_chat_user[256];
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 */
+ char httpauth_user[256]; /* only for GroupDAV sessions */
+ char httpauth_pass[256]; /* only for GroupDAV sessions */
size_t burst_len;
char *burst;
void end_ajax_response(void);
void initialize_viewdefs(void);
void initialize_axdefs(void);
+void list_all_rooms_by_floor(char *viewpref);
#ifdef WEBCIT_WITH_CALENDAR_SERVICE
void display_edit_task(void);