<?php
require ('keyhighlighter.class.php');
require ('creferrer.class.php');
function my_highlighter ($matches) {
return '<span style="font-weight: bolder; color: #FF0000;">' . $matches[0] . '</span>';
}
$url = isset ($_SERVER['HTTP_REFERRER']) ? $_SERVER['HTTP_REFERRER'] : '';
$creferrer = new CReferrer ();
$keywords = $creferrer->getKeywords ($url);
if ($keywords !== false) {
new keyhighlighter ($keywords, false, 'my_highlighter');
}
readfile ('http://www.w3c.org/');
?>
|