install/upgrade.php
changeset 741 a216e412c439
parent 685 17ebe24cdf85
child 790 e210589fb79d
equal deleted inserted replaced
740:098e744df928 741:a216e412c439
    57 
    57 
    58 // Version check
    58 // Version check
    59 if ( enano_version() == installer_enano_version() )
    59 if ( enano_version() == installer_enano_version() )
    60 {
    60 {
    61   $ui->show_header();
    61   $ui->show_header();
    62   $link_home = makeUrl(getConfig('main_page'), false, true);
    62   $link_home = makeUrl(get_main_page(), false, true);
    63   echo '<h3>' . $lang->get('upgrade_err_current_title') . '</h3>' .
    63   echo '<h3>' . $lang->get('upgrade_err_current_title') . '</h3>' .
    64        '<p>' . $lang->get('upgrade_err_current_body', array('mainpage_link' => $link_home)) . '</p>' .
    64        '<p>' . $lang->get('upgrade_err_current_body', array('mainpage_link' => $link_home)) . '</p>' .
    65        '<p>' . $lang->get('upgrade_err_current_body_para2', array('mainpage_link' => $link_home)) . '</p>';
    65        '<p>' . $lang->get('upgrade_err_current_body_para2', array('mainpage_link' => $link_home)) . '</p>';
    66   $ui->show_footer();
    66   $ui->show_footer();
    67   exit();
    67   exit();
   253   close_install_table();
   253   close_install_table();
   254   
   254   
   255   // demote privileges
   255   // demote privileges
   256   $session->logout(USER_LEVEL_ADMIN);
   256   $session->logout(USER_LEVEL_ADMIN);
   257   
   257   
   258   $link_home = makeUrl(getConfig('main_page'), false, true);
   258   $link_home = makeUrl(get_main_page(), false, true);
   259   echo '<h3>' . $lang->get('upgrade_post_status_finish_title') . '</h3>';
   259   echo '<h3>' . $lang->get('upgrade_post_status_finish_title') . '</h3>';
   260   echo '<p>' . $lang->get('upgrade_post_status_finish_body', array('mainpage_link' => $link_home)) . '</p>';
   260   echo '<p>' . $lang->get('upgrade_post_status_finish_body', array('mainpage_link' => $link_home)) . '</p>';
   261 }
   261 }
   262 else
   262 else
   263 {
   263 {