";
}
} else {
$customTableSchema = '';
logThis('no schema script found - all schema preflight skipped');
}
logThis('schema preflight done.');
//// END SCHEMA SCRIPT HANDLING
///////////////////////////////////////////////////////////////////////////////
//php version suggestion
$php_suggested_ver = '';
if (check_php_version() === 0) {
$php_suggested_ver=$mod_strings['LBL_CURRENT_PHP_VERSION'].phpversion().". ".$mod_strings['LBL_RECOMMENDED_PHP_VERSION_1'].constant('SUITECRM_PHP_REC_VERSION').$mod_strings['LBL_RECOMMENDED_PHP_VERSION_2'];
}
if (empty($mod_strings['LBL_UPGRADE_TAKES_TIME_HAVE_PATIENCE'])) {
$mod_strings['LBL_UPGRADE_TAKES_TIME_HAVE_PATIENCE'] = 'Upgrade may take some time';
}
$style_for_out = empty($out)?'style=\'display:none\'':'';
$style_for_dif = empty($diffs)?'style=\'display:none\'':'';
$style_for_schemaChange = empty($schema)?'style=\'display:none\'':'';
$final =<<
{$out}
{$mod_strings['LBL_UW_MANUAL_MERGE']}
{$diffs}
{$mod_strings['LBL_UW_SCHEMA_CHANGE']}
{$schema}
{$mod_strings['LBL_UW_DB_METHOD']}
{$mod_strings['LBL_UW_SQL_RUN']}
eoq;
$form5 =<<
eoq5;
$uwMain = $final.$form5;
//set the upgrade progress status.
set_upgrade_progress('preflight', 'done');
} else {
$stop = true;
if (empty($mod_strings['LBL_INCOMPATIBLE_PHP_VERSION'])) {
$mod_strings['LBL_INCOMPATIBLE_PHP_VERSION'] = 'Php version 5.2.2 or above is required.';
}
$php_verison_warning =<<
{$mod_strings['LBL_INCOMPATIBLE_PHP_VERSION']}
eoq;
$php_warnings = $php_verison_warning;
}
//Add the backward compatibility check as well.
//Php Backward compatibility checks
if (ini_get("zend.ze1_compatibility_mode")) {
$stop = true;
if (empty($mod_strings['LBL_BACKWARD_COMPATIBILITY_ON'])) {
$mod_strings['LBL_BACKWARD_COMPATIBILITY_ON'] = 'Php Backward Compatibility mode is turned on. Set zend.ze1_compatibility_mode to Off for proceeding further';
}
$php_compatibility_warning =<<