<% if _REMOTE_IP == "127.0.0.1" or _REMOTE_IP == "localhost" then setContentType("text/xml; charset=UTF-8") local xml = "\r\n\r\n\r\n" local domain = "" for _,domain in pairs(c_GetDomainList()) do local listenerlist = c_GetListenerList(domain) if listenerlist ~= nil then for _,listener in pairs(listenerlist) do if type(listener) == "table" then xml = xml.."\r\n" xml = xml.."" xml = xml..domain xml = xml.."" xml = xml.."" xml = xml..listener["Type"] xml = xml.."" xml = xml.."" xml = xml..listener["Ip_Address"] xml = xml.."" xml = xml.."" xml = xml..listener["Port"] xml = xml.."" xml = xml.."" xml = xml..tostring(listener["Is_Listening"]) xml = xml.."\r\n" xml = xml.."\r\n" end end end end xml = xml.."\r\n" xml = xml.."\r\n" print(xml) end %>