#include "webserver.h"
struct serv_info serv_info; /**< our connection data to the server */
-
+HashList *ServHash = NULL;//// TODO;
/*
* get info about the server we've connected to
*
serv_puts("MSGP text/html|text/plain");
serv_getln(buf, sizeof buf);
-#ifdef WEBCIT_WITH_CALENDAR_SERVICE
- /**
+ /*
* Tell the server that when we save a calendar event, we
* want invitations to be generated by the Citadel server
* instead of by the client.
*/
serv_puts("ICAL sgi|1");
serv_getln(buf, sizeof buf);
-#endif
/** Now ask the server to tell us a little bit about itself... */
serv_puts("INFO");
case 21:
serv_info.serv_fulltext_enabled = atoi(buf);
break;
+ case 22:
+ safestrncpy(serv_info.serv_svn_revision, buf, sizeof serv_info.serv_svn_revision);
+ break;
}
++a;
}
strcpy(buf, &buf[2]);
}
/** Activate embedded URL's */
- url(buf);
+ url(buf, sizeof(buf));
escputs(buf);
wprintf("\n");