Update sID.lua

This commit is contained in:
Ale2610 2015-08-29 16:13:05 +02:00
parent 8b47895243
commit a18a84edcf

View file

@ -36,17 +36,35 @@ if isDown ~= "true" then
return return
end end
local function login()
end
local function register()
end
while true do
if fs.exists("/.sPhone/config/.sIDpw") then if fs.exists("/.sPhone/config/.sIDpw") then
menu = { menu = {
"Logout", "Logout",
} }
_, id = ui.menu("Sertex ID") _, id = ui.menu("Sertex ID")
if id == 1 then
fs.delete("/.sPhone/config/.sIDpw")
end
else else
menu = { menu = {
"Login", "Login",
"New Account", "Register",
} }
_, id = ui.menu("Sertex ID") _, id = ui.menu("Sertex ID")
if id == 1 then
login()
elseif id == 2 then
register()
end
end
end end
header() header()