goreae

CC ID/Athentification

Jan 2nd, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("Running Authentification Server")
  4. sleep(2.5)
  5. while true do
  6.   rednet.open("top")
  7.   Cid,user = rednet.receive()
  8.   Cid,Uid = rednet.receive()
  9.   mastid = fs.open(disk.getMountPath("left").."/"..user,"r")
  10.   if Uid == mastid.readLine() then  
  11.     rednet.send(Cid,"accepted")
  12.   else
  13.     rednet.send(Cid,"denied")
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment