$baseref=$titre_du_site;
$startingpoint = "";
$endingpoint = "";
error_reporting(0);
if (strpos($HTTP_REFERER,"?")=== false) {
$url_2_print =$HTTP_REFERER."?pseudo=$pseudo&pass=$pass";
} else {
$url_2_print =$HTTP_REFERER."&pseudo=$pseudo&pass=$pass";
}
$read = fopen($url_2_print , "r") or die("
Désolé, vous ne pouvez pas accéder directement à cette page.
");
error_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);
$value=preg_replace("/(\