Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --My stuff. Don't touch it.
- ver = "1.0"
- --URL of website
- url = "mcw.untitled.net/"
- --Type of website
- type = "web"
- --Text in website, use /n for new line.
- title = "--Untitled.net--"
- line = "Welcome to Untitled.net! \nThe unedited & un-named website!"
- --The code. Don't. Mess. With. It.
- --Check URL isn't taken
- write "--SWebHost v"
- write (ver)
- print "--"
- id, otherurl = rednet.receive(10)
- if otherurl == url then
- print "URL Taken!"
- sleep(2)
- shell.run("/ShadOS/ProgramFiles/refresh")
- else
- print "URL Is not taken."
- --Here is where it repeats from.
- while true do
- userid, verurl = rednet.receive(2)
- if verurl == url then
- print "Sending website type..."
- rednet.send(userid,(type))
- if type == "web" then
- print "Sending page..."
- rednet.send(userid,(title))
- rednet.send(userid,(line))
- print "WebPage Sent."
- elseif type == dld then
- rednet.send(userid,(title))
- rednet.send(userid,(line))
- print "Program Sent."
- end
- else
- print "Incorrect Adress/No requests"
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement