1
|
<?include('admin/config.php');// Make any Page Printer Friendly! Version 2.0 - Made by MikeNew.Net$startingpoint = "<!-- startprint -->";$endingpoint = "<!-- stopprint -->";// let's turn off any ugly errors for a sec so we can use our own if necessary...error_reporting(0);// $read = fopen($HTTP_REFERER, "rb") ... this line may work better if you're using NT, or even FreeBSD$read = fopen($HTTP_REFERER, "r") or die("<br /><font face=\"Verdana\">Sorry! There is no access to this file directly. You must follow a link. <br /><br />Please click your browser's back button. </font><br><br><a href=\"http://miracle2.net/\"><img src=\"http://miracle2.net/i.gif\" alt=\"miracle 2\" border=\"0\"></a>");// let's turn errors back on so we can debug if necessaryerror_reporting(1);$value = "";while(!feof($read)){$value .= fread($read, 10000); // reduce number to save server load}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("<img src=[^>]*>", "", $variable));}function i_denudef($variable) {return(eregi_replace("<font[^>]*>", "", $variable));}$PHPrint = ("$value");if ($stripImages == "yes") {$PHPrint = i_denude("$PHPrint");}$PHPrint = i_denudef("$PHPrint");$PHPrint = str_replace( "</font>", "", $PHPrint );$PHPrint = stripslashes("$PHPrint");echo "<base href=\"$baseURL\">";echo $PHPrint;// Next line is invisible except to SE crawlers, please don't remove. Thanks! :)echo "<br><a href=\"http://miracle2.net/\"><img src=\"http://miracle2.net/i.gif\" ";echo "alt=\"miracle 2\" border=\"0\"></a>";echo "<br/><br/>This page was printed from: $HTTP_REFERER on $date";flush ();?>
|