<% local fs = require "luci.fs" local uci = require "luci.model.uci".cursor() local use_custom_splash = uci:get("custom_splash", "main", "mode") == "enabled" local use_standard_disclaimer = uci:get("custom_splash", "main", "disclaimer") == "enabled" local use_messages = uci:get("custom_splash", "main", "messages")=="enabled" custom_header=fs.readfile("/lib/uci/upload/custom_header.htm") custom_footer=fs.readfile("/lib/uci/upload/custom_footer.htm") %> <% if use_custom_splash then %> <%=custom_header%> <% else %> <%+header%> <% end %> <% if use_standard_disclaimer then %> <%+splash/splash%> <% end %>
<% if use_messages then %>
Hier kannst Du dem Betreiber dieses Knotens eine öffentliche Nachricht hinterlassen:


<% end %> <% if use_messages then %>
<%=fs.readfile("/lib/uci/upload/messages.htm")%>
<% end %>
<% if use_custom_splash then %> <%=custom_footer%> <% else %> <%+footer%> <% end %>