Update sms.lua
This commit is contained in:
parent
02680b2e40
commit
505f5e3c9a
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue