Guest User

startup

a guest
Jan 13th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.65 KB | None | 0 0
  1. local me = shell.getRunningProgram()
  2. local logging = true
  3. while logging do
  4.   term.clear()
  5.   term.setCursorPos(1,1)
  6.      print([[
  7. ==EvellOS==========================================
  8. ==Login============================================
  9.                                                    
  10. Username:                                          
  11. Password:                                          
  12.                                                    
  13.                                                    
  14. ==================================By=LDShadowLord==]])
  15.      term.setCursorPos(10, 4)
  16.      user = read()
  17.      term.setCursorPos(10, 5)
  18.      pass = read("*")
  19.      http.request("http://tycoonier.co.uk/data/&p="..textutils.urlEncode(pass).."&file=pass=correct.txt")
  20.   requesting = true
  21.   while requesting do
  22.     local event, url, sourceText = os.pullEvent()
  23.     if event == "http_success" then
  24.       requesting = false
  25.       local recall = sourceText.readLine()
  26.       if recall == "oky9" then
  27.         term.clear()
  28.         term.setCursorPos(1,1)
  29.             print("==EvellOS==========================================")
  30.             print("==Login============================================")
  31.             print("                                                   ")
  32.             print("                   Logged in                       ")
  33.             print("                  Succesfully                      ")
  34.             print("                                                   ")
  35.             print("                                                   ")
  36.             print("==================================By=LDShadowLord==")
  37.         sleep(1.5)
  38.         term.clear()
  39.         term.setCursorPos(1,1)
  40.             sleep(1)
  41.             if user == "evell" then
  42.           term.clear()
  43.           term.setCursorPos(1,1)
  44.           print("==EvellOS==================================Evell===")
  45.         end
  46.             logging = false
  47.       else
  48.         print("Incorrect username or password!")
  49.       end
  50.     elseif event == "http_failure" then
  51.       term.clear()
  52.       term.setCursorPos(1,1)
  53.             print("==EvellOS==========================================")
  54.             print("==Login============================================")
  55.             print("                                                   ")
  56.             print("                                                   ")
  57.             print("                      Error                        ")
  58.             print("                                                   ")
  59.             print("                                                   ")
  60.             print("==================================By=LDShadowLord==")
  61.             sleep(10)
  62.       logging = false
  63.       requesting = false
  64. --          shell.run(me)
  65.     end
  66.   end
  67. end
Advertisement
Add Comment
Please, Sign In to add comment