This window will refresh to the main screen in ".$controlrow["pvprefresh"]." seconds."; $pagerow["target"] = "_top"; $pagerow["parentreload"] = "onload=\"setTimeout('top.location.href=\'index.php\'',".($controlrow["pvprefresh"] * 1000).")\""; $pagerow["metareload"] = ""; $page = parsetemplate(gettemplate("pvp_mini"),$pagerow); if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } echo $page; die(); } // No timeout so check for whose turn it is. if ($row["playerturn"] == $userrow["id"]) { $pagerow["content"] = "Please hold while this window refreshes to the game screen..."; $pagerow["target"] = "_top"; $pagerow["metareload"] = ""; $pagerow["parentreload"] = "onload=\"setTimeout('top.location.href=\'pvp.php\'',".($controlrow["pvprefresh"] * 100).")\""; $pagerow["metareload"] = ""; $page = parsetemplate(gettemplate("pvp_mini"),$pagerow); if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } echo $page; die(); } else { $pagerow["content"] = "Waiting for player to respond..."; $pagerow["target"] = "_self"; $pagerow["parentreload"] = ""; $pagerow["metareload"] = ""; $page = parsetemplate(gettemplate("pvp_mini"),$pagerow); if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } echo $page; die(); } ?>