I made a modification to this. If anyone knows if this is secure, would appreciate the feedback.
I like to be able to separate the uploads into a user directory. Personally I think it's tricky to give the username a directory due to funny characters, but with vb, we can use userid which is always a number and always safe.
So in newthread.php, instead of the instruction, simply add
Code:
mkdir ("$uppath/$userid", 0777);
copy("$secured","$uppath/$userid/$secured_name");
probably you can be more restrictive than 0777. Also, this code goes right above
Code:
$TheFileNameIs = $secured_name;
$TheFileLinkIs = "\n\n\[img\]$bburl/$upfolder/$userid/$TheFileNameIs\[/img\]";
$message = "$message".stripslashes($TheFileLinkIs)."";
and instead of saving your files to an upload directory, it will save it to upload/$userid/*.gif if you know what I mean.