diff options
author | Steven Barth <steven@midlink.org> | 2008-05-27 12:23:39 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-27 12:23:39 +0000 |
commit | d35a620e9f5665a94967f4bd02c93581a1dd7e00 (patch) | |
tree | cbe7a9b9fe71e40d850c649361c87608d56ea48b /modules/freifunk/luasrc/view/public_status | |
parent | 5df565faba5eb0c26a7ce0e2d6e9092bf71cb1e8 (diff) |
commit 4f6198094cf4134179d1f9c9fa8f79759a27c87e
Author: Felix Fietkau <nbd@openwrt.org>
Date: Tue May 27 13:56:12 2008 +0200
rename src/ to luasrc/
Diffstat (limited to 'modules/freifunk/luasrc/view/public_status')
-rw-r--r-- | modules/freifunk/luasrc/view/public_status/index.htm | 77 | ||||
-rw-r--r-- | modules/freifunk/luasrc/view/public_status/iwscan.htm | 38 | ||||
-rw-r--r-- | modules/freifunk/luasrc/view/public_status/routes.htm | 28 |
3 files changed, 143 insertions, 0 deletions
diff --git a/modules/freifunk/luasrc/view/public_status/index.htm b/modules/freifunk/luasrc/view/public_status/index.htm new file mode 100644 index 0000000000..653baf9843 --- /dev/null +++ b/modules/freifunk/luasrc/view/public_status/index.htm @@ -0,0 +1,77 @@ +<%+header%> +<h1><%:status Status%></h1> +<h2><%:system System%></h2> + +<br /> +<table cellspacing="0" cellpadding="6" class="smalltext"> +<tr> +<th><%:system_type Systemtyp%>:</th> +<td><%=s%></td> +</tr> +<tr> +<th><%:cpu Prozessor%>:</th> +<td><%=m%></td> +</tr> +<tr> +<th><%:ram Hauptspeicher%>:</th> +<td><%=r%></td> +</tr> +</table> +<br /><br /> + +<h2><%:wifi Drahtlos%></h2> +<br /> +<table cellspacing="0" cellpadding="6" class="smalltext"> +<tr> +<th><%:name Name%></th> +<th><%:protocol Protokoll%></th> +<th><%:frequency Frequenz%></th> +<th><%:power Leistung%></th> +<th><%:bitrate Bitrate%></th> +<th><%:rts RTS%></th> +<th><%:frag Frag.%></th> +<th><%:link Verb.%></th> +<th><%:signal Signal%></th> +<th><%:noise Rausch%></th> +</tr> +<%for k, v in pairs(luci.sys.wifi.getiwconfig()) do +%> +<tr> +<td rowspan="2"><%=k%></td> +<td><%=v[1]%></td> +<td><%=v.Frequency%></td> +<td><%=v["Tx-Power"]%></td> +<td><%=v["Bit Rate"]%></td> +<td><%=v["RTS thr"]%></td> +<td><%=v["Fragment thr"]%></td> +<td><%=v["Link Quality"]%></td> +<td><%=v["Signal level"]%></td> +<td><%=v["Noise level"]%></td> +</tr> +<tr> +<td colspan="4"><strong>ESSID: </strong><%=v.ESSID%></td> +<td colspan="5"><strong>BSSID: </strong><%=(v.Cell or v["Access Point"])%></td> +</tr> +<%end%> +</table> +<br /> +<br /> +<h2><%:defroutes Standardrouten%></h2> +<br /> +<table cellspacing="0" cellpadding="6" class="smalltext"> +<tr> +<th><%:gateway Gateway%></th> +<th><%:metric Metrik%></th> +<th><%:iface Schnittstelle%></th> +</tr> +<% +for i, rt in pairs(routes) do +%> +<tr> +<td><%=luci.sys.net.hexip4(rt.Gateway)%></th> +<td><%=rt.Metric%></th> +<td><%=rt.Iface%></th> +</tr> +<% end %> +</table> +<%+footer%>
\ No newline at end of file diff --git a/modules/freifunk/luasrc/view/public_status/iwscan.htm b/modules/freifunk/luasrc/view/public_status/iwscan.htm new file mode 100644 index 0000000000..adba2d23e7 --- /dev/null +++ b/modules/freifunk/luasrc/view/public_status/iwscan.htm @@ -0,0 +1,38 @@ +<%+header%> +<h1><%:iwscan WLAN-Scan%></h1> +<p><%:iwscan1 Drahtlosnetzwerke in der lokalen Umgebung des Routers:%></p> + +<br /> +<table cellspacing="0" cellpadding="6" class="smalltext"> +<tr> +<th><%:interface Schnittstelle%></th> +<th><%:essid ESSID%></th> +<th><%:bssid BSSID%></th> +<th><%:mode Modus%></th> +<th><%:channel Kanal%></th> +<th><%:encr Vers.%></th> +<th><%:link Verb.%></th> +<th><%:signal Signal%></th> +<th><%:noise Rausch%></th> +</tr> +<%for iface, cells in pairs(luci.sys.wifi.iwscan()) do + for i, cell in ipairs(cells) do +%> +<tr> +<td><%=iface%></td> +<td><%=cell.ESSID%></td> +<td><%=cell.Address%></td> +<td><%=cell.Mode%></td> +<td><%=(cell.Channel or cell.Frequency or "")%></td> +<td><%=cell["Encryption key"]%></td> +<td><%=cell.Quality%></td> +<td><%=cell["Signal level"]%></td> +<td><%=cell["Noise level"]%></td> +</tr> +<% + end +end +%> +</table> +<br /> +<%+footer%>
\ No newline at end of file diff --git a/modules/freifunk/luasrc/view/public_status/routes.htm b/modules/freifunk/luasrc/view/public_status/routes.htm new file mode 100644 index 0000000000..382b8290f2 --- /dev/null +++ b/modules/freifunk/luasrc/view/public_status/routes.htm @@ -0,0 +1,28 @@ +<%+header%> +<h1><%:routes Routen%></h1> + +<br /> +<table cellspacing="0" cellpadding="6" class="smalltext"> +<tr> +<th><%:target Ziel%></th> +<th><%:netmask Netzmaske%></th> +<th><%:gateway Gateway%></th> +<th><%:metric Metrik%></th> +<th><%:iface Schnittstelle%></th> +</tr> +<% +local routes = luci.sys.net.routes() + +for i, r in pairs(routes) do +%> +<tr> +<td><%=luci.sys.net.hexip4(r.Destination)%></td> +<td><%=luci.sys.net.hexip4(r.Mask)%></td> +<td><%=luci.sys.net.hexip4(r.Gateway)%></td> +<td><%=r.Metric%></td> +<td><%=r.Iface%></td> +</tr> +<% end %> +</table> +<br /> +<%+footer%>
\ No newline at end of file |