Update sms.lua

This commit is contained in:
Ale2610 2015-08-25 17:57:33 +02:00
parent 02680b2e40
commit 505f5e3c9a

View file

@ -14,10 +14,12 @@ term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.black)
print("sPhone SMS")
write("Username: ")
local user = read()
write("Password: ")
local pass = read("*")
f = fs.open("/.sPhone/config/username", "r")
local user = f.readLine()
f.close()
f = fs.open("/.sPhone/config/.sIDpw", "r")
local pass = f.readLine()
f.close()
local head = "user="..user.."&password="..pass
http.request(server.."login.php",head)
local update = os.startTimer(0.15)