<?php
///////////////////////////////////////////////
// //
// Frame Redirect v 1.1 //
// ----------------------------------------- //
// by Graeme ([email protected]) //
// http://www.phpscriptcenter.com //
// //////////////////////////////
// PHP Script CENTER offers no warranties on this script. //
// The owner/licensee of the script is solely responsible for any //
// problems caused by installation of the script or use of the script //
// //
// All copyright notices regarding Frame Redirect, must remain intact on //
// the scripts and in the HTML for the scripts. //
// //
// (c) Copyright 2001 PHP Script CENTER //
// //
// For more info on Frame Redirect, //
// see http://www.phpscriptcenter.com/frameredirect.php //
// //
///////////////////////////////////////////////////////////////////////////
$SETUP[height] = "60";
$SETUP[siteurl] = "http://yoursite.com";
$SETUP[framelocation] = "http://yoursite.com/frame.html";
if ($url) {
$lines_array = file($url);
$lines_string = implode('', $lines_array);
eregi("<head>(.*)</head>", $lines_string, $head);
?>
<HTML>
<HEAD>
<?php echo $head[0]; ?>
<!--
Powered by: Frame Redirect v 1.1 (http://www.phpscriptcenter.com/frameredirect.php)
-->
</HEAD>
<FRAMESET FRAMEBORDER="0" ROWS="<?php echo $SETUP[height]; ?>,*">
<FRAME SRC="<?php echo $SETUP[framelocation]; ?>" SCROLLING="NO">
<FRAME SRC="<?php echo $url; ?>">
<NOFRAMES>
<BODY>
Viewing this page requires a browser capable of displaying frames.
</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>
<?php
exit();
} else {
header("Location: $SETUP[siteurl]");
exit();
}