Here is the script in its entirety:
the idea being: if the url is in the included array...display the public menu; else, display the private menu
so...having said that...what exactly should i modify?. I am VERY, VERY new to this so i need as much help as possible!
thanks
Mark
here's the script:
/ using the following pattern to implement files you want to include
based on whether they come from certain domains in the following order:
'referral domain | path/to/filename',
'referral domain | path/to/filename'
/
$include_urls = array(
'http://www.eyeplastics.com(.+)|/menus/bleph_menu_public.htm',
'http://www.eyeplastics.net(.+)|/menus/bleph_menu_public.htm',
'http://www.eyeplastics.org(.+)|/menus/bleph_menu_public.htm',
'http://www.oculoplastics.com(.+)|/menu//bleph_menu_public.htm',
'http://www.oculoplastics.org(.+)|/menus/bleph_menu_public.htm',
'http://www.oculoplastics.net(.+)|/menus/bleph_menu_public.htm',
'http://www.oculoplastics.net(.+)|/menus/bleph_menu_public.htm',
'http://www.eyeplastics.cc(.+)|/menus/bleph_menu_public.htm',
'http://www.eyeplastics.biz(.+)|/menus/bleph_menu_public.htm',
'http://www.eyeplastic.com(.+)|/menus/bleph_menu_public.htm',
);
$path = '/home/virtual/eyeplas/home/httpd/html';
$comingfrom = $HTTP_SERVER_VARS['HTTP_REFERER'];
// this is the default path when nothing matches
$default = '/menus/bleph_menu_private.htm';
$sizeinclude = count($include_urls);
for($i=0; $i<$sizeinclude; $i++) {
$parts = explode("|", $include_urls[$i]);
if(preg_match("#$parts[0]#i", $comingfrom)) {
$parts[0] = str_replace("(.+)", "", $parts[0]);
$default = $parts[1];
}
}
</script>