From: kink Date: Wed, 26 Mar 2003 16:30:01 +0000 (+0000) Subject: Fix typo in var name and add two prefs which were left out when renumbering X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=162cd2c60c4d890779eeb6cc6ba8e13984dcd142;p=squirrelmail.git Fix typo in var name and add two prefs which were left out when renumbering the server data. And wrap the lines in a nicer way. Fixes #708956. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4684 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/mail_fetch/options.php b/plugins/mail_fetch/options.php index 59202257..8e755bc5 100644 --- a/plugins/mail_fetch/options.php +++ b/plugins/mail_fetch/options.php @@ -30,7 +30,7 @@ if(! sqgetGlobalVar('mf_action', $mf_action, SQ_POST) ) { $mf_action = 'config'; } -sqgetGlobalVar('mf_sn', $mf_an, SQ_POST); +sqgetGlobalVar('mf_sn', $mf_sn, SQ_POST); sqgetGlobalVar('mf_server', $mf_server, SQ_POST); sqgetGlobalVar('mf_port', $mf_port, SQ_POST); sqgetGlobalVar('mf_alias', $mf_alias, SQ_POST); @@ -92,16 +92,26 @@ sqgetGlobalVar('submit_mailfetch', $submit_mailfetch, SQ_POST); $mailfetch_server_number--; for ($i=$mf_sn;$i<$mailfetch_server_number;$i++) { $tmp=$i+1; - setPref($data_dir,$username,"mailfetch_server_$i", getPref($data_dir, $username, "mailfetch_server_$tmp")); - setPref($data_dir,$username,"mailfetch_port_$i", getPref($data_dir,$username, "mailfetch_port_$tmp")); - setPref($data_dir,$username,"mailfetch_alias_$i", getPref($data_dir, $username, "mailfetch_alias_$tmp")); - setPref($data_dir,$username,"mailfetch_user_$i", getPref($data_dir, $username, "mailfetch_user_$tmp")); - setPref($data_dir,$username,"mailfetch_pass_$i",(isset($mf_pass)?encrypt( $mf_pass ) :"")); - // if( $mf_cypher <> 'on' ) setPref($data_dir,$username,"mailfetch_cypher", 'on'); - setPref($data_dir,$username,"mailfetch_lmos_$i", getPref($data_dir, $username, "mailfetch_lmos_$tmp")); - setPref($data_dir,$username,"mailfetch_login_$i", getPref($data_dir, $username, "mailfetch_login_$tmp")); - setPref($data_dir,$username,"mailfetch_fref_$i", getPref($data_dir, $username, "mailfetch_fref_$tmp")); - setPref($data_dir,$username,"mailfetch_subfolder_$i", getPref($data_dir, $username, "mailfetch_subfolder_$tmp")); + setPref($data_dir,$username,'mailfetch_server_'.$i, + getPref($data_dir,$username, 'mailfetch_server_'.$tmp)); + setPref($data_dir,$username,'mailfetch_port_'.$i, + getPref($data_dir,$username, 'mailfetch_port_'.$tmp)); + setPref($data_dir,$username,'mailfetch_alias_'.$i, + getPref($data_dir,$username, 'mailfetch_alias_'.$tmp)); + setPref($data_dir,$username,'mailfetch_user_'.$i, + getPref($data_dir,$username, 'mailfetch_user_'.$tmp)); + setPref($data_dir,$username,'mailfetch_pass_'.$i, + getPref($data_dir,$username, 'mailfetch_pass_'.$tmp)); + setPref($data_dir,$username,'mailfetch_lmos_'.$i, + getPref($data_dir,$username, 'mailfetch_lmos_'.$tmp)); + setPref($data_dir,$username,'mailfetch_login_'.$i, + getPref($data_dir,$username, 'mailfetch_login_'.$tmp)); + setPref($data_dir,$username,'mailfetch_fref_'.$i, + getPref($data_dir,$username, 'mailfetch_fref_'.$tmp)); + setPref($data_dir,$username,'mailfetch_subfolder_'.$i, + getPref($data_dir,$username, 'mailfetch_subfolder_'.$tmp)); + setPref($data_dir,$username,'mailfetch_uidl_'.$i, + getPref($data_dir,$username, 'mailfetch_uidl_'.$tmp)); } setPref($data_dir,$username,"mailfetch_server_number", $mailfetch_server_number); }