Advertisement
pfgpastebin

PFGOS

Apr 22nd, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. version = 1
  3. function users()
  4.     term.setBackgroundColor(colors.blue)
  5.     term.setTextColor(colors.black)
  6.     term.clear()
  7.     term.setCursorPos(1,1)
  8.     textutils.slowPrint("Sign In")
  9.  
  10.     term.setCursorPos(1,3)
  11.     term.setBackgroundColor(colors.lightGray)
  12.     term.setTextColor(colors.darkGray)
  13.     print("Username")
  14.  
  15.     term.setCursorPos(1,5)
  16.     term.setBackgroundColor(colors.lightGray)
  17.     term.setTextColor(colors.darkGray)
  18.     print("Password")
  19.  
  20.     term.setTextColor(colors.black)
  21.     term.setCursorPos(1,3)
  22.     usr=read()
  23.     term.setCursorPos(1,5)
  24.     pswd=read("*")
  25. end
  26. if(tonumber((http.get("http://pastebin.com/raw.php?i=WZk66BPG")).readAll()) > version)then
  27. shell.run("update")
  28. else
  29. term.setBackgroundColor(colors.yellow)
  30. term.setTextColor(colors.black)
  31. term.clear()
  32. term.setCursorPos(1,1)
  33. textutils.slowPrint("Welcome to PFGOS!")
  34. users()
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement