inc/toolkit.inc.php
changeset 74 43c31dc98305
parent 71 e1b918eaf69a
child 75 a53200a76f9d
--- a/inc/toolkit.inc.php	Mon Feb 11 18:42:04 2008 +0000
+++ b/inc/toolkit.inc.php	Mon Feb 11 19:52:20 2008 +0000
@@ -21,11 +21,27 @@
 
 session_start();
 
+
+
+if(!@include_once("config.inc.php"))
+{
+	error( _('You have to create a config.inc.php!') );
+}
+
+if(is_file( dirname(__FILE__) . '/../install.php'))
+{
+	error( _('You have to remove install.php before this program will run') );
+}
+
+if(is_file( dirname(__FILE__) . '/../migrator.php'))
+{
+        error( _('You have to remove migrator.php before this program will run') );
+}
+
 /*************
- * Constants  *
-  *************/
-
-define(ROWAMOUNT, 50);
+ * Constants *
+ *************/
+define(ROWAMOUNT, $ROWAMOUNT);
 
 if (isset($_GET["start"])) {
    define(ROWSTART, (($_GET["start"] - 1) * ROWAMOUNT));
@@ -42,21 +58,6 @@
    define(LETTERSTART, "a");
 }
 
-if(!@include_once("config.inc.php"))
-{
-	error( _('You have to create a config.inc.php!') );
-}
-
-if(is_file( dirname(__FILE__) . '/../install.php'))
-{
-	error( _('You have to remove install.php before this program will run') );
-}
-
-if(is_file( dirname(__FILE__) . '/../migrator.php'))
-{
-        error( _('You have to remove migrator.php before this program will run') );
-}
-
 /* Database connection */
 
 require_once("database.inc.php");