Bug 1807 - Commenting out flawed nested queries implementation, now users can search...
[koha.git] / about.pl
blob735138cdc5e7ec64e62d1c155ffab7a87cbf0094
1 #!/usr/bin/perl
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
8 # version.
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
18 use strict;
20 use C4::Output; # contains gettemplate
21 use C4::Auth;
22 use C4::Context;
23 use CGI;
24 use LWP::Simple;
25 use XML::Simple;
26 use Config;
28 my $query = new CGI;
29 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
31 template_name => "about.tmpl",
32 query => $query,
33 type => "intranet",
34 authnotrequired => 0,
35 flagsrequired => { catalogue => 1 },
36 debug => 1,
40 my $kohaVersion = C4::Context::KOHAVERSION;
41 my $osVersion = `uname -a`;
42 my $perl_path = $^X;
43 if ($^O ne 'VMS') {
44 $perl_path .= $Config{_exe} unless $perl_path =~ m/$Config{_exe}$/i;
46 my $perlVersion = $];
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`;
53 $template->param(
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,
63 my @component_names =
64 qw/
65 Algorithm::CheckDigits
66 Biblio::EndnoteStyle
67 CGI
68 CGI::Carp
69 CGI::Session
70 CGI::Session::Serialize::yaml
71 Class::Factory::Util
72 Class::Accessor
73 Compress::Zlib
74 DBD::mysql
75 DBD::SQLite2
76 DBI
77 Data::Dumper
78 Data::ICal
79 Date::Calc
80 Date::ICal
81 Date::Manip
82 Digest::MD5
83 Digest::SHA
84 Email::Date
85 File::Temp
87 GD::Barcode::UPCE
88 Getopt::Long
89 Getopt::Std
90 HTML::Template::Pro
91 HTTP::Cookies
92 HTTP::OAI
93 HTTP::Request::Common
94 HTML::Scrubber
95 IPC::Cmd
96 JSON
97 LWP::Simple
98 LWP::UserAgent
99 Lingua::Stem
100 Lingua::Stem::Snowball
101 List::Util
102 List::MoreUtils
103 Locale::Language
104 MARC::Crosswalk::DublinCore
105 MARC::Charset
106 MARC::File::XML
107 MARC::Record
108 MIME::Base64
109 MIME::Lite
110 MIME::QuotedPrint
111 Mail::Sendmail
112 Net::LDAP
113 Net::LDAP::Filter
114 Net::Z3950::ZOOM
115 Number::Format
116 PDF::API2
117 PDF::API2::Page
118 PDF::API2::Util
119 PDF::API2::Simple
120 PDF::Table
121 PDF::Reuse
122 PDF::Reuse::Barcode
124 POSIX
125 Schedule::At
126 SMS::Send
127 Term::ANSIColor
128 Test
129 Test::Harness
130 Test::More
131 Text::CSV
132 Text::CSV_XS
133 Text::Iconv
134 Text::Wrap
135 Time::HiRes
136 Time::localtime
137 Unicode::Normalize
138 XML::Dumper
139 XML::LibXML
140 XML::LibXSLT
141 XML::SAX::ParserFactory
142 XML::SAX::Writer
143 XML::Simple
144 XML::RSS
145 YAML::Syck
148 my @components = ();
150 my $counter=0;
151 foreach my $component ( sort @component_names ) {
152 my $version;
153 if ( eval "require $component" ) {
154 $version = $component->VERSION;
155 if ( $version eq '' ) {
156 $version = 'unknown';
159 else {
160 $version = 'module is missing';
162 push(
163 @components,
165 name => $component,
166 version => $version,
167 newrow => (++$counter % 4) ? 0 : 1,
172 $template->param( components => \@components );
174 output_html_with_http_headers $query, $cookie, $template->output;