Example #1
0
     echo '<li><a href="' . htmlspecialchars($cvs_link) . '" title="Browse the source tree (in CVS, Subversion or another RCS) of this package">Browse the source tree</a></li>' . "\n";
 }
 echo '<li><a href="/feeds/pkg_' . strtolower(htmlspecialchars($name)) . '.rss" title="RSS feed for the releases of the package">RSS release feed</a></li>' . "\n";
 echo '<li><a href="/package-stats.php?pid=' . $pkg['packageid'] . '&amp;cid=' . $pkg['categoryid'] . '" title="View download statistics for this package">View Download Statistics</a></li>' . "\n";
 if (PEARWEB_CI_SERVER) {
     echo '<li><a href="' . PEARWEB_CI_SERVER . 'job/' . htmlspecialchars($name) . '"><img src="' . PEARWEB_CI_SERVER . 'job/' . htmlspecialchars($name) . '/lastCompletedBuild/buildStatus"/><br />Build status</li>' . "\n";
 }
 echo '</ul>' . "\n";
 echo '</td>' . "\n";
 echo '</tr>' . "\n";
 echo '</table>' . "\n";
 // {{{ Dependants
 echo '<hr />';
 echo '<div style=" font-size: 0.9em; padding: 1.0em;">';
 include_once 'pear-database-package.php';
 $dependants = package::getDependants($name);
 if ($rel_count > 0 && count($dependants) > 0) {
     echo '<div style="width: 30em; float: left; margin: 0.5em">';
     echo '<h4>Packages that depend on ' . htmlspecialchars($name) . '</h4>' . "\n";
     echo '<ul>' . "\n";
     foreach ($dependants as $dep) {
         echo '<li>' . package::makeLink($dep['p_name']);
         if ($dep['max_dep'] != $dep['max_pkg']) {
             echo ' (versions &lt;= ' . $dep['max_dep'] . ')';
         }
         echo "</li>\n";
     }
     echo '</ul>' . "\n";
     echo '</div>';
 }
 $dependencies = package::getDependencies($name);