[feladat @ 123]
Reverting to changeset:121. Problems that were fixed in changeset:122 were local problems only.
--- a/edit.php Sun Feb 17 15:28:21 2008 +0000
+++ b/edit.php Sun Feb 17 15:38:26 2008 +0000
@@ -242,7 +242,7 @@
</div> <?php // eo div meta ?>
<div class="showmax">
<?php
-show_pages($info["numrec"],$rowamount,$_GET["id"]);
+show_pages($info["numrec"],ROWAMOUNT,$_GET["id"]);
?>
</div> <?php // eo div showmax ?>
<form action="<?php echo $_SERVER["PHP_SELF"]?>?id=<?php echo $_GET["id"]?>" method="post">
@@ -250,7 +250,7 @@
<table>
<?php
$countinput=0;
-$rec_result = get_records_from_domain_id($_GET["id"],ROWSTART,$rowamount);
+$rec_result = get_records_from_domain_id($_GET["id"],ROWSTART,ROWAMOUNT);
if($rec_result != -1)
{
?>
--- a/inc/config-me.inc.php Sun Feb 17 15:28:21 2008 +0000
+++ b/inc/config-me.inc.php Sun Feb 17 15:38:26 2008 +0000
@@ -64,9 +64,9 @@
// will be included, it will be used like: "style/$STYLE.css.php".
$STYLE = "example";
-// $rowamount
+// $ROWAMOUNT
// Define which rowamount should be used in the listing of records.
-$rowamount = 50;
+$ROWAMOUNT = 50;
/* DNS Record information */
--- a/inc/toolkit.inc.php Sun Feb 17 15:28:21 2008 +0000
+++ b/inc/toolkit.inc.php Sun Feb 17 15:38:26 2008 +0000
@@ -41,9 +41,10 @@
/*************
* Constants *
*************/
+define(ROWAMOUNT, $ROWAMOUNT);
if (isset($_GET["start"])) {
- define(ROWSTART, (($_GET["start"] - 1) * $rowamount));
+ define(ROWSTART, (($_GET["start"] - 1) * ROWAMOUNT));
} else {
define(ROWSTART, 0);
}
--- a/list_zones.php Sun Feb 17 15:28:21 2008 +0000
+++ b/list_zones.php Sun Feb 17 15:38:26 2008 +0000
@@ -28,10 +28,10 @@
<h2><?php echo _('List all zones'); ?></h2>
<?php
echo "<div class=\"showmax\">";
- show_pages($doms,$rowamount);
+ show_pages($doms,ROWAMOUNT);
echo "</div>";
-if ($num_all_domains > $rowamount)
+if ($num_all_domains > ROWAMOUNT)
{
echo "<div class=\"showmax\">";
show_letters(LETTERSTART);
@@ -49,10 +49,10 @@
<tr>
<?php
-if ($num_all_domains < $rowamount) {
- $doms = get_domains(0,"all",ROWSTART,$rowamount);
+if ($num_all_domains < ROWAMOUNT) {
+ $doms = get_domains(0,"all",ROWSTART,ROWAMOUNT);
} else {
- $doms = get_domains(0,LETTERSTART,ROWSTART,$rowamount);
+ $doms = get_domains(0,LETTERSTART,ROWSTART,ROWAMOUNT);
$num_show_domains = ($doms == -1) ? 0 : count($doms);
}
@@ -108,7 +108,7 @@
</table>
<?php
-if ($num_all_domains < $rowamount) {
+if ($num_all_domains < ROWAMOUNT) {
?>
<p><?php printf(_('This lists shows all %s zones(s) you have access to.'), $num_all_domains); ?></p>
<?php
--- a/users.php Sun Feb 17 15:28:21 2008 +0000
+++ b/users.php Sun Feb 17 15:38:26 2008 +0000
@@ -81,7 +81,7 @@
<th><?php echo _('Status'); ?></th>
</tr>
<?php
-$users = show_users('',ROWSTART,$rowamount);
+$users = show_users('',ROWSTART,ROWAMOUNT);
foreach ($users as $c)
{
$domains = get_domains_from_userid($c["id"]);
@@ -111,7 +111,7 @@
<p><?php echo _('Number of users') ;?>: <?php echo count($users); ?>.</p>
<div class="showmax">
<?php
-show_pages(count($users),$rowamount);
+show_pages(count($users),ROWAMOUNT);
?>
</div> <?php // eo div showmax ?>