fixes + improvment. shows now apache and mysql versions

This commit is contained in:
tipaul 2003-04-10 14:14:00 +00:00
parent 66c2a98029
commit d40bdb949e
2 changed files with 11 additions and 10 deletions

View file

@ -20,16 +20,17 @@ my ($template, $loggedinuser, $cookie)
});
my $kohaVersion = C4::Context->config("kohaversion");
my $osVersion = `/bin/uname -a`;
my $perlVersion = `/usr/bin/perl -v`;
my $mysqlVersion = "unknown";
my $apacheVersion = "unknown";
my $osVersion = `uname -a`;
my $perlVersion = `perl -v`;
my $mysqlVersion = `mysql -V`;
my $apacheVersion = `httpd -V`;
$template->param(
osVersion => $osVersion,
perlVersion => $perlVersion,
mysqlVersion => $mysqlVersion,
apacheVersion => $apacheVersion,
kohaVersion => $kohaVersion,
osVersion => $osVersion,
perlVersion => $perlVersion,
mysqlVersion => $mysqlVersion,
apacheVersion => $apacheVersion,
);
output_html_with_http_headers $query, $cookie, $template->output;

View file

@ -6,9 +6,9 @@
interest).
<center>
<table border=1 width=75%>
<table border=1>
<tr bgcolor="white">
<td>Koha version:</td>
<td width=25%>Koha version:</td>
<td><TMPL_VAR NAME=kohaVersion></td>
</tr>
<tr bgcolor="white">