SHOW:
|
|
- or go back to the newest paste.
| 1 | term.clear() | |
| 2 | term.setCursorPos(1,1) | |
| 3 | - | password = "åB6589973000748693420112211745203470000_ |
| 3 | + | password = "åB6589973000748693420112211745203470000_" |
| 4 | - | " |
| 4 | + | |
| 5 | side = "right" | |
| 6 | opentime = 5 | |
| 7 | ||
| 8 | ||
| 9 | rs.setOutput(side,inverted) | |
| 10 | write("Password: ")
| |
| 11 | input = read("*")
| |
| 12 | if input == password then | |
| 13 | if inverted == true then | |
| 14 | print("Access granted")
| |
| 15 | rs.setOutput(side, false) | |
| 16 | sleep(opentime) | |
| 17 | os.reboot() | |
| 18 | else | |
| 19 | print("Access granted")
| |
| 20 | rs.setOutput(side, true) | |
| 21 | sleep(opentime) | |
| 22 | os.reboot() | |
| 23 | end | |
| 24 | elseif input == "goodchoys" then | |
| 25 | print("Exiting program..")
| |
| 26 | sleep(2) | |
| 27 | else | |
| 28 | print("Access denied")
| |
| 29 | sleep(3) | |
| 30 | os.reboot() | |
| 31 | end |