aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-06-13 20:00:57 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-06-13 20:00:57 +0000
commit8bdac6683eb496a246b33e5310129eb77a64d621 (patch)
treed580d89e335320660c158512dc6993fa679a1bd9 /phpBB
parent01ec4113a2d9c651c3db7e2d863631f00113173e (diff)
downloadforums-8bdac6683eb496a246b33e5310129eb77a64d621.tar
forums-8bdac6683eb496a246b33e5310129eb77a64d621.tar.gz
forums-8bdac6683eb496a246b33e5310129eb77a64d621.tar.bz2
forums-8bdac6683eb496a246b33e5310129eb77a64d621.tar.xz
forums-8bdac6683eb496a246b33e5310129eb77a64d621.zip
You won't believe how close this computer came to having a free flying lesson ...
git-svn-id: file:///svn/phpbb/trunk@4122 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/install/install.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/phpBB/install/install.php b/phpBB/install/install.php
index 974c8acac4..42fac0eae3 100644
--- a/phpBB/install/install.php
+++ b/phpBB/install/install.php
@@ -22,7 +22,7 @@
define('IN_PHPBB', true);
// Error reporting level and runtime escaping
-error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
+//error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
// Include essential scripts
@@ -917,8 +917,8 @@ if ($stage == 2)
$config_data .= "define('DEBUG', true);\n"; // Comment out when final
$config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!
- $stage = 3;
-/*
+// $stage = 3;
+
// Attempt to write out the config directly ...
if (is_writeable($phpbb_root_path . 'config.'.$phpEx))
{
@@ -939,7 +939,7 @@ if ($stage == 2)
@fclose($fp);
}
-*/
+
if ($stage == 2)
{
$ignore_ftp = false;
@@ -1167,6 +1167,7 @@ if ($stage == 3)
{
$ignore_tables[] = preg_replace('#^CREATE TABLE ([a-z_]+?) .*$#is', '\1', $sql);
$error = $db->sql_error();
+ die($error['message']);
}
}
@@ -1183,15 +1184,15 @@ if ($stage == 3)
foreach ($sql_query as $sql)
{
$sql = trim(str_replace('|', ';', $sql));
- if (preg_match('#' . $ignore_tables . '#i', $sql))
+ if ($ignore_tables != '' && preg_match('#' . $ignore_tables . '#i', $sql))
{
continue;
- echo "\nMATCH >> " . $sql;
}
if (!$db->sql_query($sql))
{
$error = $db->sql_error();
+ die($error['message']);
}
}
}
@@ -1264,10 +1265,9 @@ if ($stage == 3)
foreach ($sql_ary as $sql)
{
$sql = trim(str_replace('|', ';', $sql));
- if (preg_match('#' . $ignore_tables . '#i', $sql))
+ if ($ignore_tables != '' && preg_match('#' . $ignore_tables . '#i', $sql))
{
continue;
- echo "\nMATCH >> " . $sql;
}
if (!$db->sql_query($sql))
@@ -1298,7 +1298,6 @@ if ($stage == 4)
}
$db->sql_freeresult($result);
-
$user->start();
$auth->login($admin_name, $admin_pass1);