From: Steven Barth Date: Tue, 6 May 2008 15:06:23 +0000 (+0000) Subject: * Bugfixes X-Git-Tag: 0.8.0~1073 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=60fbb7c06c0ac59bcfedea2311bb55aeb448d98b * Bugfixes --- diff --git a/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi b/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi index 91a6b3397..3bff85ee5 100644 --- a/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi +++ b/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi @@ -9,7 +9,7 @@ require("ffluci.model.uci") local srv local net local ip = ffluci.http.remote_addr() -for k, v in pairs(ffluci.model.uci.show("network").network) do +for k, v in pairs(ffluci.model.uci.sections("network")) do if v[".type"] == "interface" and v.ipaddr then local p = ffluci.sys.net.mask4prefix(v.netmask) if ffluci.sys.net.belongs(ip, v.ipaddr, p) then @@ -21,7 +21,7 @@ for k, v in pairs(ffluci.model.uci.show("network").network) do end local stat = false -for k, v in pairs(ffluci.model.uci.show("luci_splash").luci_splash) do +for k, v in pairs(ffluci.model.uci.sections("luci_splash")) do if v[".type"] == "iface" and v.network == net then stat = true end diff --git a/core/contrib/ffluci b/core/contrib/ffluci index 6d0e57847..183a6ad41 100755 --- a/core/contrib/ffluci +++ b/core/contrib/ffluci @@ -1,5 +1,4 @@ #!/usr/bin/haserl --shell=luac package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path package.cpath = "/usr/lib/lua/?.so;" .. package.cpath -require("ffluci.dispatcher").httpdispatch() - +require("ffluci.dispatcher").httpdispatch() \ No newline at end of file