install/includes/stages/finish.php
changeset 1227 bdac73ed481e
parent 1081 745200a9cc2a
equal deleted inserted replaced
1226:de56132c008d 1227:bdac73ed481e
    12  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    12  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    13  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    13  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    14  */
    14  */
    15 
    15 
    16 if ( !defined('IN_ENANO_INSTALL') )
    16 if ( !defined('IN_ENANO_INSTALL') )
    17   die();
    17 	die();
    18 
    18 
    19 require ( ENANO_ROOT . '/install/includes/libenanoinstall.php' );
    19 require ( ENANO_ROOT . '/install/includes/libenanoinstall.php' );
    20 require ( ENANO_ROOT . '/includes/sql_parse.php' );
    20 require ( ENANO_ROOT . '/includes/sql_parse.php' );
    21 require ( ENANO_ROOT . '/includes/common.php' );
    21 require ( ENANO_ROOT . '/includes/common.php' );
    22 
    22 
    23 if ( !in_array($dbdriver, $supported_drivers) )
    23 if ( !in_array($dbdriver, $supported_drivers) )
    24 {
    24 {
    25   $ui->show_header();
    25 	$ui->show_header();
    26   echo '<h3>Installation error</h3>
    26 	echo '<h3>Installation error</h3>
    27          <p>ERROR: That database driver is not supported.</p>';
    27  				<p>ERROR: That database driver is not supported.</p>';
    28   return true;
    28 	return true;
    29 }
    29 }
    30 
    30 
    31 $ui->show_header();
    31 $ui->show_header();
    32 flush();
    32 flush();
    33 
    33 
    39 
    39 
    40 @set_time_limit(0);
    40 @set_time_limit(0);
    41 
    41 
    42 function stg_load_files()
    42 function stg_load_files()
    43 {
    43 {
    44   global $dbdriver;
    44 	global $dbdriver;
    45   if ( !@include( ENANO_ROOT . "/install/includes/payload.php" ) )
    45 	if ( !@include( ENANO_ROOT . "/install/includes/payload.php" ) )
    46     return false;
    46 		return false;
    47   
    47 	
    48   return true;
    48 	return true;
    49 }
    49 }
    50 
    50 
    51 start_install_table();
    51 start_install_table();
    52 
    52 
    53 run_installer_stage('load', $lang->get('install_stg_load_title'), 'stg_load_files', $lang->get('install_stg_load_body'), false);
    53 run_installer_stage('load', $lang->get('install_stg_load_title'), 'stg_load_files', $lang->get('install_stg_load_body'), false);
    59 
    59 
    60 ?>
    60 ?>
    61 <h3><?php echo $lang->get('finish_msg_success_title'); ?></h3>
    61 <h3><?php echo $lang->get('finish_msg_success_title'); ?></h3>
    62 <p><?php echo $lang->get('finish_msg_success_body', array('mainpage_link' => makeUrlNS('Article', 'Main_Page'))); ?></p>
    62 <p><?php echo $lang->get('finish_msg_success_body', array('mainpage_link' => makeUrlNS('Article', 'Main_Page'))); ?></p>
    63 <?php 
    63 <?php 
    64   echo $lang->get('finish_body');
    64 	echo $lang->get('finish_body');
    65   echo '<p>' . $lang->get('finish_link_mainpage', array('mainpage_link' => scriptPath . '/index.php')) . '</p>';
    65 	echo '<p>' . $lang->get('finish_link_mainpage', array('mainpage_link' => scriptPath . '/index.php')) . '</p>';
    66 ?>
    66 ?>
    67 <?php
    67 <?php
    68 
    68 
    69 $db->close();
    69 $db->close();
    70 
    70