<h1>Most Active Bug-fixing Developers</h1> <p>The following is some informational statistics on bug fixing and reporting. Developers are considered to have fixed a bug if the bug is marked <strong>Closed</strong> and is assigned to the developer.</p> <table id="dev-stats"> <tr> <th>All Time</th> <th>Last 30 Days</th> <th>Bug Reporting</th> </tr> <tr> <td valign="top"> <?php require_once 'bugs/pear-bugs.php'; $bugs = new PEAR_Bugs(); $develstats = $bugs->allDevelStats(); $lastmonth = $bugs->lastMonthStats(); $reporters = $bugs->reporterStats(); echo '<table class="dev-stats-sub">'; ?> <tr> <th class="bug_header">Closed Bugs</th> <th class="bug_header">Developer</th> </tr> <?php $handle = isset($auth_user->handle) ? $auth_user->handle : ''; foreach ($develstats as $stat) { $style = $stat['handle'] == $handle ? ' style="background-color: yellow;"' : ''; echo " <tr>\n"; echo ' <td class="bug_bg0"' . $style . '>' . $stat['c'] . "</td>\n";
$x = ceil((strtotime($nextrelease[1]) - time()) / 60 / 60 / 24); echo ' (next release: <strong><a href="/bugs/roadmap.php?package=' . urlencode($name) . '&roadmapdetail=' . $nextrelease[0] . '#a' . $nextrelease[0] . '">' . $nextrelease[0] . '</a></strong> in '; echo $x . ' day'; if ($x != 1) { echo 's'; } if ($x < 0) { echo '!!'; } echo ', ' . Roadmap_Info::percentDone($name) . '% complete)'; } } echo '</td>' . "\n"; echo '<td>' . "\n"; if (empty($pkg['bug_link'])) { $bugs = new PEAR_Bugs(); $buginfo = $bugs->packageBugStats($pkg['name']); $frinfo = $bugs->packageFeaturestats($pkg['name']); if (!$buginfo['count']) { echo 'No open bugs'; } if ($buginfo['count'] || $frinfo['count']) { echo '<ul>'; } if ($buginfo['count']) { $bstats = $bugs->bugRank(); foreach ($bstats as $i => $pi) { if ($pi['name'] == $pkg['name']) { echo '<li>Package Maintenance Rank: <strong>' . ++$i . '</strong> of ' . count($bstats) . ' packages with open bugs</li>'; break; }
| http://www.php.net/license/2_02.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ $Id$ */ // Details about PEAR accounts require_once 'Damblan/Karma.php'; require_once 'Damblan/URL.php'; require_once 'HTTP.php'; require 'bugs/pear-bugs.php'; include_once 'pear-database-user.php'; $bugs = new PEAR_Bugs(); $site = new Damblan_URL(); $karma = new Damblan_Karma($dbh); $params = array('handle' => '', 'action' => ''); $site->getElements($params); $handle = htmlspecialchars(strtolower($params['handle'])); // Redirect to the accounts list if no handle was specified if (empty($handle)) { localRedirect('/accounts.php'); } $dbh->setFetchmode(DB_FETCHMODE_ASSOC); $permissions = $karma->get($handle); $row = user::info($handle); if ($row === null) { error_handler($handle . ' is not a valid account name.', 'Invalid Account'); }