cvs: php-gcov-web(SOC06) /www viewer.php
| From: | Nuno Lopes | Date: | Thu, 07 Sep 2006 11:36:53 +0000 |
| Subject: | cvs: php-gcov-web(SOC06) /www viewer.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32372@lists.php.net to get a copy of this message | ||
nlopess Thu Sep 7 11:36:53 2006 UTC
Modified files: (Branch: SOC06)
/php-gcov-web/www viewer.php
Log:
more WS fixes
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/viewer.php?r1=1.1.2.10&r2=1.1.2.11&diff_format=u
Index: php-gcov-web/www/viewer.php
diff -u php-gcov-web/www/viewer.php:1.1.2.10 php-gcov-web/www/viewer.php:1.1.2.11
--- php-gcov-web/www/viewer.php:1.1.2.10 Thu Sep 7 11:31:28 2006
+++ php-gcov-web/www/viewer.php Thu Sep 7 11:36:53 2006
@@ -108,7 +108,6 @@
if(isset($_REQUEST['func']))
{
$func = $_REQUEST['func'];
-
}
else
{
@@ -140,24 +139,23 @@
{
$count = 0;
$os = $_REQUEST['os'];
- $stmt = null;
$stmtarray = array();
$appvars['page']['title'] = 'PHP: Other Platform Search Results';
- $appvars['page']['head'] = 'Other Platform Search Results';
+ $appvars['page']['head'] = 'Other Platform Search Results';
$appvars['page']['headtitle'] = 'Search Results';
if($os == 'all')
{
- $sql = 'SELECT user_name, last_user_os FROM remote_builds';
+ $sql = 'SELECT user_name, last_user_os FROM remote_builds';
}
else
{
$sql = 'SELECT user_name, last_user_os FROM remote_builds WHERE last_user_os=?';
$stmtarray = array($os);
}
- $stmt = $mysqlconn->prepare($sql);
- $stmt->execute($stmtarray);
+ $stmt = $mysqlconn->prepare($sql);
+ $stmt->execute($stmtarray);
// todo: allow check to be narrowed down to a specific PHP version
while($row = $stmt->fetch())
@@ -174,7 +172,7 @@
$content .= <<< HTML
<a
href="viewer.php?username=$user_name&version=$phpvertag">$user_name</a> (PHP
Version: $phpvertag, OS: $last_user_os)<br />
HTML;
- $count++;
+ ++$count;
} // End check if tag is active for this user
} // End loop through each accepted PHP version