<?php

///////////////////////////////////////////////
//                                           //
// Frame Redirect v.1                        //
// ----------------------------------------- //
// by Graeme (webmaster@phpscriptcenter.com) //
// 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.php3                 //
//                                                                       //
///////////////////////////////////////////////////////////////////////////

$SETUP[height] = "60";
$SETUP[siteurl] = "http://www.neurolinguistic.com";
$SETUP[framelocation] = "http://www.neurolinguistic.com/pnl/frame.htm";

if ($url) {

$lines_array = file($url);
$lines_string = implode('', $lines_array);
eregi("<head>(.*)</head>", $lines_string, $head);

echo("<HTML>
<HEAD>
$head[0]
</HEAD>
<FRAMESET FRAMEBORDER=\"0\" ROWS=\"$SETUP[height],*\">
<FRAME SRC=\"$SETUP[framelocation]\" SCROLLING=\"NO\">
<FRAME SRC=\"$url\">
<NOFRAMES>
<BODY>
Viewing this page requires a browser capable of displaying frames.
</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>");

} else {

header("Location: $SETUP[siteurl]");

}



php?>