Computer_Craft_Coder

Untitled

Nov 7th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. --[[ FancySecurity ]]--
  2.  
  3. --[[ Variable ]]--
  4.  
  5. local user, update = "admin", "update"
  6. local pass = "default"
  7. local a1, a2, a3, a4, a5 = "Granted!", "Denied!", "Incorrect username!" , "Incorrect password!" , "Idle..."
  8. local currentVersion = "1.0.2"
  9. local url_handle, version = http.get("http://pastebin.com/raw.php?i=Tmw4C4NX")
  10. local version = url_handle.readAll()
  11.  
  12. --[[ Code ]]--
  13.  
  14. function ss()
  15. term.clear()
  16. term.setCursorPos(1,1)
  17. print("+---------------------+")
  18. print("|FancySecurity |")
  19. print("+---------------------+")
  20. print()
  21. print("+------------------------+")
  22. print("|Username: |")
  23. print("+------------------------+")
  24. print("+------------------------+")
  25. print("|Password: |")
  26. print("+------------------------+")
  27. print()
  28. print("Access: "..a5.."")
  29. end
  30.  
  31. function login()
  32. term.setCursorPos(11,6)
  33. input = read()
  34. if input == update then
  35. updateCheck()
  36. end
  37. if input == user then
  38. term.setCursorPos(11,8)
  39. input = read("*")
  40. else
  41. term.setCursorPos(9,11)
  42. print(a3)
  43. shell.run("startup")
  44. if input == pass then
  45. term.clear()
  46. term.setCursorPos(1,1)
  47. print("+---------------------+")
  48. print("|FancySecurity |")
  49. print("+---------------------+")
  50. else
  51. term.setCursorPos(9,11)
  52. print(a1)
  53. end
  54. end
  55.  
  56. end
  57.  
  58. function updateCheck()
  59. term.clear()
  60. term.setCursorPos(1,1)
  61. shell.run("pastebin run Tmw4C4NX")
  62. end
  63.  
  64.  
  65. ss()
  66. login()
Advertisement
Add Comment
Please, Sign In to add comment