From: Chris H. <ta...@us...> - 2003-02-24 19:02:00
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory sc8-pr-cvs1:/tmp/cvs-serv3799/src Modified Files: login.php Log Message: Insert notes about PHP 4.3.x into some documentation. 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 Index: login.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/login.php,v retrieving revision 1.94 retrieving revision 1.95 diff -u -w -r1.94 -r1.95 --- login.php 21 Feb 2003 00:12:43 -0000 1.94 +++ login.php 24 Feb 2003 19:01:56 -0000 1.95 @@ -93,6 +93,18 @@ $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', |