serv_printf("GPEX %s", ExpirePolicyStrings[which][0].Key);
Buf = NewStrBuf();
StrBuf_ServGetln(Buf);
- WCC->Policy[which].loaded = 1;
if (GetServerStatus(Buf, &State) == 2) {
Pos = ChrPtr(Buf) + 4;
WCC->Policy[which].expire_mode = StrBufExtractNext_long(Buf, &Pos, '|');
which = GetTemplateTokenNumber(Target, TP, 2, 0);
CompareWith = GetTemplateTokenNumber(Target, TP, 3, 0);
- if (WCC->Policy[which].loaded == 0) LoadExpirePolicy(which);
+ LoadExpirePolicy(which);
return WCC->Policy[which].expire_mode == CompareWith;
}
wcsession *WCC = WC;
which = GetTemplateTokenNumber(Target, TP, 0, 0);
- if (WCC->Policy[which].loaded == 0) LoadExpirePolicy(which);
+ LoadExpirePolicy(which);
StrBufAppendPrintf(Target, "%d", WCC->Policy[which].expire_value);
}
wcsession *WCC = WC;
which = GetTemplateTokenNumber(Target, TP, 2, 0);
- if (WCC->Policy[which].loaded == 0) LoadExpirePolicy(which);
+ LoadExpirePolicy(which);
StrBufAppendPrintf(Target, "%d", WCC->Policy[which].expire_mode);
}
Put(ZoneHash, HKEY("UTC"), ZName, HFreeStrBuf);
zones = icaltimezone_get_builtin_timezones();
for (z = 0; z < zones->num_elements; ++z) {
- /* syslog(9, "Location: %-40s tzid: %s\n",
+ /* syslog(LOG_DEBUG, "Location: %-40s tzid: %s\n",
icaltimezone_get_location(icalarray_element_at(zones, z)),
icaltimezone_get_tzid(icalarray_element_at(zones, z))
); */
Buf = NewStrBuf();
}
else {
- if (j == 0)
- AppendImportantMessage(_("WARNING: Failed to parse Server Config; do you run a to new citserver?"), -1);
+ if (j == 0) {
+ syslog(LOG_WARNING, "The server sent more configuration data than this version of webcit is capable of changing. Unknown configuration values will remain unchanged.");
+ }
j++;
}
}
FreeStrBuf(&Buf);
- LoadExpirePolicy(sitepolicy);
+ LoadExpirePolicy(roompolicy);
+ LoadExpirePolicy(floorpolicy);
LoadExpirePolicy(mailboxespolicy);
+ LoadExpirePolicy(sitepolicy);
}