| @@ 87-91 (lines=5) @@ | ||
| 84 | if (!mysqli_select_db($conn, str_replace("`", "", $dbase))) { |
|
| 85 | echo "<span class=\"notok\" style='color:#707070'>".$_lang['setup_database_selection_failed']."</span>".$_lang['setup_database_selection_failed_note']."</p>"; |
|
| 86 | $create = true; |
|
| 87 | } else { |
|
| 88 | if (function_exists('mysqli_set_charset')) mysqli_set_charset($conn, $database_charset); |
|
| 89 | mysqli_query($conn, "{$database_connection_method} {$database_connection_charset}"); |
|
| 90 | echo '<span class="ok">'.$_lang['ok']."</span></p>"; |
|
| 91 | } |
|
| 92 | ||
| 93 | // try to create the database |
|
| 94 | if ($create) { |
|
| @@ 467-471 (lines=5) @@ | ||
| 464 | if (!mysqli_select_db($conn, str_replace("`", "", $dbase))) { |
|
| 465 | echo $_lang['setup_database_selection_failed']." ".$_lang['setup_database_selection_failed_note'].PHP_EOL; |
|
| 466 | $create = true; |
|
| 467 | } else { |
|
| 468 | if (function_exists('mysqli_set_charset')) mysqli_set_charset($conn, $database_charset); |
|
| 469 | mysqli_query($conn, "{$database_connection_method} {$database_connection_charset}"); |
|
| 470 | echo $_lang['ok'].PHP_EOL; |
|
| 471 | } |
|
| 472 | ||
| 473 | // try to create the database |
|
| 474 | if ($create) { |
|