"); } // Include common query handler (used also by rss/search.php) require "{$ROOT_DIR}/include/query.php"; if (isset($_GET['cmd']) && $_GET['cmd'] == 'display') { // FIXME: this if doesn't make sense, check is already performed in // query.php - whole condition can be removed, reducing level of // nesting by one. if (!isset($result)) { $errors[] = 'Invalid query'; } else { // For count only, simply print the count and exit if ($count_only) { echo (int) $total_rows; exit; } // Selected packages to search in $package_name_string = ''; if (count($package_name) > 0) { foreach ($package_name as $type_str) { $package_name_string.= '&package_name[]=' . urlencode($type_str); } } // Selected packages NOT to search in $package_nname_string = ''; if (count($package_nname) > 0) { foreach ($package_nname as $type_str) { $package_nname_string.= '&package_nname[]=' . urlencode($type_str); } } $link_params = [ 'search_for' => urlencode($search_for), 'project' => urlencode($project), 'php_os' => urlencode($php_os), 'php_os_not' => $php_os_not, 'author_email' => urlencode($author_email), 'bug_type' => urlencode($bug_type), 'boolean' => $boolean_search, 'bug_age' => $bug_age, 'bug_updated' => $bug_updated, 'order_by' => $order_by, 'direction' => $direction, 'limit' => $limit, 'phpver' => urlencode($phpver), 'cve_id' => urlencode($cve_id), 'cve_id_not' => $cve_id_not, 'patch' => urlencode($patch), 'pull' => urlencode($pull), 'assign' => urlencode($assign), 'commented_by' => urlencode($commented_by), ]; if ($is_security_developer) { $link_params['private'] = $private; } // Remove empty URL parameters foreach ($link_params as $index => $param) { if (empty($param)) unset($link_params[$index]); } // Create link params string $link_params_string = ''; foreach ($link_params as $index => $param) { $link_params_string .= "&$index=$param"; } $link = "search.php?cmd=display{$package_name_string}{$package_nname_string}{$link_params_string}"; $clean_link = "search.php?cmd=display{$link_params_string}"; if (isset($_GET['showmenu'])) { $link .= '&showmenu=1'; } if (!$rows) { $errors[] = 'No bugs were found.'; display_bug_error($errors, 'warnings', ''); } else { display_bug_error($warnings, 'warnings', 'WARNING:'); $link .= '&status=' . urlencode($status); $package_count = count($package_name); ?> ' , "\n"; // Bug ID echo ' ', "\n"; // Date echo ' \n"; // Last Modified $ts2 = strtotime($row['ts2']); echo ' \n"; // Package if ($package_count !== 1) { $pck = htmlspecialchars($row['package_name']); $pck_url = urlencode($pck); echo "\n"; } /// Bug type $type_idx = !empty($row['bug_type']) ? $row['bug_type'] : 'Bug'; echo ' ', "\n"; // Status echo ' ', "\n"; /// PHP version echo ' '; // OS echo ' ', "\n"; // Short description echo ' ', "\n"; // Assigned to echo ' '; echo " \n"; } show_prev_next($begin, $rows, $total_rows, $link, $limit); echo "
ID# Date Last Modified Package Type Status PHP Version OS Summary Assigned
', $row['id'], ''; echo '
(edit)
', format_date(strtotime($row['ts1'])), "' , ($ts2 ? format_date($ts2) : 'Not modified') , "{$pck}', htmlspecialchars($bug_types[$type_idx]), '', htmlspecialchars($row['status']); if ($row['status'] == 'Feedback' && $row['unchanged'] > 0) { printf ("
%d day%s", $row['unchanged'], $row['unchanged'] > 1 ? 's' : ''); } echo '
', htmlspecialchars($row['php_version']), '', $row['php_os'] ? htmlspecialchars($row['php_os']) : ' ', '', $row['sdesc'] ? htmlspecialchars($row['sdesc']) : ' ', '', ($row['assign'] ? ("' . htmlspecialchars($row['assign']) . '') : ' '), '
\n\n"; } response_footer(); exit; } } display_bug_error($errors); display_bug_error($warnings, 'warnings', 'WARNING:'); ?>
Find bugs with all or any of the words
(?)
 
> >

Status
Type
Project
Return bugs for these packages
  Return bugs NOT for these packages
OS Return bugs with operating system >
PHP Version Return bugs reported with PHP version
CVE-ID Return bugs reported with CVE-ID >
Assigned Return bugs assigned to handle)) { $u = htmlspecialchars($auth_user->handle); echo ""; } ?>
Author email Return bugs with author email handle)) { $u = htmlspecialchars($auth_user->handle); echo ""; } ?>
Date Return bugs submitted
 Return bugs updated
Patch Return only bugs reported with patch attached >
Pull Request Return only bugs with a pull request >
Commented by Return bugs that have been commented by
Private Return only bugs marked as private >
\n"; echo " \n"; echo ' ' . "\n"; if ($limit=='All') { echo "$total_rows Bugs\n"; return; } echo ' ' . "\n"; echo " \n"; echo ' \n"; echo ' \n"; echo ' \n \n
'; if ($begin > 0) { echo '« Show Previous ' . $limit . ' Entries'; } else { echo ' '; } echo "Showing ' . ($begin+1); echo '-' . ($begin+$rows) . ' of ' . $total_rows . "'; if ($begin+$rows < $total_rows) { echo 'Show Next ' . $limit . ' Entries »'; } else { echo ' '; } echo "
\n \n \n"; echo "\n"; } function show_order_options($current) { global $order_options; foreach ($order_options as $k => $v) { echo '\n"; } }