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