代码搜索:Lua
找到约 9,588 项符合「Lua」的源代码
代码结果 9,588
www.eeworm.com/read/492380/1174691
lua sort.lua
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = datajson() or {}
if (data.id ~= nil and data.extra ~= nil) then
fw = uci.get_array('firewall')
moveid = data.id
moveto =
www.eeworm.com/read/492380/1174692
lua main.lua
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
cfg = uci.init('system')
cfgvars = {
values = {},
params = {}
}
if (cfg ~= nil) then
for id, fields in pairs(cfg) do
cfg
www.eeworm.com/read/492380/1174699
lua save.lua
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = datajson()
-- check data, id and values are passed
if (data ~= nil and data['id'] ~= nil and data['values'] ~= nil) then
file
www.eeworm.com/read/492380/1174700
lua main.lua
#!/usr/bin/lua
-- Copyright (C) 2009 OpenRB.com
require('fslib')
io.write(json.encode({
static = uci.get_array('route'),
dynamic = readlines('route', 2, true)
}))
www.eeworm.com/read/492380/1174711
lua save.lua
#!/usr/bin/lua
-- Copyright (C) 2009 OpenRB.com
require('fslib')
data = datajson() or {}
if (data ~= nil and data['values'] ~= nil) then
file = 'route'
type = 'route'
if (data['id'] == nil) t
www.eeworm.com/read/492380/1174712
lua delete.lua
#!/usr/bin/lua
-- Copyright (C) 2009 OpenRB.com
require('fslib')
data = datajson()
if (data ~= nil and data['id'] ~= nil) then
uci.setvalue('route', data['id'], 'deleted', '1')
uci.commit('route
www.eeworm.com/read/492380/1174713
lua form.lua
#!/usr/bin/lua
-- Copyright (C) 2009 OpenRB.com
require('fslib')
data = datajson() or {}
cfgvars = {
values = {},
params = {}
}
if (data['id'] ~= nil) then
cfgvars['params']['id'] = data['i
www.eeworm.com/read/492380/1174716
lua main.lua
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
cfgvars = {
values = { config=readfile('/etc/sysctl.conf') },
params = {}
}
io.write(json.encode(cfgvars))
www.eeworm.com/read/492380/1174723
lua save.lua
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = datajson()
-- check data and config values are passed
if (data ~= nil and data['values'] ~= nil and data['values']['config'] ~=
www.eeworm.com/read/492380/1174724
lua main.lua
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = {}
data.qos = uci.get_array('qos')
data.network = uci.get_all('network')
io.write(json.encode(data))