This sets the 'href' of this plugin for a new link. */
$Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' .
- $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
- '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=plain';
+ $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
+ '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=plain';
/* If we got here from a search, we should preserve these variables */
if ($Args[8] && $Args[9])
- $Args[1]['attachment_common']['href'] .= '&where=' .
- urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
+ $Args[1]['attachment_common']['href'] .= '&where=' .
+ urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
/* The link that we created needs a name. "view" will be displayed for
all text attachments handled by this plugin. */
function attachment_common_link_html(&$Args)
{
$Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' .
- $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
- '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=html';
+ $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
+ '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=html';
if ($Args[8] && $Args[9]) {
- $Args[1]['attachment_common']['href'] .= '&where=' .
- urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
+ $Args[1]['attachment_common']['href'] .= '&where=' .
+ urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
}
$Args[1]['attachment_common']['text'] = _("view");
$attachment_common_show_images_list[] = $info;
$Args[1]['attachment_common']['href'] = '../src/image.php?startMessage=' .
- $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
- '&passed_ent_id=' . $Args[5];
+ $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
+ '&passed_ent_id=' . $Args[5];
if ($Args[8] && $Args[9]) {
- $Args[1]['attachment_common']['href'] .= '&where=' .
- urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
+ $Args[1]['attachment_common']['href'] .= '&where=' .
+ urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
}
$Args[1]['attachment_common']['text'] = _("view");
function attachment_common_link_vcard(&$Args)
{
$Args[1]['attachment_common']['href'] = '../src/vcard.php?startMessage=' .
- $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
- '&passed_ent_id=' . $Args[5];
+ $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
+ '&passed_ent_id=' . $Args[5];
if (isset($where) && isset($what))
- $Args[1]['attachment_common']['href'] .= '&where=' .
- urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
+ $Args[1]['attachment_common']['href'] .= '&where=' .
+ urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
$Args[1]['attachment_common']['text'] = _("Business Card");
if( !isset( $pos ) || $pos == '' ) {
$pos = '0';
}
- $search_stuff = "&pos=" . urlencode( $pos ) . "&where=".urlencode($where).'&what='.urlencode($what);
+ $search_stuff = "&pos=" . urlencode( $pos ) . "&where=".urlencode($where).'&what='.urlencode($what);
}
$checked = ($checkall == 1 ?' checked' : '');
case 4: /* subject */
echo " <td bgcolor=\"$hlt_color\">$bold";
if (! isset($search_stuff)) { $search_stuff = ''; }
- echo "<a href=\"read_body.php?mailbox=$urlMailbox&passed_id=".$msg["ID"]."&startMessage=$start_msg&show_more=0$search_stuff\"";
+ echo "<a href=\"read_body.php?mailbox=$urlMailbox&passed_id=".$msg["ID"]."&startMessage=$start_msg&show_more=0$search_stuff\"";
do_hook("subject_link");
if ($subject != $msg['SUBJECT']) {
}
mail_message_listing_beginning( $imapConnection,
- "move_messages.php?msg=$msg&mailbox=$urlMailbox&startMessage=$start_msg",
+ "move_messages.php?msg=$msg&mailbox=$urlMailbox&startMessage=$start_msg",
$mailbox, $sort, $msg_cnt_str, $paginator_str, $start_msg);
$groupNum = $start_msg % ($show_num - 1);
/* Now that we have everything figured out, show the actual button. */
echo ' <a href="right_main.php?newsort=' . $which .
- '&startMessage=1&mailbox=' . urlencode($mailbox) .
+ '&startMessage=1&mailbox=' . urlencode($mailbox) .
'"><IMG SRC="../images/' . $img .
'" BORDER=0 WIDTH=12 HEIGHT=10></a>';
}
$result = '';
if ($javascript_on) {
$result =
- '<script language="JavaScript">' .
+ '<script language="JavaScript" type="text/javascript">' .
"\n<!-- \n" .
"function CheckAll() {\n" .
" for (var i = 0; i < document.messageList.elements.length; i++) {\n" .
'</script><a href="#" onClick="CheckAll();">' . _("Toggle All") . "</a>\n";
} else {
if (strpos($PHP_SELF, "?")) {
- $result .= "<a href=\"$PHP_SELF&mailbox=" . urlencode($mailbox)
- . "&startMessage=$start_msg&sort=$sort&checkall=";
+ $result .= "<a href=\"$PHP_SELF&mailbox=" . urlencode($mailbox)
+ . "&startMessage=$start_msg&sort=$sort&checkall=";
}
else {
$result .= "<a href=\"$PHP_SELF?mailbox=" . urlencode($mailbox)
- . "&startMessage=$start_msg&sort=$sort&checkall=";
+ . "&startMessage=$start_msg&sort=$sort&checkall=";
}
if (isset($checkall) && $checkall == '1') {
$result .= '0';
}
if (isset($where) && isset($what)) {
- $result .= '&where=' . urlencode($where)
- . '&what=' . urlencode($what);
+ $result .= '&where=' . urlencode($where)
+ . '&what=' . urlencode($what);
}
if ($PG_SHOWNUM == 999999) {
- $result .= '&PG_SHOWNUM=999999';
+ $result .= '&PG_SHOWNUM=999999';
}
$result .= "\">";
function get_paginator_link
($box, $start_msg, $use, $text) {
$result = "<A HREF=\"right_main.php?use_mailbox_cache=$use"
- . "&startMessage=$start_msg&mailbox=$box\" "
+ . "&startMessage=$start_msg&mailbox=$box\" "
. "TARGET=\"right\">$text</A>";
return ($result);
}
}
} else if ($PG_SHOWNUM == 999999) {
$pg_str = "<A HREF=\"right_main.php?use_mailbox_cache=$use"
- . "&startMessage=1&mailbox=$box\" TARGET=\"right\">"
+ . "&startMessage=1&mailbox=$box\" TARGET=\"right\">"
. _("Paginate") . '</A>' . $spc;
}
/* If necessary, compute the 'show all' string. */
if (($prv_str != '') || ($nxt_str != '')) {
$all_str = "<A HREF=\"right_main.php?PG_SHOWNUM=999999"
- . "&use_mailbox_cache=$use&startMessage=1&mailbox=$box\" "
+ . "&use_mailbox_cache=$use&startMessage=1&mailbox=$box\" "
. "TARGET=\"right\">" . _("Show All") . '</A>';
}
return ($handleAsSent_result);
}
-?>
\ No newline at end of file
+?>