include(SM_PATH . 'config/config.php');
include(SM_PATH . 'functions/strings.php');
}
-?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="robots" content="noindex,nofollow">
date ('d F Y H:i:s', filemtime(SM_PATH . 'config/config.php')) .
"</b></td></tr>\n</table>\n</p>\n\n";
-/* TODO: check $config_version here */
+/* check $config_version */
+if ($config_version!='1.4.0') {
+ do_err('Configuration file version does not match required version. Please update your configuration file.');
+}
echo "Checking PHP configuration...<br />\n";
/* don't display capabilities before STARTTLS */
if ($use_imap_tls==2 && stristr($capline, 'STARTTLS') === false) {
do_err('Your server doesn\'t support STARTTLS.');
-} else {
+} elseif($use_imap_tls==2) {
/* try starting starttls */
fwrite($stream,"A002 STARTTLS\r\n");
$starttls_line=fgets($stream, 1024);