diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-25 18:19:34 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-25 18:19:34 +0000 |
commit | 02bcd7e2e1b43ce77ade9308ade809a5a583589d (patch) | |
tree | 2b5b5bee113d98f87c2fb820d800e7bd0b2a1970 /phpBB/includes/session.php | |
parent | 46267dce884f76204a21f8c72bb0eb28c47c228c (diff) | |
download | forums-02bcd7e2e1b43ce77ade9308ade809a5a583589d.tar forums-02bcd7e2e1b43ce77ade9308ade809a5a583589d.tar.gz forums-02bcd7e2e1b43ce77ade9308ade809a5a583589d.tar.bz2 forums-02bcd7e2e1b43ce77ade9308ade809a5a583589d.tar.xz forums-02bcd7e2e1b43ce77ade9308ade809a5a583589d.zip |
Various updates
git-svn-id: file:///svn/phpbb/trunk@3530 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r-- | phpBB/includes/session.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index de1ef3aaa8..bedb211f25 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -72,7 +72,7 @@ class session if ($this->load > doubleval($config['limit_load'])) { - trigger_error('Board_unavailable'); + trigger_error('BOARD_UNAVAILABLE'); } } } @@ -150,7 +150,7 @@ class session if (intval($row['sessions']) > intval($config['active_sessions'])) { - trigger_error('Board_unavailable'); + trigger_error('BOARD_UNAVAILABLE'); } } @@ -215,7 +215,10 @@ class session if ($banned) { - trigger_error('You_been_banned'); + // TODO + // Note that at present this doesn't surround the administrator + // text with an appropriate URL + trigger_error('BOARD_BANNED'); } } @@ -449,8 +452,7 @@ class user extends session AND t.template_id = s.template_id AND c.theme_id = s.style_id AND i.imageset_id = s.imageset_id"; - - $result = $db->sql_query($sql); + $result = $db->sql_query($sql, 600); if (!($this->theme = $db->sql_fetchrow($result))) { @@ -488,7 +490,7 @@ class user extends session $alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : ''; $width = ($width) ? 'width="' . $width . '" ' : ''; - $imgs[$img] = '<img src=' . str_replace('{LANG}', $this->img_lang, $this->theme[$img]) . '" ' . $width . 'alt="' . $alt . '" title="' . $alt . '" />'; + $imgs[$img] = '<img src=' . str_replace('{LANG}', $this->img_lang, $this->theme[$img]) . ' ' . $width . 'alt="' . $alt . '" title="' . $alt . '" />'; } return $imgs[$img]; } |