src/bootstrap.php 1 location
|
@@ 16-20 (lines=5) @@
|
13 |
|
$dir = dirname(__DIR__); |
14 |
|
require_once $dir . '/src/Xhgui/Config.php'; |
15 |
|
$configDir = defined('XHGUI_CONFIG_DIR') ? XHGUI_CONFIG_DIR : $dir . '/config/'; |
16 |
|
if (file_exists($configDir . 'config.php')) { |
17 |
|
Xhgui_Config::load($configDir . 'config.php'); |
18 |
|
} else { |
19 |
|
Xhgui_Config::load($configDir . 'config.default.php'); |
20 |
|
} |
21 |
|
unset($dir, $configDir); |
external/header.php 1 location
|
@@ 78-82 (lines=5) @@
|
75 |
|
$dir = dirname(__DIR__); |
76 |
|
require_once $dir . '/src/Xhgui/Config.php'; |
77 |
|
$configDir = defined('XHGUI_CONFIG_DIR') ? XHGUI_CONFIG_DIR : $dir . '/config/'; |
78 |
|
if (file_exists($configDir . 'config.php')) { |
79 |
|
Xhgui_Config::load($configDir . 'config.php'); |
80 |
|
} else { |
81 |
|
Xhgui_Config::load($configDir . 'config.default.php'); |
82 |
|
} |
83 |
|
unset($dir, $configDir); |
84 |
|
|
85 |
|
if ((!extension_loaded('mongo') && !extension_loaded('mongodb')) && Xhgui_Config::read('save.handler') === 'mongodb') { |