cvs: pearweb /public_html package-stats.php
| From: | Tal Peer | Date: | Tue, 04 Jun 2002 09:50:21 +0000 |
| Subject: | cvs: pearweb /public_html package-stats.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4403@lists.php.net to get a copy of this message | ||
tal Tue Jun 4 05:50:21 2002 EDT
Modified files:
/pearweb/public_html package-stats.php
Log:
* Added formatting (number_format()) for number of downloads.
Index: pearweb/public_html/package-stats.php
diff -u pearweb/public_html/package-stats.php:1.12 pearweb/public_html/package-stats.php:1.13
--- pearweb/public_html/package-stats.php:1.12 Tue Jun 4 05:18:54 2002
+++ pearweb/public_html/package-stats.php Tue Jun 4 05:50:21 2002
@@ -16,7 +16,7 @@
| Authors: Martin Jansen <mj@php.net> |
| Richard Heyes <richard@php.net> |
+----------------------------------------------------------------------+
- $Id: package-stats.php,v 1.12 2002/06/04 09:18:54 richard Exp $
+ $Id: package-stats.php,v 1.13 2002/06/04 09:50:21 tal Exp $
*/
require_once "HTML/Form.php";
@@ -137,7 +137,7 @@
$bb = new Borderbox("General statistics");
echo "Number of releases: <b>" . count($info['releases']) .
"</b><br />\n";
- echo "Total downloads: <b>" . statistics::package($_GET['pid']) .
"</b><br />\n";
+ echo "Total downloads: <b>" . number_format(::package($_GET['pid']),
0, '.', ',') . "</b><br />\n";
$bb->end();
if (count($info['releases']) > 0) {
@@ -149,7 +149,7 @@
$i= 0;
foreach ($release_statistics as $key => $value) {
$bb2 = new Borderbox("Release: " . $value['version'], 400);
- echo "Number of downloads: <b>" . $value['total'] .
"</b><br />\n";
+ echo "Number of downloads: <b>" .
number_format($value['total'], 0, '.', ',') . "</b><br
/>\n";
if ($value['total'] > 1) {
echo "First download: <b>" . $value['first_download'] .
"</b><br />\n";