> Update \n\n"; echo "Please choose the update method. For production systems select 'stable'. \nWARNING: The update from GIT is only for development systems and may break your current setup. Do not use the GIT version on servers that host any live websites!\nNote: On Multiserver systems, enable maintenance mode and update your master server first. Then update all slave servers, and disable maintenance mode when all servers are updated.\n\n"; $method = simple_query('Select update method', array('stable', 'nightly', 'git-develop', 'stable-helmo', 'testing-helmo'), 'stable-helmo'); if($method == 'stable') { $new_version = @file_get_contents('https://www.ispconfig.org/downloads/ispconfig3_version.txt') or die('Unable to retrieve version file.'); $new_version = trim($new_version); if(version_compare($new_version, ISPC_APP_VERSION, '<=') && !in_array('--force', $argv, true)) { echo "There are no updates available for ISPConfig ".ISPC_APP_VERSION."\n"; echo "If you are sure you want to update to stable anyway, please use --force parameter\n"; echo "DOWNGRADING MAY CAUSE ISSUES!\n"; exit(1); } } passthru('/usr/local/ispconfig/server/scripts/update_runner.sh ' . escapeshellarg($method)); exit;