diff -r 8a239565e9b3 -r 43c31dc98305 inc/toolkit.inc.php --- 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");