Counter/Tracker met GD
Door Bram Z, 24 jaar geleden, 4.864x bekeken
Dit script houd verschillende dingen bij van jouw bezoekers. Je moet maar 3 dingen doen voor het te doen werken:
1. Voeg deze querie uit:
Code (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
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
<?php
CREATE TABLE `browsers` (
`id` int(11) NOT NULL auto_increment,
`browser` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
CREATE TABLE `config` (
`name` varchar(255) NOT NULL default '',
`value` varchar(255) NOT NULL default ''
) TYPE=MyISAM;
INSERT INTO `config` VALUES ('total_value', '0');
CREATE TABLE `language` (
`id` int(11) NOT NULL auto_increment,
`language` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `last_guests` (
`id` int(10) NOT NULL auto_increment,
`ip` varchar(15) NOT NULL default '',
`domain` varchar(255) NOT NULL default '',
`country` varchar(255) NOT NULL default '',
`os` varchar(255) NOT NULL default '',
`browser` varchar(255) NOT NULL default '',
`page` varchar(255) NOT NULL default '',
`referrer` varchar(255) NOT NULL default '',
`datum` int(12) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `lastdays` (
`id` int(1) NOT NULL auto_increment,
`day` varchar(5) NOT NULL default '',
`unique_hits` int(5) NOT NULL default '0',
`hits` int(10) NOT NULL default '0',
`dag` int(2) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `os` (
`id` int(11) NOT NULL auto_increment,
`os` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
CREATE TABLE `provider` (
`id` int(11) NOT NULL auto_increment,
`provider` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `today_ip` (
`id` int(5) NOT NULL auto_increment,
`ip` varchar(15) NOT NULL default '',
`hits` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
?>
CREATE TABLE `browsers` (
`id` int(11) NOT NULL auto_increment,
`browser` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
CREATE TABLE `config` (
`name` varchar(255) NOT NULL default '',
`value` varchar(255) NOT NULL default ''
) TYPE=MyISAM;
INSERT INTO `config` VALUES ('total_value', '0');
CREATE TABLE `language` (
`id` int(11) NOT NULL auto_increment,
`language` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `last_guests` (
`id` int(10) NOT NULL auto_increment,
`ip` varchar(15) NOT NULL default '',
`domain` varchar(255) NOT NULL default '',
`country` varchar(255) NOT NULL default '',
`os` varchar(255) NOT NULL default '',
`browser` varchar(255) NOT NULL default '',
`page` varchar(255) NOT NULL default '',
`referrer` varchar(255) NOT NULL default '',
`datum` int(12) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `lastdays` (
`id` int(1) NOT NULL auto_increment,
`day` varchar(5) NOT NULL default '',
`unique_hits` int(5) NOT NULL default '0',
`hits` int(10) NOT NULL default '0',
`dag` int(2) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `os` (
`id` int(11) NOT NULL auto_increment,
`os` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
CREATE TABLE `provider` (
`id` int(11) NOT NULL auto_increment,
`provider` varchar(255) NOT NULL default '',
`hits` int(5) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
CREATE TABLE `today_ip` (
`id` int(5) NOT NULL auto_increment,
`ip` varchar(15) NOT NULL default '',
`hits` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
?>
Zorg er zeker voor dat juist het zelfde doet !!
2. Geef je database gegeven inhet bestad config.php
3. Zorgen dat je de images download voor de counter:
http://users.telenet.be/source/img.zip
Gesponsorde koppelingen
PHP script bestanden
Er zijn 40 reacties op 'Countertracker met gd'
Om te reageren heb je een account nodig en je moet ingelogd zijn.
PHP hulp
0 seconden vanaf nu