aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-09-07 13:46:51 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-09-07 13:46:51 +0000
commit8ac06a256b841d2249264ce9ac67885b9849d80f (patch)
treebaf91a347bdc40ac8334a2a84c1703895c7704a3 /phpBB/includes/session.php
parente1ba6d3c5247debfd65011117059ac38202ba4fe (diff)
downloadforums-8ac06a256b841d2249264ce9ac67885b9849d80f.tar
forums-8ac06a256b841d2249264ce9ac67885b9849d80f.tar.gz
forums-8ac06a256b841d2249264ce9ac67885b9849d80f.tar.bz2
forums-8ac06a256b841d2249264ce9ac67885b9849d80f.tar.xz
forums-8ac06a256b841d2249264ce9ac67885b9849d80f.zip
Updates mainly for removal of extension + header comment ... moved some aspects of ucp around, further work to be done on these areas ... not commiting search for time being
git-svn-id: file:///svn/phpbb/trunk@4473 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index d321c06a37..0a2c1ca6cb 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -258,7 +258,8 @@ class session
$sql_ary = array(
'session_id' => (string) $this->session_id,
'session_user_id' => (int) $user_id,
- 'session_start' => (int) $this->data['session_last_visit'],
+ 'session_start' => (int) $current_time,
+ 'session_last_visit' => (int) $this->data['session_last_visit'],
'session_time' => (int) $current_time,
'session_ip' => (string) $this->ip,
'session_browser' => (string) $this->browser,
@@ -282,7 +283,7 @@ class session
if ($this->data['user_id'] != ANONYMOUS)
{
- // Trigger EVENT_NEW_SESSION
+ // Trigger EVT_NEW_SESSION
}
return true;
@@ -312,6 +313,11 @@ class session
$this->session_id = '';
+ if ($this->data['user_id'] != ANONYMOUS)
+ {
+ // Trigger EVT_END_SESSION
+ }
+
return true;
}
@@ -467,6 +473,7 @@ class user extends session
if (!empty($_GET['style']) && $auth->acl_get('a_styles'))
{
global $SID;
+
$style = intval($_GET['style']);
$SID .= '&amp;style=' . $style;
}
@@ -482,7 +489,7 @@ class user extends session
AND t.template_id = s.template_id
AND c.theme_id = s.theme_id
AND i.imageset_id = s.imageset_id';
- $result = $db->sql_query($sql, 600);
+ $result = $db->sql_query($sql, 3600);
if (!($row = $db->sql_fetchrow($result)))
{