diff --git a/cli-script.php b/cli-script.php index 3800e0248..4af555bfe 100755 --- a/cli-script.php +++ b/cli-script.php @@ -80,9 +80,6 @@ global $databaseConfig; // We don't have a session in cli-script, but this prevents errors $_SESSION = null; -require_once("ORM/DB.php"); - - // Connect to database if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) { echo "\nPlease configure your database connection details. You can do this by creating a file diff --git a/core/startup/ParameterConfirmationToken.php b/core/startup/ParameterConfirmationToken.php index 426cd4458..27821130e 100644 --- a/core/startup/ParameterConfirmationToken.php +++ b/core/startup/ParameterConfirmationToken.php @@ -49,7 +49,6 @@ class ParameterConfirmationToken { */ protected function genToken() { // Generate a new random token (as random as possible) - require_once(dirname(dirname(dirname(__FILE__))).'/security/RandomGenerator.php'); $rg = new RandomGenerator(); $token = $rg->randomToken('md5'); diff --git a/main.php b/main.php index ab7c54f7c..719a978ab 100644 --- a/main.php +++ b/main.php @@ -147,7 +147,6 @@ $chain require_once('core/Core.php'); // Connect to database - require_once('ORM/DB.php'); global $databaseConfig; if ($databaseConfig) DB::connect($databaseConfig);