* $Id$
*/
-require_once('../functions/strings.php');
-require_once('../functions/html.php');
-require_once('../class/html.class.php');
-require_once('../functions/imap_mailbox.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'functions/html.php');
+require_once(SM_PATH . 'class/html.class.php');
+require_once(SM_PATH . 'functions/imap_mailbox.php');
/* Default value for page_selector_max. */
define('PG_SEL_MAX', 10);
if ($auto_expunge == true) {
$exp_cnt = sqimap_mailbox_expunge($imapConnection, $mailbox, false, '');
$mbxresponse['EXISTS'] = $mbxresponse['EXISTS'] - $exp_cnt;
+ $num_msgs = $mbxresponse['EXISTS'];
}
if ($mbxresponse['EXISTS']>0) {
echo '</td></tr>'
. html_tag( 'tr' )
. html_tag( 'td' ,'' , '', $color[0], '' );
- if ($GLOBALS['alt_index_colors']){
- $cellspacing = '0';
- } else {
- $cellspacing = '1';
- }
- echo html_tag( 'table' ,'' , '', $color[0], 'border="0" width="100%" cellpadding="2" cellspacing="'. $cellspacing .'"' );
/* if using server sort we highjack the
* the $sort var and use $server_sort_order
function get_paginator_link($box, $start_msg, $use, $text) {
global $PHP_SELF;
+ $result = "<A HREF=\"right_main.php?use_mailbox_cache=$use"
+ . "&startMessage=$start_msg&mailbox=$box\" "
+ . "TARGET=\"right\">$text</A>";
+ return ($result);
+/*
if (preg_match('/^(.+)\?.+$/',$PHP_SELF,$regs)) {
$source_url = $regs[1];
} else {
. "&startMessage=$start_msg&mailbox=$box\" "
. "TARGET=\"right\">$text</A>";
return ($result);
+*/
}
/*
}
function processSubject($subject) {
+ global $languages, $squirrelmail_language;
/* Shouldn't ever happen -- caught too many times in the IMAP functions */
if ($subject == '')
return _("(no subject)");
return $subject;
}
+ if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
+ function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
+ return $languages[$squirrelmail_language]['XTRA_CODE']('strimwidth', $subject, $trim_val);
+ }
+
return substr($subject, 0, $trim_val) . '...';
}