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.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)
|
||||||
|
|
Loading…
Reference in a new issue