daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Aug 13th, 2016 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --
  2. NamE = "Akira.OS"
  3. VersioN = "v1.6"
  4. os.pullEvent = os.pullEventRaw
  5. --
  6. term.clear()
  7. term.setCursorPos(1,1)
  8. term.setTextColor(colors.purple)
  9. textutils.slowPrint("Akira.LoginSystem")
  10. term.setCursorPos(19,1)
  11. term.setTextColor(colors.blue)
  12. print(VersioN)
  13. sleep(1)
  14. --
  15. username = {"ShexianKyoto", "Yinxian", "OMGitsMing"}
  16. password = {"BabyGirl", "-", "-"}
  17.  
  18. term.setCursorPos(1,3)
  19. term.setTextColor(colors.purple)
  20. term.write("Username: ")
  21. term.setTextColor(colors.blue)
  22. user = read()
  23.  
  24. term.setTextColor(colors.purple)
  25. term.write("Password: ")
  26. term.setTextColor(colors.blue)
  27. pass = read("*")
  28.  
  29. for i=1, #username do
  30.  if user == username[i] and pass == password[i] then
  31.    access = true
  32.  end
  33. end
  34. --
  35. if user == "Debug" and pass == "Admin" then
  36.  access = true
  37.  term.setCursorPos(1,6)
  38.  term.setTextColor(colors.yellow)
  39.  textutils.slowPrint("Initiating Debug-Mode!")
  40.  textutils.slowPrint("Please use with care!")
  41.  sleep(2)
  42.  term.clear()
  43.  term.setCursorPos(1,1)
  44.  term.setTextColor(colors.yellow)
  45.  textutils.slowPrint(NamE)
  46.  term.setCursorPos(10,1)
  47.  term.setTextColor(colors.red)
  48.  print("DEBUG-MODE")
  49.  term.setCursorPos(1,3)
  50.  term.setTextColor(colors.yellow)
  51. end
  52. --
  53. if access == true then
  54.  term.setCursorPos(1,6)
  55.  term.setTextColor(colors.yellow)
  56.  textutils.slowPrint("Attempting to login!")
  57.  sleep(1)
  58.  textutils.slowPrint("...")
  59.  sleep(1)
  60.  term.setCursorPos(1,9)
  61.  term.setTextColor(colors.green)
  62.  textutils.slowPrint("Login succeeded!")
  63.  textutils.slowPrint("...")
  64.  term.clear()
  65.  term.setCursorPos(1,1)
  66.  term.setTextColor(colors.purple)
  67.  textutils.slowPrint(NamE)
  68.  term.setCursorPos(10,1)
  69.  term.setTextColor(colors.blue)
  70.  print(VersioN)
  71.  term.setCursorPos(1,3)
  72.  term.setTextColor(colors.white)
  73.  end
  74.  
  75. else
  76.  term.setCursorPos(1,6)
  77.  term.setTextColor(colors.yellow)
  78.  textutils.slowPrint("Attempting to login!")
  79.  sleep(1)
  80.  textutils.slowPrint("...")
  81.  sleep(1)
  82.  term.setCursorPos(1,9)
  83.  term.setTextColor(colors.red)
  84.  textutils.slowPrint("Login failed!")
  85.  sleep(1)
  86.  textutils.slowPrint("Incorrect username and or password!")
  87.  sleep(1)
  88.  term.setCursorPos(1,12)
  89.  term.setTextColor(colors.yellow)
  90.  textutils.slowPrint("Rebooting Akira.OS!")
  91.  sleep(1)
  92.  os.reboot()
  93.  end
  94.  
  95. elseif user == "Debug" and pass == "Admin" then
  96.  access = true
  97.  term.setCursorPos(1,6)
  98.  term.setTextColor(colors.yellow)
  99.  textutils.slowPrint("Initiating Debug-Mode!")
  100.  textutils.slowPrint("Please use with care!")
  101.  sleep(2)
  102.  term.clear()
  103.  term.setCursorPos(1,1)
  104.  term.setTextColor(colors.yellow)
  105.  textutils.slowPrint(NamE)
  106.  term.setCursorPos(10,1)
  107.  term.setTextColor(colors.red)
  108.  print("DEBUG-MODE")
  109.  term.setCursorPos(1,3)
  110.  term.setTextColor(colors.yellow)
  111.  end
  112. --
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top