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>',
modal.show('Connection Failed','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.',buttons,null,false);
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>',
modal.show('Creation Failed','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.',buttons,null,false);
returnfalse;
}
// Could not create file
if(data.indexOf('Warning: Could not create file!')!==-1){
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>",
buttons:{
action:{
title:'Retry',
fn:settings.createConfig
}
}
});
// Could not create file
if(data.indexOf('Warning: Could not create file!')!==-1){
modal.show('Saving Failed',"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 the readme for more information.",buttons,null,false);
returnfalse;
}
// Something went wrong
basicModal.show({
body:'<p>Something unexpected happened. Please try again and check your installation and server. Take a look at the readme for more information.</p>',
modal.show('Configuration Failed','Something unexpected happened. Please try again and check your installation and server. Take a look the readme for more information.',buttons,null,false);
returnfalse;
},400);
returnfalse;
}else{
}else{
// Configuration successful
window.location.reload();
// Configuration successful
window.location.reload();
}
}
});
});
}],
['',function(){}]
];
}
modal.show('Configuration',"Enter your database connection details below: <input id='dbHost' class='text less' type='text' placeholder='Database Host (optional)' value=''><input id='dbUser' class='text less' type='text' placeholder='Database Username' value=''><input id='dbPassword' class='text more' type='password' placeholder='Database Password' value=''><br>Lychee will create its own database. If required, you can enter the name of an existing database instead:<input id='dbName' class='text less' type='text' placeholder='Database Name (optional)' value=''><input id='dbTablePrefix' class='text more' type='text' placeholder='Table prefix (optional)' value=''>",buttons,-235,false);
msg="<p>Enter your database connection details below:";