duplikat dari
https://git.openwrt.org/project/luci.git
synced 2025-01-18 23:45:02 +00:00
1bb4822dca
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
14 baris
344 B
Lua
14 baris
344 B
Lua
local cookies = require"cgilua.cookies"
|
|
CL_COOKIE = "cgilua_cookie"
|
|
|
|
local test = cookies.get (CL_COOKIE)
|
|
cookies.set (CL_COOKIE, os.date())
|
|
|
|
cgilua.htmlheader ()
|
|
cgilua.put ([[
|
|
<h1>Testing Cookies library</h1>
|
|
|
|
]]..CL_COOKIE..' = '..tostring(test)..[[<br>
|
|
Assigning current date to cookie!<br>
|
|
Reload this script to check cookie's value!
|
|
]])
|