2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
19 return (string.gsub(e, "###([A-Z_]+)###", R))
22 local c = luci.model.uci.cursor():get_all("freifunk", "community")
26 community = "Freifunk"
29 if c and c.homepage then
32 homepage = "http://freifunk.net"
35 local s = luci.model.uci.cursor():get_all("luci_splash", "general")
36 if s and s.leasetime then
37 leasetime = s.leasetime
42 R = {COMMUNITY = community, COMMUNITY_URL = homepage, LEASETIME = leasetime, ACCEPT = tostring(translate("Accept"))}
44 splashtext = expand(luci.fs.readfile("/usr/lib/luci-splash/splashtext.html"))