Upgrading

Upgrading from old versions
Upgrading from old versions of our engine are performed automatically by upgrading scripts. But we give steps of what is really happening under the automatical process:
1. Script gets 3 most important files from download.cmsdk.com:
- application/classes/controller/core/tunnel.php
- application/classes/updatecms.php
- .htaccess

2. Uploads these files onto client site by tunnel
3. Runs updatecms script on a client site

Next steps are happened on the client's site:
4. Script checks if it's able to write to root and application/folder
5. Makes backup of all important engine files
6. Regenerates passwords for all users in users table if it is a site with PROTECTED_KEY (actually, the process is more compicated)
7. Fixes some missing columns in tables
8. Gets latest build of engine from download.cmsdk.com in archive format (checks checksum to be sure that all files has been tranfered properly)
9. Tries to extract archive build into root folder, checks if important files are in the proper places

Completing of process:
10. Changes constants FRONTEND_LINKS to FRONTEND_ASSETS in all containers
11. There must be in head of container; script makes sure if it's there
12. Finishing process of regeneration users passwords (of default accounts)

13. Removes all temporary and upgrading files
14. Regenerates password in host table on backend if it was generated previously with PROTECTED_KEY (we had removed protected_key some time ago)