function _logRequest()
 {
     // Get the logging data
     $values = array();
     $values['uri'] = str_replace(dirname(YD_SELF_SCRIPT) . '/', '', $this->getNormalizedUri());
     if (substr($values['uri'], 0, 1) == '/') {
         $values['uri'] = substr($values['uri'], 1);
     }
     $values['date'] = strftime('%Y-%m-%d');
     $values['browser'] = $this->browser->browser;
     $values['platform'] = $this->browser->platform;
     // Fix the short URLs so that they all look the same
     if (YDConfig::get('friendly_urls', true)) {
         if (YDStringUtil::startswith($values['uri'], 'image/', false)) {
             $values['uri'] = 'item_gallery.php?id=' . substr($values['uri'], 6);
         } elseif (YDStringUtil::startswith($values['uri'], 'archive')) {
         } else {
             $values['uri'] = substr($values['uri'], 0, strpos($values['uri'], '_')) . substr($values['uri'], strpos($values['uri'], '.php?id='));
         }
     }
     // Add them to the database
     $this->weblog->logRequestToStats($values);
 }