Replace calls to htmlspecialchars() with sm_encode_html_special_chars().
[squirrelmail.git] / plugins / listcommands / templates / default / mailout.tpl
CommitLineData
8b7c37ed 1<?php
2
3/**
4 * mailout.tpl
5 *
6 * Template for listcommands (un)subscribe/help mail sending interface
7 *
8 * The following variables are available in this template:
9 * + $ - The lists that the user currently has
10 * configured (an array of list addresses,
11 * keyed by an ID number)
12 *
c0d96801 13 * @copyright 1999-2012 The SquirrelMail Project Team
8b7c37ed 14 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
15 * @version $Id$
16 * @package plugins
17 * @subpackage listcommands
18 */
19
20
21// retrieve the template vars
22//
23extract($t);
24
25
26?>
27
28<div class="dialogbox">
29<table class="wrapper">
30<tr><td class="header1"><?php echo _("Mailinglist") . ': ' . $fielddescr; ?></td></tr>
31
32<tr><td>
33<?php echo $out_string; ?>
34
35<br /><br />
36
37<form action="../../src/compose.php" method="post">
38
39<?php if (count($idents) > 1) {
40 echo '<label for="identity">' . _("From:") .'</label> ';
41 echo '<select name="identity" id="identity">';
42
43 foreach($idents as $nr=>$data) {
44 echo '<option value="' . $nr . '">' .
3047e291 45 sm_encode_html_special_chars(
8b7c37ed 46 $data['full_name'].' <'.
47 $data['email_address'] . '>') .
48 "</option>\n";
49 }
50
51 echo "</select>\n";
52
53} else {
54
55 echo _("From:");
3047e291 56 echo sm_encode_html_special_chars($idents[0]['full_name'].' <'.$idents[0]['email_address'].'>');
8b7c37ed 57}
58?>
59<br /><br />
3047e291 60<input type="hidden" name="send_to" value="<?php echo sm_encode_html_special_chars($send_to); ?>" />
61<input type="hidden" name="subject" value="<?php echo sm_encode_html_special_chars($subject); ?>" />
62<input type="hidden" name="body" value="<?php echo sm_encode_html_special_chars($body); ?>" />
63<input type="hidden" name="mailbox" value="<?php echo sm_encode_html_special_chars($mailbox); ?>" />
3ba5c606 64<input type="submit" name="send1" value="<?php echo _("Send Mail"); ?>" />
8b7c37ed 65<br />
66</form>
67
68</td></tr></table>
69</div>
70