From 0f31aa8416729a426dabeb90af7cf3165828dcab Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 24 Nov 2002 23:41:07 +0000 Subject: [PATCH] This should now work ... still blank screens on errors (due to way errors are now handled by db layer ... need to set return on error and handle sql errors locally in install.php) git-svn-id: file:///svn/phpbb/trunk@3090 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install.php | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/phpBB/install/install.php b/phpBB/install/install.php index 6f63df22cf..cb33ca7c73 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -22,20 +22,18 @@ error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables set_magic_quotes_runtime(0); // Disable magic_quotes_runtime -define('IN_PHPBB', true); -$phpbb_root_path='./../'; -require($phpbb_root_path . 'extension.inc'); -require($phpbb_root_path . 'includes/functions.'.$phpEx); - -$userdata = array(); -$lang = array(); - if ( !get_magic_quotes_gpc() ) { $_GET = slash_input_data($_GET); $_POST = slash_input_data($_POST); } +define('IN_PHPBB', true); +$phpbb_root_path='./../'; +require($phpbb_root_path . 'extension.inc'); +require($phpbb_root_path . 'includes/functions.'.$phpEx); + + /*************************************************************************** * Install Customization Section * @@ -649,6 +647,16 @@ else WHERE username = 'Admin'"; $db->sql_query($sql); + $sql = "UPDATE " . $table_prefix . "moderator_cache + SET username = '" . $admin_name . "' + WHERE username = 'Admin'"; + $db->sql_query($sql); + + $sql = "UPDATE " . $table_prefix . "forums + SET forum_last_poster_name = '" . $admin_name . "' + WHERE forum_last_poster_name = 'Admin'"; + $db->sql_query($sql); + $sql = "UPDATE " . $table_prefix . "users SET user_regdate = " . time(); $db->sql_query($sql); @@ -861,7 +869,7 @@ function page_footer($l_submit, $s_hidden_fields) -
Powered by phpBB © 2002 phpBB Group
+
Powered by phpBB © 2002 phpBB Group