% -- Copyright 2015 OVH (OverTheBox@ovh.net) -- Simon Lelievre (simon.lelievre@corp.ovh.com) -- Sebastien Duponcheel (sebastien.duponcheel@ovh.net) -- -- This file is part of OverTheBox for OpenWrt. -- -- OverTheBox is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- OverTheBox is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with OverTheBox. If not, see (http://www.gnu.org/licenses/) -%> <% local uci = require("luci.model.uci").cursor() local device_id = uci:get("overthebox", "me", "device_id") local service_id = uci:get("overthebox", "me", "service") local has_service_confirmation = false if uci:get("overthebox", "me", "needs_activation") == "true" then has_service_confirmation = true end local has_switch = false uci:foreach("network", "switch", function(s) has_switch = true return false end ) %> <%+header%>