include ('licznik.cfg');
session_start();
if ($count_what == 'visitors') {
if (!$PHPSESSID) {
$thefile = file("licznik.txt");
$count = implode("", $thefile);
$count++;
$myfile = fopen("licznik.txt","w");
fputs($myfile,$count);
fclose($myfile);
}
}
else {
$thefile = file("licznik.txt");
$count = implode("", $thefile);
$count++;
$myfile = fopen("licznik.txt","w");
fputs($myfile,$count);
fclose($myfile);
}
?>
$thefile = file("licznik.txt");
$count = implode("", $thefile);
# wersja tekstowa
if ($print_what == 'text') {
print $count;
}
#wersja graficzna
else {
$num = strlen ($count);
$i = 0;
while ($i < $num) :
$graphic = substr ($count, $i, 1);
print " ";
$i++;
endwhile;
}
?>
|