<?php $tim = 120+time(); $time = time(); $f = "online.txt"; $nusk = file($f); $sk = count($nusk); $in = $HTTP_USER_AGENT.$REMOTE_ADDR; $fp = fopen($f, "w+"); for($i=0; $i<$sk; $i++) { list($nix, $timf) = explode("|", $nusk[$i]); if($nix !== $in && $timf>$time) { fwrite($fp,$nusk[$i]); }} fwrite($fp, "$in|$tim|\n"); fclose($fp); echo count(file($f)); ?>
---
[^] Atgal
[«] Skaitykla

* * Gen. time: 0.0264
* © xneox.com