Hi i have a small problem with my site, i have a page that logs into multiple accounts & opens a web page logged into each account at the same time in 5 iframes. Now my problem is the game site have made some updates & one of which is a framekiller, now i have found you can counteract it but its a little problematic for myself because my iframes generated within php, ill show you the part that does the frames..

PHP Code:
<?php $result mysql_query("SELECT ru.id, ru.username, ru.owid FROM raidbar_users ru LEFT JOIN raidbar_groups rg ON ru.groupid = rg.id WHERE rg.id = '".(int)$_REQUEST['group']."'") or die(mysql_error()); $myRaidid raidid();  if(isset($_GET['gm'])) { echo '<FRAMESET rows="*,*,*,30" frameborder="0">' "\n"; echo ' <FRAMESET cols="*,*" frameborder="0" scrolling="no">' "\n"$i 0; while($row mysql_fetch_array($result)) { if ($i == 2) { echo ' </FRAMESET>' "\n"; echo ' <FRAMESET cols="*,*" frameborder="0" scrolling="no">' "\n"$i 0; } echo ' <FRAME src="http://'.$server[$siteConfig['userServer']].'.***********/joinraid.php?raidid=' $myRaidid '&suid=' $row['owid'] . '&serverid='.$siteConfig['userServer'].'">' "\n"$i++; } echo ' <FRAME src="">' "\n"; echo ' </FRAMESET>' "\n"; echo ' <FRAMESET frameborder="0" scrolling="no">' "\n"; echo ' <FRAME src="http://'.$server[$siteConfig['userServer']].'.***********/raidmembers.php?raidid=' $myRaidid '">' "\n"; echo ' </FRAMESET>' "\n"; echo '</FRAMESET>' "\n"; } else { echo '<table cellspacing=1 cellpadding=1>' "\n"; echo '<tr>' "\n"$i 0; while($row mysql_fetch_array($result)) { if ($i == 2) { echo '</tr>' "\n"; echo '<tr>' "\n"$i 0; } echo ' <td><iframe src="./acct.php?suid=' $row['owid'] . '" width=450 height=225 scrolling=no frameborder=0></iframe>' "\n"$i++; } echo '</tr>' "\n"; echo '<tr>' "\n"; echo ' <td><iframe src=http://'.$server[$siteConfig['userServer']].'.***********/raidmembers.php?raidid=' raidid() . '&serverid='.$siteConfig['userServer'].' width=250 height=30 scrolling=no></iframe>' "\n"; echo '</tr>' "\n"; echo '</table>' "\n"; } ?>
How the framekiller the site uses is

Code:
<script type="text/javascript">   if(top != self) top.location.replace(location); </script>
the counteraction code is this apparently..

Code:
var prevent_bust = 0;   // Event handler to catch execution of the busting script.  window.onbeforeunload = function() { prevent_bust++ };   // Continuously monitor whether busting script has fired.  setInterval(function() {    if (prevent_bust > 0) {  // Yes: it has fired.       prevent_bust -= 2;     // Avoid further action.      // Get a 'No Content' status which keeps us on the same page.      window.top.location = 'http://server-which-responds-with-204.com';    }  }, 1);
now i dont know how to add that to my page & make it work. I'm a novice coder & rely on forum/google help to complete my work so i hope someone can help me to fix this because i have no idea how.

The full page code if needed is below...

Code:
<?php require ("./includes/header.php");  if ($siteConfig['site_msg'] != '0') { 	header('Location: ./index.php'); 	exit(); }  $server = array(1 => "sigil", 2 => "torax", 3 => "fabar", 4 => "zimbob", 5 => "rancid", 6 => "quiver"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><?php echo $siteConfig['title']; ?> : Capcha Viewer</title> <meta name="keywords" content="" /> <link href="./template/default.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body style="padding-left: 5px; padding-right:5px;"> <?php 	$result = mysql_query("SELECT ru.id, ru.username, ru.owid FROM raidbar_users ru LEFT JOIN raidbar_groups rg ON ru.groupid = rg.id WHERE rg.id = '".(int)$_REQUEST['group']."'") or die(mysql_error()); 	$myRaidid = raidid(); 	 	if(isset($_GET['gm'])) 	{ 		echo '<FRAMESET rows="*,*,*,30" frameborder="0">' . "\n"; 		echo '  <FRAMESET cols="*,*" frameborder="0" scrolling="no">' . "\n"; 		$i = 0; 		while($row = mysql_fetch_array($result)) 		{ 			if ($i == 2) 			{ 				echo '  </FRAMESET>' . "\n"; 				echo '  <FRAMESET cols="*,*" frameborder="0" scrolling="no">' . "\n"; 				$i = 0; 			} 			echo '    <FRAME src="http://'.$server[$siteConfig['userServer']].'.outwar.com/joinraid.php?raidid=' . $myRaidid . '&suid=' . $row['owid'] . '&serverid='.$siteConfig['userServer'].'">' . "\n"; 			$i++; 		} 		echo '    <FRAME src="">' . "\n"; 		echo '  </FRAMESET>' . "\n"; 		echo '  <FRAMESET frameborder="0" scrolling="no">' . "\n"; 		echo '    <FRAME src="http://'.$server[$siteConfig['userServer']].'.outwar.com/raidmembers.php?raidid=' . $myRaidid . '">' . "\n"; 		echo '  </FRAMESET>' . "\n"; 		echo '</FRAMESET>' . "\n"; 	} 	else 	{ 		echo '<table cellspacing=1 cellpadding=1>' . "\n"; 		echo '<tr>' . "\n"; 		$i = 0; 		while($row = mysql_fetch_array($result)) 		{ 			if ($i == 2) 			{ 				echo '</tr>' . "\n"; 				echo '<tr>' . "\n"; 				$i = 0; 			} 			echo '  <td><iframe src="./acct.php?suid=' . $row['owid'] . '" width=450 height=225 scrolling=no frameborder=0></iframe>' . "\n"; 			$i++; 		} 		echo '</tr>' . "\n"; 		echo '<tr>' . "\n"; 		echo '  <td><iframe src=http://'.$server[$siteConfig['userServer']].'.outwar.com/raidmembers.php?raidid=' . raidid() . '&serverid='.$siteConfig['userServer'].' width=250 height=30 scrolling=no></iframe>' . "\n"; 		echo '</tr>' . "\n"; 		echo '</table>' . "\n"; 	} ?> </body> </html>