SF.net SVN: postfixadmin: [379] trunk/setup.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2008-06-10 22:34:21
|
Revision: 379 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=379&view=rev Author: christian_boltz Date: 2008-06-10 15:34:25 -0700 (Tue, 10 Jun 2008) Log Message: ----------- setup.php: - check if imap_open is available. If not, print a warning. This was indirectly ;-) requested in https://sourceforge.net/forum/forum.php?thread_id=2071718&forum_id=676076 Modified Paths: -------------- trunk/setup.php Modified: trunk/setup.php =================================================================== --- trunk/setup.php 2008-06-08 15:57:49 UTC (rev 378) +++ trunk/setup.php 2008-06-10 22:34:25 UTC (rev 379) @@ -52,6 +52,7 @@ $f_session_start = function_exists ("session_start"); $f_preg_match = function_exists ("preg_match"); $f_mb_encode_mimeheader = function_exists ("mb_encode_mimeheader"); +$f_imap_open = function_exists ("imap_open"); $file_config = file_exists (realpath ("./config.inc.php")); @@ -263,6 +264,27 @@ $error =+ 1; } + +// +// Imap functions +// +if ( $f_imap_open == 1) +{ + print "<li>Depends on: IMAP functions - OK</li>\n"; +} +else +{ + print "<li><b>Warning: Depends on: IMAP functions - NOT FOUND</b><br />\n"; + print "To install IMAP support, install php$phpversion-imap<br />\n"; + print "Without IMAP support, you won't be able to create subfolders when creating mailboxes.</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. |