From d821e03b93527d714b880b1339faae617a828524 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 14 Dec 2007 00:05:54 +0000 Subject: [PATCH] setup.php: - added check for multibyte string extension (mb_encode_mimeheader) - added note that Apache version check failure can be ignored if another webserver is used git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@268 a1433add-5e2c-0410-b055-b7f2511e0802 --- setup.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/setup.php b/setup.php index 2b99c19d..62e1a287 100644 --- a/setup.php +++ b/setup.php @@ -49,6 +49,7 @@ $f_mysqli_connect = function_exists ("mysqli_connect"); $f_pg_connect = function_exists ("pg_connect"); $f_session_start = function_exists ("session_start"); $f_preg_match = function_exists ("preg_match"); +$f_mb_encode_mimeheader = function_exists ("mb_encode_mimeheader"); $file_config = file_exists (realpath ("./config.inc.php")); @@ -77,7 +78,7 @@ if ($f_apache_get_version == 1) } else { - print "
  • Unable to check for Apache version. (missing function: apache_get_version())
  • \n"; + print "
  • Unable to check for Apache version. (missing function: apache_get_version())
    (Ignore this warning if you use another webserver software.)
  • \n"; } print ""; @@ -234,6 +235,20 @@ else $error =+ 1; } +// +// Multibyte functions +// +if ( $f_mb_encode_mimeheader == 1 ) +{ + print "
  • Depends on: multibyte string - OK
  • \n"; +} +else +{ + print "
  • Error: Depends on: multibyte string - NOT FOUND
    \n"; + print "To install multibyte string support, install php$phpversion-mbstring
  • \n"; + $error =+ 1; +} + print ""; if ($error != 0)