com web/bugs: Quick searches simplified: www/index.php
| From: | sobak@php.net | Date: | Sun, 16 Mar 2014 20:38:24 +0000 |
| Subject: | com web/bugs: Quick searches simplified: www/index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-18516@lists.php.net to get a copy of this message | ||
Commit: 34ea1ad8174850275049a7ad609f238177fa350f
Author: Sobak <msobaczewski@gmail.com> Sun, 16 Mar 2014 21:38:24 +0100
Parents: 2ef720dbb8a74ed412e0861f1c728b8186283f50
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=34ea1ad8174850275049a7ad609f238177fa350f
Log:
Quick searches simplified
Changed paths:
M www/index.php
Diff:
diff --git a/www/index.php b/www/index.php
index 78cacff..e1de937 100644
--- a/www/index.php
+++ b/www/index.php
@@ -89,47 +89,24 @@ to a random open bug.</p>
<p>Common searches</p>
<ul>
<?php
- $base_default =
"{$site_method}://{$site_url}/search.php?boolean=0&limit=30&order_by=id&direction=DESC&cmd=display&status=Open&bug_age=0&bug_updated=0";
+ $base_default =
"{$site_method}://{$site_url}/search.php?boolean=0&limit=30&order_by=id&direction=DESC&cmd=display&status=Open&bug_age=0&bug_updated=0";
+
$searches = array(
- 'Most recent open bugs (all)' => array(
- 'base' => $base_default,
- 'suffix' => '&bug_type=All',
- ),
- 'Most recent open bugs (all) with patch or pull request' => array(
- 'base' => $base_default,
- 'suffix' => '&bug_type=All&patch=Y&pull=Y',
- ),
- 'Most recent open bugs (PHP 5.3)' => array(
- 'base' => $base_default,
- 'suffix' => '&bug_type=All&phpver=5.3',
- ),
- 'Most recent open bugs (PHP 5.4)' => array(
- 'base' => $base_default,
- 'suffix' => '&bug_type=All&phpver=5.4',
- ),
- 'Most recent open bugs (PHP 5.5)' => array(
- 'base' => $base_default,
- 'suffix' => '&bug_type=All&phpver=5.5',
- ),
- 'Open Documentation bugs' => array(
- 'base' => $base_default,
- 'suffix' => '&bug_type=Documentation+Problem',
- ),
- 'Open Documentation bugs (with patches)' => array(
- 'base' => $base_default,
- 'suffix' => '&bug_type=Documentation+Problem&patch=Y',
- ),
+ 'Most recent open bugs (all)' => '&bug_type=All',
+ 'Most recent open bugs (all) with patch or pull request' =>
'&bug_type=All&patch=Y&pull=Y',
+ 'Most recent open bugs (PHP 5.3)' => '&bug_type=All&phpver=5.3',
+ 'Most recent open bugs (PHP 5.4)' => '&bug_type=All&phpver=5.4',
+ 'Most recent open bugs (PHP 5.5)' => '&bug_type=All&phpver=5.5',
+ 'Open Documentation bugs' => '&bug_type=Documentation+Problem',
+ 'Open Documentation bugs (with patches)' =>
'&bug_type=Documentation+Problem&patch=Y'
);
-
+
if (!empty($_SESSION["user"])) {
- $searches['Your assigned bugs'] = array(
- 'base' => $base_default,
- 'suffix' => '&assign='.urlencode($_SESSION["user"])
- );
+ $searches['Your assigned bugs'] =
'&assign='.urlencode($_SESSION['user']);
}
- foreach ($searches as $title => $linfo) {
- echo '<li><a href="', $linfo['base'],
$linfo['suffix'], '">', $title, '</a></li>',
PHP_EOL;
+ foreach ($searches as $title => $sufix) {
+ echo '<li><a href="' . $base_default . htmlspecialchars($sufix) .
'">' . $title . '</a></li>' . "\n";
}
?>
</ul>
@@ -139,4 +116,4 @@ to a random open bug.</p>
<p>You can view a variety of statistics about the bugs that have been
reported on our <a href="stats.php">bug statistics page</a>.</p>
-<?php response_footer();
+<?php response_footer();
\ No newline at end of file