|
@@ -117,7 +117,7 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start
|
|
if( !isset( $pos ) || $pos == '' ) {
|
|
if( !isset( $pos ) || $pos == '' ) {
|
|
$pos = '0';
|
|
$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' : '');
|
|
$checked = ($checkall == 1 ?' checked' : '');
|
|
@@ -136,7 +136,7 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start
|
|
case 4: /* subject */
|
|
case 4: /* subject */
|
|
echo " <td bgcolor=\"$hlt_color\">$bold";
|
|
echo " <td bgcolor=\"$hlt_color\">$bold";
|
|
if (! isset($search_stuff)) { $search_stuff = ''; }
|
|
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");
|
|
do_hook("subject_link");
|
|
|
|
|
|
if ($subject != $msg['SUBJECT']) {
|
|
if ($subject != $msg['SUBJECT']) {
|
|
@@ -406,7 +406,7 @@ function displayMessageArray($imapConnection, $num_msgs, $start_msg, &$msgs, $ms
|
|
}
|
|
}
|
|
|
|
|
|
mail_message_listing_beginning( $imapConnection,
|
|
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);
|
|
$mailbox, $sort, $msg_cnt_str, $paginator_str, $start_msg);
|
|
|
|
|
|
$groupNum = $start_msg % ($show_num - 1);
|
|
$groupNum = $start_msg % ($show_num - 1);
|
|
@@ -614,7 +614,7 @@ function ShowSortButton($sort, $mailbox, $Up, $Down) {
|
|
|
|
|
|
/* Now that we have everything figured out, show the actual button. */
|
|
/* Now that we have everything figured out, show the actual button. */
|
|
echo ' <a href="right_main.php?newsort=' . $which .
|
|
echo ' <a href="right_main.php?newsort=' . $which .
|
|
- '&startMessage=1&mailbox=' . urlencode($mailbox) .
|
|
|
|
|
|
+ '&startMessage=1&mailbox=' . urlencode($mailbox) .
|
|
'"><IMG SRC="../images/' . $img .
|
|
'"><IMG SRC="../images/' . $img .
|
|
'" BORDER=0 WIDTH=12 HEIGHT=10></a>';
|
|
'" BORDER=0 WIDTH=12 HEIGHT=10></a>';
|
|
}
|
|
}
|
|
@@ -626,7 +626,7 @@ function get_selectall_link($start_msg, $sort) {
|
|
$result = '';
|
|
$result = '';
|
|
if ($javascript_on) {
|
|
if ($javascript_on) {
|
|
$result =
|
|
$result =
|
|
- '<script language="JavaScript">' .
|
|
|
|
|
|
+ '<script language="JavaScript" type="text/javascript">' .
|
|
"\n<!-- \n" .
|
|
"\n<!-- \n" .
|
|
"function CheckAll() {\n" .
|
|
"function CheckAll() {\n" .
|
|
" for (var i = 0; i < document.messageList.elements.length; i++) {\n" .
|
|
" for (var i = 0; i < document.messageList.elements.length; i++) {\n" .
|
|
@@ -639,12 +639,12 @@ function get_selectall_link($start_msg, $sort) {
|
|
'</script><a href="#" onClick="CheckAll();">' . _("Toggle All") . "</a>\n";
|
|
'</script><a href="#" onClick="CheckAll();">' . _("Toggle All") . "</a>\n";
|
|
} else {
|
|
} else {
|
|
if (strpos($PHP_SELF, "?")) {
|
|
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 {
|
|
else {
|
|
$result .= "<a href=\"$PHP_SELF?mailbox=" . urlencode($mailbox)
|
|
$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') {
|
|
if (isset($checkall) && $checkall == '1') {
|
|
$result .= '0';
|
|
$result .= '0';
|
|
@@ -653,12 +653,12 @@ function get_selectall_link($start_msg, $sort) {
|
|
}
|
|
}
|
|
|
|
|
|
if (isset($where) && isset($what)) {
|
|
if (isset($where) && isset($what)) {
|
|
- $result .= '&where=' . urlencode($where)
|
|
|
|
- . '&what=' . urlencode($what);
|
|
|
|
|
|
+ $result .= '&where=' . urlencode($where)
|
|
|
|
+ . '&what=' . urlencode($what);
|
|
}
|
|
}
|
|
|
|
|
|
if ($PG_SHOWNUM == 999999) {
|
|
if ($PG_SHOWNUM == 999999) {
|
|
- $result .= '&PG_SHOWNUM=999999';
|
|
|
|
|
|
+ $result .= '&PG_SHOWNUM=999999';
|
|
}
|
|
}
|
|
|
|
|
|
$result .= "\">";
|
|
$result .= "\">";
|
|
@@ -700,7 +700,7 @@ function get_msgcnt_str($start_msg, $end_msg, $num_msgs) {
|
|
function get_paginator_link
|
|
function get_paginator_link
|
|
($box, $start_msg, $use, $text) {
|
|
($box, $start_msg, $use, $text) {
|
|
$result = "<A HREF=\"right_main.php?use_mailbox_cache=$use"
|
|
$result = "<A HREF=\"right_main.php?use_mailbox_cache=$use"
|
|
- . "&startMessage=$start_msg&mailbox=$box\" "
|
|
|
|
|
|
+ . "&startMessage=$start_msg&mailbox=$box\" "
|
|
. "TARGET=\"right\">$text</A>";
|
|
. "TARGET=\"right\">$text</A>";
|
|
return ($result);
|
|
return ($result);
|
|
}
|
|
}
|
|
@@ -869,14 +869,14 @@ function get_paginator_str
|
|
}
|
|
}
|
|
} else if ($PG_SHOWNUM == 999999) {
|
|
} else if ($PG_SHOWNUM == 999999) {
|
|
$pg_str = "<A HREF=\"right_main.php?use_mailbox_cache=$use"
|
|
$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;
|
|
. _("Paginate") . '</A>' . $spc;
|
|
}
|
|
}
|
|
|
|
|
|
/* If necessary, compute the 'show all' string. */
|
|
/* If necessary, compute the 'show all' string. */
|
|
if (($prv_str != '') || ($nxt_str != '')) {
|
|
if (($prv_str != '') || ($nxt_str != '')) {
|
|
$all_str = "<A HREF=\"right_main.php?PG_SHOWNUM=999999"
|
|
$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>';
|
|
. "TARGET=\"right\">" . _("Show All") . '</A>';
|
|
}
|
|
}
|
|
|
|
|
|
@@ -944,4 +944,4 @@ function handleAsSent($mailbox) {
|
|
return ($handleAsSent_result);
|
|
return ($handleAsSent_result);
|
|
}
|
|
}
|
|
|
|
|
|
-?>
|
|
|
|
|
|
+?>
|