|
@@ 697-700 (lines=4) @@
|
| 694 |
|
} |
| 695 |
|
|
| 696 |
|
$dbSetup['dbServer'] = Filter::filterInput(INPUT_POST, 'sql_server', FILTER_SANITIZE_STRING, ''); |
| 697 |
|
if (is_null($dbSetup['dbServer']) && !System::isSqlite($dbSetup['dbType'])) { |
| 698 |
|
echo "<p class=\"alert alert-danger\"><strong>Error:</strong> Please add a database server.</p>\n"; |
| 699 |
|
System::renderFooter(true); |
| 700 |
|
} |
| 701 |
|
|
| 702 |
|
$dbSetup['dbUser'] = Filter::filterInput(INPUT_POST, 'sql_user', FILTER_SANITIZE_STRING, ''); |
| 703 |
|
if (is_null($dbSetup['dbUser']) && !System::isSqlite($dbSetup['dbType'])) { |
|
@@ 703-706 (lines=4) @@
|
| 700 |
|
} |
| 701 |
|
|
| 702 |
|
$dbSetup['dbUser'] = Filter::filterInput(INPUT_POST, 'sql_user', FILTER_SANITIZE_STRING, ''); |
| 703 |
|
if (is_null($dbSetup['dbUser']) && !System::isSqlite($dbSetup['dbType'])) { |
| 704 |
|
echo "<p class=\"alert alert-danger\"><strong>Error:</strong> Please add a database username.</p>\n"; |
| 705 |
|
System::renderFooter(true); |
| 706 |
|
} |
| 707 |
|
|
| 708 |
|
$dbSetup['dbPassword'] = Filter::filterInput(INPUT_POST, 'sql_password', FILTER_UNSAFE_RAW, ''); |
| 709 |
|
if (is_null($dbSetup['dbPassword']) && !System::isSqlite($dbSetup['dbType'])) { |
|
@@ 715-718 (lines=4) @@
|
| 712 |
|
} |
| 713 |
|
|
| 714 |
|
$dbSetup['dbDatabaseName'] = Filter::filterInput(INPUT_POST, 'sql_db', FILTER_SANITIZE_STRING); |
| 715 |
|
if (is_null($dbSetup['dbDatabaseName']) && !System::isSqlite($dbSetup['dbType'])) { |
| 716 |
|
echo "<p class=\"alert alert-danger\"><strong>Error:</strong> Please add a database name.</p>\n"; |
| 717 |
|
System::renderFooter(true); |
| 718 |
|
} |
| 719 |
|
|
| 720 |
|
if (System::isSqlite($dbSetup['dbType'])) { |
| 721 |
|
$dbSetup['dbServer'] = Filter::filterInput( |