php3 march 2003 Copyright 1996 BareMetal Designs. Permission to use and modify granted to all BareMetal clients provided that this program and its derivatives are used for public access ONLY on the BareMetal servers. Use for testing and development purposes on any computer is granted to BareMetal clients. INSTALLATION: Save this file as index.php in the directory that you want to use it in. */ if ( strstr($HTTP_USER_AGENT," WebTV") ) { if ( fileAtime("index.webtv.php") >= 0 ) { include "index.webtv.php"; exit; } } if ( strstr($HTTP_USER_AGENT,"compatible; MSIE 4") ) { if (fileAtime("index.ms4.php") >= 0 ) { include "index.ms4.php"; exit; } } if ( strstr($HTTP_USER_AGENT,"compatible; MSIE 4") || strstr($HTTP_USER_AGENT,"compatible; MSIE 3") ) { if (fileAtime("index.ms3.php") >= 0 ) { include "index.ms3.php"; exit; } } if ( strstr($HTTP_USER_AGENT,"compatible; MSIE") ) { if (fileAtime("index.ms.php") >= 0 ) { include "index.ms.php"; exit; } } if ( strstr($HTTP_USER_AGENT,"Mozilla/4") ) { if ( fileAtime("index.ns4.php") >=0 ) { include "index.ns4.php"; exit; } } if ( strstr($HTTP_USER_AGENT,"Mozilla/3") || strstr($HTTP_USER_AGENT,"Mozilla/4") ) { if (fileAtime("index.ns3.php") >= 0 ) { include "index.ns3.php"; exit; } } if ( strstr($HTTP_USER_AGENT,"Mozilla/2") || strstr($HTTP_USER_AGENT,"Mozilla/3") || strstr($HTTP_USER_AGENT,"Mozilla/4") ) { if ( fileAtime("index.ns2.php") >= 0 ) { include "index.ns2.php"; exit; } } /* this should be changed to send the netscape file to a netscape 2 browser if there was no netscape 1 file. MS browsers will match a netscape 1 browser! It does... the comparison is against Mozilla... */ if ( strstr($HTTP_USER_AGENT,"Mozilla")) { if (fileAtime("index.ns1.php") >= 0 ) { include "index.ns1.php"; exit; } } if (fileAtime("index.def.php") >= 0 ) { include "index.def.php"; exit; } else { echo "Yikes, I can't find the default page (index.def.php)"; } ?>