@@ 589-592 (lines=4) @@ | ||
586 | } |
|
587 | ||
588 | $dbSetup['dbServer'] = PMF_Filter::filterInput(INPUT_POST, 'sql_server', FILTER_SANITIZE_STRING); |
|
589 | if (is_null($dbSetup['dbServer']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
590 | echo "<p class=\"alert alert-error\"><strong>Error:</strong> Please add a database server.</p>\n"; |
|
591 | PMF_System::renderFooter(true); |
|
592 | } |
|
593 | ||
594 | $dbSetup['dbUser'] = PMF_Filter::filterInput(INPUT_POST, 'sql_user', FILTER_SANITIZE_STRING); |
|
595 | if (is_null($dbSetup['dbUser']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
@@ 595-598 (lines=4) @@ | ||
592 | } |
|
593 | ||
594 | $dbSetup['dbUser'] = PMF_Filter::filterInput(INPUT_POST, 'sql_user', FILTER_SANITIZE_STRING); |
|
595 | if (is_null($dbSetup['dbUser']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
596 | echo "<p class=\"alert alert-error\"><strong>Error:</strong> Please add a database username.</p>\n"; |
|
597 | PMF_System::renderFooter(true); |
|
598 | } |
|
599 | ||
600 | $dbSetup['dbPassword'] = PMF_Filter::filterInput(INPUT_POST, 'sql_passwort', FILTER_UNSAFE_RAW); |
|
601 | if (is_null($dbSetup['dbPassword']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
@@ 607-610 (lines=4) @@ | ||
604 | } |
|
605 | ||
606 | $dbSetup['dbDatabaseName'] = PMF_Filter::filterInput(INPUT_POST, 'sql_db', FILTER_SANITIZE_STRING); |
|
607 | if (is_null($dbSetup['dbDatabaseName']) && ! PMF_System::isSqlite($dbSetup['dbType'])) { |
|
608 | echo "<p class=\"alert alert-error\"><strong>Error:</strong> Please add a database name.</p>\n"; |
|
609 | PMF_System::renderFooter(true); |
|
610 | } |
|
611 | ||
612 | if (PMF_System::isSqlite($dbSetup['dbType'])) { |
|
613 | $dbSetup['dbServer'] = PMF_Filter::filterInput(INPUT_POST, 'sql_sqlitefile', FILTER_SANITIZE_STRING); |