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.setCursorPos(1,1)
term.setTextColor(colors.black) term.setTextColor(colors.black)
print("sPhone SMS") print("sPhone SMS")
write("Username: ") f = fs.open("/.sPhone/config/username", "r")
local user = read() local user = f.readLine()
write("Password: ") f.close()
local pass = read("*") f = fs.open("/.sPhone/config/.sIDpw", "r")
local pass = f.readLine()
f.close()
local head = "user="..user.."&password="..pass local head = "user="..user.."&password="..pass
http.request(server.."login.php",head) http.request(server.."login.php",head)
local update = os.startTimer(0.15) local update = os.startTimer(0.15)