include("grab_globals.lib.php");
$stripImages = "no";
$file_name = $_SERVER['HTTP_REFERER'];
$startingpoint = "";
$endingpoint = "";
$read = fopen($file_name, "r") or print "Unable to open the specified file
";
$value = "";
while(!feof($read)){
$value .= fread($read, 4096);
}
fclose($read);
$start= strpos($value, "$startingpoint");
$finish= strpos($value, "$endingpoint");
$length= $finish-$start;
$value=substr($value, $start, $length);
function i_denude($variable)
{
return(eregi_replace("]*>", "", $variable));
}
function i_denudef($variable)
{
return(eregi_replace("]*>", "", $variable));
}
$PHPrint = ("$value");
if ($stripImages == "yes") {
$PHPrint = i_denude("$PHPrint");
}
$PHPrint = i_denudef("$PHPrint");
$PHPrint = str_replace( "", "", $PHPrint );
?>
![]() |
|
| echo $PHPrint; ?> | |