2015-01-16 22:38:38 +00:00
-- Copyright 2008 Yanira <forum-2008@email.de>
-- Licensed to the public under the Apache License 2.0.
2008-09-24 12:46:07 +00:00
2009-10-31 15:54:11 +00:00
m = Map ( " ushare " , translate ( " uShare " ) ,
2012-10-29 14:36:52 +00:00
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. " ) ) )
2008-09-24 12:46:07 +00:00
2009-10-31 15:54:11 +00:00
s = m : section ( TypedSection , " ushare " , translate ( " Settings " ) )
2008-09-24 12:46:07 +00:00
s.addremove = false
s.anonymous = true
2009-10-31 15:54:11 +00:00
s : option ( Flag , " enabled " , translate ( " Enable " ) )
2008-09-24 12:46:07 +00:00
2009-10-31 15:54:11 +00:00
s : option ( Value , " username " , translate ( " Username " ) )
2008-09-24 12:46:07 +00:00
2009-10-31 15:54:11 +00:00
s : option ( Value , " servername " , translate ( " Servername " ) )
2008-09-24 12:46:07 +00:00
2009-10-31 15:54:11 +00:00
dif = s : option ( Value , " interface " , translate ( " Interface " ) )
2008-09-24 12:46:07 +00:00
for _ , nif in ipairs ( luci.sys . net.devices ( ) ) do
if nif ~= " lo " then dif : value ( nif ) end
end
2011-09-26 00:25:37 +00:00
s : option ( DynamicList , " content_directories " , translate ( " Content directories " ) )
2008-09-24 12:46:07 +00:00
2009-10-31 15:54:11 +00:00
s : option ( Flag , " disable_webif " , translate ( " Disable webinterface " ) )
2008-09-24 21:12:56 +00:00
2009-10-31 15:54:11 +00:00
s : option ( Flag , " disable_telnet " , translate ( " Disable telnet console " ) )
2008-09-24 21:12:56 +00:00
2009-10-31 15:54:11 +00:00
s : option ( Value , " options " , translate ( " Options " ) )
2008-09-24 12:46:07 +00:00
return m