cvs: phpweb / results.php /images/logos php-gtk-white.gif
| From: | Hannes Magnusson | Date: | Wed, 19 Mar 2008 12:50:10 +0000 |
| Subject: | cvs: phpweb / results.php /images/logos php-gtk-white.gif | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1326@lists.php.net to get a copy of this message | ||
bjori Wed Mar 19 12:50:10 2008 UTC
Added files:
/phpweb/images/logos php-gtk-white.gif
Modified files:
/phpweb results.php
Log:
Fixed bug#42539 (Incorrect GTK links)
http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.35&r2=1.36&diff_format=u
Index: phpweb/results.php
diff -u phpweb/results.php:1.35 phpweb/results.php:1.36
--- phpweb/results.php:1.35 Wed Mar 19 12:35:36 2008
+++ phpweb/results.php Wed Mar 19 12:50:10 2008
@@ -1,5 +1,5 @@
<?php
-// $Id: results.php,v 1.35 2008/03/19 12:35:36 bjori Exp $
+// $Id: results.php,v 1.36 2008/03/19 12:50:10 bjori Exp $
$_SERVER['BASE_PAGE'] = 'results.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
#include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
@@ -111,9 +111,9 @@
}
}
- // rewrite mirrors urls (\w\w\d? or www, but not qa nor doc)
- $real_url = preg_replace('@^http://(?!doc)(?!qa)\w{2,3}\.php\.net(.*)$@', '$1',
$hit['Url']);
- $displayurl = preg_replace('@^http://(?:(?!doc)(?!qa)(?!php)\w{2,3}\.)?(.+[^/])/?$@',
'$1', $hit['Url']);
+ // rewrite mirrors urls (\w\w\d? or www, but not qa, doc and gtk)
+ $real_url = preg_replace('@^http://(?!doc)(?!qa)(?!gtk)\w{2,3}\.php\.net(.*)$@', '$1',
$hit['Url']);
+ $displayurl = preg_replace('@^http://(?:(?!doc)(?!qa)(?!php)(?!gtk)\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";
@@ -130,6 +130,7 @@
'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;"/>',
+ 'gtk'=>'<img src="http://bjori.php.is/images/logos/php-gtk-white.gif"
height="26" width="32" style="float:left;
margin-left:-40px;"/>',
'doc'=>'<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;"/>'
);