From 358fe209fb9d6fd2695f193ecec6da9bdc143f32 Mon Sep 17 00:00:00 2001 From: Ale2610 Date: Sat, 29 Aug 2015 16:03:37 +0200 Subject: [PATCH] Update sms.lua --- src/apps/sms.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/sms.lua b/src/apps/sms.lua index eb4a6cf..ff8b729 100644 --- a/src/apps/sms.lua +++ b/src/apps/sms.lua @@ -3,6 +3,11 @@ local loading = {"|","/","-","\\","|","/","-","\\"} local server = "http://sertex.esy.es/" local sendTo +if not sPhone then + printError("This app is for sPhone") + return +end + --check if the server is down local isServerUp = http.get(server.."/status.php").readAll() if isServerUp ~= "true" then @@ -22,7 +27,7 @@ f = fs.open("/.sPhone/config/username", "r") local user = f.readLine() f.close() f = fs.open("/.sPhone/config/.sIDpw", "r") -local pass = f.readLine() +local pass = base64.decode(f.readLine()) f.close() local head = "user="..user.."&password="..pass http.request(server.."login.php",head)