aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-02-18 12:46:46 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-02-18 12:46:46 +0000
commitaf246d5550195b9cdc7fae2f523b3ba1ded2e128 (patch)
tree5bcae3799ba97124fa5c59c387e1e2b7fe475068 /phpBB
parent98c709a1ae914865780e3b1b947e758a25ef5889 (diff)
downloadforums-af246d5550195b9cdc7fae2f523b3ba1ded2e128.tar
forums-af246d5550195b9cdc7fae2f523b3ba1ded2e128.tar.gz
forums-af246d5550195b9cdc7fae2f523b3ba1ded2e128.tar.bz2
forums-af246d5550195b9cdc7fae2f523b3ba1ded2e128.tar.xz
forums-af246d5550195b9cdc7fae2f523b3ba1ded2e128.zip
You MUST run this if you haven't run update_to_RC3 in recent days ... it adds ESSENTIAL variables which, if missing, will prevent emails from containing correct URLs
git-svn-id: file:///svn/phpbb/trunk@2185 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/develop/insert_server_info.php64
1 files changed, 64 insertions, 0 deletions
diff --git a/phpBB/develop/insert_server_info.php b/phpBB/develop/insert_server_info.php
new file mode 100644
index 0000000000..f7d9fcc08e
--- /dev/null
+++ b/phpBB/develop/insert_server_info.php
@@ -0,0 +1,64 @@
+<?php
+
+//
+// Security message:
+//
+// This script is potentially dangerous.
+// Remove or comment the next line (die(".... ) to enable this script.
+// Do NOT FORGET to either remove this script or disable it after you have used it.
+//
+die("Please read the first lines of this script for instructions on how to enable it");
+
+//
+// Do not change anything below this line.
+//
+$phpbb_root_path = "../";
+include($phpbb_root_path . 'extension.inc');
+include($phpbb_root_path . 'common.'.$phpEx);
+
+echo "Inserting new config vars<br /><br />\n";
+
+echo "server_name :: ";
+flush();
+$sql = "INSERT INTO " . CONFIG_TABLE . "
+ (config_name, config_value) VALUES ('server_name', 'www.myserver.tld')";
+if( !$db->sql_query($sql) )
+{
+ print "Failed inserting server_name config ... probably exists already<br />\n";
+}
+else
+{
+ echo "DONE<br />\n";
+}
+
+echo "script_path :: ";
+flush();
+$sql = "INSERT INTO " . CONFIG_TABLE . "
+ (config_name, config_value) VALUES ('script_path', '/phpBB2/')";
+if( !$db->sql_query($sql) )
+{
+ print "Failed inserting script_path config ... probably exists already<br />\n";
+}
+else
+{
+ echo "DONE<br />\n";
+}
+
+echo "server_port :: ";
+flush();
+$sql = "INSERT INTO " . CONFIG_TABLE . "
+ (config_name, config_value) VALUES ('server_port', '80')";
+if( !$db->sql_query($sql) )
+{
+ print "Failed inserting server_port config ... probably exists already<br />\n";
+}
+else
+{
+ echo "DONE<br />\n";
+}
+
+$db->sql_close();
+
+echo "<br />COMPLETE<br />\n";
+
+?>