diff -r 0122f538c242 -r be0e904eec17 install/upgrade.php --- a/install/upgrade.php Sat Jul 12 00:07:23 2008 -0400 +++ b/install/upgrade.php Sat Jul 12 00:07:53 2008 -0400 @@ -137,6 +137,10 @@ { $ui->set_visible_stage($stg_upgrade); } +else if ( isset($_GET['stage']) && @$_GET['stage'] == 'postpimp' ) +{ + $ui->set_visible_stage($stg_finish); +} else { $ui->set_visible_stage($stg_confirm); @@ -196,9 +200,58 @@ // Do the actual upgrade enano_perform_upgrade($target_branch); - $site_url = makeUrl(getConfig('main_page'), false, true); - echo '

All done! I\'ll actually be nice enough to give you a link back to your site this release :)

'; - echo '

It is important that you run a language string re-import and then clear your browser cache. Otherwise you may see bits of the interface that appear to not be localized. This process will be automatic and non-destructive in later versions.

'; + // Mark as upgrade-in-progress + setConfig('enano_version', 'upg-' . installer_enano_version()); + + ?> +

+ get('upgrade_msg_schema_complete_title'); ?> +

+

+ get('upgrade_msg_schema_complete_body'); ?> +

+
+ +

+ +

+
+ ' . $lang->get('upgrade_err_post_not_available') . '

'; + $ui->show_footer(); + $db->close(); + exit(); + } + + function stg_load_files() + { + if ( !@include( ENANO_ROOT . "/install/includes/payload.php" ) ) + return false; + + return true; + } + + echo '

' . $lang->get('upgrade_post_status_title') . '

'; + echo '

' . $lang->get('upgrade_post_status_body') . '

'; + + start_install_table(); + run_installer_stage('load', $lang->get('install_stg_load_title'), 'stg_load_files', $lang->get('install_stg_load_body'), false); + run_installer_stage('importlang', $lang->get('install_stg_importlang_title'), 'stg_lang_import', $lang->get('install_stg_importlang_body')); + run_installer_stage('flushcache', $lang->get('upgrade_stg_flushcache_title'), 'stg_flush_cache', $lang->get('upgrade_stg_flushcache_body')); + run_installer_stage('setversion', $lang->get('upgrade_stg_setversion_title'), 'stg_set_version', $lang->get('upgrade_stg_setversion_body')); + close_install_table(); + + $link_home = makeUrl(getConfig('main_page'), false, true); + echo '

' . $lang->get('upgrade_post_status_finish_title') . '

'; + echo '

' . $lang->get('upgrade_post_status_finish_body', array('mainpage_link' => $link_home)) . '

'; } else {