aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-11-24 23:41:07 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-11-24 23:41:07 +0000
commit0f31aa8416729a426dabeb90af7cf3165828dcab (patch)
tree1682bce2d92e41f3325c8e23c6f514978a8527c1 /phpBB/install/install.php
parent2c83dfae78ed1975e02a90bc8623a5ff19cdffb8 (diff)
downloadforums-0f31aa8416729a426dabeb90af7cf3165828dcab.tar
forums-0f31aa8416729a426dabeb90af7cf3165828dcab.tar.gz
forums-0f31aa8416729a426dabeb90af7cf3165828dcab.tar.bz2
forums-0f31aa8416729a426dabeb90af7cf3165828dcab.tar.xz
forums-0f31aa8416729a426dabeb90af7cf3165828dcab.zip
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
Diffstat (limited to 'phpBB/install/install.php')
-rw-r--r--phpBB/install/install.php26
1 files 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)
</tr>
</table></form>
-<div align="center"><span class="copyright">Powered by phpBB <?php echo $board_config['version']; ?> &copy; 2002 <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB Group</a></span></div>
+<div align="center"><span class="copyright">Powered by phpBB <?php echo $config['version']; ?> &copy; 2002 <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB Group</a></span></div>
<br clear="all" />