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
		files
		get
		http
			accept
			accept_encoding
			accept_language
			cdn_loop
			cf_connecting_ip
			cf_ew_via
			cf_ipcountry
			cf_ray
			cf_visitor
			cf_worker
			connection
			host
			user_agent
			x_forwarded_proto
			x_real_ip
		is_args
		method
		post
		request_uri
		script_filename
		script_name
		session
		uri
		url
	resp
		http
			0
			1
			2
			3
		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": "3.235.20.185",
    "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": [],
    "body": "",
    "http": {
        "connection": "close",
        "cf_connecting_ip": "3.235.20.185",
        "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
        "x_forwarded_proto": "https",
        "cdn_loop": "cloudflare; subreqs=1",
        "user_agent": "CCBot/2.0 (https://commoncrawl.org/faq/)",
        "cf_worker": "franciscodaschagas.dev",
        "host": "wk.franciscodaschagas.dev",
        "cf_ew_via": 15,
        "cf_ipcountry": "US",
        "cf_ray": "8885193c25b15764-IAD",
        "x_real_ip": "172.70.135.69",
        "accept_language": "en-US,en;q=0.5",
        "accept_encoding": "gzip",
        "cf_visitor": "{\"scheme\":\"https\"}"
    },
    "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": "Expires: Thu, 19 Nov 1981 08:52:00 GMT",
        "2": "Cache-Control: no-store, no-cache, must-revalidate",
        "3": "Pragma: no-cache",
        "0": "Set-Cookie: PHPSESSID=vacih8v9op1tdp0vgb5cddemsb; path=/; HttpOnly"
    }
}