X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-freifunk-widgets%2Fluasrc%2Fmodel%2Fcbi%2Ffreifunk%2Fwidgets%2Fhtml.lua;fp=applications%2Fluci-freifunk-widgets%2Fluasrc%2Fmodel%2Fcbi%2Ffreifunk%2Fwidgets%2Fhtml.lua;h=0000000000000000000000000000000000000000;hb=1bb4822dca6113f73e3bc89e2acf15935e6f8e92;hp=367e8a269e998e2359c9ed439ab3f3ba36f96008;hpb=9edd0e46c3f880727738ce8ca6ff1c8b85f99ef4;p=project%2Fluci.git diff --git a/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/html.lua b/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/html.lua deleted file mode 100644 index 367e8a269..000000000 --- a/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/html.lua +++ /dev/null @@ -1,41 +0,0 @@ ---[[ -LuCI - Lua Configuration Interface - -Copyright 2012 Manuel Munz - -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 - -]]-- - -local map, section = ... -local utl = require "luci.util" -local fs = require "nixio.fs" -local file = "/usr/share/customtext/" .. arg[1] .. ".html" - -local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua") -if form then - setfenv(form, getfenv(1))(m, wdg) -end - -t = wdg:option(TextValue, "_text") -t.rmempty = true -t.rows = 20 - - -function t.cfgvalue() - return fs.readfile(file) or "" -end - -function t.write(self, section, value) - return fs.writefile(file, value) -end - -function t.remove(self, section) - return fs.unlink(file) -end - -