/**
* functions.php
*
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
* Implementation of RFC 2369 for SquirrelMail.
* When viewing a message from a mailinglist complying with this RFC,
* this plugin displays a menu which gives the user a choice of mailinglist
* commands such as (un)subscribe, help and list archives.
*
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage listcommands
*/
+/**
+ * internal function that builds mailing list links
+ */
function plugin_listcommands_menu_do() {
global $passed_id, $passed_ent_id, $color, $mailbox, $message, $startMessage;
}
/* proto = {mailto,href} */
- $proto = array_shift(array_keys($actions));
+ $aActions = array_keys($actions);
+ $proto = array_shift($aActions);
$act = array_shift($actions);
if ($proto == 'mailto') {
} else {
$url = "plugins/listcommands/mailout.php?action=$cmd&";
}
- $url .= 'send_to=' . strtr($act,'?','&');
+ $url .= 'send_to=' . str_replace('?','&', $act);
$output[] = makeComposeLink($url, $fieldsdescr[$cmd]);
'help' => _("Help"));
}
-?>
\ No newline at end of file