luci-app-adblock: sync with adblock 3.5.0
[project/luci.git] / applications / luci-app-ushare / luasrc / model / cbi / ushare.lua
1 -- Copyright 2008 Yanira <forum-2008@email.de>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("ushare", translate("uShare"),
5         luci.util.pcdata(translate("uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices with information on available multimedia files.")))
6
7 s = m:section(TypedSection, "ushare", translate("Settings"))
8 s.addremove = false
9 s.anonymous = true
10
11 s:option(Flag, "enabled", translate("Enable"))
12
13 s:option(Value, "username", translate("Username"))
14
15 s:option(Value, "servername", translate("Servername"))
16
17 dif = s:option( Value, "interface", translate("Interface")) 
18 for _, nif in ipairs(luci.sys.net.devices()) do                         
19         if nif ~= "lo" then dif:value(nif) end                          
20 end 
21
22 s:option(DynamicList, "content_directories", translate("Content directories"))
23
24 s:option(Flag, "disable_webif", translate("Disable webinterface"))
25
26 s:option(Flag, "disable_telnet", translate("Disable telnet console"))
27
28 s:option(Value, "options", translate("Options"))
29
30 return m