Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Login screen ]]--
- username = "Diysuperguy33"
- Access = "Login"
- password = "warefare"
- currentVersion = "1"
- os.pullEvent = os.pullEventRaw
- --[[ functions ]]--
- function startscreen(print)
- term.clear()
- term.setCursorPos(1,1)
- print("+========+")
- print("|The Rusty Cutlass OS|")
- print("+========+")
- print("")
- print("+=======================+")
- print("|Username: |")
- print("+=======================+")
- print("")
- print("+=======================+")
- print("|Password: |")
- print("+=======================+")
- print("")
- print("Access: "..Access.."")
- end
- function login()
- term.setCursorPos(12,6)
- unbox = read()
- if unbox == "update" then
- autoupdate()
- elseif unbox ~= username then
- term.setCursorPos(9,13)
- print("Incorrect username!")
- sleep(2)
- shell.run("startup")
- else
- term.setCursorPos(1,13)
- term.setCursorPos(1,13)
- term.setCursorPos(12,10)
- pwbox = read("*")
- if pwbox == password then
- term.setCursorPos(1,13)
- print("")
- term.setCursorPos(1,13)
- Access = "Granted!"
- print("Access: "..Access.."")
- sleep(3)
- term.clear()
- term.setCursorPos(1,1)
- else
- os.reboot()
- end
- end
- end
- updateCheck()
- startscreen(print)
- login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement