cvs: phpweb / results.php /images php_bug.gif

From: Date: Tue, 28 Feb 2006 22:58:19 +0000
Subject: cvs: phpweb / results.php /images php_bug.gif
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30742@lists.php.net to get a copy of this message
rasmus Tue Feb 28 22:58:19 2006 UTC Modified files: /phpweb results.php /phpweb/images php_bug.gif Log: Still playing with search result icons http://cvs.php.net/viewcvs.cgi/phpweb/results.php?r1=1.11&r2=1.12&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.11 phpweb/results.php:1.12 --- phpweb/results.php:1.11 Tue Feb 28 21:59:20 2006 +++ phpweb/results.php Tue Feb 28 22:58:19 2006 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.11 2006/02/28 21:59:20 rasmus Exp $ +// $Id: results.php,v 1.12 2006/02/28 22:58:19 rasmus Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -69,15 +69,21 @@ $real_url = preg_replace('!^http://\w{2,3}\.php\.net(.*)$!', '$1', $hit['Url']); $displayurl = preg_replace('!^http://(?:\w{2,3}\.)?(.+[^/])/?$!', '$1', $hit['Url']); $type = substr($displayurl,0,strpos($displayurl,'.')); + if($type=='pecl' && strstr($displayurl,"/bugs/")) $type = "peclbugs"; + if($type=='pear' && strstr($displayurl,"/bugs/")) $type = "pearbugs"; $display_title = str_replace('PHP:', '', $hit['Title']); $types = array('pear'=>'<img src="http://static.php.net/www.php.net/images/pear_item.gif" height="19" width="17" style="float:left; margin-left:-30px;"/>', 'pecl'=>'<img src="http://static.php.net/www.php.net/images/pecl_item.gif" height="19" width="17" style="float:left; margin-left:-30px;"/>', - 'php'=>'<img src="http://static.php.net/www.php.net/images/logos/php-icon-white.gif" height="32" width="32" style="float:left; margin-left:-40px;"/>' + 'peclbugs'=>'<img src="http://static.php.net/www.php.net/images/pecl_item_bug.gif" height="19" width="17" style="float:left; margin-left:-30px;"/>', + 'pearbugs'=>'<img src="http://static.php.net/www.php.net/images/pear_item_bug.gif" height="19" width="17" style="float:left; margin-left:-30px;"/>', + 'talks'=>'<img src="http://static.php.net/www.php.net/images/ele-icon.gif" height="20" width="32" style="float:left; margin-left:-40px;"/>', + 'snaps'=>'<img src="http://static.php.net/www.php.net/images/logos/php_xpstyle_ico.png" height="32" width="32" style="float:left; margin-left:-40px;"/>', + 'php'=>'<img src="http://static.php.net/www.php.net/images/logos/php-icon-white.gif" height="32" width="32" style="float:left; margin-left:-40px;"/>', + 'bugs'=>'<img src="http://static.php.net/www.php.net/images/php_bug.gif" height="32" width="32" style="float:left; margin-left:-40px;"/>' ); echo <<<EOB <li> - {$types[$type]} - <p class="result"><a href="{$real_url}">{$display_title}</a></p> + <p class="result">{$types[$type]}<a href="{$real_url}">{$display_title}</a></p> <p class="summary">{$hit['Summary']}</p> <p class="meta">{$displayurl} - {$d}{$size}{$cachelink}</p> </li> http://cvs.php.net/viewcvs.cgi/phpweb/images/php_bug.gif?r1=1.1&r2=1.2&diff_format=u Index: phpweb/images/php_bug.gif

« previous php.mirrors (#30742) next »