mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 20:56:40 +02:00
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
This commit is contained in:
@ -256,6 +256,27 @@ if ( $row = $db->sql_fetchrow($result) )
|
|||||||
|
|
||||||
print "<br />Updating config settings<br />";
|
print "<br />Updating config settings<br />";
|
||||||
|
|
||||||
|
$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 )
|
$sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value )
|
||||||
VALUES ('version', 'RC-3')";
|
VALUES ('version', 'RC-3')";
|
||||||
if ( !$db->sql_query($sql) )
|
if ( !$db->sql_query($sql) )
|
||||||
|
Reference in New Issue
Block a user