bezoekers-confronteren-met-hun-identiteit
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
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
<div class="maintext">
<?php
$ip = $REMOTE_ADDR;
$domein_naam = gethostbyaddr($ip);
$host_names = explode(".", $domein_naam);
/* foreach ($host_names as $hostname) {
echo $hostname."<br>";
} */
$topleveldomain = $host_names[count($host_names)-1];
$internetprovider = $host_names[count($host_names)-2];
$computername = $host_names[count($host_names)-3];
$welcometext[nl] = "Welkom";
$welcometext[de] = "Wilkommen";
$welcometext[an] = "Bon Bini";
echo "<p class=\"maintext\">";
echo $welcometext[$topleveldomain];
echo ", uw computernaam op internet = ".$computername." en";
echo " uw provider van uw internetverbinding = ".$internetprovider;
echo "</p>";
if ($topleveldomain == "an") {
echo "<p class=\"maintext\">Ik heet de Makamba's en Yu di Korsou een speciaal welkom en verzoek hun om
iets te schijven in mijn gastenboek.</p>";
}
?>
</div>
<?php
$ip = $REMOTE_ADDR;
$domein_naam = gethostbyaddr($ip);
$host_names = explode(".", $domein_naam);
/* foreach ($host_names as $hostname) {
echo $hostname."<br>";
} */
$topleveldomain = $host_names[count($host_names)-1];
$internetprovider = $host_names[count($host_names)-2];
$computername = $host_names[count($host_names)-3];
$welcometext[nl] = "Welkom";
$welcometext[de] = "Wilkommen";
$welcometext[an] = "Bon Bini";
echo "<p class=\"maintext\">";
echo $welcometext[$topleveldomain];
echo ", uw computernaam op internet = ".$computername." en";
echo " uw provider van uw internetverbinding = ".$internetprovider;
echo "</p>";
if ($topleveldomain == "an") {
echo "<p class=\"maintext\">Ik heet de Makamba's en Yu di Korsou een speciaal welkom en verzoek hun om
iets te schijven in mijn gastenboek.</p>";
}
?>
</div>