Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 143 lines (131 sloc) 3.145 kb
7c7b136a »
2007-08-10 dunno why a char has been added before #!/usr/bin/perl
1 #!/usr/bin/perl
4ce43414 »
2007-08-03 Trying to fix
2
49c66d7d »
2007-03-09 rel_3_0 moved to HEAD
3 # This file is part of Koha.
4 #
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.
9 #
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.
13 #
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
17
fa0d959c »
2003-04-10 first cut at perl script to create the about page.
18 use strict;
19 require Exporter;
49c66d7d »
2007-03-09 rel_3_0 moved to HEAD
20
4ce43414 »
2007-08-03 Trying to fix
21 use C4::Output; # contains gettemplate
fa0d959c »
2003-04-10 first cut at perl script to create the about page.
22 use C4::Auth;
23 use C4::Context;
24 use CGI;
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
25 use LWP::Simple;
26 use XML::Simple;
fa0d959c »
2003-04-10 first cut at perl script to create the about page.
27
28 my $query = new CGI;
4ce43414 »
2007-08-03 Trying to fix
29 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
30 {
31 template_name => "about.tmpl",
32 query => $query,
33 type => "intranet",
34 authnotrequired => 0,
35 flagsrequired => { parameters => 1 },
36 debug => 1,
37 }
38 );
fa0d959c »
2003-04-10 first cut at perl script to create the about page.
39
61c72f8f »
2007-08-16 Adding KOHAVERSION management.
40 my $kohaVersion = C4::Context::KOHAVERSION;
4ce43414 »
2007-08-03 Trying to fix
41 my $osVersion = `uname -a`;
42 my $perlVersion = $];
43 my $mysqlVersion = `mysql -V`;
44 my $apacheVersion = `httpd -v`;
45 $apacheVersion = `httpd2 -v` unless $apacheVersion;
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
46 my $zebraVersion = `zebraidx -V`;
4ce43414 »
2007-08-03 Trying to fix
47
06b2edfa »
2006-04-21 bug 659 fixed: borrower category age limitations are now taken into a…
48 # $apacheVersion = (`/usr/sbin/apache2 -V`)[0];
fa0d959c »
2003-04-10 first cut at perl script to create the about page.
49
201640ba »
2003-04-10 missing - and template name fixing
50 $template->param(
4ce43414 »
2007-08-03 Trying to fix
51 kohaVersion => $kohaVersion,
52 osVersion => $osVersion,
53 perlVersion => $perlVersion,
54 mysqlVersion => $mysqlVersion,
55 apacheVersion => $apacheVersion,
56 zebraVersion => $zebraVersion,
57 );
3fb80a63 »
2006-03-16 improvement: on the About page, a caption was added to the table of Perl
58 my @component_names =
a51e2c19 »
2007-11-12 updating about.pl
59 qw/CGI
60 CGI::Carp
61 CGI::Session
62 Class::Factory::Util
63 Class::Accessor
64 DBD::mysql
65 DBI
66 Data::Dumper
67 Date::Calc
68 Date::Manip
69 Digest::MD5
70 File::Temp
71 GD::Barcode::UPCE
72 Getopt::Long
73 Getopt::Std
74 HTML::Template::Pro
75 HTTP::Cookies
76 HTTP::Request::Common
77 LWP::Simple
78 LWP::UserAgent
79 Lingua::Stem
80 List::Util
81 Locale::Language
1bc28135 »
2007-11-19 adding 2 deps to export biblios in dc format
82 MARC::Crosswalk::DublinCore
a51e2c19 »
2007-11-12 updating about.pl
83 MARC::Charset
84 MARC::File::XML
85 MARC::Record
86 MIME::Base64
87 MIME::QuotedPrint
88 Mail::Sendmail
89 Net::Z3950::ZOOM
90 PDF::API2
91 PDF::API2::Page
92 PDF::API2::Util
93 PDF::Reuse
94 PDF::Reuse::Barcode
95 POSIX
96 Schedule::At
97 Term::ANSIColor
98 Test
99 Test::Harness
100 Test::More
101 Text::CSV
102 Text::Wrap
103 Time::HiRes
104 Time::localtime
105 Unicode::Normalize
106 XML::Dumper
107 XML::LibXML
1bc28135 »
2007-11-19 adding 2 deps to export biblios in dc format
108 XML::LibXSLT
a51e2c19 »
2007-11-12 updating about.pl
109 XML::SAX::ParserFactory
110 XML::Simple
111 XML::RSS
3fb80a63 »
2006-03-16 improvement: on the About page, a caption was added to the table of Perl
112 /;
06b2edfa »
2006-04-21 bug 659 fixed: borrower category age limitations are now taken into a…
113
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
114 my @components = ();
115
a51e2c19 »
2007-11-12 updating about.pl
116 my $counter=0;
4ce43414 »
2007-08-03 Trying to fix
117 foreach my $component ( sort @component_names ) {
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
118 my $version;
4ce43414 »
2007-08-03 Trying to fix
119 if ( eval "require $component" ) {
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
120 $version = $component->VERSION;
4ce43414 »
2007-08-03 Trying to fix
121 if ( $version eq '' ) {
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
122 $version = 'unknown';
123 }
124 }
125 else {
126 $version = 'module is missing';
127 }
a51e2c19 »
2007-11-12 updating about.pl
128 $counter++;
129 $counter=0 if $counter >3;
4ce43414 »
2007-08-03 Trying to fix
130 push(
3fb80a63 »
2006-03-16 improvement: on the About page, a caption was added to the table of Perl
131 @components,
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
132 {
3fb80a63 »
2006-03-16 improvement: on the About page, a caption was added to the table of Perl
133 name => $component,
134 version => $version,
a51e2c19 »
2007-11-12 updating about.pl
135 counter => $counter,
3fb80a63 »
2006-03-16 improvement: on the About page, a caption was added to the table of Perl
136 }
137 );
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
138 }
139
4ce43414 »
2007-08-03 Trying to fix
140 $template->param( components => \@components );
493d07e1 »
2006-03-16 new: required Perl modules listed with their version in about page.
141
fa0d959c »
2003-04-10 first cut at perl script to create the about page.
142 output_html_with_http_headers $query, $cookie, $template->output;
Something went wrong with that request. Please try again.