<?php
	$ref_url = $_SERVER["HTTP_REFERER"]; //referring url

	//search for the string - "web.utk.edu/~manthan" in the referring url
	if (preg_match("/web.utk.edu\/~manthan/i", $ref_url))
	{
?>

		<p><b>Welcome! visitor from the Manthan website.</b><br><br>

		Ok, so you have come to this page by clicking a link on the Manthan website.<br>
		So, how do I know that! Because I know that you came here from this
		<a href='<?php echo $ref_url; ?>' target='_blank'>page</a>.<br>

		Interested? <a href='code/samples/manthan_detect/detect.phps' target='_blank'>Click here</a> 
		to view the PHP script which does this detection.<br><br>

		<i>Note:</i> You will not see this message if you <a href='http://www.maisnam.com/'>directly</a> 
		come to this page from some other website.</p>

<?php
	}
?>