2
0

ushare.lua 1.1 KB

123456789101112131415161718192021222324252627282930
  1. -- Copyright 2008 Yanira <forum-2008@email.de>
  2. -- Licensed to the public under the Apache License 2.0.
  3. m = Map("ushare", translate("uShare"),
  4. 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.")))
  5. s = m:section(TypedSection, "ushare", translate("Settings"))
  6. s.addremove = false
  7. s.anonymous = true
  8. s:option(Flag, "enabled", translate("Enable"))
  9. s:option(Value, "username", translate("Username"))
  10. s:option(Value, "servername", translate("Servername"))
  11. dif = s:option( Value, "interface", translate("Interface"))
  12. for _, nif in ipairs(luci.sys.net.devices()) do
  13. if nif ~= "lo" then dif:value(nif) end
  14. end
  15. s:option(DynamicList, "content_directories", translate("Content directories"))
  16. s:option(Flag, "disable_webif", translate("Disable webinterface"))
  17. s:option(Flag, "disable_telnet", translate("Disable telnet console"))
  18. s:option(Value, "options", translate("Options"))
  19. return m