Bug fixes for the RUBBoS PHP code

Hello,
I've fixed several bugs and provided some minor enhancements to PHP code.
Much of the changes are related to the Web session management and to the production of HTML.

Could you consider to merge my changes?

Thank you very much.

Sincerely,

-- Marco