cvs: php-gcov-web(SOC06) /www viewer.php
| From: | Nuno Lopes | Date: | Sun, 03 Sep 2006 16:03:01 +0000 |
| Subject: | cvs: php-gcov-web(SOC06) /www viewer.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32293@lists.php.net to get a copy of this message | ||
nlopess Sun Sep 3 16:03:01 2006 UTC
Modified files: (Branch: SOC06)
/php-gcov-web/www viewer.php
Log:
fix a link shown in case of error. add a little message when no function is selected
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/viewer.php?r1=1.1.2.6&r2=1.1.2.7&diff_format=u
Index: php-gcov-web/www/viewer.php
diff -u php-gcov-web/www/viewer.php:1.1.2.6 php-gcov-web/www/viewer.php:1.1.2.7
--- php-gcov-web/www/viewer.php:1.1.2.6 Sat Sep 2 23:05:54 2006
+++ php-gcov-web/www/viewer.php Sun Sep 3 16:03:00 2006
@@ -118,7 +118,7 @@
// If username is not set, show lcov, if it is set, default to system
if(!isset($username))
{
- $func = 'lcov';
+ $func = 'menu';
}
else
{
@@ -287,7 +287,7 @@
$appvars['page']['head'] = $func_array[$func]['pagehead'].'
Data File Not Available';
$appvars['page']['headtitle'] = $version;
- $content = 'File could not be opened. Please try again in a few minutes, or return to the
<a
href="viewer.php?version='.$version.'&func='.$func.'">listing</a>
page.';
+ $content = 'File could not be opened. Please try again in a few minutes, or return to the
<a href="/">listing</a> page.';
} // End check for no content or failure
else
{
@@ -368,6 +368,10 @@
// todo: if there is no lcov content, inform user here
}
+ else if($func == 'menu')
+ {
+ $content = 'Please choose one function from the menu on the left.';
+ }
else
{
// Define page variables