X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.c;h=782f6a99b0c4acf112ef448c0afe25d2400f65d7;hb=39581b591a9b9a23a30d6401a489099079d10734;hp=dd7b1ba2c0bedb282f5a1f91c00debf6fc4640eb;hpb=b328eb8a73cf2788dd9fe33a1a65a44b824893bd;p=citadel.git diff --git a/citadel/citserver.c b/citadel/citserver.c index dd7b1ba2c..782f6a99b 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -346,9 +346,9 @@ void cmd_time(char *argbuf) /* timezone and daylight global variables are not portable. */ #ifdef HAVE_STRUCT_TM_TM_GMTOFF - cprintf("%d %ld|%ld|%d\n", CIT_OK, (long)tv, tmp.tm_gmtoff, tmp.tm_isdst); + cprintf("%d %ld|%ld|%d|%ld\n", CIT_OK, (long)tv, tmp.tm_gmtoff, tmp.tm_isdst, server_startup_time); #else - cprintf("%d %ld|%ld|%d\n", CIT_OK, (long)tv, timezone, tmp.tm_isdst); + cprintf("%d %ld|%ld|%d|%ld\n", CIT_OK, (long)tv, timezone, tmp.tm_isdst, server_startup_time); #endif } @@ -993,6 +993,12 @@ void citproto_begin_session() { } +void citproto_begin_admin_session() { + CC->internal_pgm = 1; + cprintf("%d %s Citadel server ADMIN CONNECTION ready.\n", CIT_OK, config.c_nodename); +} + + void cmd_noop(char *argbuf) { cprintf("%d%cok\n", CIT_OK, CtdlCheckExpress() );