forked from watussi/watussibox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
watussi_track.php
executable file
·64 lines (50 loc) · 3.03 KB
/
watussi_track.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/* watussi_track.php
* Première version : 25 novembre 2012
* Dernière modification : 3 décembre 2012
.---------------------------------------------------------------------------.
| Software: WatussiBox Free |
| Version: 0.1 |
| Contact: [email protected] |
| Info: http://www.watussi.fr |
| Support: http://www.watussi.fr |
| ------------------------------------------------------------------------- |
| Author: Jean-Benoît MOINGT |
| ------------------------------------------------------------------------- |
| License: Distributed under the Creative Commons license (BY-NC-SA ) |
| http://creativecommons.org/licenses/by-nc-sa/3.0/ |
| |
| This program is distributed in the hope that it will be useful - WITHOUT |
| ANY WARRANTY. |
| ------------------------------------------------------------------------- |
| Licence: Distribué sous licence Creative Commons (BY-NC-SA) |
| http://creativecommons.org/licenses/by-nc-sa/3.0/fr/ |
| |
| Ce programme est distribué dans l'espoir qu'il sera utile - SANS AUCUNE |
| GARANTIE. |
| ------------------------------------------------------------------------- |
| Nous offrons un certain nombre de services complémentaire : |
| - Versions enrichies en fonctionnalitées |
| - Support |
| - Formation |
| - Conseil |
| - Développements spécifiques |
| --> Contactez-nous : [email protected] |
'---------------------------------------------------------------------------'
*/
include_once('inc/connect.inc.php');
include_once('inc/fonctions.inc.php');
$adresse_ip = $_SERVER['REMOTE_ADDR'];
if(isset($_SERVER['HTTP_REFERER'])){
$referer = $_SERVER['HTTP_REFERER'];
}
else{
$referer = '';
}
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$url = dirname(strtolower($_SERVER['SERVER_PROTOCOL'])) . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
//$user_agent = 'fsdfsdfsdfGooglebotfdsfsdfsdf';
//$adresse_ip = '66.249.3.3';
//$referer = 'http://www.google.fr/search?q=voiture%20renault+rouge&hl=fr&client=safari&prmd=imvns&ei=ihjvToTnM4SzhAfxw_HMCA&start=10&sa=N&biw=320&bih=416';
add_log($adresse_ip, $referer, $user_agent, $url, $RES_CODE, $RESPONSE_TIME);
$dbh = null;