- Timestamp:
- Jun 22, 2010, 6:31:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r483 r486 552 552 $DbRow = $DbResult->fetch_assoc(); 553 553 $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)'); 555 555 } 556 556 }
Note:
See TracChangeset
for help on using the changeset viewer.