$id[$i]) { $temp = $order[$i]; $order[$i] = $order[$i1]; $order[$i1] = $temp; $temp = $id[$i]; $id[$i] = $id[$i1]; $id[$i1] = $temp; } } } echo '
'; echo '
',date("H"),':',date("i"),'
'; for ($i = 1; $i < 15; $i++) { echo '',$time[$order[$i]],''; $s = $nick[$order[$i]]; $res = mysql_query("SELECT * FROM `players` WHERE `nick`='$s'"); $arr = mysql_fetch_assoc($res); $c = $arr[color]; crop ($s, 6); echo ' ',$s,' '; $s = $message[$order[$i]]; while (strlen($s) > 0) { if (substr($s, 0, 2) == ' :') { $s = substr($s, 2); $n = strpos($s," "); $f = substr($s, 0, $n); $way = 'chat/smiles/'.$f.'.gif'; if (file_exists($way)) { echo ''; } $s = substr($s, $n+1); break; } echo substr($s, 0, 1); $s = substr($s, 1); } echo '
'; } echo '
'; $all = 0; $res = mysql_query("SELECT * FROM `players`"); while ($arr = mysql_fetch_assoc($res)) { $all++; } echo '
: ',200+$_SESSION[UV],'
'; echo ' : ',100+$all,'
'; $active = 0; $res = mysql_query("SELECT * FROM `players`"); while ($arr = mysql_fetch_assoc($res)) { if (time() - $arr[time_last_visit] < 11) { $active++; $nick[$active] = $arr[nick]; $color[$active] = $arr[color]; } } echo ' : ',$active,'
'; for ($i = 1; $i <= $active; $i++) { crop ($nick[$i], 5); echo ' ',$s; } echo $reklama[3]."
"; ?>