cvs: phpweb / lstats.php
| From: | Jani Taskinen | Date: | Tue, 08 May 2001 13:36:19 +0000 |
| Subject: | cvs: phpweb / lstats.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4943@lists.php.net to get a copy of this message | ||
sniper Tue May 8 06:36:19 2001 EDT
Modified files:
/phpweb lstats.php
Log:
Removed the useless index-create part. Added urls for PHP 3 and 4 stats.
Index: phpweb/lstats.php
diff -u phpweb/lstats.php:1.2 phpweb/lstats.php:1.3
--- phpweb/lstats.php:1.2 Tue May 8 05:41:45 2001
+++ phpweb/lstats.php Tue May 8 06:36:19 2001
@@ -20,17 +20,15 @@
"bogus"
);
-
+ if(!isset($phpver)) {
+ echo "<h3>Bug stats for both <a href='lstats.php?phpver=3'>PHP
3</a> and <a href='lstats.php?phpver=3'>PHP
4</a>:</h3><pre>\n";
+ } else {
+ echo "<h3>Bug stats for PHP $phpver:</h3><pre>\n";
+ }
+
mysql_connect("localhost","nobody","");
mysql_select_db("php3");
-
- /* REMOVE THIS!!! */
- if(isset($create_index_for_status) && $create_index_for_status == "please") {
- mysql_query("CREATE INDEX idx_status on bugdb(status)");
- }
-
- echo "<h3>Bug stats:</h3><pre>\n";
foreach($statuses as $status) {
$query = "SELECT count(id) from bugdb WHERE";
if ($phpver > 0) {