2008-09-24 12:46:07 +00:00
--[[
LuCI uShare
( c ) 2008 Yanira < forum - 2008 @ email.de >
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
$ Id $
] ] --
2009-10-31 15:54:11 +00:00
m = Map ( " ushare " , translate ( " uShare " ) ,
2012-07-24 11:54:29 +00:00
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