<% function GetGatewayList() local xml = "" xml = xml.."\r\n" xml = xml.."\r\n" for _,gateway in pairs(c_GetGatewayList()) do if type(gateway) == "table" then xml = xml.."\r\n" xml = xml.."" xml = xml.."" xml = xml..tostring(gateway["gateway_enable"]) xml = xml.."" xml = xml.."" xml = xml..tostring(gateway["gateway_running"]) xml = xml.."\r\n" xml = xml.."\r\n" end end xml = xml.."\r\n" return xml end if _SESSION["logined"] ~= nil then setContentType("text/xml; charset=UTF-8") local liststr = GetGatewayList() print(liststr) end %>