% 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 %>