@@ 31-35 (lines=5) @@ | ||
28 | // |
|
29 | // Check if config/database.php exist -> if not, redirect to installer |
|
30 | // |
|
31 | if (!file_exists(PMF_ROOT_DIR . '/config/database.php')) { |
|
32 | RedirectResponse::create(str_replace('admin/index.php', '', $_SERVER['SCRIPT_NAME']).'setup/index.php') |
|
33 | ->send(); |
|
34 | exit; |
|
35 | } |
|
36 | ||
37 | // |
|
38 | // Define the named constant used as a check by any included PHP file |
@@ 28-31 (lines=4) @@ | ||
25 | // |
|
26 | // Check if config/database.php exist -> if not, redirect to installer |
|
27 | // |
|
28 | if (!file_exists(PMF_ROOT_DIR . '/config/database.php')) { |
|
29 | header("Location: ".str_replace('admin/index.php', '', $_SERVER['SCRIPT_NAME']).'setup/index.php'); |
|
30 | exit(); |
|
31 | } |
|
32 | ||
33 | // |
|
34 | // Bootstrapping |