mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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
This commit is contained in:
parent
01ec4113a2
commit
8bdac6683e
1 changed files with 8 additions and 9 deletions
|
@ -22,7 +22,7 @@
|
||||||
define('IN_PHPBB', true);
|
define('IN_PHPBB', true);
|
||||||
|
|
||||||
// Error reporting level and runtime escaping
|
// 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
|
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
|
||||||
|
|
||||||
// Include essential scripts
|
// Include essential scripts
|
||||||
|
@ -917,8 +917,8 @@ if ($stage == 2)
|
||||||
$config_data .= "define('DEBUG', true);\n"; // Comment out when final
|
$config_data .= "define('DEBUG', true);\n"; // Comment out when final
|
||||||
$config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!
|
$config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!
|
||||||
|
|
||||||
$stage = 3;
|
// $stage = 3;
|
||||||
/*
|
|
||||||
// Attempt to write out the config directly ...
|
// Attempt to write out the config directly ...
|
||||||
if (is_writeable($phpbb_root_path . 'config.'.$phpEx))
|
if (is_writeable($phpbb_root_path . 'config.'.$phpEx))
|
||||||
{
|
{
|
||||||
|
@ -939,7 +939,7 @@ if ($stage == 2)
|
||||||
|
|
||||||
@fclose($fp);
|
@fclose($fp);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
if ($stage == 2)
|
if ($stage == 2)
|
||||||
{
|
{
|
||||||
$ignore_ftp = false;
|
$ignore_ftp = false;
|
||||||
|
@ -1167,6 +1167,7 @@ if ($stage == 3)
|
||||||
{
|
{
|
||||||
$ignore_tables[] = preg_replace('#^CREATE TABLE ([a-z_]+?) .*$#is', '\1', $sql);
|
$ignore_tables[] = preg_replace('#^CREATE TABLE ([a-z_]+?) .*$#is', '\1', $sql);
|
||||||
$error = $db->sql_error();
|
$error = $db->sql_error();
|
||||||
|
die($error['message']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1183,15 +1184,15 @@ if ($stage == 3)
|
||||||
foreach ($sql_query as $sql)
|
foreach ($sql_query as $sql)
|
||||||
{
|
{
|
||||||
$sql = trim(str_replace('|', ';', $sql));
|
$sql = trim(str_replace('|', ';', $sql));
|
||||||
if (preg_match('#' . $ignore_tables . '#i', $sql))
|
if ($ignore_tables != '' && preg_match('#' . $ignore_tables . '#i', $sql))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
echo "\nMATCH >> " . $sql;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$db->sql_query($sql))
|
if (!$db->sql_query($sql))
|
||||||
{
|
{
|
||||||
$error = $db->sql_error();
|
$error = $db->sql_error();
|
||||||
|
die($error['message']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1264,10 +1265,9 @@ if ($stage == 3)
|
||||||
foreach ($sql_ary as $sql)
|
foreach ($sql_ary as $sql)
|
||||||
{
|
{
|
||||||
$sql = trim(str_replace('|', ';', $sql));
|
$sql = trim(str_replace('|', ';', $sql));
|
||||||
if (preg_match('#' . $ignore_tables . '#i', $sql))
|
if ($ignore_tables != '' && preg_match('#' . $ignore_tables . '#i', $sql))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
echo "\nMATCH >> " . $sql;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$db->sql_query($sql))
|
if (!$db->sql_query($sql))
|
||||||
|
@ -1298,7 +1298,6 @@ if ($stage == 4)
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
|
||||||
$user->start();
|
$user->start();
|
||||||
$auth->login($admin_name, $admin_pass1);
|
$auth->login($admin_name, $admin_pass1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue