Upgrade from LEPTON 6.0.0 to 7.0.0
Upgrading stays easy!
You can upgrade from LEPTON 6.0.0 to LEPTON 7.0.0.
Usage: just download the LEPTON 7.0.0 stable package, unzip the file to your desktop and load the content of "upload" directory to your webspace via ftp. Call your domain in your browser, add ' /install' (something like http://www.yourdomain.tld/install/) , press enter and follow devices.
You should get a message that you succeeded.
That's it.
Keep in mind!
If you update to LEPTON 7.x using templates and modules that are NOT included in the package you have to
- modify every header in your files to new standard, see code below
- check that used methods and standard functions are not replaced and work as they should
- check your captcha and ASP settings (admintools) to work as expected
- to see if everything is ok you can comment in the lines 18 and 19 in /framework/class.secure.php and play around with pages in the front_ and backend.
File Header
You have to include following code in every single php file to protect the whole cms and probably your custom addons.
- // include secure.php to protect this file and the whole CMS!
- if(!defined("SEC_FILE")){define("SEC_FILE",'/framework/secure.php' );}
- if (defined('LEPTON_PATH')) {
- include LEPTON_PATH.SEC_FILE;
- } else {
- $oneback = "../";
- $root = $oneback;
- $level = 1;
- while (($level < 10) && (!file_exists($root.SEC_FILE))) {
- $root .= $oneback;
- $level += 1;
- }
- if (file_exists($root.SEC_FILE)) {
- include $root.SEC_FILE;
- } else {
- trigger_error(sprintf("[ <b>%s</b> ] Can't include secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
- }
- }
- // end include secure.php
last edit: 18. May 2023 CEST 13:25:26
If you run into troubles please use the LEPTON forum