Advertisement
Guest User

Untitled

a guest
Oct 9th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. p = "password"
  5. print(" Meep Security v1.4.5 ")
  6. print("+----------------------+")
  7. print("| Username: |")
  8. print("| Password: |")
  9. print("+----------------------+")
  10. term.setCursorPos(14,3)
  11. print("Meep")
  12. term.setCursorPos(14,4)
  13. pt = read("*")
  14. if pt == (p) then
  15. term.setCursorPos(1,6)
  16. print("Logging in"); term.setCursorPos(11,6); textutils.slowPrint("...",1)
  17. term.setCursorPos(1,7)
  18. sleep(2)
  19. print("Login succesful!")
  20. sleep(1)
  21. print("Welcome user!")
  22. sleep(2)
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. print("Starting odd OS"); term.setCursorPos(16,1); textutils.slowPrint("...",1)
  26. term.setCursorPos(1,2)
  27. print("Reading Files"); term.setCursorPos(14,2); textutils.slowPrint("...",1)
  28. term.setCursorPos(1,3)
  29. print("Clearing Cache"); term.setCursorPos(15,3); textutils.slowPrint("...",1)
  30. term.setCursorPos(1,4)
  31. print("Startup Succesful!")
  32. sleep(1)
  33. term.clear()
  34. term.setCursorPos(1,1)
  35. print("MeepOS v1.4.5")
  36. term.setCursorPos(1,2)
  37. elseif pt == "32641" then
  38. write("Admin Mode")
  39. else
  40. term.setCursorPos(1,6)
  41. print("Logging in"); term.setCursorPos(11,6); textutils.slowPrint("...",1)
  42. term.setCursorPos(1,7)
  43. print("Incorrect Password! Shutting Down"); term.setCursorPos(34,7); textutils.slowPrint("...",1)
  44. os.reboot()
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement