| | |
| | | $conf['nginx']['installed'] = false; |
| | | } |
| | | |
| | | //* Do incremental DB updates only on installed ISPConfig versions > 3.0.3 |
| | | if(compare_ispconfig_version('3.0.3', ISPC_APP_VERSION) >= 0) { |
| | | //* Do incremental DB updates only on installed ISPConfig versions >= 3.0.3 |
| | | if(version_compare('3.0.3', ISPC_APP_VERSION, '<=')) { |
| | | |
| | | swriteln($inst->lng('Starting incremental database update.')); |
| | | |
| | |
| | | } |
| | | |
| | | //* Exec onBeforeSQL function |
| | | if(isset($php_patch) && is_object($php_patch)) { |
| | | if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onBeforeSQL')) { |
| | | $php_patch->onBeforeSQL(); |
| | | swriteln($inst->lng('Executing PHP patch file').': '.$php_patch_filename); |
| | | } |
| | |
| | | swriteln($inst->lng('Loading SQL patch file').': '.$sql_patch_filename); |
| | | |
| | | //* Exec onAfterSQL function |
| | | if(isset($php_patch) && is_object($php_patch)) { |
| | | if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onAfterSQL')) { |
| | | $php_patch->onAfterSQL(); |
| | | } |
| | | |