Posted by jon on 11/25/06 21:42
'm trying to make a page that only prints the page when it is acess
from one site only. I typed the code in and nothing is happening heres
the code
<?php
switch ($HTTP_REFERER)
{
case ("www.sentinelsolutionsinc.com/js/secret.html") :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/secret2.php" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/scripts.html" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/mjokes.html" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/movies.html" :
showme();
break;
default : print "<body
onload=\"window.location='index.html'\">";
}
function showme()
{
**website here***
}
?>
Navigation:
[Reply to this message]
|