daily pastebin goal
63%
SHARE
TWEET

startup

a guest Jun 30th, 2018 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function login( u, p )
  2.  maxU = 1
  3.  us = {}
  4.  us[1] = "Retsonine"
  5.  
  6.  ps = {}
  7.  ps[1] = "password"
  8.  
  9.  for i = 1, maxU do
  10.    if string.lower(u) == string.lower(us[i]) and p == ps[i] then
  11.     versionHead()
  12.     print( "Welcome, " .. us[i] .. "." )
  13.     return
  14.    end      
  15.  end
  16.  if term.isColour() then term.setTextColour( colours.red ) end
  17.  print( "\nIncorrect login." )
  18.  if term.isColour() then term.setTextColour( colours.white ) end
  19.  print( "Rebooting..." )
  20.  os.sleep(2)
  21.  os.reboot()
  22. end
  23. function versionHead()
  24.  term.clear()
  25.  term.setCursorPos(1,1)
  26.  print( "Rets0S v0.0.1" )
  27. end
  28.  
  29. versionHead()
  30. print( "Username:" )
  31. username = io.read()
  32.  
  33. print( "\nPassword:" )
  34. password = read("*")
  35.  
  36. login( username, password )
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