Modify upgrading system

Now upgrading system does not require to modify the PHP file except to
add the new version numbers.