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
    5,765
    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.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  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
    5,765
    Thats funny as this popped up as a new post!
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  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
    JavaScript: Learn | Validate | Compact | bionoid

  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

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.34316 seconds
  • Memory Usage 2,924KB
  • Queries Executed 13 (?)
More Information
Template Usage (35):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (3)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (6)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates