install/includes/stages/install.php
changeset 391 85f91037cd4f
parent 352 9d7225c0db6d
child 526 b2fb50d572c7
equal deleted inserted replaced
390:9bcc185dc151 391:85f91037cd4f
    38   // FIXME: l10n
    38   // FIXME: l10n
    39   ?>
    39   ?>
    40   <form action="install.php?stage=database" method="post" name="database_info">
    40   <form action="install.php?stage=database" method="post" name="database_info">
    41     <input type="hidden" name="language" value="<?php echo $lang_id; ?>" />
    41     <input type="hidden" name="language" value="<?php echo $lang_id; ?>" />
    42     <input type="hidden" name="driver" value="<?php echo $dbdriver; ?>" />
    42     <input type="hidden" name="driver" value="<?php echo $dbdriver; ?>" />
    43     <h3>Database connection failed</h3>
    43     <h3><?php echo $lang->get('database_msg_post_fail_title'); ?></h3>
    44     <p>The installer couldn't connect to the database because something went wrong while the connection attempt was being made. Please press your browser's back button and correct your database information.</p>
    44     <p><?php echo $lang->get('database_msg_post_fail_body'); ?></p>
    45     <p>Error description:
    45     <p><?php echo $lang->get('database_msg_post_fail_desc'); ?>
    46       <?php
    46       <?php
    47       echo $db->sql_error();
    47       echo $db->sql_error();
    48       ?>
    48       ?>
    49     </p>
    49     </p>
    50     <p>
    50     <p>
    59 
    59 
    60 $ui->show_header();
    60 $ui->show_header();
    61 flush();
    61 flush();
    62 
    62 
    63 ?>
    63 ?>
    64 <h3>Installing Enano</h3>
    64 <h3><?php echo $lang->get('install_title'); ?></h3>
    65 <p>Please wait while Enano creates its database and initial content on your server.</p>
    65 <p><?php echo $lang->get('install_body'); ?></p>
    66 
    66 
    67 <h3>Installation progress</h3>
    67 <h3><?php echo $lang->get('install_heading_progress'); ?></h3>
    68 
    68 
    69 <?php
    69 <?php
    70 
    70 
    71 @set_time_limit(0);
    71 @set_time_limit(0);
    72 
    72 
    80 }
    80 }
    81 
    81 
    82 // FIXME: l10n
    82 // FIXME: l10n
    83 start_install_table();
    83 start_install_table();
    84 
    84 
    85 run_installer_stage('load', 'Load installer files', 'stg_load_files', 'One of the files needed for installation couldn\'t be loaded. Please check your Enano directory.', false);
    85 run_installer_stage('load', $lang->get('install_stg_load_title'), 'stg_load_files', $lang->get('install_stg_load_body'), false);
    86 run_installer_stage('setpass', 'Retrieve administrator password', 'stg_password_decode', 'The administrator password couldn\'t be decrypted. This really shouldn\'t happen.');
    86 run_installer_stage('setpass', $lang->get('install_stg_setpass_title'), 'stg_password_decode', $lang->get('install_stg_setpass_body'));
    87 run_installer_stage('genaes', 'Generate private key', 'stg_make_private_key', 'Couldn\'t generate a private key for the site. This really shouldn\'t happen.');
    87 run_installer_stage('genaes', $lang->get('install_stg_genaes_title'), 'stg_make_private_key', $lang->get('install_stg_genaes_body'));
    88 run_installer_stage('sqlparse', 'Prepare database schema', 'stg_load_schema', 'Couldn\'t load or parse the schema file. This really shouldn\'t happen.');
    88 run_installer_stage('sqlparse', $lang->get('install_stg_sqlparse_title'), 'stg_load_schema', $lang->get('install_stg_sqlparse_body'));
    89 run_installer_stage('payload', 'Install database', 'stg_deliver_payload', 'There was a problem with an SQL query.');
    89 run_installer_stage('payload', $lang->get('install_stg_payload_title'), 'stg_deliver_payload', $lang->get('install_stg_payload_body'));
    90 run_installer_stage('writeconfig', $lang->get('install_stg_writeconfig_title'), 'stg_write_config', $lang->get('install_stg_writeconfig_body'));
    90 run_installer_stage('writeconfig', $lang->get('install_stg_writeconfig_title'), 'stg_write_config', $lang->get('install_stg_writeconfig_body'));
    91 
    91 
    92 // Now that the config is written, shutdown our primitive API and startup the full Enano API
    92 // Now that the config is written, shutdown our primitive API and startup the full Enano API
    93 $db->close();
    93 $db->close();
    94 
    94