list_zones.php
changeset 29 e1c60f72d494
parent 26 5d63f1e71d6e
child 34 a2826b0ebcff
--- a/list_zones.php	Mon Jun 25 22:37:06 2007 +0000
+++ b/list_zones.php	Wed Jun 27 20:45:51 2007 +0000
@@ -3,21 +3,20 @@
 require_once("inc/toolkit.inc.php");
 include_once("inc/header.inc.php");
 
-$all_doms = get_domains(0);
-$num_all_domains = ($all_doms == -1) ? 0 : count($all_doms);
-$doms = get_domains(0,LETTERSTART);
+$num_all_domains = zone_count(0);
+$doms = zone_count(0, LETTERSTART);
 ?>
    <h2><? echo _('List zones'); ?></h2>
 <?
-	echo "<div class=\"showmax\">";
-	show_pages(count($doms),ROWAMOUNT);
-	echo "</div>";
+        echo "<div class=\"showmax\">";
+        show_pages($doms,ROWAMOUNT);
+        echo "</div>";
 
-if ($num_all_domains > ROWAMOUNT) 
+if ($num_all_domains > ROWAMOUNT)
 {
-	echo "<div class=\"showmax\">";
-	show_letters(LETTERSTART,$all_doms);
-	echo "</div>";
+        echo "<div class=\"showmax\">";
+        show_letters(LETTERSTART);
+        echo "</div>";
 }
 ?>
    <table>