cvs: phpweb / results.php

From: Date: Tue, 09 Oct 2007 21:21:07 +0000
Subject: cvs: phpweb / results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-203@lists.php.net to get a copy of this message
nlopess Tue Oct 9 21:21:07 2007 UTC Modified files: /phpweb results.php Log: fix #42896: add a logo to the news.php.net site fix displayurl regex for urls of type: http://php.net/foo http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.27&r2=1.28&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.27 phpweb/results.php:1.28 --- phpweb/results.php:1.27 Thu Oct 4 22:08:08 2007 +++ phpweb/results.php Tue Oct 9 21:21:07 2007 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.27 2007/10/04 22:08:08 nlopess Exp $ +// $Id: results.php,v 1.28 2007/10/09 21:21:07 nlopess Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -97,7 +97,7 @@ // rewrite mirrors urls (\w\w\d? or www, but not qa) $real_url = preg_replace('@^http://(?!qa)\w{2,3}\.php\.net(.*)$@', '$1', $hit['Url']); - $displayurl = preg_replace('@^http://(?:(?!qa)\w{2,3}\.)?(.+[^/])/?$@', '$1', $hit['Url']); + $displayurl = preg_replace('@^http://(?:(?!qa)\w{2,3}\.)?(php\.net.+[^/])/?$@', '$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"; @@ -111,6 +111,7 @@ '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;"/>', 'cvsweb'=>'<img src="http://static.php.net/www.php.net/images/logos/php_script_ico.png" height="32" width="32" style="float:left; margin-left:-40px;"/>', 'viewcvs'=>'<img src="http://static.php.net/www.php.net/images/logos/php_script_ico.png" height="32" width="32" style="float:left; margin-left:-40px;"/>', + 'news'=>'<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;"/>', '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;"/>', 'smarty'=>'<img src="http://static.php.net/www.php.net/images/smarty-icon.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;"/>'

« previous php.webmaster (#203) next »