in reply to YaBB mod patch

Any suggestions on the best method to make this 1-attachment process into multiple attachments?

The best way is probably to refactor all of the (broken) custom form-parsing code to use a secure, working parser such as that in CGI or CGI::Simple. Honestly, I'm not sure this code is worth it. It has problems.

The "easiest" way to do this is probably to loop over all of the potential hash keys in %FORM you expect to contain uploaded files, setting $FORM{file} to each in turn, and calling this piece of code as a subroutine.

Replies are listed 'Best First'.
Re^2: YaBB mod patch
by Anonymous Monk on Feb 11, 2006 at 22:39 UTC
    Oh I know this code kind of sucks, to say the least, but it is the best free CGI one I found. Server doesn't run ASP or CFM, and PHP itself is just crap. I'm thinking about converting pieces of it to using CGI though to make addons like this a little less problematic.
      i'm working on a perl bb that's a big improvement on the one's out there currently, so if you keep in touch i can keep you updated. it'll be free of course, but it's moving slowly right now.
      meh.
Re^2: YaBB mod patch
by DrHyde (Prior) on Feb 13, 2006 at 10:00 UTC
    To say that YABB's code "has problems" is an understatement along the lines of saying that elephants may be too large to fit in your pocket. Just don't use it. The code is crap. I have ranted about this before here.