aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/oracle.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-08-30 22:20:23 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-08-30 22:20:23 +0000
commit191e52086fe01e84fa3e9948f0ba70f4d08d83a8 (patch)
tree4f6a0008c5f7535f0303aee1b65430be6175d110 /phpBB/db/oracle.php
parent8d34f5a0fe0bb5c934e3e210c63058c0bb0221d6 (diff)
downloadforums-191e52086fe01e84fa3e9948f0ba70f4d08d83a8.tar
forums-191e52086fe01e84fa3e9948f0ba70f4d08d83a8.tar.gz
forums-191e52086fe01e84fa3e9948f0ba70f4d08d83a8.tar.bz2
forums-191e52086fe01e84fa3e9948f0ba70f4d08d83a8.tar.xz
forums-191e52086fe01e84fa3e9948f0ba70f4d08d83a8.zip
Re-added GPL disclaimers
git-svn-id: file:///svn/phpbb/trunk@943 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db/oracle.php')
-rw-r--r--phpBB/db/oracle.php27
1 files changed, 18 insertions, 9 deletions
diff --git a/phpBB/db/oracle.php b/phpBB/db/oracle.php
index 8879567513..5c1c85fb84 100644
--- a/phpBB/db/oracle.php
+++ b/phpBB/db/oracle.php
@@ -1,6 +1,6 @@
<?php
/***************************************************************************
- * oracle.php
+ * oracle.php
* -------------------
* begin : Thrusday Feb 15, 2001
* copyright : (C) 2001 The phpBB Group
@@ -10,6 +10,15 @@
*
***************************************************************************/
+/***************************************************************************
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ ***************************************************************************/
+
if(!defined("SQL_LAYER"))
{
@@ -17,12 +26,12 @@ define("SQL_LAYER","oracle");
class sql_db
{
-
+
var $db_connect_id;
var $query_result;
var $row;
var $num_queries = 0;
-
+
//
// Constructor
//
@@ -33,11 +42,11 @@ class sql_db
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
-
+
if($this->persistency)
{
$this->db_connect_id = @OCIPLogon($this->user, $this->password, $this->server);
- }
+ }
else
{
$this->db_connect_id = @OCINLogon($this->user, $this->password, $this->server);
@@ -99,7 +108,7 @@ class sql_db
$num_rows = $limits[2];
}
}
-
+
if(eregi("^(INSERT|UPDATE) ", $query))
{
$query = preg_replace("/\\\'/s", "''", $query);
@@ -246,10 +255,10 @@ class sql_db
{
$rows = @OCIFetchStatement($query_id, $results);
@OCIExecute($query_id);
- for($i = 0; $i <= $rows; $i++)
+ for($i = 0; $i <= $rows; $i++)
{
@OCIFetchInto($query_id, $tmp_result, OCI_ASSOC+OCI_RETURN_NULLS);
-
+
for($j = 0; $j < count($tmp_result); $j++)
{
list($key, $val) = each($tmp_result);
@@ -351,7 +360,7 @@ class sql_db
return false;
}
}
-
+
function sql_nextid()
{
if($this->db_connect_id)