3 # This file is part of Koha.
5 # Koha is free software; you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free Software
7 # Foundation; either version 2 of the License, or (at your option) any later
10 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License along with
15 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
16 # Suite 330, Boston, MA 02111-1307 USA
20 use C4
::Output
; # contains gettemplate
29 my ( $template, $loggedinuser, $cookie ) = get_template_and_user
(
31 template_name
=> "about.tmpl",
35 flagsrequired
=> { catalogue
=> 1 },
40 my $kohaVersion = C4
::Context
::KOHAVERSION
;
41 my $osVersion = `uname -a`;
44 $perl_path .= $Config{_exe
} unless $perl_path =~ m/$Config{_exe}$/i;
47 my $mysqlVersion = `mysql -V`;
48 my $apacheVersion = `httpd -v`;
49 $apacheVersion = `httpd2 -v` unless $apacheVersion;
50 $apacheVersion = (`/usr/sbin/apache2 -V`)[0] unless $apacheVersion;
51 my $zebraVersion = `zebraidx -V`;
54 kohaVersion
=> $kohaVersion,
55 osVersion
=> $osVersion,
56 perlPath
=> $perl_path,
57 perlVersion
=> $perlVersion,
58 perlIncPath
=> [ map { perlinc
=> $_ }, @INC ],
59 mysqlVersion
=> $mysqlVersion,
60 apacheVersion
=> $apacheVersion,
61 zebraVersion
=> $zebraVersion,
65 Algorithm
::CheckDigits
70 CGI
::Session
::Serialize
::yaml
100 Lingua
::Stem
::Snowball
104 MARC
::Crosswalk
::DublinCore
141 XML
::SAX
::ParserFactory
151 foreach my $component ( sort @component_names ) {
153 if ( eval "require $component" ) {
154 $version = $component->VERSION;
155 if ( $version eq '' ) {
156 $version = 'unknown';
160 $version = 'module is missing';
167 newrow
=> (++$counter % 4) ?
0 : 1,
172 $template->param( components
=> \
@components );
174 output_html_with_http_headers
$query, $cookie, $template->output;