display path to Perl interpreter on about page
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 13 Feb 2008 19:03:11 +0000 (13:03 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 15 Feb 2008 14:24:42 +0000 (08:24 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
about.pl
koha-tmpl/intranet-tmpl/prog/en/modules/about.tmpl

index cf2c9d4..29caa85 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -24,6 +24,7 @@ use C4::Context;
 use CGI;
 use LWP::Simple;
 use XML::Simple;
+use Config;
 
 my $query = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
@@ -39,6 +40,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
 
 my $kohaVersion   = C4::Context::KOHAVERSION;
 my $osVersion     = `uname -a`;
+my $perl_path = $^X;
+if ($^O ne 'VMS') {
+    $perl_path .= $Config{_exe} unless $perl_path =~ m/$Config{_exe}$/i;
+}
 my $perlVersion   = $];
 my $mysqlVersion  = `mysql -V`;
 my $apacheVersion = `httpd -v`;
@@ -49,6 +54,7 @@ my $zebraVersion = `zebraidx -V`;
 $template->param(
     kohaVersion   => $kohaVersion,
     osVersion     => $osVersion,
+    perlPath      => $perl_path,
     perlVersion   => $perlVersion,
     perlIncPath   => [ map { perlinc => $_ }, sort @INC ],
     mysqlVersion  => $mysqlVersion,
index 9eaa559..f2e37d5 100644 (file)
@@ -34,6 +34,7 @@
             <caption>Server information</caption>
             <tr><th scope="row">Koha version: </th><td><!-- TMPL_VAR ESCAPE="HTML" name="kohaVersion" --></td></tr>
             <tr><th scope="row">OS version ('uname -a'): </th><td><!-- TMPL_VAR ESCAPE="HTML" name="osVersion" --></td></tr>
+            <tr><th scope="row">Perl interpreter: </th><td><!-- TMPL_VAR ESCAPE="HTML" name="perlPath" --></td></tr>
             <tr><th scope="row">Perl version: </th><td><!-- TMPL_VAR ESCAPE="HTML" name="perlVersion" --></td></tr>
             <tr><th scope="row">Perl @INC: </th><td>
                 <!-- TMPL_LOOP name="perlIncPath" -->