return vHash;
}
+
+HashList *GetValidDomainNames(StrBuf *Target, WCTemplputParams *TP)
+{
+ StrBuf *Line;
+ HashList *ValidDomainNames = NULL;
+ long State;
+ int gvdnlevel = 0;
+
+ serv_printf("GVDN %d", gvdnlevel);
+ Line = NewStrBuf();
+ StrBuf_ServGetln(Line);
+ if (GetServerStatus(Line, &State) == 1)
+ {
+ int Done = 0;
+ int n = 0;
+
+ ValidDomainNames = NewHash(1, NULL);
+ while(!Done && (StrBuf_ServGetln(Line) >= 0))
+ if ( (StrLength(Line)==3) &&
+ !strcmp(ChrPtr(Line), "000"))
+ {
+ Done = 1;
+ }
+ else
+ {
+ Put(ValidDomainNames,
+ IKEY(n),
+ NewStrBufDup(Line),
+ HFreeStrBuf);
+ n++; /* #0 is the type... */
+ }
+ }
+ else if (State == 550)
+ AppendImportantMessage(_("Higher access is required to access this function."), -1);
+
+ FreeStrBuf(&Line);
+
+ return ValidDomainNames;
+}
+
+
+
void
InitModule_INETCONF
(void)
WebcitAddUrlHandler(HKEY("save_inetconf"), "", 0, new_save_inetconf, 0);
RegisterIterator("SERVCFG:INET", 1, NULL, GetInetConfHash, NULL, NULL, CTX_STRBUF, CTX_NONE, IT_NOFLAG);
RegisterNamespace("SERVCFG:FLUSHINETCFG",0, 0, DeleteInetConfHash, NULL, CTX_NONE);
+ RegisterIterator("ITERATE:VALID:DOMAINNAMES", 1, NULL, GetValidDomainNames, NULL, NULL, CTX_STRBUF, CTX_NONE, IT_NOFLAG);
+
}
strcat(line, bstr("suffix"));
}
else if (havebstr("alias")) {
+ const char *domain;
malias = 1;
sepchar = ',';
+ domain = bstr("aliasdomain");
strcat(line, bstr("prefix"));
+ if (!IsEmptyStr(domain))
+ {
+ strcat(line, "@");
+ strcat(line, domain);
+ }
strcat(line, ",");
strcat(line, "room_");
strcat(line, ChrPtr(WC->CurRoom.name));
<input type="hidden" name="nonce" value="<?NONCE>">
<input type="hidden" name="go" value="<?THISROOM:NAME("X")>">
<input type="text" id="prefix" name="prefix">
+ @
+ <select size="1" name="aliasdomain">
+ <option value=""><?_("All Domains")></option>
+ <?ITERATE("ITERATE:VALID:DOMAINNAMES", ="room_edit_alias_domainname", 0, 0, -1, "")>
+ </select>
<input type="submit" name="add_button" value="<?_("Add")>">
</p>
</form>