aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-25 23:21:38 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-25 23:21:38 +0000
commitba7200eb8fa325f3f9d42b5f1247cc3230d9d621 (patch)
tree86e02a731118520d6d5bc1e3dc108f2cacfc2ef5
parentdbf6ea217b9262e5ff40435b15c386d9e3c2d672 (diff)
downloadforums-ba7200eb8fa325f3f9d42b5f1247cc3230d9d621.tar
forums-ba7200eb8fa325f3f9d42b5f1247cc3230d9d621.tar.gz
forums-ba7200eb8fa325f3f9d42b5f1247cc3230d9d621.tar.bz2
forums-ba7200eb8fa325f3f9d42b5f1247cc3230d9d621.tar.xz
forums-ba7200eb8fa325f3f9d42b5f1247cc3230d9d621.zip
Update for most online ... separated from page_header
git-svn-id: file:///svn/phpbb/trunk@1956 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/develop/most_users_update.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/phpBB/develop/most_users_update.php b/phpBB/develop/most_users_update.php
new file mode 100644
index 0000000000..6f78390218
--- /dev/null
+++ b/phpBB/develop/most_users_update.php
@@ -0,0 +1,29 @@
+<html>
+<body>
+<?php
+
+ $phpbb_root_path = "../";
+
+ include($phpbb_root_path . 'extension.inc');
+ include($phpbb_root_path . 'common.'.$phpEx);
+
+ echo "\n<br >\n" . $sql = "INSERT INTO " . CONFIG_TABLE . "
+ (config_name, config_value) VALUES ('record_online_users', '1')";
+ if( !$result = $db->sql_query($sql) )
+ {
+
+ message_die(GENERAL_ERROR, "Couldn't insert config key 'record_online_users'", "", __LINE__, __FILE__, $sql);
+ }
+
+ echo "\n<br >\n" . $sql = "INSERT INTO " . CONFIG_TABLE . "
+ (config_name, config_value) VALUES ('record_online_date', '".time()."')";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't insert config key 'record_online_date'", "", __LINE__, __FILE__, $sql);
+ }
+
+ echo "\n<br />\nCOMPLETE";
+
+?>
+</body>
+</html> \ No newline at end of file