git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14762
7612ce4b-ef26-0410-bec9-
ea0150e637f0
'size' => 10,
'default' => 'detect' ),
'$use_imap_tls' => array( 'name' => _("IMAP Connection Security"),
'size' => 10,
'default' => 'detect' ),
'$use_imap_tls' => array( 'name' => _("IMAP Connection Security"),
- 'type' => SMOPT_TYPE_STRLIST,
+ 'type' => SMOPT_TYPE_NUMLIST,
'posvals' => array( 0 => _("Plain text connection"),
1 => _("Secure IMAP (TLS) connection"),
2 => _("IMAP STARTTLS connection")),
'posvals' => array( 0 => _("Plain text connection"),
1 => _("Secure IMAP (TLS) connection"),
2 => _("IMAP STARTTLS connection")),
'$smtpPort' => array( 'name' => _("SMTP Server Port"),
'type' => SMOPT_TYPE_INTEGER ),
'$use_smtp_tls' => array( 'name' => _("SMTP Connection Security"),
'$smtpPort' => array( 'name' => _("SMTP Server Port"),
'type' => SMOPT_TYPE_INTEGER ),
'$use_smtp_tls' => array( 'name' => _("SMTP Connection Security"),
- 'type' => SMOPT_TYPE_STRLIST,
+ 'type' => SMOPT_TYPE_NUMLIST,
'posvals' => array( 0 => _("Plain text connection"),
'posvals' => array( 0 => _("Plain text connection"),
- 1 => _("Secure IMAP (TLS) connection"),
- 2 => _("IMAP STARTTLS connection")),
+ 1 => _("Secure SMTP (TLS) connection"),
+ 2 => _("SMTP STARTTLS connection")),
'comment' => _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
'default' => 0 ),
'$smtp_auth_mech' => array( 'name' => _("SMTP Authentication Type"),
'comment' => _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
'default' => 0 ),
'$smtp_auth_mech' => array( 'name' => _("SMTP Authentication Type"),
Write the options to the file.
*/
Write the options to the file.
*/
+// Test/debug
+// $cfgfile = '/tmp/config.php';
if ( $fp = @fopen( $cfgfile, 'w' ) ) {
fwrite( $fp, "<?php\n".
"/**\n".
if ( $fp = @fopen( $cfgfile, 'w' ) ) {
fwrite( $fp, "<?php\n".
"/**\n".