cvs: pearweb /public_html pkginfo.php
| From: | Thomas V.V.Cox | Date: | Sat, 29 Dec 2001 18:28:46 +0000 |
| Subject: | cvs: pearweb /public_html pkginfo.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1770@lists.php.net to get a copy of this message | ||
cox Sat Dec 29 13:28:46 2001 EDT
Modified files:
/pearweb/public_html pkginfo.php
Log:
added category urhere menu and links to direct download and chora
Index: pearweb/public_html/pkginfo.php
diff -u pearweb/public_html/pkginfo.php:1.11 pearweb/public_html/pkginfo.php:1.12
--- pearweb/public_html/pkginfo.php:1.11 Thu Dec 27 22:46:52 2001
+++ pearweb/public_html/pkginfo.php Sat Dec 29 13:28:46 2001
@@ -8,6 +8,8 @@
}
// ** expected
+define('PHP_CVS_REPO_DIR', '/repository/pear');
+
if (DB::isError($dbh)) {
die("DB::Factory failed: ".DB::errorMessage($dbh)."<BR>\n");
}
@@ -23,6 +25,7 @@
$summary = $row['summary'];
$license = $row['license'];
$description = $row['description'];
+$category = $row['category'];
// Accounts data
$sth = $dbh->query("SELECT u.handle, u.name, u.email, u.showemail, m.role
@@ -62,6 +65,7 @@
?>
<!-- PKGINFO start -->
+<?php html_category_urhere($category, true); ?>
<h2 align="center"><?php echo "$name";?></h2>
@@ -96,9 +100,20 @@
<br>
<table border="0" cellspacing="3" cellpadding="3"
height="48" width="100%" align="center">
<tr>
- <td width="33%" align="center">| View Source Code & Docs
|</td>
+<?php
+ // CVS link
+ if (@is_dir(PHP_CVS_REPO_DIR . "/$name")) {
+ $cvs_link = make_link("http://cvs.php.net/cvs.php/pear/$name",
+ '| View Source Code & Docs |', 'top');
+ } else {
+ $cvs_link = ' ';
+ }
+ // Download link
+ $get_link = make_link("/get/$name", '| Download Lastest |');
+?>
+ <td width="33%" align="center"><?php echo
$cvs_link;?></td>
<td width="33%" align="center">| View ChangeLog |</td>
- <td width="33%" align="center">| Download Now |</td>
+ <td width="33%" align="center"><?php echo $get_link;
?></td>
</tr>
</table>
@@ -165,7 +180,7 @@
</tr>
</table>
-->
-<!-- Other releases download
+<!-- Other releases download
<br>
<table border="0" cellspacing="3" cellpadding="3"
width="100%">
<tr>