feel free to keep it strictly simple...

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

  1. modify every header in your files to new standard, see code below
  2. check that used methods and standard functions are not replaced and work as they should
  3. check your captcha and ASP settings (admintools) to work as expected
  4. 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.

  1. // include secure.php to protect this file and the whole CMS!
  2. if(!defined("SEC_FILE")){define("SEC_FILE",'/framework/secure.php' );}
  3. if (defined('LEPTON_PATH')) {
  4. include LEPTON_PATH.SEC_FILE;
  5. } else {
  6. $oneback = "../";
  7. $root = $oneback;
  8. $level = 1;
  9. while (($level < 10) && (!file_exists($root.SEC_FILE))) {
  10. $root .= $oneback;
  11. $level += 1;
  12. }
  13. if (file_exists($root.SEC_FILE)) {
  14. include $root.SEC_FILE;
  15. } else {
  16. trigger_error(sprintf("[ <b>%s</b> ] Can't include secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
  17. }
  18. }
  19. // end include secure.php
last edit: 18. May 2023 CEST 13:25:26

If you run into troubles please use the LEPTON forum