It looks as if there’s very little going on here at the moment, but there’s a lot of invisible activity taking place. I want to use mod_rewrite to give me static URLs for each page, so I need to make a few modifications to the site engine. Unfortunately, this isn’t as easy as it sounds. I wrote the code in a day or so, in a frenzy of activity. It is not very beautiful code. It’s documented reasonably well, and I know what is going on, but it is not elegantly written. It uses so many global variables that it is difficult to modify one thing without wider effects. I’ve been going through the code, isolating each function so that it obtains all its required information in the calling statement, and the only variables changed are those passed by reference (in the few cases where that is desirable).