<%# Opennet Firmware Copyright 2010 Rene Ejury Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%> <% local uci = require "luci.model.uci" local cursor = uci.cursor() %> <% if on_key_exists and on_crt_exists then %>

<%:Status Internet-Sharing%>

<% if ugw_status.tunnel_active then %> <% end %>
 

<% if (ugw_status.centralip_status == "ok") or (ugw_status.forwarded_gw ~= "") then print(luci.i18n.string([[Internet shared]]).." (") if (ugw_status.centralip_status == "ok") then print(luci.i18n.string([[Central Gateways connected locally]])) end if ugw_status.forwarded_gw ~= "" then print(", "..luci.i18n.string([[Gateway-Forward activated]])) end print(")") elseif ugw_status.tunnel_active then %> <%:Internet not shared%> ( <%:Internet-Sharing enabled%>, <%:Usergateway-Tunnel active%> ) <% elseif ugw_status.sharing_enabled then %> <%:Internet not shared%> ( <%:Internet-Sharing enabled%>, <%:Usergateway-Tunnel not running%> ) <% elseif ugw_status.sharing_possible then %> <%:Internet not shared%>, <%:Internet-Sharing possible%> <% else %> <%:Internet-Sharing impossible%> <% end %>

<% print(luci.i18n.string([[Usergateway-Address:]])) print(""..cursor:get("on-usergw", "ugwng_hna").."") if not ugw_status.sharing_enabled then %> <% end %>

<% if ugw_status.sharing_possible or ugw_status.sharing_enabled then %>

<%:Manage Internet-Sharing%>

<% if ugw_status.sharing_enabled then %>
<% else %>
<% end %>
<% if (ugw_status.sharing_blocked and ugw_status.sharing_blocked > 0) then %>
<% end if ugw_status.sharing_enabled then %>
<% end %>
<% end %> <% end %>