[feladat @ 81]
Bugfix. If the number of zones exceeded the "max row limit" and a
"starting letter" with no zones was requested in list_zones.php it
would show no zones while incorrectly stating "showing 1 out of N
zones".
<?phprequire_once("inc/i18n.inc.php");require_once("inc/toolkit.inc.php");include_once("inc/header.inc.php");if(!level(5)){?><h3><?echo_('Oops!');?></h3><p><?echo_('You are not allowed to add supermasters with your current access level!');?></p><?}else{$supermasters=get_supermasters(0);$num_supermasters=($supermasters==-1)?0:count($supermasters);?><h3><?printf(_('List all %s supermasters'),$num_supermasters);?></h3><table><tr><th> </td><th><?echo_('IP address of supermaster');?></td><th><?echo_('Hostname in NS record');?></td><th><?echo_('Account');?></td></tr><?if($num_supermasters==0){?><tr><tdclass="n"> </td><tdclass="n"colspan="3"><?echo_('No supermasters in this listing, sorry.');?></td></tr><?}else{foreach($supermastersas$c){?><tr><tdclass="n"><ahref="delete_supermaster.php?master_ip=<?echo$c["master_ip"]?>"><imgsrc="images/delete.gif"title="<?print_('Delete supermaster').' '.$c["master_ip"];?>"alt="[ <?echo_('Delete supermaster');?> ]"></a></td><tdclass="y"><?echo$c["master_ip"]?></td><tdclass="y"><?echo$c["ns_name"]?></td><tdclass="y"><?echo$c["account"]?></td></tr><?}}?></table><?}include_once("inc/footer.inc.php");?>