Update sID.lua

This commit is contained in:
Ale32bit 2015-11-27 22:43:36 +01:00
parent 49e66769ff
commit d16f8bf3e5

View file

@ -47,15 +47,15 @@ local function login()
paintutils.drawLine(1,1,w,1,colors.blue)
term.setTextColor(colors.black)
term.setBackgroundColor(colors.white)
sertextext.center(3," Setup Sertex ID")
sertextext.center(7," Your Username")
visum.align("center"," Setup Sertex ID",false,3)
visum.align("center"," Your Username",false,7)
term.setCursorPos(3,8)
name = read()
sertextext.center(9, " Your Password")
visum.align("center", " Your Password",false,9)
term.setCursorPos(3,10)
term.clearLine()
pw = read("*")
sertextext.center(11, " Checking...")
visum.align("center", " Checking...",false,11)
rServer = http.post("http://sertex.x10.bz/login.php", "user="..name.."&password="..pw).readAll()
if rServer ~= "true" then
print(" Wrong Username/Password")
@ -79,16 +79,16 @@ local function register()
paintutils.drawLine(1,1,w,1,colors.blue)
term.setTextColor(colors.black)
term.setBackgroundColor(colors.white)
sertextext.center(3," Setup Sertex ID")
sertextext.center(7," Your Username")
visum.align("center"," Setup Sertex ID",false,3)
visum.align("center"," Your Username",false,7)
term.setCursorPos(3,8)
name = read()
while true do
sertextext.center(9, " Your Password")
visum.align("center", " Your Password",false,9)
term.setCursorPos(3,10)
term.clearLine()
pw = read("*")
sertextext.center(11, " Repeat")
visum.align("center", " Repeat",false,11)
term.setCursorPos(3,12)
term.clearLine()
pwr = read("*")