代码搜索:Lua
找到约 9,588 项符合「Lua」的源代码
代码结果 9,588
www.eeworm.com/read/492380/1174915
svn-base save.lua.svn-base
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = datajson()
-- check that data, values are passed
if (data ~= nil and data['values'] ~= nil) then
name = data['values']['name'
www.eeworm.com/read/492380/1174916
svn-base main.lua.svn-base
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = {}
f = io.popen('ls /www/backups/')
if (f ~= nil) then
while (true) do
line = f:read('*l')
if not line then break e
www.eeworm.com/read/492380/1174917
svn-base delete.lua.svn-base
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = datajson() or {}
if (data['extra'] ~= nil and data['extra'] ~= '') then
os.remove('/www/backups/' .. data['extra'])
end
www.eeworm.com/read/492380/1174918
svn-base restore.lua.svn-base
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
data = datajson() or {}
if (data['extra'] ~= nil) then
os.execute('tar -xzf /www/backups/' .. data['extra'] .. ' -C / 2>&1 >/dev/nul
www.eeworm.com/read/492380/1174925
svn-base network.lua.svn-base
#!/usr/bin/lua
-- Copyright (C) 2008 OpenRB.com
require('fslib')
-- get all current system interfaces
ifaces = proc('if-json -a')
file = 'network'
wififile = 'wireless'
os.execute('touch /etc/config
www.eeworm.com/read/492380/1174941
svn-base json.lua.svn-base
--[[
JSON Encoder and Parser for Lua 5.1
Copyright
www.eeworm.com/read/492380/1174942
svn-base fslib.lua.svn-base
-- Copyright (C) 2008 OpenRB.com
--
-- FlashSYS function library
-- Uses json and uci lua libraries
--
require('json')
require('uci')
-- gets data from enviromental variable and parses it using JSON