|
From: <pdo...@us...> - 2016-01-09 19:01:00
|
Revision: 14546
http://sourceforge.net/p/squirrelmail/code/14546
Author: pdontthink
Date: 2016-01-09 19:00:58 +0000 (Sat, 09 Jan 2016)
Log Message:
-----------
Update checks to reflect recent changes
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/src/configtest.php
Modified: branches/SM-1_4-STABLE/squirrelmail/src/configtest.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/src/configtest.php 2016-01-01 21:30:56 UTC (rev 14545)
+++ branches/SM-1_4-STABLE/squirrelmail/src/configtest.php 2016-01-09 19:00:58 UTC (rev 14546)
@@ -359,9 +359,10 @@
"</tt> (location base " . (empty($config_location_base) ? 'autodetected' : 'set to <tt>' .
sm_encode_html_special_chars($config_location_base)."</tt>") . ")<br />\n";
-/* check outgoing mail */
+/* check minimal requirements for other security options */
-if($use_smtp_tls || $use_imap_tls) {
+/* imaps or ssmtp */
+if($use_smtp_tls == 1 || $use_imap_tls == 1) {
if(!check_php_version(4,3,0)) {
do_err('You need at least PHP 4.3.0 for SMTP/IMAP TLS!');
}
@@ -369,7 +370,21 @@
do_err('You need the openssl PHP extension to use SMTP/IMAP TLS!');
}
}
+/* starttls extensions */
+if($use_smtp_tls === 2 || $use_imap_tls === 2) {
+ if (! function_exists('stream_socket_enable_crypto')) {
+ do_err('If you want to use STARTTLS extension, you need stream_socket_enable_crypto() function from PHP 5.1.0 and newer.');
+ }
+}
+/* digest-md5 */
+if ($smtp_auth_mech=='digest-md5' || $imap_auth_mech =='digest-md5') {
+ if (!extension_loaded('xml')) {
+ do_err('You need the PHP XML extension to use Digest-MD5 authentication!');
+ }
+}
+/* check outgoing mail */
+
echo "Checking outgoing mail service....<br />\n";
if($useSendmail) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|