diff -r 0f1b353570a7 -r f0149a27df5f install.php
--- a/install.php Tue Nov 06 11:10:18 2007 -0500
+++ b/install.php Tue Nov 06 13:35:40 2007 -0500
@@ -27,6 +27,9 @@
define('ENANO_VERSION', '1.1.1');
// In beta versions, define ENANO_BETA_VERSION here
+// This is required to make installation work right
+define("ENANO_ALLOW_LOAD_NOLANG", 1);
+
if(!defined('scriptPath')) {
$sp = dirname($_SERVER['REQUEST_URI']);
if($sp == '/' || $sp == '\\') $sp = '';
@@ -119,20 +122,22 @@
function start_install_table()
{
echo '
' . "\n";
+ ob_start();
}
function close_install_table()
{
echo '
' . "\n\n";
+ ob_end_flush();
}
function echo_stage_success($stage_id, $stage_name)
{
global $neutral_color;
$neutral_color = ( $neutral_color == 'A' ) ? 'C' : 'A';
- ob_start();
echo '' . htmlspecialchars($stage_name) . ' | |
' . "\n";
- ob_end_flush();
+ ob_flush();
+ flush();
}
function echo_stage_failure($stage_id, $stage_name, $failure_explanation, $resume_stack)
@@ -140,9 +145,9 @@
global $neutral_color;
$neutral_color = ( $neutral_color == 'A' ) ? 'C' : 'A';
- ob_start();
echo '' . htmlspecialchars($stage_name) . ' | |
' . "\n";
- ob_end_flush();
+ ob_flush();
+ flush();
close_install_table();
$post_data = '';
$mysql_error = mysql_error();
@@ -574,6 +579,19 @@
return false;
}
+function stg_import_language()
+{
+ global $db, $session, $paths, $template, $plugins; // Common objects
+
+ $lang_file = ENANO_ROOT . "/language/english/enano.json";
+ install_language("eng", "English", "English", $lang_file);
+
+ $lang = new Language('eng');
+ $lang->import($lang_file);
+
+ return true;
+}
+
function stg_init_logs()
{
global $db, $session, $paths, $template, $plugins; // Common objects
@@ -1572,6 +1590,8 @@
$session->start();
$paths->init();
+ run_installer_stage('importlang', 'Import default language', 'stg_import_language', 'Enano couldn\'t import the English language file.');
+
run_installer_stage('initlogs', 'Initialize logs', 'stg_init_logs', 'The session manager denied the request to flush logs for the main page.
While under most circumstances you can still finish the installation, you should be aware that some servers cannot
properly set cookies due to limitations with PHP. These limitations are exposed primarily when this issue is encountered during installation. If you choose