|
@@ 593-596 (lines=4) @@
|
| 590 |
|
} |
| 591 |
|
|
| 592 |
|
$dbSetup['dbServer'] = PMF_Filter::filterInput(INPUT_POST, 'sql_server', FILTER_SANITIZE_STRING); |
| 593 |
|
if (is_null($dbSetup['dbServer']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
| 594 |
|
echo "<p class=\"alert alert-danger\"><strong>Error:</strong> Please add a database server.</p>\n"; |
| 595 |
|
PMF_System::renderFooter(true); |
| 596 |
|
} |
| 597 |
|
|
| 598 |
|
$dbSetup['dbPort'] = PMF_Filter::filterInput(INPUT_POST, 'sql_port', FILTER_VALIDATE_INT); |
| 599 |
|
if (is_null($dbSetup['dbPort']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
@@ 599-602 (lines=4) @@
|
| 596 |
|
} |
| 597 |
|
|
| 598 |
|
$dbSetup['dbPort'] = PMF_Filter::filterInput(INPUT_POST, 'sql_port', FILTER_VALIDATE_INT); |
| 599 |
|
if (is_null($dbSetup['dbPort']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
| 600 |
|
echo "<p class=\"alert alert-error\"><strong>Error:</strong> Please add a valid database port.</p>\n"; |
| 601 |
|
PMF_System::renderFooter(true); |
| 602 |
|
} |
| 603 |
|
|
| 604 |
|
$dbSetup['dbUser'] = PMF_Filter::filterInput(INPUT_POST, 'sql_user', FILTER_SANITIZE_STRING); |
| 605 |
|
if (is_null($dbSetup['dbUser']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
@@ 605-608 (lines=4) @@
|
| 602 |
|
} |
| 603 |
|
|
| 604 |
|
$dbSetup['dbUser'] = PMF_Filter::filterInput(INPUT_POST, 'sql_user', FILTER_SANITIZE_STRING); |
| 605 |
|
if (is_null($dbSetup['dbUser']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
| 606 |
|
echo "<p class=\"alert alert-danger\"><strong>Error:</strong> Please add a database username.</p>\n"; |
| 607 |
|
PMF_System::renderFooter(true); |
| 608 |
|
} |
| 609 |
|
|
| 610 |
|
$dbSetup['dbPassword'] = PMF_Filter::filterInput(INPUT_POST, 'sql_passwort', FILTER_UNSAFE_RAW); |
| 611 |
|
if (is_null($dbSetup['dbPassword']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
@@ 617-620 (lines=4) @@
|
| 614 |
|
} |
| 615 |
|
|
| 616 |
|
$dbSetup['dbDatabaseName'] = PMF_Filter::filterInput(INPUT_POST, 'sql_db', FILTER_SANITIZE_STRING); |
| 617 |
|
if (is_null($dbSetup['dbDatabaseName']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
| 618 |
|
echo "<p class=\"alert alert-danger\"><strong>Error:</strong> Please add a database name.</p>\n"; |
| 619 |
|
PMF_System::renderFooter(true); |
| 620 |
|
} |
| 621 |
|
|
| 622 |
|
if (PMF_System::isSqlite($dbSetup['dbType'])) { |
| 623 |
|
$dbSetup['dbServer'] = PMF_Filter::filterInput(INPUT_POST, 'sql_sqlitefile', FILTER_SANITIZE_STRING); |