Create sertexID.lua
This commit is contained in:
parent
055d6865a3
commit
972a6fa56a
1 changed files with 24 additions and 0 deletions
24
src/apis/sertexID.lua
Normal file
24
src/apis/sertexID.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
--[[
|
||||
Sertex ID API - Made by Ale2610
|
||||
PHP by Luca_S
|
||||
]]--
|
||||
|
||||
local SERVER = "http://sertex.esy.es/"
|
||||
|
||||
function status()
|
||||
local isUp = http.get(SERVER.."status.php").readAll()
|
||||
if isUp == "true" then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
function login(username, password)
|
||||
local login = http.post(SERVER.."login.php", "user="..username.."&password="..password).readAll()
|
||||
if login == "true" then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue