aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/page_header.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-11 22:56:49 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-11 22:56:49 +0000
commit85b196b5fe828c127d321527bd625a1727bad4aa (patch)
tree1557472b0431f05a4ae6b9e0fb42219d501ddefc /phpBB/includes/page_header.php
parentd7e485e5f6fd5f52e8bda854c3ad67c5b53337ae (diff)
downloadforums-85b196b5fe828c127d321527bd625a1727bad4aa.tar
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.gz
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.bz2
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.xz
forums-85b196b5fe828c127d321527bd625a1727bad4aa.zip
Implementation of an experimental cache manager.
git-svn-id: file:///svn/phpbb/trunk@3312 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/page_header.php')
-rw-r--r--phpBB/includes/page_header.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php
index 55504d505b..a4806eaf4d 100644
--- a/phpBB/includes/page_header.php
+++ b/phpBB/includes/page_header.php
@@ -139,18 +139,8 @@ $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_o
if ($total_online_users > $config['record_online_users'])
{
- $config['record_online_users'] = $total_online_users;
- $config['record_online_date'] = time();
-
- $sql = "UPDATE " . CONFIG_TABLE . "
- SET config_value = '$total_online_users'
- WHERE config_name = 'record_online_users'";
- $db->sql_query($sql);
-
- $sql = "UPDATE " . CONFIG_TABLE . "
- SET config_value = '" . $config['record_online_date'] . "'
- WHERE config_name = 'record_online_date'";
- $db->sql_query($sql);
+ set_config('record_online_users', $total_online_users);
+ set_config('record_online_date', time());
}
if ($total_online_users == 0)