| @@ 19-24 (lines=6) @@ | ||
| 16 | // We need to have all connection settings - but prefix may be empty so we have to ignore it |
|
| 17 | if ($dbase) { |
|
| 18 | $database_name = trim($dbase, '`'); |
|
| 19 | if (!$conn = mysqli_connect($database_server, $database_user, $database_password)) |
|
| 20 | $upgradeable = (isset($_POST['installmode']) && $_POST['installmode']=='new') ? 0 : 2; |
|
| 21 | elseif (! mysqli_select_db($conn, trim($dbase, '`'))) |
|
| 22 | $upgradeable = (isset($_POST['installmode']) && $_POST['installmode']=='new') ? 0 : 2; |
|
| 23 | else |
|
| 24 | $upgradeable = 1; |
|
| 25 | } |
|
| 26 | else $upgradable= 2; |
|
| 27 | } |
|
| @@ 8-13 (lines=6) @@ | ||
| 5 | include $base_path . MGR_DIR . '/includes/config.inc.php'; |
|
| 6 | // We need to have all connection settings - tho prefix may be empty so we have to ignore it |
|
| 7 | if (isset($dbase)) { |
|
| 8 | if (!$conn = @mysqli_connect($database_server, $database_user, $database_password)) |
|
| 9 | $upgradeable = isset($_POST['installmode']) && $_POST['installmode'] == 'new' ? 0 : 2; |
|
| 10 | elseif (!@mysqli_select_db($conn, trim($dbase, '`'))) |
|
| 11 | $upgradeable = isset($_POST['installmode']) && $_POST['installmode'] == 'new' ? 0 : 2; |
|
| 12 | else |
|
| 13 | $upgradeable = 1; |
|
| 14 | } |
|
| 15 | else |
|
| 16 | $upgradeable = 2; |
|