###ххх
if ($room=="ххх") {
mysql_query("UPDATE players SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"ххх.php\";
top.frames['online'].location = top.frames['online'].location;
top.frames['chat'].location = top.frames['chat'].location;
//-->
</SCRIPT>
";
exit();
}
###