Strict response check

This commit is contained in:
Tobias Reich 2016-03-24 21:42:09 +01:00
parent 7a54476ff1
commit 6a28693add

View File

@ -36,7 +36,7 @@ settings.createConfig = function() {
if (data!==true) { if (data!==true) {
// Connection failed // Connection failed
if (data.indexOf('Warning: Connection failed!')!==-1) { if (data==='Warning: Connection failed!') {
basicModal.show({ basicModal.show({
body: '<p>Unable to connect to host database because access was denied. Double-check your host, username and password and ensure that access from your current location is permitted.</p>', body: '<p>Unable to connect to host database because access was denied. Double-check your host, username and password and ensure that access from your current location is permitted.</p>',
@ -53,7 +53,7 @@ settings.createConfig = function() {
} }
// Creation failed // Creation failed
if (data.indexOf('Warning: Creation failed!')!==-1) { if (data==='Warning: Creation failed!') {
basicModal.show({ basicModal.show({
body: '<p>Unable to create the database. Double-check your host, username and password and ensure that the specified user has the rights to modify and add content to the database.</p>', body: '<p>Unable to create the database. Double-check your host, username and password and ensure that the specified user has the rights to modify and add content to the database.</p>',
@ -70,7 +70,7 @@ settings.createConfig = function() {
} }
// Could not create file // Could not create file
if (data.indexOf('Warning: Could not create file!')!==-1) { if (data==='Warning: Could not create file!') {
basicModal.show({ basicModal.show({
body: "<p>Unable to save this configuration. Permission denied in <b>'data/'</b>. Please set the read, write and execute rights for others in <b>'data/'</b> and <b>'uploads/'</b>. Take a look at the readme for more information.</p>", body: "<p>Unable to save this configuration. Permission denied in <b>'data/'</b>. Please set the read, write and execute rights for others in <b>'data/'</b> and <b>'uploads/'</b>. Take a look at the readme for more information.</p>",