From: Jonathan A. <jan...@us...> - 2003-05-25 13:04:33
|
Update of /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch In directory sc8-pr-cvs1:/tmp/cvs-serv31716/plugins/mail_fetch Modified Files: Tag: SM-1_4-STABLE options.php Log Message: Certain characters in translations would mess up on the post, such as an umlaut would appear as ö in html, but after being posted it appears as ö so matching would always fail, making it impossible for those with chars like that to mod/delete servers. Index: options.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch/options.php,v retrieving revision 1.21 retrieving revision 1.21.2.1 diff -u -w -r1.21 -r1.21.2.1 --- options.php 26 Mar 2003 16:30:01 -0000 1.21 +++ options.php 25 May 2003 13:04:30 -0000 1.21.2.1 @@ -27,8 +27,16 @@ $mf_cypher = ''; } if(! sqgetGlobalVar('mf_action', $mf_action, SQ_POST) ) { + if (sqgetGlobalVar('mf_action_mod', $mf_action_mod, SQ_POST)) { + $mf_action = 'Modify'; + } + elseif (sqgetGlobalVar('mf_action_del', $mf_action_del, SQ_POST)) { + $mf_action = 'Delete'; + } + else { $mf_action = 'config'; } +} sqgetGlobalVar('mf_sn', $mf_sn, SQ_POST); sqgetGlobalVar('mf_server', $mf_server, SQ_POST); @@ -42,6 +50,7 @@ sqgetGlobalVar('mf_lmos', $mf_lmos, SQ_POST); sqgetGlobalVar('submit_mailfetch', $submit_mailfetch, SQ_POST); + /* end globals */ displayPageHeader( $color, 'None' ); @@ -246,15 +255,15 @@ htmlspecialchars( (($mailfetch_alias_[$i]=='')?$mailfetch_server_[$i]:$mailfetch_alias_[$i])) . "</option>>"; } echo '</select>'. - ' <INPUT TYPE=submit name=mf_action value="' . _("Modify") . '">'. - ' <INPUT TYPE=submit name=mf_action value="' . _("Delete") . '">'. + ' <INPUT TYPE=submit name=mf_action_mod value="' . _("Modify") . '">'. + ' <INPUT TYPE=submit name=mf_action_del value="' . _("Delete") . '">'. '</form>'; } else { echo _("No-one server in use. Try to add."); } echo '</td></tr></table>'; break; - case _("Delete"): //erase confirmation about a server + case 'Delete': //erase confirmation about a server echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', '<b>' . _("Fetching Servers") . '</b>', 'center', $color[0] ) @@ -277,7 +286,7 @@ ) , 'center', '', 'width="70%" cols="1" cellpadding="5" cellspacing="1"' ); break; //modify a server - case _("Modify"): + case 'Modify': echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', '<b>' . _("Fetching Servers") . '</b>', 'center', $color[0] ) |