SF.net SVN: postfixadmin: [268] trunk/setup.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2007-12-14 00:05:50
|
Revision: 268 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=268&view=rev Author: christian_boltz Date: 2007-12-13 16:05:54 -0800 (Thu, 13 Dec 2007) Log Message: ----------- 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 Modified Paths: -------------- trunk/setup.php Modified: trunk/setup.php =================================================================== --- trunk/setup.php 2007-12-13 23:22:14 UTC (rev 267) +++ trunk/setup.php 2007-12-14 00:05:54 UTC (rev 268) @@ -49,6 +49,7 @@ $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 @@ } else { - print "<li><b>Unable to check for Apache version. (missing function: apache_get_version())</b></li>\n"; + print "<li><b>Unable to check for Apache version. (missing function: apache_get_version())<br />(Ignore this warning if you use another webserver software.)</b></li>\n"; } print "</ul>"; @@ -234,6 +235,20 @@ $error =+ 1; } +// +// Multibyte functions +// +if ( $f_mb_encode_mimeheader == 1 ) +{ + print "<li>Depends on: multibyte string - OK</li>\n"; +} +else +{ + print "<li><b>Error: Depends on: multibyte string - NOT FOUND</b><br />\n"; + print "To install multibyte string support, install php$phpversion-mbstring</li>\n"; + $error =+ 1; +} + print "</ul>"; if ($error != 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |