www.webdeveloper.com
Results 1 to 6 of 6

Thread: Framekiller Killer problem..

  1. #1
    Join Date
    May 2011
    Posts
    5

    Lightbulb Framekiller Killer problem..

    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>

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,407
    Generally, when a site wants to burst out of a frameset, theirs generally a good reason for doing so, often this will be a scripting reason and to attempt to keep the page from being as it needs to be could be opening up a whole host of problems for the sites operation.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

  3. #3
    Join Date
    May 2011
    Posts
    5
    Quote Originally Posted by \\.\ View Post
    Generally, when a site wants to burst out of a frameset, theirs generally a good reason for doing so, often this will be a scripting reason and to attempt to keep the page from being as it needs to be could be opening up a whole host of problems for the sites operation.
    TY for the reply but its 2 & half years late

  4. #4
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,407
    Thats funny as this popped up as a new post!
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

  5. #5
    Join Date
    Dec 2011
    Location
    Centurion, South Africa
    Posts
    795
    Quote Originally Posted by \\.\ View Post
    Thats funny as this popped up as a new post!
    I kind of noticed that too :P

  6. #6
    Join Date
    May 2011
    Posts
    5
    Well the date of the post dont lie :P Not used this forum in ages though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles