Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Server CLOUD
- -- FoxWorn3365
- -- SIA RFI CHE TRENITALIA
- -- Lato SERVER
- local modem = peripheral.wrap("top")
- -- Aspetto la richiesta
- while true do
- modem.setListening(81, true)
- local event, lato, sender, canale, msg = os.pullEvent("lan_message")
- print("Richiesta da: 144.91.97."..sender.."\nContenuto: "..msg)
- if msg == "rfi.com" then
- modem.sendChannel(80, " R. F. I.\n\nRFI e' l'ente statale per la gestione della ferrovia in tutto lo stato.\nAbbiamo in gestione più del 90% della rete ferroviaria in tutta la nazione e partecipiamo alla gestione del 75% della ferrovia non proprietaria\nOgni giorno con più di 2500 corse ferroviarie colleghiamo la nazione a prezzi bassi e con ritardi ramamente minori a 10 minuti.\nI rotabili sono in partecipazione con la societa' statale Trenitalia\n\nOrari: https://trenitalia.com/orari\nAmministrazione: https://rfi.com/manage\nFerrovie: https://rfi.com/rails/")
- elseif msg == "rfi.com/manage" then
- modem.sendChannel(80, " R. F. I.\n\nAmministrazione:\n - CEO: FoxWorn3365\n - DTD: AlCosm")
- elseif msg == "rfi.com/rails/" then
- modem.sendChannel(80, " R. F. I.\n\nCREAZIONE DELLA PAGINA")
- elseif msg == "trenitalia.com" then
- modem.sendChannel(80, " TRENITALIA \n\nTrenitalia, da oltre 5 anni gestisce il materiale rotabile che viaggia sulle ferrovie statali e non.\n\n")
- end
- end
Add Comment
Please, Sign In to add comment