#include <pwd.h>
#include <stdarg.h>
#include <errno.h>
-
+#include <libcitadel.h>
#include "citadel.h"
#include "citadel_ipc.h"
#include "axdefs.h"
#include "client_chat.h"
#include "client_passwords.h"
#include "citadel_decls.h"
-#include "tools.h"
#include "sysdep.h"
#ifndef HAVE_SNPRINTF
#include "snprintf.h"
return;
}
- pprintf(" User Name Num L LastCall Calls Posts\n");
- pprintf("------------------------- ----- - ---------- ----- -----\n");
+ pprintf(" User Name Num L Last Visit Logins Messages\n");
+ pprintf("------------------------- ----- - ---------- ------ --------\n");
if (listing != NULL) while (!IsEmptyStr(listing)) {
extract_token(buf, listing, 0, '\n', sizeof buf);
remove_token(listing, 0, '\n');
(tmbuf.tm_mon + 1),
tmbuf.tm_mday,
(tmbuf.tm_year + 1900));
- pprintf("%5ld %5ld\n", extract_long(buf, 4), extract_long(buf, 5));
+ pprintf("%6ld %8ld\n", extract_long(buf, 4), extract_long(buf, 5));
}
}
scr_printf("Connected users %d / Active users %d / Highest message #%ld\n", mrtg_users, mrtg_active_users, mrtg_himessage);
scr_printf("Server uptime: %s\n", mrtg_server_uptime);
scr_printf("Your system administrator is %s.\n", ipc->ServInfo.sysadm);
- scr_printf("Copyright (C)1987-2007 by the Citadel development team\n");
+ scr_printf("Copyright (C)1987-2008 by the Citadel development team\n");
}
/*
* it to the reader's screen width, but since our HTML-to-text parser
* isn't really all that great, it's probably better to just go with
* the plain text when we have it available.
+ *
+ * We also indicate to the server that we prefer to decode Base64 and
+ * quoted-printable on the client side.
*/
+ if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "dont_decode") / 100 ) != 2) {
+ scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n");
+ logoff(ipc, 0);
+ }
if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "text/plain|text/html") / 100 ) != 2) {
scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n");
logoff(ipc, 0);
eCrashParameters params;
// eCrashSymbolTable symbol_table;
#endif
- CtdlInitBase64Table();
- calc_dirs_n_files(relh, home, relhome, ctdldir);
+ calc_dirs_n_files(relh, home, relhome, ctdldir, 0);
#ifdef HAVE_BACKTRACE
bzero(¶ms, sizeof(params));
goto GSTA;
} /* end main() */
+