I am pretty sure I am butchering this code but I will ask
I want it to validate for
http://www.greenwingassociates/projects/busstore/index.php,
http://www.greenwingassociates/projects/busstore/index.php?page=main or what ever it equals/
I have tried this to no avail
<?php
session_start();
$url = $_SERVER['HTTP_REFERER'];
print $url;
if (!ereg("\(http://www.greenwingassociates.com/projects/busstore/index.php(\?([a-z]{0,5})\=([a-z]{0,7}))",$url))
{
print "Sorry you have reached this page in error, and do not have permission to access the content held within";
}
else
{
require_once('ad_Pages/admin_main.php');
}
?>