echo "+\n";
$stuff = true;
}
- if ($default_use_priority) {
+ if ($default_use_priority) {
if (ereg('(1|2)',substr($msg['PRIORITY'],0,1))) {
echo "<font color=$color[1]>!</font>\n";
$stuff = true;
*/
function mail_message_listing_beginning
($imapConnection, $moveURL, $mailbox = '', $sort = -1,
- $msg_cnt_str = '', $paginator = '', $start_msg = 1) {
+ $msg_cnt_str = '', $paginator = ' ', $start_msg = 1) {
global $color, $index_order, $auto_expunge, $move_to_trash;
global $checkall, $sent_folder, $draft_folder;
$urlMailbox = urlencode($mailbox);
}
/* Return the resulting string. */
+ if( $lMore . $mMore . $rMore == '' ) {
+ $lMore = ' ';
+ }
return ($lMore . $mMore . $rMore);
}
/* Now, print out each option page section. */
/********************************************/
$first_optpage = false;
+ echo "<table bgcolor=\"$color[4]\" width=\"100%\" cellpadding=0 cellspacing=5 border=0>" .
+ '<tr><td valign="top">' .
+ '<table width="100%" cellpadding="3" cellspacing="0" border="0">';
foreach ($optionpages as $next_optpage) {
if ($first_optpage == false) {
$first_optpage = $next_optpage;
print_optionpages_row($first_optpage);
}
+ echo '</table>' .
+ '</td></tr>' .
+ "</table>\n";
+
do_hook('options_link_and_description');
?>
*/
function print_optionpages_row($leftopt, $rightopt = false) {
global $color;
-
- echo "<table bgcolor=\"$color[4]\" width=\"100%\" cellpadding=0 cellspacing=5 border=0>" .
- '<tr><td valign="top">' .
- '<table width="100%" cellpadding="3" cellspacing="0" border="0">' .
- '<tr>' .
+
+ echo '<tr>' .
"<td valign=top bgcolor=\"$color[9]\" width=\"50%\">" .
'<a href="' . $leftopt['url'] . '">' . $leftopt['name'] . '</a>'.
'</td>'.
} else {
echo "<td valign=top bgcolor=\"$color[4]\" width=\"50%\"> </td>";
}
-
+
echo '</tr>' .
'<tr>' .
"<td valign=top bgcolor=\"$color[0]\">" .
echo "<td valign=top bgcolor=\"$color[4]\"> </td>";
}
- echo '</tr>' .
- '</table>' .
- '</td></tr>' .
- "</table>\n";
+ echo "</tr>\n";
}
?>
$startMessage = 1;
/* compensate for the UW vulnerability. */
- if ($imap_server_type == 'uw' && (strstr($mailbox, '../') !== false ||
+ if ($imap_server_type == 'uw' && (strstr($mailbox, '../') ||
substr($mailbox, 0, 1) == '/')) {
$mailbox = 'INBOX';
}
$numMessages = sqimap_get_num_messages ($imapConnection, $mailbox);
showMessagesForMailbox($imapConnection, $mailbox, $numMessages,
- $startMessage, $sort, $color, $show_num, $use_mailbox_cache);
+ $startMessage, $sort, $color, $show_num,
+ $use_mailbox_cache);
if (session_is_registered('msgs') && isset($msgs)) {
session_register('msgs');