} if (isset($rel_trans[$row['relation']])) { $rel = sprintf($rel_trans[$row['relation']], $row['version']); $dep_text .= sprintf("%s: %s %s", $dep_type_desc[$row['type']], $dep_name_html, $rel); } else { $dep_text .= sprintf("%s: %s", $dep_type_desc[$row['type']], $dep_name_html); } $dep_text .= "<br />"; } $bb->horizHeadRow($title, $dep_text); } else { $bb->horizHeadRow($title, "No dependencies registered."); } } if ($too_much && empty($version)) { $bb->fullRow("Dependencies for older releases can be found on the release overview page."); } } $bb->end(); // }}} // {{{ Dependants $dependants = package::getDependants($name); if (count($dependants) > 0) { echo "<br /><br />"; $bb = new BorderBox("Packages that depend on " . $name); foreach ($dependants as $dep) { $bb->plainRow(make_link("/package/" . $dep['p_name'], $dep['p_name'])); } $bb->end(); } // }}}
$pacid = $_GET['package']; } else { $pacid = isset($_GET['pacid']) ? (int) $_GET['pacid'] : null; } $pkg = package::info($pacid); if (empty($pkg['name'])) { response_header("Error"); PEAR::raiseError('Invalid package'); response_footer(); exit; } $name = $pkg['name']; response_header("{$name} Changelog"); print '<p>' . make_link("/" . $name, 'Return') . '</p>'; $bb = new Borderbox("Changelog for " . $name, "90%", "", 2, true); if (count($pkg['releases']) == 0) { $bb->fullRow('There are no releases for ' . $name . ' yet.'); } else { $bb->headRow("Release", "What has changed?"); foreach ($pkg['releases'] as $version => $release) { $link = make_link("package-info.php?package=" . $pkg['name'] . "&version=" . urlencode($version), $version); if (!empty($_GET['release']) && $version == $_GET['release']) { $bb->horizHeadRow($link, nl2br($release['releasenotes'])); } else { $bb->plainRow($link, nl2br($release['releasenotes'])); } } } $bb->end(); print '<p>' . make_link("/" . $name, 'Return') . '</p>'; response_footer();