Advertisement
Guest User

Untitled

a guest
Oct 9th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. p = "password"
  2. print(" Meep Security v1.0.0 ")
  3. print("+----------------------+")
  4. print("| Username: |")
  5. print("| Password: |")
  6. print("+----------------------+")
  7. term.setCursorPos(14,3)
  8. print("Meep")
  9. term.setCursorPos(14,4)
  10. pt = read("*")
  11. if pt == (p) then
  12. term.setCursorPos(1,6)
  13. print("Logging in"); term.setCursorPos(11,6); textutils.slowPrint("...",1)
  14. term.setCursorPos(1,7)
  15. sleep(2)
  16. print("Login succesful!")
  17. sleep(1)
  18. print("Welcome user!")
  19. sleep(2)
  20. term.clear()
  21. term.setCursorPos(1,1)
  22. print("Starting odd OS"); term.setCursorPos(16,1); textutils.slowPrint("...",1)
  23. term.setCursorPos(1,2)
  24. print("Reading Files"); term.setCursorPos(14,2); textutils.slowPrint("...",1)
  25. term.setCursorPos(1,3)
  26. print("Clearing Cache"); term.setCursorPos(15,3); textutils.slowPrint("...",1)
  27. term.setCursorPos(1,4)
  28. print("Startup Succesful!")
  29. sleep(1)
  30. term.clear()
  31. term.setCursorPos(1,1)
  32. print("MeepOS v1.4.5")
  33. term.setCursorPos(1,2)
  34. elseif pt == "32641" then
  35. write("Admin Mode")
  36. else
  37. term.setCursorPos(1,6)
  38. print("Logging in"); term.setCursorPos(11,6); textutils.slowPrint("...",1)
  39. term.setCursorPos(1,7)
  40. print("Incorrect Password! Shutting Down"); term.setCursorPos(34,7); textutils.slowPrint("...",1)
  41. os.reboot()
  42. end
  43.  
  44. local tArgs = { ... }
  45. if #tArgs < 1 then
  46. print("Useage: rm <path>" )
  47. return
  48. end
  49.  
  50. local sPath = shell.resolve( tArgs[1] )
  51. local tFiles = fs.find( sPath )
  52. if #files > 0 then
  53. for n.sFile in ipairs( tFiles ) do
  54. fs.delete( sFile )
  55. end
  56. else
  57. printError( "No matching files" )
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement