cvs: pearweb /public_html package-stats.php

From: Date: Tue, 13 Aug 2002 18:03:58 +0000
Subject: cvs: pearweb /public_html package-stats.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5720@lists.php.net to get a copy of this message
mj Tue Aug 13 14:03:58 2002 EDT Modified files: /pearweb/public_html package-stats.php Log: * Reformat sprintf() calls. Index: pearweb/public_html/package-stats.php diff -u pearweb/public_html/package-stats.php:1.35 pearweb/public_html/package-stats.php:1.36 --- pearweb/public_html/package-stats.php:1.35 Tue Aug 13 11:31:19 2002 +++ pearweb/public_html/package-stats.php Tue Aug 13 14:03:57 2002 @@ -16,7 +16,7 @@ | Authors: Martin Jansen <mj@php.net> | | Richard Heyes <richard@php.net> | +----------------------------------------------------------------------+ - $Id: package-stats.php,v 1.35 2002/08/13 15:31:19 pajoye Exp $ + $Id: package-stats.php,v 1.36 2002/08/13 18:03:57 mj Exp $ */ require_once "HTML/Form.php"; @@ -162,9 +162,12 @@ $bb->end(); /** - * Print the graph - */ - printf('<br /><img src="package-stats-graph.php?pid=%s&releases=%s_339900" name="stats_graph" width="543" height="200" alt="">', $_GET['pid'], isset($_GET['rid']) ? (int)$_GET['rid'] : ''); + * Print the graph + */ + printf('<br /><img src="package-stats-graph.php?pid=%s&releases=%s_339900" name="stats_graph" width="543" height="200" alt="" />', + $_GET['pid'], + isset($_GET['rid']) ? (int)$_GET['rid'] : '' + ); /** * Print the graph control stuff @@ -288,7 +291,9 @@ $total_categories = $dbh->getOne(sprintf("SELECT COUNT(*) FROM categories WHERE parent = %d", $_GET['cid'])); // Query to get package list from package_stats_table - $query = sprintf("SELECT dl_number, package, release, pid, rid, cid FROM package_stats WHERE cid = %s ORDER BY dl_number DESC", $_GET['cid']); + $query = sprintf("SELECT dl_number, package, release, pid, rid, cid FROM package_stats WHERE cid = %s ORDER BY dl_number DESC", + $_GET['cid'] + ); /** * Global stats @@ -325,9 +330,9 @@ <td width="25%" align="center" bgcolor="#cccccc"><?=$total_categories?></td> </tr> <?php - if(empty($_GET['cid'])) { - echo "<tr>\n<td width=\"25%\">\nTotal Downloads:</td>\n<td width=\"25%\" align=\"center\" bgcolor=\"#cccccc\">$total_downloads</td>\n</tr>\n"; - } + if(empty($_GET['cid'])) { + echo "<tr>\n<td width=\"25%\">\nTotal Downloads:</td>\n<td width=\"25%\" align=\"center\" bgcolor=\"#cccccc\">$total_downloads</td>\n</tr>\n"; + } ?> </table> <?php

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