X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fsetup.php;h=e6df69d77dfda61d06d78ec40dd12b0d48d41204;hb=dda2cc884dbb8745c36c973da3537aad45f4c264;hp=07e9f7040bd0504d8e7e5867ee4067b5bc3238fb;hpb=ff5d07191b97e40f412c228ec1fbeaf8136b06fd;p=squirrelmail.git diff --git a/plugins/listcommands/setup.php b/plugins/listcommands/setup.php index 07e9f704..e6df69d7 100644 --- a/plugins/listcommands/setup.php +++ b/plugins/listcommands/setup.php @@ -40,7 +40,12 @@ function plugin_listcommands_menu() { foreach ($message->rfc822_header->mlist as $cmd => $actions) { /* I don't know this action... skip it */ - if(!array_key_exists($cmd, $fieldsdescr)) { + /* grrr PHP keeps changing their syntax... */ + if( function_exists('array_key_exists') ) { + if(!array_key_exists($cmd, $fieldsdescr)) { + continue; + } + } elseif ( !key_exists($cmd, $fieldsdescr) ) { continue; } @@ -70,26 +75,23 @@ function plugin_listcommands_menu() { $url .= '&action=reply'; if ($compose_new_win == '1') { $output[] = "" . $fieldsdescr['reply'] . ''; - } - else { + } else { $output[] = '' . $fieldsdescr['reply'] . ''; } } - } elseif ($proto == 'href') { + } else if ($proto == 'href') { $output[] = '' . $fieldsdescr[$cmd] . ''; } } if (count($output) > 0) { - echo ''. "\n"; - echo ''; - echo html_tag( 'td', ''._("Mailing List").':  ', 'right', $color[0], 'valign="top" width="20%"') . "\n"; - echo html_tag( 'td', - '' . implode(' | ', $output) . '', 'left', $color[0], 'valign="top" width="80%"'); - echo "\n"; - echo '
'."\n"; + echo ''; + echo html_tag('TD', '' . _("Mailing List") . ':  ', + 'right', '', 'VALIGN="MIDDLE" WIDTH="20%"') . "\n"; + echo html_tag('TD', '' . implode(' | ', $output) . '', + 'left', $color[0], 'VALIGN="MIDDLE" WIDTH="80%"') . "\n"; + echo ""; } }