Witam serdecznie,
Poszukuję kodu lub skryptu, który pokazywałby mi adresy IP wszystkich osób będących online na stronie.
Z góry dziękuję za pomoc.
Pozdrawiam
Martino
<?php $dataFile = "online.txt"; $sessionTime = 30; //this is the time in **minutes** to consider someone online before removing them from our file //Please do not edit bellow this line } $ip = $_SERVER['REMOTE_ADDR']; //getting } //cleaning $x = 0; $alreadyIn = FALSE; foreach($users as $key => $data) { $users[$x] = ""; } else { $alreadyIn = TRUE; } } $x++; } if($alreadyIn == FALSE) { } //writing $i = 0; foreach($users as $single) { if($single != "") { $i++; } } if($uo_keepquiet != TRUE) { //echo '<div style="padding:5px; margin:auto; background-color:#fff"><b>' //. $i . ' visitors online</b></div>'; } ?>