cvs: pearweb /public_html package-info.php

From: Date: Sun, 09 Jun 2002 23:32:27 +0000
Subject: cvs: pearweb /public_html package-info.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4526@lists.php.net to get a copy of this message
richard Sun Jun 9 19:32:27 2002 EDT Modified files: /pearweb/public_html package-info.php Log: * Link to dependencies Index: pearweb/public_html/package-info.php diff -u pearweb/public_html/package-info.php:1.18 pearweb/public_html/package-info.php:1.19 --- pearweb/public_html/package-info.php:1.18 Sun Jun 9 18:48:52 2002 +++ pearweb/public_html/package-info.php Sun Jun 9 19:32:26 2002 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: package-info.php,v 1.18 2002/06/09 22:48:52 richard Exp $ + $Id: package-info.php,v 1.19 2002/06/09 23:32:26 richard Exp $ */ // {{{ setup, queries @@ -345,6 +345,12 @@ print "<br />\n"; } print " "; + + // Print link if it's a PEAR package and it's in the db + if ($row['type'] == 'pkg' AND $pid = $dbh->getOne(sprintf("SELECT id FROM packages WHERE name = '%s'", $row['name']))) { + $row['name'] = sprintf('<a href="package-info.php?pacid=%s">%s</a>', $pid, $row['name']); + } + if (isset($rel_trans[$row['relation']])) { $rel = sprintf($rel_trans[$row['relation']], $row['version']); printf("%s: %s %s",

« previous php.pear.cvs (#4526) next »