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" % { addr, port })
19 local l = wget:read(
"*l")
32 luci.http.write(translate(
"Failed to retrieve statistics from url:"))
33 luci.http.write(
" http://%s:%s" % { addr, port })
44 <h2><a id=
"content" name=
"content"><%:Tinyproxy Status%
></a></h2>
45 <div class=
"cbi-section">
46 <iframe src=
"<%=REQUESTURL%>?frame=1" style=
"width:100%; height:350px; border:none"></iframe>