Просмотр файла template/onlinegames.php
<?php $settime=time(); $games_shet=0; $localfile = file("local/who.dat"); $local_total = count($localfile); for($for_i=0;$for_i<=$local_total;$for_i++){ $who_file=explode("|",$localfile[$for_i]); $controltime=$settime-trim($who_file[3]); if($controltime < 600){ $array_users[]=trim($who_file[0]); $who_set=explode("/",$who_file[1]); if($who_set[1]=="games"){$games_shet++;} $online_shet++; }} echo ' ('.(int)$games_shet.')'; ?>