<% include("language.html") if _SESSION["logined"] ~= nil then local domain = _GET["domain"] or _POST["domain"] local sessionid = _GET["sessionid"] or _POST["sessionid"] local statistic = c_GetSessionStatistic(domain,sessionid) local sessiontime = c_GetSessionLiveTime(domain,sessionid) if sessiontime < 0 then sessiontime = 0 end local outstr = "" if statistic ~= nil then outstr = outstr..""; outstr = outstr..""; outstr = outstr..""; outstr = outstr.."
"..LANG["str_session_runtime"]..": "..formatTime(sessiontime).."
"..LANG["str_download_speed"]..": "..formatSpeed(statistic["down_speed"])..""..LANG["str_avg_downspeed"]..": "..formatSpeed(statistic["down_averagespeed"]).."
"..LANG["str_total_download"]..": "..formatSize(statistic["down_bytes"])..""..LANG["str_total_downfile"]..": "..statistic["down_files"].." files
"..LANG["str_upload_speed"]..": "..formatSpeed(statistic["up_speed"])..""..LANG["str_avg_upspeed"]..": "..formatSpeed(statistic["up_averagespeed"]).."
"..LANG["str_total_upload"]..": "..formatSize(statistic["up_bytes"])..""..LANG["str_total_upfile"]..": "..statistic["up_files"].." files
"; else outstr = outstr.."
"..LANG["str_session_runtime"]..": "..formatTime(sessiontime).."
"..LANG["str_download_speed"]..": 0 KB/s"..LANG["str_avg_downspeed"]..": 0 KB/s
"..LANG["str_total_download"]..": 0 Bytes"..LANG["str_total_downfile"]..": 0 files
"..LANG["str_upload_speed"]..": 0 KB/s"..LANG["str_avg_upspeed"]..": 0 KB/s
"..LANG["str_total_upload"]..": 0 Bytes"..LANG["str_total_upfile"]..": 0 files
"; end print(outstr) end %>