aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-06-21 03:20:37 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-06-21 03:20:37 +0000
commit6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2 (patch)
treefd557329f27ccde5ab042424054467c6076327ec /phpBB/includes
parent8276d5728c8ab62d788d152a1e2eddc300b70cfa (diff)
downloadforums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar
forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar.gz
forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar.bz2
forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar.xz
forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.zip
Working on getting Oracle functional. Almost there, need to deal with the 'AUTO INCREMENT' issue
git-svn-id: file:///svn/phpbb/trunk@520 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/page_header.php11
-rw-r--r--phpBB/includes/sessions.php6
2 files changed, 12 insertions, 5 deletions
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php
index bd22993a4e..0864aeeea3 100644
--- a/phpBB/includes/page_header.php
+++ b/phpBB/includes/page_header.php
@@ -86,11 +86,15 @@ if(!$result)
$logged_online = 0;
$guests_online = 0;
-while($row = $db->sql_fetchrow($result))
+
+$row = $db->sql_fetchrowset($result);
+$num_rows = $db->sql_numrows($result);
+for($x = 0; $x < $num_rows; $x++)
{
- if($row['session_logged_in'])
+
+ if($row[$x]['session_logged_in'])
{
- $userlist_ary[] = "<a href=\"".append_sid("profile." . $phpEx . "?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . "\">" . $row['username'] . "</a>";
+ $userlist_ary[] = "<a href=\"".append_sid("profile." . $phpEx . "?mode=viewprofile&" . POST_USERS_URL . "=" . $row[$x]['user_id']) . "\">" . $row[$x]['username'] . "</a>";
$logged_online++;
}
else
@@ -98,6 +102,7 @@ while($row = $db->sql_fetchrow($result))
$guests_online++;
}
}
+
$userlist = "";
for($i = 0; $i < $logged_online; $i++)
{
diff --git a/phpBB/includes/sessions.php b/phpBB/includes/sessions.php
index 1957479473..92e0e50f20 100644
--- a/phpBB/includes/sessions.php
+++ b/phpBB/includes/sessions.php
@@ -59,6 +59,7 @@ function session_begin($user_id, $user_ip, $page_id, $session_length, $login = 0
{
error_die(SQL_QUERY, "Couldn't obtain ban information.", __LINE__, __FILE__);
}
+
$ban_info = $db->sql_fetchrow($result);
//
@@ -244,9 +245,9 @@ function session_pagestart($user_ip, $thispage_id, $session_length)
error_die(SESSION_CREATE);
}
}
-
+
$userdata = $db->sql_fetchrow($result);
-
+
//
// Did the session exist in the DB?
//
@@ -327,6 +328,7 @@ function session_pagestart($user_ip, $thispage_id, $session_length)
error_die(SESSION_CREATE);
}
}
+
$userdata = $db->sql_fetchrow($result);
if($userdata['user_autologin_key'])