+void tmplput_serv_fqdn(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return;
+ StrBufAppendTemplate(Target, TP, WC->serv_info->serv_fqdn, 0);
+}
+
+void tmplput_serv_software(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return;
+ StrBufAppendTemplate(Target, TP, WC->serv_info->serv_software, 0);
+}
+
+void tmplput_serv_rev_level(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL) return;
+ StrBufAppendPrintf(Target, "%d", WC->serv_info->serv_rev_level);
+}
+int conditional_serv_newuser_disabled(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return 0;
+ return WC->serv_info->serv_newuser_disabled != 0;
+}
+
+int conditional_serv_supports_guest(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return 0;
+ return WC->serv_info->serv_supports_guest != 0;
+}
+
+int conditional_serv_supports_openid(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return 0;
+ return WC->serv_info->serv_supports_openid != 0;
+}
+
+int conditional_serv_fulltext_enabled(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return 0;
+ return WC->serv_info->serv_fulltext_enabled != 0;
+}
+
+int conditional_serv_ldap_enabled(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return 0;
+ return WC->serv_info->serv_supports_ldap != 0;
+}
+
+void tmplput_serv_bbs_city(StrBuf *Target, WCTemplputParams *TP) {
+ if (WC->serv_info == NULL)
+ return;
+ StrBufAppendTemplate(Target, TP, WC->serv_info->serv_bbs_city, 0);
+}
+
+void tmplput_mesg(StrBuf *Target, WCTemplputParams *TP) {
+ int n = 0;
+ int Done = 0;
+ StrBuf *Line;