Update of /cvsroot/fink/web/pdb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1737
Modified Files: header.inc Added Files: hostlogo.inc Log Message: redirect URLs to new site, and use the isc hostlogo there Index: header.inc =================================================================== RCS file: /cvsroot/fink/web/pdb/header.inc,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- header.inc 2 Nov 2003 09:11:57 -0000 1.8 +++ header.inc 25 Oct 2005 01:00:51 -0000 1.9 @@ -1,5 +1,15 @@ <? /* $Id$ */ + +$server = $_SERVER['SERVER_NAME']; +$uri = $_SERVER['REQUEST_URI']; + +if ($server == "fink.sourceforge.net") { + header("HTTP/1.1: 301 Moved Permanently"); + header("Location: http://pdb.finkproject.org$uri"); + exit(); +} + /* check path info */ $PATH_INFO = $HTTP_SERVER_VARS["PATH_INFO"]; if ($uses_pathinfo) { @@ -39,6 +49,7 @@ } else { $root = $fsroot; } +include "hostlogo.inc"; include $fsroot."header.inc"; /* connect to database */ --- NEW FILE: hostlogo.inc --- <? $hostlogo = 1; $img = '<a href="http://www.isc.org/"> <img src="'.$root.'img/isc.png" width="84" height="41" border="0" alt="ISC logo" style="vertical-align:text-bottom"> </a>'; ?> ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits