<% if _REMOTE_IP == "127.0.0.1" or _REMOTE_IP == "localhost" then setContentType("text/xml; charset=UTF-8") local domain = "" local listener_error = 0 for _,domain in pairs(c_GetDomainList()) do local listenerlist = c_GetListenerList(domain) if listenerlist ~= nil then for _,listener in pairs(listenerlist) do if listener["Is_Listening"] == false then listener_error = listener_error + 1 end end end end local statistic = c_GetServerStatistic() local xml = "" xml = xml.."\r\n" xml = xml.."\r\n" xml = xml.."\r\n" xml = xml.."" xml = xml..formatTime(statistic["running_time"]) xml = xml.."" xml = xml.."" xml = xml..statistic["current_session"] xml = xml.."" xml = xml.."" xml = xml..statistic["max_session"] xml = xml.."" xml = xml.."" xml = xml..statistic["last24hour_session"] xml = xml.."" xml = xml.."" xml = xml..formatTime(statistic["session_averagesec"]) xml = xml.."" xml = xml.."" xml = xml..formatTime(statistic["session_maxsec"]) xml = xml.."" xml = xml.."" xml = xml..statistic["total_session"] xml = xml.."" xml = xml.."" xml = xml..formatSpeed(statistic["down_speed"]) xml = xml.."" xml = xml.."" xml = xml..formatSpeed(statistic["down_averagespeed"]) xml = xml.."" xml = xml.."" xml = xml..formatSize(statistic["down_bytes"]) xml = xml.."" xml = xml.."" xml = xml..statistic["down_files"] xml = xml.."" xml = xml.."" xml = xml..formatSpeed(statistic["up_speed"]) xml = xml.."" xml = xml.."" xml = xml..formatSpeed(statistic["up_averagespeed"]) xml = xml.."" xml = xml.."" xml = xml..formatSize(statistic["up_bytes"]) xml = xml.."" xml = xml.."" xml = xml..statistic["up_files"] xml = xml.."" xml = xml.."" xml = xml..listener_error xml = xml.."\r\n" xml = xml.."\r\n" xml = xml.."\r\n" print(xml) end %>