Advertisement
Kyosa-sha

Porte sécurisé !

Jan 10th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. write("Mot de passe : ")
  4. input = read("*")
  5. mdp = ("1234")
  6. debug = ("12345")
  7.  
  8. if input == mdp then
  9. write("Mot de passe correct")
  10. rs.setOutput("left",true)
  11. sleep(3)
  12. rs.setOutput("left",false)
  13. sleep(1)
  14. os.reboot()
  15.  
  16. elseif input == debug then
  17. write("Debugage activé")
  18.  
  19. else
  20. write("Mauvais mot de passe")
  21. rs.setOutput("back",true)
  22. sleep(4)
  23. rs.setOutput("back",false)
  24. os.reboot()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement