| @@ 93-96 (lines=4) @@ | ||
| 90 | // |
|
| 91 | // Check if config/database.php exist -> if not, redirect to installer |
|
| 92 | // |
|
| 93 | if (!file_exists(PMF_CONFIG_DIR.'/database.php') && !file_exists(PMF_ROOT_DIR.'/inc/data.php')) { |
|
| 94 | header('Location: setup/index.php'); |
|
| 95 | exit(); |
|
| 96 | } |
|
| 97 | ||
| 98 | if (file_exists(PMF_ROOT_DIR.'/inc/data.php')) { |
|
| 99 | require PMF_ROOT_DIR.'/inc/data.php'; |
|
| @@ 41-47 (lines=7) @@ | ||
| 38 | ||
| 39 | if (file_exists(PMF_ROOT_DIR.'/inc/data.php')) { |
|
| 40 | require PMF_ROOT_DIR.'/inc/data.php'; // before 2.6.0-alpha |
|
| 41 | } else { |
|
| 42 | if (!file_exists(PMF_ROOT_DIR.'/config/database.php')) { |
|
| 43 | header('Location: setup.php'); |
|
| 44 | exit(); |
|
| 45 | } |
|
| 46 | require PMF_ROOT_DIR.'/config/database.php'; // after 2.6.0-alpha |
|
| 47 | } |
|
| 48 | ?> |
|
| 49 | <!doctype html> |
|
| 50 | <html lang="en"> |
|