addTemplateToInstallContent('install_welcome');
break;
- case '1': // Server path, base URL
+ case 1: // Server path, base URL
// Load template
addTemplateToInstallContent('install_page1');
break;
- case '2': // MySQL data (alone!)
+ case 2: // MySQL data (alone!)
if (empty($mysql['dbase'])) $mysql['dbase'] = 'your_database';
if (empty($mysql['login'])) $mysql['login'] = 'your_login';
if (empty($mysql['host'])) $mysql['host'] = 'localhost';
addTemplateToInstallContent('install_page2', $content);
break;
- case '3':
+ case 3:
// Set more values
$content['spath'] = postRequestElement('spath');
$content['burl'] = postRequestElement('burl');
addTemplateToInstallContent('install_page3', $content);
break;
- case '5': // Misc settings
+ case 5: // Misc settings
// General settings
$content['spath'] = postRequestElement('spath');
$content['burl'] = postRequestElement('burl');
addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_MISSING_DUMPS'));
} // END - if
- if (getTotalFatalErrors() == 0) {
+ if (getTotalFatalErrors() == '0') {
// Set type and prefix from POST data
setConfigEntry('_TABLE_TYPE' , postRequestElement('mysql', 'type'));
setConfigEntry('_MYSQL_PREFIX', postRequestElement('mysql', 'prefix'));
//* DEBUG: */ die('<pre>'.print_r(getSqls(), true).'</pre>');
// Are some SQLs found?
- if (countSqls() == 0) {
+ if (countSqls() == '0') {
// Abort here
addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_SQL_IMPORT_FAILED'));
return;