cvs: pearweb /public_html package-search.php

From: Date: Thu, 22 Jan 2004 14:54:09 +0000
Subject: cvs: pearweb /public_html package-search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-15877@lists.php.net to get a copy of this message
jan Thu Jan 22 09:54:09 2004 EDT Modified files: /pearweb/public_html package-search.php Log: - use localRedirect http://cvs.php.net/diff.php/pearweb/public_html/package-search.php?r1=1.31&r2=1.32&ty=u Index: pearweb/public_html/package-search.php diff -u pearweb/public_html/package-search.php:1.31 pearweb/public_html/package-search.php:1.32 --- pearweb/public_html/package-search.php:1.31 Mon Jan 19 17:21:56 2004 +++ pearweb/public_html/package-search.php Thu Jan 22 09:54:09 2004 @@ -16,7 +16,7 @@ | Authors: Richard Heyes <richard@php.net> | | Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: package-search.php,v 1.31 2004/01/19 22:21:56 jan Exp $ + $Id: package-search.php,v 1.32 2004/01/22 14:54:09 jan Exp $ */ /** @@ -171,7 +171,7 @@ if(1 == $numrows) { $row = $result->fetchRow(DB_FETCHMODE_ASSOC); if(isset($row['name'])) { - header('Location: http://pear.php.net/package/'.$row['name']); + localRedirect('/package/'.$row['name']); } else { // shoudn't happen. Just in case something goes wrong, set $numrows to 0 // to have a "No Results found" Message later on. @@ -222,7 +222,7 @@ } else { $words = ""; } - $row['package_name'] = $row['name']; + $row['package_name'] = $row['name']; $row['name'] = preg_replace('/(' . $words . ')/i', '<span style="background-color: #d5ffc1">\1</span>', $row['name']); }

« previous php.pear.cvs (#15877) next »