Insert notes about PHP 4.3.x into some documentation.
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Feb 2003 19:01:56 +0000 (19:01 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Feb 2003 19:01:56 +0000 (19:01 +0000)
Added warning to src/login.php when PHP 4.3.x is in use.
Warning can be disabled by adding $shootMyFootOff = true; to config/config_local.php

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4543 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
INSTALL
ReleaseNotes
src/login.php

index 7e55a934d6468adf563f39fa15fcf4cd78cbcf37..7fc400267c1423902d2f8c7a0baabd5812b140b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,8 @@ Version 1.4.0 CVS
     by register_globals = off.
   - Added Greek locale. Thanks to George P. Kremmydas 
     <george at kefalonia-ithaki.gr> and Alexandros Vellis <avel at noc.uoa.gr>
     by register_globals = off.
   - Added Greek locale. Thanks to George P. Kremmydas 
     <george at kefalonia-ithaki.gr> and Alexandros Vellis <avel at noc.uoa.gr>
+  - Added notes about PHP 4.3.x to documentation, and a gaudy warning message
+    in src/login.php.  Warning can be disabled.
   
 Version 1.4.0 RC 2a
 -------------------
   
 Version 1.4.0 RC 2a
 -------------------
diff --git a/INSTALL b/INSTALL
index 9947a6a8ef6f35022b29677c28f631575db9972d..3d9695e87a6e1a6a2d3dbba5794a3ab5576f89a3 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -26,6 +26,10 @@ Table of Contents:
   latest release version of PHP4.
 
 a. Obtaining and compiling PHP4
   latest release version of PHP4.
 
 a. Obtaining and compiling PHP4
+  
+  SquirrelMail has not been tested for use with PHP 4.3.x.  The
+  development team does not recommend the use of this software with
+  PHP 4.3.x until further testing can be done.
 
   Point your favorite webserver at http://www.php.net/version4/ and
   download the source. Untar (tar xvfz filename-you-downloaded.tgz)
 
   Point your favorite webserver at http://www.php.net/version4/ and
   download the source. Untar (tar xvfz filename-you-downloaded.tgz)
index 68f5a00c0397a59774cfa18c74fee5bb5c0ca8a7..09a230092088aa89cecf477429200b9ed3a8e266 100644 (file)
@@ -5,6 +5,7 @@
 
 In this edition of SquirrelMail Release Notes:
    * All about this Release!!!
 
 In this edition of SquirrelMail Release Notes:
    * All about this Release!!!
+   * A note on PHP 4.3.x
    * Major updates
    * A note on plugins
    * Reporting my favorite SquirrelMail 1.4 bug
    * Major updates
    * A note on plugins
    * Reporting my favorite SquirrelMail 1.4 bug
@@ -32,6 +33,21 @@ to verify that this is true!
 So download it! Install it, and try to break it! We are hungry for any
 bug report you send. Even the smallest issue deserves to be fixed.
 
 So download it! Install it, and try to break it! We are hungry for any
 bug report you send. Even the smallest issue deserves to be fixed.
 
+A note on PHP 4.3.x
+===================
+
+While the developers realize that PHP 4.3.x is the "latest and greatest"
+version of PHP to be available, SquirrelMail has not been extensively
+tested with it.  There may be potential session issues with PHP 4.3.x,
+and PHP by default has a session warning which will need to be disabled
+if you wish to use it with SquirrelMail.
+
+Put simply: The SquirrelMail team does not recommend the use of
+PHP 4.3.x with SquirrelMail at this time.
+
+SquirrelMail will put a large ugly warning about the use of PHP 4.3.x on
+the login screen unless you add "$shootMyFootOff = true;" to 
+config/config_local.php, or downgrade PHP.
 
 Major updates
 ==============
 
 Major updates
 ==============
index f41bb1dac99b7c18214ec139505bbd2ab7bc1292..9d5fbcc6a276ad8cdca15b95663e9a86b171385b 100644 (file)
@@ -93,6 +93,18 @@ if (isset($org_logo) && $org_logo) {
         $width_and_height .= " height=\"$org_logo_height\"";
     }
 }
         $width_and_height .= " height=\"$org_logo_height\"";
     }
 }
+global $shootMyFootOff;
+if (check_php_version(4,3) and !isset($shootMyFootOff)) {
+    echo '<center><hr width="75%">' . "\n";
+    echo '<h2>PHP 4.3.x has been detected</h2>' . "\n";
+    echo '</center><p>The SquirrelMail team does not recommend the use of PHP 4.3.x with';
+    echo ' this software.  Please see the <a href="http://www.squirrelmail.org">SquirrelMail';
+    echo ' website</a>, or the documentation that came with SquirrelMail for more information.</p>';
+    echo '<p>This warning can be disabled by either downgrading PHP, or inserting';
+    echo '"$shootMyFootOff = true;" in config/config_local.php.</p>' . "\n";
+    echo '<center><hr width="75%"></center>' . "\n";
+    echo "\n";
+}
 
 echo "\n" . '<form action="redirect.php" method="post">' . "\n" .
 html_tag( 'table',
 
 echo "\n" . '<form action="redirect.php" method="post">' . "\n" .
 html_tag( 'table',