Changed version to 3.0.5.4dev
| | |
| | | } |
| | | |
| | | /* |
| | | * Compare ISPConfig version number. |
| | | * return values: |
| | | * -1 $current version is newer then $new version (downgrade) |
| | | * 0 $current version = $new version |
| | | * 1 $current version is older then new version (update) |
| | | |
| | | */ |
| | | function compare_ispconfig_version($current, $new) { |
| | | if( $current == $new) { |
| | | return 0; |
| | | } |
| | | |
| | | $p = explode('.', $current); |
| | | $tmp = ''; |
| | | $tmp .= str_pad(intval($p[0]), 3, '0', STR_PAD_LEFT); |
| | | $tmp .= (isset($p[1]))?str_pad(intval($p[1]), 3, '0', STR_PAD_LEFT):'000'; |
| | | $tmp .= (isset($p[2]))?str_pad(intval($p[2]), 3, '0', STR_PAD_LEFT):'000'; |
| | | $tmp .= (isset($p[3]))?str_pad(intval($p[3]), 3, '0', STR_PAD_LEFT):'000'; |
| | | $current = $tmp; |
| | | |
| | | $p = explode('.', $new); |
| | | $tmp = ''; |
| | | $tmp .= str_pad(intval($p[0]), 3, '0', STR_PAD_LEFT); |
| | | $tmp .= (isset($p[1]))?str_pad(intval($p[1]), 3, '0', STR_PAD_LEFT):'000'; |
| | | $tmp .= (isset($p[2]))?str_pad(intval($p[2]), 3, '0', STR_PAD_LEFT):'000'; |
| | | $tmp .= (isset($p[3]))?str_pad(intval($p[3]), 3, '0', STR_PAD_LEFT):'000'; |
| | | $new = $tmp; |
| | | |
| | | if($new > $current) { |
| | | return 1; |
| | | } else { |
| | | return -1; |
| | | } |
| | | |
| | | } |
| | | |
| | | /* |
| | | * Get the port number of the ISPConfig controlpanel vhost |
| | | */ |
| | | |
| | |
| | | $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.')); |
| | | |
| | |
| | | -- Dumping data for table `sys_config` |
| | | -- |
| | | |
| | | INSERT INTO sys_config VALUES ('db','db_version','3.0.5.3'); |
| | | INSERT INTO sys_config VALUES ('db','db_version','3.0.5.4dev'); |
| | | INSERT INTO sys_config VALUES ('interface','session_timeout','0'); |
| | | |
| | | SET FOREIGN_KEY_CHECKS = 1; |
| | |
| | | |
| | | //** Application |
| | | define('ISPC_APP_TITLE', 'ISPConfig'); |
| | | define('ISPC_APP_VERSION', '3.0.5.3'); |
| | | define('ISPC_APP_VERSION', '3.0.5.4dev'); |
| | | define('DEVSYSTEM', 0); |
| | | |
| | | |
| | |
| | | |
| | | //** Application |
| | | define('ISPC_APP_TITLE', 'ISPConfig'); |
| | | define('ISPC_APP_VERSION', '3.0.5.3'); |
| | | define('ISPC_APP_VERSION', '3.0.5.4dev'); |
| | | define('DEVSYSTEM', 0); |
| | | |
| | | |
| | |
| | | if($method == 'stable') { |
| | | $new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt') or die('Unable to retrieve version file.'); |
| | | $new_version = trim($new_version); |
| | | if($new_version != ISPC_APP_VERSION) { |
| | | if(version_compare($new_version, ISPC_APP_VERSION, '>') { |
| | | passthru('/usr/local/ispconfig/server/scripts/update_from_tgz.sh'); |
| | | exit; |
| | | } else { |