4 * The CtdlGetServerInfo() function is useful for
15 #include "serv_info.h"
17 void CtdlInternalGetServInfo(struct CtdlServInfo *infobuf) {
24 if (buf[0]!='1') return;
26 memset(infobuf, 0, sizeof(struct CtdlServInfo));
28 while(serv_gets(buf), strcmp(buf,"000")) {
30 case 0: infobuf->serv_pid = atoi(buf);
32 case 1: strcpy(infobuf->serv_nodename,buf);
34 case 2: strcpy(infobuf->serv_humannode,buf);
36 case 3: strcpy(infobuf->serv_fqdn,buf);
38 case 4: strcpy(infobuf->serv_software,buf);
40 case 5: infobuf->serv_rev_level = atoi(buf);
42 case 6: strcpy(infobuf->serv_bbs_city,buf);
44 case 7: strcpy(infobuf->serv_sysadm,buf);
46 case 9: strcpy(infobuf->serv_moreprompt,buf);
48 case 10: infobuf->serv_ok_floors = atoi(buf);
50 case 11: infobuf->serv_paging_level = atoi(buf);