cvs: pearweb /public_html pkginfo.php
| From: | Stig Bakken | Date: | Fri, 28 Dec 2001 03:46:52 +0000 |
| Subject: | cvs: pearweb /public_html pkginfo.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1715@lists.php.net to get a copy of this message | ||
ssb Thu Dec 27 22:46:52 2001 EDT
Modified files:
/pearweb/public_html pkginfo.php
Log:
* now with working download links
Index: pearweb/public_html/pkginfo.php
diff -u pearweb/public_html/pkginfo.php:1.10 pearweb/public_html/pkginfo.php:1.11
--- pearweb/public_html/pkginfo.php:1.10 Tue Dec 25 22:37:56 2001
+++ pearweb/public_html/pkginfo.php Thu Dec 27 22:46:52 2001
@@ -56,7 +56,6 @@
while ($sth->fetchInto($row)) {
$downloads[$row['version']][] = $row;
}
-print "<pre>";var_dump($downloads);print "</pre>";
response_header("Package :: $name");
@@ -66,7 +65,7 @@
<h2 align="center"><?php echo "$name";?></h2>
-<?php border_box_start("Package Information"); ?>
+<?php $bb = new BorderBox("Package Information"); ?>
<table border="0" cellspacing="2" cellpadding="2"
height="48" width="100%">
<tr>
@@ -92,7 +91,7 @@
</tr>
</table>
-<?php border_box_end(); ?>
+<?php $bb->end(); ?>
<br>
<table border="0" cellspacing="3" cellpadding="3"
height="48" width="100%" align="center">
@@ -105,7 +104,7 @@
<br>
-<?php border_box_start("Available Releases"); ?>
+<?php $bb = new BorderBox("Available Releases"); ?>
<table border="0" cellspacing="0" cellpadding="3"
width="100%">
<th align="left">Version</th>
@@ -123,8 +122,8 @@
$rel['releasedate'] = substr($rel['releasedate'], 0, 10);
$downloads_html = '';
foreach ($downloads[$rel['version']] as $dl) {
- $downloads_html .= "<a
href=\"download.php?fileid={$dl['id']}\">".
- "{$dl['basename']}</a><br />";
+ $downloads_html .= "<a href=\"/get/$dl[basename]\">".
+ "$dl[basename]</a><br />";
}
printf("
<td>%s</td><td>%s</td><td>%s</td><td>%s</td>\n",
$rel['version'], $rel['state'], $rel['releasedate'],
@@ -133,7 +132,7 @@
}
?></table>
-<?php border_box_end(); ?>
+<?php $bb->end(); ?>
<!-- Package Dependencies
<br>