Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pullEventBack = os.pullEvent
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- h = fs.open(".set", "r")
- settings = textutils.unserialize(h.readAll())
- h.close()
- login = settings.login.login
- while login do
- term.clear()
- term.setCursorPos(1,1)
- print("Enter Credentials:")
- term.setCursorPos(2,3)
- print("Username:")
- term.setCursorPos(2,5)
- print("Password:")
- term.setCursorPos(12,3)
- user = read()
- term.setCursorPos(12,5)
- pass = read("*")
- if user == settings.login.user and pass == settings.login.pass then
- login = false
- else
- term.setCursorPos(1,7)
- print("Incorrect username and/or password!!")
- sleep(2)
- end
- end
- os.pullEvent = pullEventBack
- shell.run(settings.general.menuDir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement