1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Started on moderator control panel code. Main layout is started, no functionality yet

git-svn-id: file:///svn/phpbb/trunk@561 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
uid29890
2001-07-05 00:47:03 +00:00
parent 14c6a0a4af
commit eb5b9bfb07
6 changed files with 238 additions and 36 deletions

View File

@@ -320,6 +320,40 @@ class sql_db
return false;
}
}
function sql_nextid($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id && $this->last_query_text[$query_id] != "")
{
if( eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([a-zA-Z0-9\_\-]+)[\"]?", $this->last_query_text[$query_id], $tablename))
{
$query = "SELECT ".$tablename[2]."_id_seq.currval FROM DUAL";
$stmt = OCIParse($this->db_connect_id, $query);
OCIExecute($stmt);
$temp_result = @OCIFetchInto($stmt, $temp_result, OCI_ASSOC);
if($temp_result)
{
return $temp_result['CURRVAL'];
}
else
{
return false;
}
}
else
{
return false;
}
}
else
{
return false;
}
}
function sql_nextid()
{
if($this->db_connect_id)