| @@ 491-495 (lines=5) @@ | ||
| 488 | if (!mysqli_select_db($conn, str_replace("`", "", $dbase))) { |
|
| 489 | echo $_lang['setup_database_selection_failed'] . " " . $_lang['setup_database_selection_failed_note'] . PHP_EOL; |
|
| 490 | $create = true; |
|
| 491 | } else { |
|
| 492 | if (function_exists('mysqli_set_charset')) { |
|
| 493 | mysqli_set_charset($conn, $database_charset); |
|
| 494 | } |
|
| 495 | mysqli_query($conn, "{$database_connection_method} {$database_connection_charset}"); |
|
| 496 | echo $_lang['ok'] . PHP_EOL; |
|
| 497 | } |
|
| 498 | ||
| @@ 99-103 (lines=5) @@ | ||
| 96 | if (!mysqli_select_db($conn, str_replace("`", "", $dbase))) { |
|
| 97 | echo "<span class=\"notok\" style='color:#707070'>".$_lang['setup_database_selection_failed']."</span>".$_lang['setup_database_selection_failed_note']."</p>"; |
|
| 98 | $create = true; |
|
| 99 | } else { |
|
| 100 | if (function_exists('mysqli_set_charset')) mysqli_set_charset($conn, $database_charset); |
|
| 101 | mysqli_query($conn, "{$database_connection_method} {$database_connection_charset}"); |
|
| 102 | echo '<span class="ok">'.$_lang['ok']."</span></p>"; |
|
| 103 | } |
|
| 104 | ||
| 105 | // try to create the database |
|
| 106 | if ($create) { |
|