Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Arg = {...}
- rednet.open("right")
- debugmode = true
- function debug(debug)
- if debugmode == true then
- print(debug)
- end
- end
- function Cloud()
- term.clear()
- term.setCursorPos(1,1)
- print("Owncloud is running. The ID is "..os.getComputerID())
- id,func,weg = rednet.receive()
- idc,content,weg = rednet.receive()
- if idc == id then
- stuff = content
- end
- idc,content,weg = rednet.receive()
- if idc == id then
- user = content
- end
- idc,content,weg = rednet.receive()
- if idc == id then
- password = content
- end
- if fs.exists("/owncloud/user/"..user) == true then
- ps = fs.open("/owncloud/user/"..user,"r")
- wo = ps.readLine()
- ps.close()
- if wo == password then
- if func == "logintest" then
- rednet.send(id,"All right")
- Cloud()
- else
- shell.run("/owncloud/plugins/"..func)
- end
- end
- else
- rednet.send(id,"Wrong login")
- Cloud()
- else
- rednet.send(id,"Wrong login")
- Cloud()
- end
- end
- Cloud()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement