"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/admin/connect.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

connect.php  (phplist-3.4.5.tgz):connect.php  (phplist-3.4.6.tgz)
skipping to change at line 2239 skipping to change at line 2239
printobject($value); printobject($value);
echo '</blockquote>'; echo '</blockquote>';
} else { } else {
echo $key.'==>'.$value.'<br />'; echo $key.'==>'.$value.'<br />';
} }
} }
} }
function simplePaging($baseurl, $start, $total, $numpp, $itemname = '') function simplePaging($baseurl, $start, $total, $numpp, $itemname = '')
{ {
$end = $start ? $start + $numpp : $numpp; $start = max(0, $start);
if ($end > $total) { $end = min($total, $start + $numpp);
$end = $total;
}
if (!empty($itemname)) { if (!empty($itemname)) {
$text = $GLOBALS['I18N']->get('Listing %d to %d of %d'); $text = $GLOBALS['I18N']->get('Listing %d to %d of %d');
} else { } else {
$text = $GLOBALS['I18N']->get('Listing %d to %d'); $text = $GLOBALS['I18N']->get('Listing %d to %d');
} }
if ($start > 0) { $listing = sprintf($text, $start + 1, $end, $total).' '.$itemname;
$listing = sprintf($text, $start + 1, $end, $total).' '.$itemname;
} else {
$listing = sprintf($text, 1, $end, $total).' '.$itemname;
$start = 0;
}
if ($total < $numpp) { if ($total < $numpp) {
return $listing; return $listing;
} }
// The last page displays the remaining items
$remainingItems = $total % $numpp;
if ($remainingItems == 0) {
$remainingItems = $numpp;
}
$startLast = $total - $remainingItems;
//# 22934 - new code
return '<div class="paging"> return '<div class="paging">
<p class="range">' .$listing.'</p><div class="controls"> <p class="range">' .$listing.'</p><div class="controls">
<a title="' .$GLOBALS['I18N']->get('First Page').'" class="first" href="'.Pa geUrl2($baseurl.'&amp;start=0').'"></a> <a title="' .$GLOBALS['I18N']->get('First Page').'" class="first" href="'.Pa geUrl2($baseurl.'&amp;start=0').'"></a>
<a title="' .$GLOBALS['I18N']->get('Previous').'" class="previous" href="'.P ageUrl2($baseurl.sprintf('&amp;start=%d', <a title="' .$GLOBALS['I18N']->get('Previous').'" class="previous" href="'.P ageUrl2($baseurl.sprintf('&amp;start=%d',
max(0, $start - $numpp))).'"></a> max(0, $start - $numpp))).'"></a>
<a title="' .$GLOBALS['I18N']->get('Next').'" class="next" href="'.PageUrl2( $baseurl.sprintf('&amp;start=%d', <a title="' .$GLOBALS['I18N']->get('Next').'" class="next" href="'.PageUrl2( $baseurl.sprintf('&amp;start=%d',
min($total, $start + $numpp))).'"></a> min($startLast, $start + $numpp))).'"></a>
<a title="' .$GLOBALS['I18N']->get('Last Page').'" class="last" href="'.Page Url2($baseurl.sprintf('&amp;start=%d', <a title="' .$GLOBALS['I18N']->get('Last Page').'" class="last" href="'.Page Url2($baseurl.sprintf('&amp;start=%d',
$total - $numpp)).'"></a> $startLast)).'"></a>
</div></div> </div></div>
'; ';
} }
function Paging($base_url, $start, $total, $numpp = 10, $label = '') function Paging($base_url, $start, $total, $numpp = 10, $label = '')
{ {
$page = 1; $page = 1;
$window = 8; //# size left and right of current $window = 8; //# size left and right of current
$data = ''; //PagingPrevious($base_url,$start,$total,$numpp,$label);#.'&nbsp ;|&nbsp;'; $data = ''; //PagingPrevious($base_url,$start,$total,$numpp,$label);#.'&nbsp ;|&nbsp;';
if (!isset($GLOBALS['config']['paginglabeltitle'])) { if (!isset($GLOBALS['config']['paginglabeltitle'])) {
 End of changes. 6 change blocks. 
13 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)