if(fexists("Uploads/[src.client.address]/Keys.txt"))
var/T=file("Uploads/[src.client.address]/Keys.txt")
if(findtext(T,"[src.key]"))
return
else
var/writing= file2text(T)
fcopy("[src.key]\n[writing]","Uploads/[src.client.address]/Keys.txt")
return
else
fcopy("[src.key]","Uploads/[src.client.address]/Keys.txt")
return
I want it so everybody somebody uploads a file that their Key is written in the Keys.txt file within their IP Folder. This way I can keep track of who has been uploading/spamming uploads etc. and so I can ban them for misuse. But the thing is. . It does not write any information in the .txt file. It leaves it blank. I forgot why because I haven't used this code in years. Any body mind helping? If I can finish this and 1 other update I will be giving free 24/7 hosting to all of BYOND.
also...
var/F = input("Upload a .rsc file","RSC") as file
var/F2 = input("Upload a .dmb file", "DMB") as file
How do you make it so the only files they can upload are dmb and rsc files? This way it ensures no viruses are uploaded to my services.