############################################################
-# First, lets read in the data already in there...
+# Try to determine what the version of SquirrelMail is
+############################################################
+$sm_version = 'unknown';
+if ( -e "../include/constants.php" && -r "../include/constants.php") {
+ open( FILE, "../include/constants.php" );
+ while ( $line = <FILE> ) {
+ if ($line =~ m/^define\('SM_VERSION', ?'(\d+\.\d+\.\d+( ?\[\w+]|))'/) {
+ $sm_version = $1;
+ last;
+ }
+ }
+ close(FILE);
+}
+
+
+############################################################
+# First, let's read in the data already in there...
############################################################
if ( -e "config.php" ) {
# Make sure that file is readable
print $WHT. "SquirrelMail Configuration : " . $NRM;
if ( $config == 1 ) { print "Read: config.php"; }
elsif ( $config == 2 ) { print "Read: config_default.php"; }
- print " ($print_config_version)\n";
+ print "\nConfig version $print_config_version; SquirrelMail version $sm_version\n";
print "---------------------------------------------------------\n";
if ( $menu == 0 ) {
Williams). See $display_imap_login_error in the configuration
file or "4. General Options ==> 21. Display login error from IMAP"
in the configuration tool.
+ - Configuration tool now shows the SquirrelMail version
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------