-
-
Notifications
You must be signed in to change notification settings - Fork 212
/
bundle.php
executable file
·37 lines (29 loc) · 1.13 KB
/
bundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* @package boot
*/
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
ini_set('magic_quotes_runtime', 0);
require_once(DOCROOT . '/symphony/lib/boot/func.utilities.php');
require_once(DOCROOT . '/symphony/lib/core/class.configuration.php');
require_once(DOCROOT . '/symphony/lib/toolkit/class.general.php');
$Configuration = new Configuration(true);
// Create the $settings var from the config file
if(file_exists(DOCROOT . '/manifest/config.php')) {
include(DOCROOT . '/manifest/config.php');
$Configuration->setArray($settings);
}
else {
include(DOCROOT . '/install/includes/config_default.php');
}
require_once(DOCROOT . '/symphony/lib/boot/defines.php');
if (!file_exists(CONFIG)) {
$bInsideInstaller = (bool)preg_match('%(/|\\\\)install(/|\\\\)index.php$%', $_SERVER['SCRIPT_FILENAME']);
if (!$bInsideInstaller && file_exists(DOCROOT . '/install/index.php')) {
header(sprintf('Location: %s/install/', URL));
exit;
}
else if(!$bInsideInstaller) {
die('<h2>Error</h2><p>Could not locate Symphony configuration file. Please check <code>manifest/config.php</code> exists.</p>');
}
}