# HG changeset patch # User rejo # Date 1203262101 0 # Node ID a53200a76f9de891df2574a4ac4b23ecca9a3162 # Parent 43c31dc9830528c2925e5aeb7d79f325d027aa3d [feladat @ 122] Fixing a number of 'division by zero' errors introduced changeset:121. Changed from constant to a normal variable. May need to be reviewed in a future cleanup. diff -r 43c31dc98305 -r a53200a76f9d edit.php --- a/edit.php Mon Feb 11 19:52:20 2008 +0000 +++ b/edit.php Sun Feb 17 15:28:21 2008 +0000 @@ -242,7 +242,7 @@
?id=" method="post"> @@ -250,7 +250,7 @@ diff -r 43c31dc98305 -r a53200a76f9d inc/config-me.inc.php --- a/inc/config-me.inc.php Mon Feb 11 19:52:20 2008 +0000 +++ b/inc/config-me.inc.php Sun Feb 17 15:28:21 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 */ diff -r 43c31dc98305 -r a53200a76f9d inc/toolkit.inc.php --- a/inc/toolkit.inc.php Mon Feb 11 19:52:20 2008 +0000 +++ b/inc/toolkit.inc.php Sun Feb 17 15:28:21 2008 +0000 @@ -41,10 +41,9 @@ /************* * Constants * *************/ -define(ROWAMOUNT, $ROWAMOUNT); if (isset($_GET["start"])) { - define(ROWSTART, (($_GET["start"] - 1) * ROWAMOUNT)); + define(ROWSTART, (($_GET["start"] - 1) * $rowamount)); } else { define(ROWSTART, 0); } diff -r 43c31dc98305 -r a53200a76f9d list_zones.php --- a/list_zones.php Mon Feb 11 19:52:20 2008 +0000 +++ b/list_zones.php Sun Feb 17 15:28:21 2008 +0000 @@ -28,10 +28,10 @@

"; - show_pages($doms,ROWAMOUNT); + show_pages($doms,$rowamount); echo ""; -if ($num_all_domains > ROWAMOUNT) +if ($num_all_domains > $rowamount) { echo "
"; show_letters(LETTERSTART); @@ -49,10 +49,10 @@

: .