<%+header%> <% local uci = require "luci.model.uci".cursor() local contact = uci:get_all("freifunk", "contact") local contacturl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "contact") local hostname = uci:get_first ("system", "system", "hostname") local latitude = uci:get_first ("system", "system", "latitude") local longitude = uci:get_first ("system", "system", "longitude") local location = uci:get_first ("system", "system", "location") local basicsurl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "basics") %>

<%:Freifunk Overview%>

<%:These pages will assist you in setting up your router for Freifunk or similar wireless community networks.%>

<% if not (hostname and latitude and longitude and location) then%>

<%:Basic settings are missing. Please go to this page and fill all required fields: %> <%:Basic settings%>
<%end%>

<% if not (contact.nickname and contact.name and contact.mail) then%>

<%:Contact information missing. Please go to this page and fill all required fields: %> <%:Contact%>
<%end%> <%+footer%>