diff options
author | Steven Barth <steven@midlink.org> | 2008-05-05 19:27:30 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-05 19:27:30 +0000 |
commit | cc729464f9ba3cbeb52b3fea313780ad0ccc39af (patch) | |
tree | f51868aa70877f6a3d89fcbaf9ce5e0400618695 /module/public-core | |
parent | 2d95ace7895ea2ccaa7dd67b912ee0f303eafac5 (diff) |
* Rewrote ffluci.http, ffluci.model.uci
* WARNING: API CHANGES FOR ffluci.http and ffluci.model.uci
Diffstat (limited to 'module/public-core')
4 files changed, 4 insertions, 4 deletions
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 %> <h1><%:contact Kontakt%></h1> <table cellspacing="0" cellpadding="6"> <tr><th><%:nickname Pseudonym%>:</th><td><%=contact.nickname%></td></tr> 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") %> <h1><%:hellonet Hallo und willkommen im Netz von%> <%=ff.community.name%>!</h1> <p><%:public1 Wir sind eine Initiative zur Schaffung eines freien, offenen und unabhängigen Funknetzwerks auf WLAN-Basis.%><br /> <%: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 %> <tr> 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 %> |