From cc729464f9ba3cbeb52b3fea313780ad0ccc39af Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 5 May 2008 19:27:30 +0000 Subject: * Rewrote ffluci.http, ffluci.model.uci * WARNING: API CHANGES FOR ffluci.http and ffluci.model.uci --- module/public-core/src/view/public_index/contact.htm | 2 +- module/public-core/src/view/public_index/index.htm | 2 +- module/public-core/src/view/sudo_status/iwconfig.htm | 2 +- module/public-core/src/view/sudo_status/iwscan.htm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'module/public-core') diff --git a/module/public-core/src/view/public_index/contact.htm b/module/public-core/src/view/public_index/contact.htm index df34812af9..221dc89ccc 100644 --- a/module/public-core/src/view/public_index/contact.htm +++ b/module/public-core/src/view/public_index/contact.htm @@ -1,5 +1,5 @@ <%+header%> -<% local contact = ffluci.model.uci.show("freifunk").freifunk.contact %> +<% local contact = ffluci.model.uci.sections("freifunk").contact %>

<%:contact Kontakt%>

diff --git a/module/public-core/src/view/public_index/index.htm b/module/public-core/src/view/public_index/index.htm index a8a469ec31..6c7fe85883 100644 --- a/module/public-core/src/view/public_index/index.htm +++ b/module/public-core/src/view/public_index/index.htm @@ -1,5 +1,5 @@ <%+header%> -<% local ff = ffluci.model.uci.show("freifunk").freifunk %> +<% local ff = ffluci.model.uci.sections("freifunk") %>

<%:hellonet Hallo und willkommen im Netz von%> <%=ff.community.name%>!

<%:public1 Wir sind eine Initiative zur Schaffung eines freien, offenen und unabhängigen Funknetzwerks auf WLAN-Basis.%>
<%:public2 Dies ist der Zugangspunkt %><%=ffluci.sys.hostname()%>. <%:public3 Er wird betrieben von %> diff --git a/module/public-core/src/view/sudo_status/iwconfig.htm b/module/public-core/src/view/sudo_status/iwconfig.htm index e06b631ac8..92371ef603 100644 --- a/module/public-core/src/view/sudo_status/iwconfig.htm +++ b/module/public-core/src/view/sudo_status/iwconfig.htm @@ -1,5 +1,5 @@ <% -ffluci.http.textheader() +ffluci.http.set_content_type("text/plain") for k, v in pairs(ffluci.sys.wifi.getiwconfig()) do %>

diff --git a/module/public-core/src/view/sudo_status/iwscan.htm b/module/public-core/src/view/sudo_status/iwscan.htm index 8a1ee7254f..f4268574bc 100644 --- a/module/public-core/src/view/sudo_status/iwscan.htm +++ b/module/public-core/src/view/sudo_status/iwscan.htm @@ -1,5 +1,5 @@ <% -ffluci.http.textheader() +ffluci.http.set_content_type("text/plain") for iface, cells in pairs(ffluci.sys.wifi.iwscan()) do for i, cell in ipairs(cells) do %> -- cgit v1.2.3
<%:nickname Pseudonym%>:<%=contact.nickname%>