Changeset 486 for trunk


Ignore:
Timestamp:
Jun 22, 2010, 6:31:02 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Při první vnější návštěvě započítej ihned jeden Hit namísto 0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global_function.php

    r483 r486  
    552552        $DbRow = $DbResult->fetch_assoc();
    553553        $System->Database->query('UPDATE `Referrer` SET `Hits` = `Hits` + 1, `DateLast` = NOW(), `LastURL` = "'.addslashes($Referrer).'" WHERE `Id` = '.$DbRow['Id']);
    554       } else $System->Database->query('INSERT INTO `Referrer` (`Web`, `DateFirst`, `DateLast`, `LastURL`) VALUES ("'.$HostName.'", NOW(), NOW( ), "'.addslashes($Referrer).'")');
     554      } else $System->Database->query('INSERT INTO `Referrer` (`Web`, `DateFirst`, `DateLast`, `LastURL`, `Hits`) VALUES ("'.$HostName.'", NOW(), NOW( ), "'.addslashes($Referrer).'", 1)');
    555555    }
    556556  }
Note: See TracChangeset for help on using the changeset viewer.