3 if luci.http.formvalue(
"frame") ==
"1" then
4 local uci = require
"luci.model.uci".cursor()
5 local addr =
"127.0.0.1"
8 uci:foreach(
"tinyproxy",
"tinyproxy",
10 addr = s.StatHost or addr
16 local wget = io.popen(
"wget -qO- http://%s:%s" %{
17 luci.util.shellquote(addr),
18 luci.util.shellquote(port)
23 local l = wget:read(
"*l")
36 luci.http.write(translate(
"Failed to retrieve statistics from url:"))
37 luci.http.write(
" http://%s:%s" %{
38 luci.xml.pcdata(addr),
51 <h2 name=
"content"><%:Tinyproxy Status%
></h2>
52 <div class=
"cbi-section">
53 <iframe src=
"<%=REQUEST_URI%>?frame=1" style=
"width:100%; height:350px; border:none"></iframe>