don't include config.php everywhere
This commit is contained in:
parent
211f699aa0
commit
12bcf826e4
|
@ -1,8 +1,6 @@
|
|||
<?php
|
||||
error_reporting(E_ERROR | E_PARSE);
|
||||
|
||||
require_once "../config.php";
|
||||
|
||||
set_include_path(__DIR__ . PATH_SEPARATOR .
|
||||
dirname(__DIR__) . PATH_SEPARATOR .
|
||||
dirname(__DIR__) . "/include" . PATH_SEPARATOR .
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
require_once "autoload.php";
|
||||
require_once "sessions.php";
|
||||
require_once "functions.php";
|
||||
require_once "config.php";
|
||||
require_once "db-prefs.php";
|
||||
|
||||
$op = (string)clean($op);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
define('EXPECTED_CONFIG_VERSION', 26);
|
||||
define('SCHEMA_VERSION', 140);
|
||||
|
||||
define('LABEL_BASE_INDEX', -1024);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
// Original from http://www.daniweb.com/code/snippet43.html
|
||||
|
||||
require_once "config.php";
|
||||
require_once "autoload.php";
|
||||
require_once "functions.php";
|
||||
require_once "errorhandler.php";
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
<?php
|
||||
|
||||
if (!file_exists("config.php")) {
|
||||
print "<b>Fatal Error</b>: You forgot to copy
|
||||
<b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
// we need a separate check here because functions.php might get parsed
|
||||
// incorrectly before 5.3 because of :: syntax.
|
||||
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
|
||||
|
@ -20,7 +14,6 @@
|
|||
require_once "sessions.php";
|
||||
require_once "functions.php";
|
||||
require_once "sanity_check.php";
|
||||
require_once "config.php";
|
||||
require_once "db-prefs.php";
|
||||
|
||||
if (!init_plugins()) return;
|
||||
|
|
|
@ -2,17 +2,10 @@
|
|||
set_include_path(__DIR__ ."/include" . PATH_SEPARATOR .
|
||||
get_include_path());
|
||||
|
||||
if (!file_exists("config.php")) {
|
||||
print "<b>Fatal Error</b>: You forgot to copy
|
||||
<b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once "autoload.php";
|
||||
require_once "sessions.php";
|
||||
require_once "functions.php";
|
||||
require_once "sanity_check.php";
|
||||
require_once "config.php";
|
||||
require_once "db-prefs.php";
|
||||
|
||||
if (!init_plugins()) return;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
require_once "sessions.php";
|
||||
require_once "functions.php";
|
||||
require_once "sanity_check.php";
|
||||
require_once "config.php";
|
||||
require_once "db-prefs.php";
|
||||
|
||||
startup_gettext();
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
require_once "autoload.php";
|
||||
require_once "functions.php";
|
||||
require_once "config.php";
|
||||
require_once "sanity_check.php";
|
||||
require_once "db-prefs.php";
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
require_once "autoload.php";
|
||||
require_once "functions.php";
|
||||
require_once "config.php";
|
||||
require_once "sanity_check.php";
|
||||
require_once "db-prefs.php";
|
||||
|
||||
|
|
Loading…
Reference in New Issue