Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<? include(\"counter.php\"); ?>
<?
$numip = \"10\"; //Anzahl der IP-Adressen, die gespeichert werden sollen
$anzdir=\"counter.dat\"; //Datei, in der die Impressionzahl gespeichert wird
$ipdir=\"ip.txt\" ; //Datei, in der die IPs gespeichert werden
################################################################################
// ab hier gilt: Nur editieren, wenn du weißt was du tust !!!
if (file_exists($anzdir) AND ($ipdir))
{
global $REMOTE_ADDR, $ipdata, $userip1;
$userip = $REMOTE_ADDR ;
$ipfile = fopen($ipdir,\"r+\");
$ipfile1 = fgets($ipfile,200);
$ipdata = explode(\":\",$ipfile1);
if (in_array($userip, $ipdata))
{
global $nummer;
$anzahl = fopen(\"$anzdir\", \"r+\") ;
$nummer = fgets($anzahl,9);
fclose($anzahl);
}
else
{
global $num, $userip;
$num = count($ipdata);
if ($num <= $numip)
{
fputs($ipfile,$userip.\":\");
fclose($ipfile);
$anzahl = fopen(\"$anzdir\", \"r+\");
$nummer = fgets( $anzahl, 9 );
$nummer++;
fseek($anzahl, 0);
fputs( $anzahl, $nummer );
fclose($anzahl);
}
else
{
global $ipdata9, $push;
$pop = array_pop($ipdata);
$ipdata = array_reverse($ipdata);
array_push($ipdata,$userip);
$ipdata = array_reverse($ipdata);
$userip2 = implode(\":\",$ipdata);
$ipfile = fopen($ipdir,\"w+\");
fputs($ipfile,$userip2);
fclose($ipfile);
$anzahl = fopen(\"$anzdir\", \"r+\");
$nummer = fgets( $anzahl, 9 );
$nummer++;
fseek($anzahl, 0);
fputs( $anzahl, $nummer );
fclose($anzahl);
}
}
}
else
{
if (file_exists($ipdir))
{
global $nummer;
$fo = fopen($anzdir,\"w+\");
fputs($fo, 1);
$nummer = 1;
}
else
{
global $nummer;
$foip = fopen($ipdir, \"w+\");
fputs($foip, $REMOTE_ADDR.\":\");
fclose($foip);
$foan = fopen($anzdir,\"w+\");
fputs($foan, 1);
$nummer = 1;
}
}
echo \"$nummer\";
?>