PHP Code:
<?
include("config.php");
foreach ($_GET as $key => $value) {
$site .= $key."=".$value."&";
}
$site = substr($site, 4, -1); // returns "http://www.cj-design.com" without &out and all variables intact
?>
<HTML>
<HEAD>
<TITLE><? echo $website; ?> Link Out - powered by CJ-Design.com</TITLE>
</HEAD>
<FRAMESET Rows="25,*" BORDER="0">
<FRAME MARGINHEIGHT="0" MARGINWIDTH="0" SRC="top.php?out=<? echo $site; ?>" SCROLLING="No" NORESIZE NAME="top" BORDER="0">
<FRAME MARGINHEIGHT="0" MARGINWIDTH="0" SRC="<? echo $site; ?>" SCROLLING="AUTO" NORESIZE NAME="main" BORDER="0">
</FRAMESET>
<noframes>
</noframes>
</HTML>
This is the code used (It was taken from other sites, but generally it's always the same concept.)
I also added:
Code:
<SCRIPT LANGUAGE='javascript'>try { if (top == self) {top.location.href='index.html'; } } catch(er) { } </SCRIPT>
In the <head></head> section.
I also tried the CGI version available at About.com
But it's always the same problem.
Bookmarks