Update sID.lua
This commit is contained in:
parent
49e66769ff
commit
d16f8bf3e5
1 changed files with 8 additions and 8 deletions
|
@ -47,15 +47,15 @@ local function login()
|
||||||
paintutils.drawLine(1,1,w,1,colors.blue)
|
paintutils.drawLine(1,1,w,1,colors.blue)
|
||||||
term.setTextColor(colors.black)
|
term.setTextColor(colors.black)
|
||||||
term.setBackgroundColor(colors.white)
|
term.setBackgroundColor(colors.white)
|
||||||
sertextext.center(3," Setup Sertex ID")
|
visum.align("center"," Setup Sertex ID",false,3)
|
||||||
sertextext.center(7," Your Username")
|
visum.align("center"," Your Username",false,7)
|
||||||
term.setCursorPos(3,8)
|
term.setCursorPos(3,8)
|
||||||
name = read()
|
name = read()
|
||||||
sertextext.center(9, " Your Password")
|
visum.align("center", " Your Password",false,9)
|
||||||
term.setCursorPos(3,10)
|
term.setCursorPos(3,10)
|
||||||
term.clearLine()
|
term.clearLine()
|
||||||
pw = read("*")
|
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()
|
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")
|
||||||
|
@ -79,16 +79,16 @@ local function register()
|
||||||
paintutils.drawLine(1,1,w,1,colors.blue)
|
paintutils.drawLine(1,1,w,1,colors.blue)
|
||||||
term.setTextColor(colors.black)
|
term.setTextColor(colors.black)
|
||||||
term.setBackgroundColor(colors.white)
|
term.setBackgroundColor(colors.white)
|
||||||
sertextext.center(3," Setup Sertex ID")
|
visum.align("center"," Setup Sertex ID",false,3)
|
||||||
sertextext.center(7," Your Username")
|
visum.align("center"," Your Username",false,7)
|
||||||
term.setCursorPos(3,8)
|
term.setCursorPos(3,8)
|
||||||
name = read()
|
name = read()
|
||||||
while true do
|
while true do
|
||||||
sertextext.center(9, " Your Password")
|
visum.align("center", " Your Password",false,9)
|
||||||
term.setCursorPos(3,10)
|
term.setCursorPos(3,10)
|
||||||
term.clearLine()
|
term.clearLine()
|
||||||
pw = read("*")
|
pw = read("*")
|
||||||
sertextext.center(11, " Repeat")
|
visum.align("center", " Repeat",false,11)
|
||||||
term.setCursorPos(3,12)
|
term.setCursorPos(3,12)
|
||||||
term.clearLine()
|
term.clearLine()
|
||||||
pwr = read("*")
|
pwr = read("*")
|
||||||
|
|
Loading…
Reference in a new issue