From 9cd3e830c2b0a7b1b7ff7a460c8f1ae98b21196c Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Wed, 11 Nov 2015 18:38:22 +0100 Subject: [PATCH] Update installer.lua --- src/installer.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/installer.lua b/src/installer.lua index 3e034d6..88d0d67 100644 --- a/src/installer.lua +++ b/src/installer.lua @@ -3,15 +3,19 @@ if not pocket or not term.isColor() then return end ---local blacklistIP = { - --["185.38.148.214"] = true, - --["217.84.151.202"] = true, ---} +local blacklistIP = { + ["185.38.148.214"] = true, + ["217.84.151.202"] = true, +} ---local ip = http.get("http://sertex.x10.bz/getIP.php").readLine() ---if blacklistIP[ip] then - --error("Your IP has been banned") ---end +local ip = http.get("http://sertex.x10.bz/getIP.php").readLine() +if blacklistIP[ip] then + error("Your IP has been banned") +end + +if fs.exists("/startup") then + fs.delete("/startup") +end local files = { ["src/sPhone.lua"] = "/.sPhone/sPhone",