install/upgrade.php
changeset 802 59cce2313f9d
parent 801 eb8b23f11744
child 832 7152ca0a0ce9
equal deleted inserted replaced
801:eb8b23f11744 802:59cce2313f9d
    35 // when the installer's common is loaded, it runs chdir() to the ENANO_ROOT, thus making this Enano's common.php
    35 // when the installer's common is loaded, it runs chdir() to the ENANO_ROOT, thus making this Enano's common.php
    36 // PHP5 notice removed in 1.1.4 since the existing common is loaded and that loads lang and json2, which will
    36 // PHP5 notice removed in 1.1.4 since the existing common is loaded and that loads lang and json2, which will
    37 // give syntax errors on PHP4. So much for that. The installer will warn about this anyway.
    37 // give syntax errors on PHP4. So much for that. The installer will warn about this anyway.
    38 require_once('includes/common.php');
    38 require_once('includes/common.php');
    39 @ini_set('display_errors', 'on');
    39 @ini_set('display_errors', 'on');
       
    40 
       
    41 define('ENANO_UPGRADE_USE_AES_PASSWORDS', in_array(enano_version(), array('1.0RC1', '1.0RC2', '1.0RC3', '1.0', '1.0.1', '1.0.2', '1.0.3', '1.0.4', '1.0.5', '1.1.1', '1.1.2', '1.1.3', '1.1.4', '1.1.5')));
    40 
    42 
    41 $ui = new Enano_Installer_UI('Enano upgrader', false);
    43 $ui = new Enano_Installer_UI('Enano upgrader', false);
    42 
    44 
    43 $stg_welcome = $ui->add_stage('Welcome', true);
    45 $stg_welcome = $ui->add_stage('Welcome', true);
    44 $stg_confirm = $ui->add_stage('Confirmation', true);
    46 $stg_confirm = $ui->add_stage('Confirmation', true);