Ignore:
Timestamp:
Jun 18, 2010, 7:10:56 AM (14 years ago)
Author:
george
Message:
  • Přidáno: Počítání návštěv a provázání poddomén stejného webu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global_function.php

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