Update sID.lua

This commit is contained in:
Ale32bit 2015-11-11 17:43:33 +01:00
parent ce44b94db0
commit cd3b2270de

View file

@ -33,7 +33,7 @@ end
clear() clear()
print("Checking Server...") print("Checking Server...")
isDown = http.get("http://sertex.esy.es/status.php").readAll() isDown = http.get("http://sertex.x10.bz/status.php").readAll()
if isDown ~= "true" then if isDown ~= "true" then
sPhone.winOk("The server is down", "Retry later") sPhone.winOk("The server is down", "Retry later")
return return
@ -56,7 +56,7 @@ local function login()
term.clearLine() term.clearLine()
pw = read("*") pw = read("*")
sertextext.center(11, " Checking...") sertextext.center(11, " Checking...")
rServer = http.post("http://sertex.esy.es/login.php", "user="..name.."&password="..pw).readAll() rServer = http.post("http://sertex.x10.bz/login.php", "user="..name.."&password="..pw).readAll()
if rServer ~= "true" then if rServer ~= "true" then
print(" Wrong Username/Password") print(" Wrong Username/Password")
sleep(2) sleep(2)
@ -100,7 +100,7 @@ local function register()
term.clearLine() term.clearLine()
end end
end end
local rServer = http.post("http://sertex.esy.es/register.php", "user="..name.."&password="..pw).readAll() local rServer = http.post("http://sertex.x10.bz/register.php", "user="..name.."&password="..pw).readAll()
if rServer ~= "Success!" then if rServer ~= "Success!" then
print("Username already exists") print("Username already exists")
sleep(2) sleep(2)