Lua globals available in Wapka

All the Lua global functions and methods available in Wapka (official documentation).


_G
_VERSION
api
	data_create
	data_edit
	data_info
	file_create
	file_edit
	file_info
	folder_create
	folder_edit
	folder_info
	forum_create
	forum_edit
	forum_info
	getme
	logout
	message_create
	message_edit
	message_info
	post_create
	post_edit
	post_info
	user_create
	user_edit
	user_info
	user_login
	user_online
	youtube_api
assert
debug
	traceback
decoder
	base64
	json
	url
dump
encoder
	base64
	json
	url
env
	PREF_DOMAIN
	SITENAME
	SITE_DESCRIPTION
	SITE_HEADLINE
	is_admin
	is_user
	remote_ip
	siteid
	sitename
	timezone
	userid
	username
error
getcode
getfenv
getmetatable
global
	api
	dump
	env
	getcode
	hash
		crc32
		md5
		sha1
		sha256
		sha512
	html
		doctype
		escape
		headtag
		paging
		render_bbcode
		render_tag
		strip_tags
		title
		unescape
	include
	print
	req
		args
		body
		cookie
			PHPSESSID
		files
		get
		http
			accept
			accept_encoding
			cdn_loop
			cf_connecting_ip
			cf_ew_via
			cf_ipcountry
			cf_ray
			cf_visitor
			cf_worker
			cookie
			host
			user_agent
			x_forwarded_for
			x_forwarded_proto
			x_real_ip
			x_varnish
		is_args
		method
		post
		request_uri
		script_filename
		script_name
		session
		uri
		url
	resp
		http
			0
			1
			2
		status
	server
		date
		delay
		error
		exit
		header
		log
		send
		template
		terminate
		time
		timezone
	url
		build
		decode
		encode
		map
		parse
		redirect
		rewrite
		slug
hash
html
include
ipairs
loadstring
math
	abs
	acos
	asin
	atan
	atan2
	ceil
	cos
	cosh
	deg
	exp
	floor
	fmod
	frexp
	huge
	ldexp
	log
	log10
	max
	min
	mod
	modf
	pi
	pow
	rad
	random
	randomseed
	sin
	sinh
	sqrt
	tan
	tanh
next
os
	clock
	date
	difftime
	exit
	time
pairs
pcall
print
proxy
	pass
	set_body
	set_header
	ssl_verify
	store
rawequal
rawget
rawset
req
resp
select
server
setfenv
setmetatable
string
	byte
	char
	find
	format
	gfind
	gmatch
	gsub
	len
	lower
	match
	rep
	reverse
	sub
	upper
table
	concat
	foreach
	foreachi
	getn
	insert
	maxn
	remove
	setn
	sort
tonumber
tostring
type
unpack
url
xpcall

env return


{
    "SITE_HEADLINE": "Wapka Developer",
    "remote_ip": "18.116.24.131",
    "is_user": false,
    "sitename": "francisco.wapka.co",
    "SITENAME": "Francisco",
    "timezone": "UTC",
    "username": "Guest",
    "PREF_DOMAIN": "wk.franciscodaschagas.dev",
    "siteid": 84347,
    "is_admin": false,
    "SITE_DESCRIPTION": "Francisco is a Web and Wapka Developer from Brazil.",
    "userid": 0
}

req return


{
    "post": [],
    "is_args": "",
    "method": "GET",
    "args": "",
    "session": [],
    "cookie": {
        "PHPSESSID": "jhfemrlg585gufnkjuib5mfr45"
    },
    "body": "",
    "http": {
        "x_forwarded_proto": "https",
        "user_agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
        "cf_connecting_ip": "18.116.24.131",
        "x_forwarded_for": "18.116.24.131, 172.70.126.3, 162.255.116.72",
        "accept": "*/*",
        "cdn_loop": "cloudflare; subreqs=1",
        "cookie": "PHPSESSID=jhfemrlg585gufnkjuib5mfr45",
        "cf_worker": "franciscodaschagas.dev",
        "host": "wk.franciscodaschagas.dev",
        "cf_ew_via": 15,
        "cf_ray": "89bca516b3f628f8-ORD",
        "cf_visitor": "{\"scheme\":\"https\"}",
        "x_real_ip": "172.70.126.3",
        "cf_ipcountry": "US",
        "accept_encoding": "gzip",
        "x_varnish": 52797629
    },
    "get": [],
    "request_uri": "/lua-globals",
    "script_name": "lua-globals",
    "files": [],
    "url": "http://wk.franciscodaschagas.dev/lua-globals",
    "uri": "/lua-globals",
    "script_filename": "lua-globals"
}

resp return


{
    "status": 200,
    "http": {
        "1": "Cache-Control: no-store, no-cache, must-revalidate",
        "2": "Pragma: no-cache",
        "0": "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
    }
}