<% local util = require "luci.util" local fs = require "nixio.fs" local sys = require "luci.sys" local http = require "luci.http" local dispatcher = require "luci.dispatcher" local uci = require "luci.model.uci".cursor() local devv = tostring(uci:get("sms_tool", "general", "readport")) local smsmem = tostring(uci:get("sms_tool", "general", "storage")) local sms = tostring(luci.sys.exec("sms_tool -s" .. smsmem .. " -d " .. devv .. " -f '%Y-%m-%d %H:%M' -j recv 2>/dev/null")) local smsmer = tostring(uci:get("sms_tool", "general", "mergesms")) local smscuta = string.sub (sms, 8) local smscut = smscuta:sub(1, #smscuta - 2) local statusb = luci.util.exec("sms_tool -s" .. smsmem .. " -d ".. devv .. " status") local all = statusb:match('[^: ]+$') local location = "" local l = string.sub (statusb, 15, 16) if l == "SM" then location = translate("SIM card") end if l == "ME" then location = translate("Modem memory") end -%> <%+header%>

<%:短信%>

<%:通过sms_tool接收信息的Web用户界面。关于短信工具的更多信息,请见%> <%:eko.one.pl 论坛%>

<%:接收的信息%>

<%:信息存储在%>:
<%=location%>
<%:信息 (收件箱 / 最大值)%>:
<%:来自%> <%:收到%> <%:信息%>
   
<%+footer%>