Anything, a mini-clone of Everything(which runs PerlMonks).
This is what I get for trying to organize things with
WolfSkunks. It is a CGI script, though, and works well with
mhttpd. It will auto-setup itself. Just edit $root.
Update 1-11: Updated to secure it a bit and use CGI::Lite
(which I think is a lot less complicated than all of CGI).
The square brackets now work.
Update 1-29: Updated it again so that updates and node editing
Given all of the fuss over handrolled CGI parsers
lately, I am amazed that you would post your own.
chromatic right now has an excellent explanation
of why you really didn't want to do that. (And yes, you did make most of the common mistakes.)
Additionally you don't seem to be aware of a variety of
race conditions, security holes, etc. For a random instance take
a look at this
and figure out how many of the attacks you could be taken
down with. Oh, better than that, how many of the attacks
are designed to get around checks that you don't even do?
Hopefully you will take this as constructive criticism and
learn how to avoid these problems in the future. But in
the meantime -- for bad advice that will put at risk anyone
who follows it.
Thanks for the comments. I was looking for them, too!
Yep, it's unfortunately handrolled, I'm a little bit
spooked by CGI.pm's complexity. Sheesh, I just need to get
varibles, not wrap the entire HTML generation process!!!
(Update through the chatterbox: CGI.pm is split and
autoloads what's needed. *sigh* Thanks, Fastolfe)
It's also crude code, ment for an end-user; but securing it's
probably worthy of some time.