Upgraded to PHP 5.
Simplified user agent logging.