* Generate a paginator link.
*/
function get_paginator_link($box, $start_msg, $use, $text) {
- global $PHP_SELF, $use_frames;
- if ($use_frames)
- $target = 'right';
- else
- $target = '';
+ global $PHP_SELF;
$result = "<A HREF=\"right_main.php?use_mailbox_cache=$use"
. "&startMessage=$start_msg&mailbox=$box\" "
- . "TARGET=\"$target\">$text</A>";
+ . "TARGET=\"right\">$text</A>";
return ($result);
/*
if (preg_match('/^(.+)\?.+$/',$PHP_SELF,$regs)) {
$result = '<A HREF="'. $source_url . "?use_mailbox_cache=$use"
. "&startMessage=$start_msg&mailbox=$box\" "
- . "TARGET=\"$target\">$text</A>";
+ . "TARGET=\"right\">$text</A>";
return ($result);
*/
}
*/
function get_paginator_str($box, $start_msg, $end_msg, $num_msgs,
$show_num, $sort) {
- global $username, $data_dir, $use_mailbox_cache, $color, $PG_SHOWNUM, $use_frames;
+ global $username, $data_dir, $use_mailbox_cache, $color, $PG_SHOWNUM;
/* Initialize paginator string chunks. */
$prv_str = '';
$all_str = '';
$tgl_str = '';
- if ($use_frames)
- $target = 'right';
- else
- $target = '';
-
$box = urlencode($box);
/* Create simple strings that will be creating the paginator. */
} else if ($PG_SHOWNUM == 999999) {
$pg_str = "<A HREF=\"right_main.php?PG_SHOWALL=0"
. "&use_mailbox_cache=$use&startMessage=1&mailbox=$box\" "
- . "TARGET=\"$target\">" ._("Paginate") . '</A>' . $spc;
+ . "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_SHOWALL=1"
. "&use_mailbox_cache=$use&startMessage=1&mailbox=$box\" "
- . "TARGET=\"$target\">" . _("Show All") . '</A>';
+ . "TARGET=\"right\">" . _("Show All") . '</A>';
}
/* Last but not least, get the value for the toggle all link. */