Changeset 93 for branches/communities/jamendo/applications
- Timestamp:
- 15/01/09 16:06:13 (20 months ago)
- Location:
- branches/communities/jamendo/applications/luci-jamendo
- Files:
-
- 5 modified
-
luasrc/controller/jamendo.lua (modified) (4 diffs)
-
luasrc/view/jamendo/index.htm (modified) (3 diffs)
-
luasrc/view/jamendo/license.htm (modified) (1 diff)
-
root/etc/config/jamendo (modified) (1 diff)
-
upgrade (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/communities/jamendo/applications/luci-jamendo/luasrc/controller/jamendo.lua
r82 r93 3 3 4 4 function index() 5 local page = entry({" fon_services", "fon_jamendo"}, call("jamendo"), "Jamendo Radios", 90)5 local page = entry({"Jamendo"}, call("jamendo"), "Jamendo Radios", 90) -- {"fon_services", "fon_jamendo"} 6 6 page.icon_path = "/luci-static/resources/icons/" 7 7 page.icon = "jamendo.png" … … 25 25 local firsttime = false 26 26 27 local hwaddr = false 28 27 29 if not radioid then 28 30 firsttime = true … … 35 37 uci:commit("jamendo") 36 38 37 38 -- how to do this properly on install? 39 sys.call("chmod +x /usr/sbin/jamendoradio") 40 41 42 39 43 40 local service = srv.Service("jamendoradio") 44 41 service:stop() … … 60 57 61 58 if dolicense then 62 63 tpl.render("jamendo/license",{jamendo_fonid= 42})59 hwaddr = sys.exec('ifconfig wifi0 | grep HWaddr | awk -F "HWaddr " \'{ print $2 }\' | awk \'{gsub(":","-",$1); print substr($0,0,17) }\'') 60 tpl.render("jamendo/license",{jamendo_fonid=hwaddr,jamendo_test="aaa"}) 64 61 65 62 else -
branches/communities/jamendo/applications/luci-jamendo/luasrc/view/jamendo/index.htm
r82 r93 61 61 <div id="jamendo_change_radio"> 62 62 63 < img style="float:right;" src="/luci-static/resources/jamendo/logo_small.png" />63 <a href="http://pro.jamendo.com/" target="_blank"><img style="border:0;float:right;" src="/luci-static/resources/jamendo/logo_small.png" /></a> 64 64 65 65 … … 107 107 108 108 <div class="boxerror"> 109 Radios are currently in DEMO mode. To play them legally in a commercial environment, <a href="<%=REQUEST_URI%>?jamendo_license=1">please buy a license now</a>.109 Radios are currently in DEMO mode. With Jamendo, you can <a href="<%=REQUEST_URI%>?jamendo_license=1">avoid paying your local collective rights society</a>. 110 110 </div> 111 111 <br/> … … 123 123 124 124 <div class="boxwarning"> 125 Radios are currently in DEMO mode. To play them legally in a commercial environment, <a href="<%=REQUEST_URI%>?jamendo_license=1">please buy a license now</a>.125 Radios are currently in DEMO mode. With Jamendo, you can <a href="<%=REQUEST_URI%>?jamendo_license=1">avoid paying your local collective rights society</a>. 126 126 </div> 127 127 -
branches/communities/jamendo/applications/luci-jamendo/luasrc/view/jamendo/license.htm
r82 r93 15 15 <div id="jamendo_change_radio"> 16 16 17 <iframe id="pro_jamendo_shop" src="http://fon.pro. localjamendo.com/product/publicspace?pro_partner_id=<%=PRO_PARTNER_ID%>" />17 <iframe id="pro_jamendo_shop" src="http://fon.pro.jamendo.com/product/publicspace?pro_partner_id=<%=jamendo_fonid%>" /> 18 18 19 19 </div> -
branches/communities/jamendo/applications/luci-jamendo/root/etc/config/jamendo
r30 r93 1 1 config general radio 2 option id lounge 3 option autostart 1 2 option id off -
branches/communities/jamendo/applications/luci-jamendo/upgrade
r92 r93 12 12 -- Dashboard Information 13 13 local DASHBOARD = true -- Show plugin on dashboard 14 local DB_ICON = " jamendo.png" -- Plugin icon file relative to /luci-static/resources14 local DB_ICON = "icons/jamendo.png" -- Plugin icon file relative to /luci-static/resources 15 15 local DB_ORDER = 1000 -- Plugin dashboard order number 16 16 … … 20 20 local fs = require "luci.fs" 21 21 local dir = require "posix".getcwd() 22 local sys = require "luci.sys" 22 23 23 24 -- Create Plugin object … … 54 55 fs.chmod(file, mode) 55 56 end 57 58 -- Just to be sure 59 sys.call("chmod +x /usr/sbin/jamendoradio")
