unieke-bezoekers-teller-15-nieuw
Gesponsorde koppelingen
PHP script bestanden
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
include('lite_teller.php');
include('lite_stats.php');
//imagestats.php
$gethim=array();
//1
if(isset($_GET['showd1']))
{
$gethim[0]=$_GET['showd1'];
}else{
$gethim[0]="Bezoekers:";
}
//2
if(isset($_GET['showd2']))
{
$gethim[1]=$_GET['showd2'];
}else{
$gethim[1]="Aantal dagen gemeten:";
}
//3
if(isset($_GET['showd3']))
{
$gethim[2]=$_GET['showd3'];
}else{
$gethim[2]="Totaal aantaal bezoekers in ".(count($result)-1)." dagen:";
}
//4
if(isset($_GET['showd4']))
{
$gethim[3]=$_GET['showd4'];
}else{
$gethim[3]="Gemiddeld p.dag:";
}
//5
if(isset($_GET['showd5']))
{
$gethim[4]=$_GET['showd5'];
}else{
$gethim[4]="Hoogst aantal bezoekers op 1 dag:";
}
$showtrack=explode("-", $_GET['show']);
if($showtrack['0']=="1"){$ja[0]=1;$regels0=$regels0+1;}
if($showtrack['1']=="1"){$ja[1]=1;$regels0=$regels0+1;}
if($showtrack['2']=="1"){$ja[2]=1;$regels0=$regels0+1;}
if($showtrack['3']=="1"){$ja[3]=1;$regels0=$regels0+1;}
if($showtrack['4']=="1"){$ja[4]=1;$regels0=$regels0+1;}
////////////
$filename = 'teller.GIF';
header('Content-type: image/gif');
// Get new sizes
$newwidth = $_GET['width'];
$newheight = $_GET['height'];
$thumb = imagecreate($newwidth, $newheight);
$bgcolor=explode("-",$_GET['bgcolor']);
$col1=$bgcolor[0];
$col2=$bgcolor[1];
$col3=$bgcolor[2];
$background=imagecolorallocate($thumb,$col1,$col2,$col3);
$source = imagecreatefromgif($filename);
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
//////////
$hoog=-15;
for($i=0;$i<5;$i++)
{
if($i==0){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".file_get_contents("entrys_".date("d-m-y").".txt");}
if($i==1){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".(count($result)-1);}
if($i==2){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".$som;}
if($i==3){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".round($som/(count($result)-1),1);}
if($i==4){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".$high." op ".$daghigh;}
$fontcolor=explode("-",$_GET['fontcolor']);
$col1=$fontcolor[0];
$col2=$fontcolor[1];
$col3=$fontcolor[2];
$orange = imagecolorallocate($thumb,$col1,$col2,$col3);
if($ja[$i]==1){$hoog=$hoog+17;imagestring($thumb, 5,5, $hoog, $show, $orange);}
}
$hoog=$hoog+17;imagestring($thumb, 5,5, $hoog, $langste, $orange);
imagegif($thumb);
?>
include('lite_teller.php');
include('lite_stats.php');
//imagestats.php
$gethim=array();
//1
if(isset($_GET['showd1']))
{
$gethim[0]=$_GET['showd1'];
}else{
$gethim[0]="Bezoekers:";
}
//2
if(isset($_GET['showd2']))
{
$gethim[1]=$_GET['showd2'];
}else{
$gethim[1]="Aantal dagen gemeten:";
}
//3
if(isset($_GET['showd3']))
{
$gethim[2]=$_GET['showd3'];
}else{
$gethim[2]="Totaal aantaal bezoekers in ".(count($result)-1)." dagen:";
}
//4
if(isset($_GET['showd4']))
{
$gethim[3]=$_GET['showd4'];
}else{
$gethim[3]="Gemiddeld p.dag:";
}
//5
if(isset($_GET['showd5']))
{
$gethim[4]=$_GET['showd5'];
}else{
$gethim[4]="Hoogst aantal bezoekers op 1 dag:";
}
$showtrack=explode("-", $_GET['show']);
if($showtrack['0']=="1"){$ja[0]=1;$regels0=$regels0+1;}
if($showtrack['1']=="1"){$ja[1]=1;$regels0=$regels0+1;}
if($showtrack['2']=="1"){$ja[2]=1;$regels0=$regels0+1;}
if($showtrack['3']=="1"){$ja[3]=1;$regels0=$regels0+1;}
if($showtrack['4']=="1"){$ja[4]=1;$regels0=$regels0+1;}
////////////
$filename = 'teller.GIF';
header('Content-type: image/gif');
// Get new sizes
$newwidth = $_GET['width'];
$newheight = $_GET['height'];
$thumb = imagecreate($newwidth, $newheight);
$bgcolor=explode("-",$_GET['bgcolor']);
$col1=$bgcolor[0];
$col2=$bgcolor[1];
$col3=$bgcolor[2];
$background=imagecolorallocate($thumb,$col1,$col2,$col3);
$source = imagecreatefromgif($filename);
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
//////////
$hoog=-15;
for($i=0;$i<5;$i++)
{
if($i==0){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".file_get_contents("entrys_".date("d-m-y").".txt");}
if($i==1){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".(count($result)-1);}
if($i==2){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".$som;}
if($i==3){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".round($som/(count($result)-1),1);}
if($i==4){$show=str_replace("@dagen%",(count($result)-1),$gethim[$i])." ".$high." op ".$daghigh;}
$fontcolor=explode("-",$_GET['fontcolor']);
$col1=$fontcolor[0];
$col2=$fontcolor[1];
$col3=$fontcolor[2];
$orange = imagecolorallocate($thumb,$col1,$col2,$col3);
if($ja[$i]==1){$hoog=$hoog+17;imagestring($thumb, 5,5, $hoog, $show, $orange);}
}
$hoog=$hoog+17;imagestring($thumb, 5,5, $hoog, $langste, $orange);
imagegif($thumb);
?>