From dbe542f03a04cdc2e393796e66200751d296a2b5 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 13 Feb 2002 16:43:06 +0000 Subject: [PATCH] Admit defeat with auto-sensing server/script path details and instead grab from user config ... changes here introduce the new vars git-svn-id: file:///svn/phpbb/trunk@2130 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/update_to_RC3.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/phpBB/update_to_RC3.php b/phpBB/update_to_RC3.php index 73fbfd87b1..2568c54bc6 100644 --- a/phpBB/update_to_RC3.php +++ b/phpBB/update_to_RC3.php @@ -256,6 +256,27 @@ if ( $row = $db->sql_fetchrow($result) ) print "
Updating config settings
"; +$sql = "INSERT INTO " . CONFIG_TABLE . " + (config_name, config_value) VALUES ('server_name', 'www.myserver.tld')"; +if( !$db->sql_query($sql) ) +{ + die("Couldn't insert config key 'record_online_date'"); +} + +$sql = "INSERT INTO " . CONFIG_TABLE . " + (config_name, config_value) VALUES ('script_path', '/phpBB2/')"; +if( !$db->sql_query($sql) ) +{ + die("Couldn't insert config key 'record_online_date'"); +} + +$sql = "INSERT INTO " . CONFIG_TABLE . " + (config_name, config_value) VALUES ('server_port', '80')"; +if( !$db->sql_query($sql) ) +{ + die("Couldn't insert config key 'record_online_date'"); +} + $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value ) VALUES ('version', 'RC-3')"; if ( !$db->sql_query($sql) )