response_footer(); exit; } response_header('Report - New'); // See if this package uses an external bug system require_once 'bugs/pear-bugs-utils.php'; $bug_link = PEAR_Bugs_Utils::getExternalSystem($clean_package); if (!empty($bug_link)) { $link = make_link($bug_link); report_success($clean_package . ' has an external bug system that can be reached at ' . $link); response_footer(); exit; } if (!isset($_POST['in'])) { $_POST['in'] = array('package_name' => '', 'bug_type' => '', 'email' => '', 'handle' => '', 'sdesc' => '', 'ldesc' => '', 'repcode' => '', 'expres' => '', 'actres' => '', 'package_version' => '', 'php_version' => '', 'php_os' => '', 'passwd' => ''); show_bugs_menu($clean_package); try { $sHelper = new Pearweb_Service_HoneyPot(HONEYPOT_API_KEY); $ip = $_SERVER['REMOTE_ADDR']; $sHelper->check($ip); } catch (Exception $e) { if (!isset($auth_user)) { report_error($e); $display_form = false; response_footer(); exit; } } ?> <p>
$link .= '&showmenu=1'; } if (!$rows) { if (isset($_GET['showmenu'])) { show_bugs_menu($package_name, $status, $link . '&showmenu=1'); } else { show_bugs_menu($package_name, $status); } $errors[] = 'No bugs were found.'; report_error($errors, 'warnings', ''); } else { report_error($warnings, 'warnings', 'WARNING:'); if (isset($_GET['showmenu'])) { show_bugs_menu($package_name, $status, $link . '&showmenu=1'); } else { show_bugs_menu($package_name, $status); } $link .= '&status=' . urlencode($status); $package_count = count($package_name); ?> <table class="bug-results"> <?php show_prev_next($begin, $rows, $total_rows, $link, $limit); if ($package_count === 1) { ?> <tr> <td class="search-prev_next" style="text-align: center;" colspan="9"> <?php $pck = htmlspecialchars($package_name[0]); echo ' Bugs for <a href="/package/' . $pck . '">' . $pck . '</a>' . "\n";
<?php response_header('Roadmap :: ' . clean($this->package)); show_bugs_menu(clean($this->package)); ?> <h1>Roadmap for Package <?php echo clean($this->package); ?> </h1> <a href="roadmap.php?showold=1&package=<?php echo urlencode($this->package); ?> ">Show Old Roadmaps</a> <?php if ($GLOBALS['auth_user']) { ?> | <a href="roadmap.php?package=<?php echo urlencode($this->package); ?> &new=1">New roadmap</a> <?php } foreach ($this->roadmap as $info) { if (in_array($info['roadmap_version'], $this->releases)) { if (!$this->showold) { continue; } else { $showold = '&showold=1'; } } else { $showold = '';
} switch ($bug['bug_type']) { case 'Bug': $bug_type = 'Bug'; break; case 'Feature/Change Request': $bug_type = 'Request'; break; case 'Documentation Problem': $bug_type = 'Doc Bug'; break; } $extra = ' <link rel="meta" type="application/rdf+xml" title="Baetle data" href="http://' . PEAR_CHANNELNAME . '/feeds/bug_' . $id . '.rss" />'; $extra .= ' <link rel="alternate" type="application/rss+xml" title="RSS feed of comments" href="http://' . PEAR_CHANNELNAME . '/feeds/bug_' . $id . '.rss" />'; response_header("{$bug_type} #{$id} :: " . htmlspecialchars($bug['sdesc']), false, $extra); show_bugs_menu(clean($bug['package_name'])); // DISPLAY BUG if (!isset($_GET['thanks'])) { $_GET['thanks'] = 0; } if ($_GET['thanks'] == 1 || $_GET['thanks'] == 2) { report_success('The bug was updated successfully.'); } elseif ($_GET['thanks'] == 3) { report_success('Your comment was added to the bug successfully.'); } elseif ($_GET['thanks'] == 4) { report_success('Thank you for your help! If the status of the bug' . ' report you submitted changes, you will be' . ' notified. You may return here and check on the' . ' status or update your report at any time. The URL' . ' for your bug report is: <a href="/bugs/' . $id . '">' . 'http://' . PEAR_CHANNELNAME . '/bugs/' . $id . '</a>.'); } elseif ($_GET['thanks'] == 6) { report_success('Thanks for voting! Your vote should be reflected' . ' in the statistics below.'); } elseif ($_GET['thanks'] == 7) { report_success('Your subscribe request has been processed'); } elseif ($_GET['thanks'] == 8) {