OSDN Git Service

Yet another update to CUBRID support (have to fix some stuff).
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sat, 9 Jul 2011 05:09:45 +0000 (05:09 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sat, 9 Jul 2011 05:09:45 +0000 (05:09 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@700 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/misc/sql/cubrid.php
inc/misc/sql/mysql.php
inc/misc/sql/mysqli.php
inc/misc/sql/pgsql.php
inc/misc/sql/sqlite.php
inc/versioninfo.php
setup/mkconfig.php
sql.php

index c5defb1..557ab64 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: cubrid.php - Last Update: 07/08/2011 SVN 699 - Author: cooldude2k $
+    $FileInfo: cubrid.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="cubrid.php"||$File3Name=="/cubrid.php") {
@@ -70,6 +70,8 @@ if ($link===false) {
     output_error("Not connected: ".$sqliteerror,E_USER_ERROR);
        return false; }
 return $link; }
+function sql_disconnect_db($link=null) {
+return cubrid_disconnect($link); }
 // Query Results :P
 function sql_result($result,$row,$field=0) {
 if(isset($field)&&!is_numeric($field)) {
index e700a97..b51ce66 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: mysql.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $
+    $FileInfo: mysql.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="mysql.php"||$File3Name=="/mysql.php") {
@@ -87,6 +87,8 @@ if ($result===false) {
     output_error("SQL Error: ".sql_error(),E_USER_ERROR);
        return false; }
 return $link; }
+function sql_disconnect_db($link=null) {
+return mysql_close($link); }
 // Query Results :P
 function sql_result($result,$row,$field=0) {
 $value = mysql_result($result, $row, $field);
index d4a52ca..719b3b2 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: mysqli.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $
+    $FileInfo: mysqli.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="mysqli.php"||$File3Name=="/mysqli.php") {
@@ -89,6 +89,8 @@ if ($result===false) {
     output_error("SQL Error: ".sql_error(),E_USER_ERROR);
        return false; }
 return $link; }
+function sql_disconnect_db($link=null) {
+return mysqli_close($link); }
 // Query Results :P
 function sql_result($result,$row,$field=0) {
 $check = mysqli_data_seek($result,$row);
index c87b3ee..5fdea34 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: pgsql.php - Last Update: 07/08/2011 SVN 697 - Author: cooldude2k $
+    $FileInfo: pgsql.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="pgsql.php"||$File3Name=="/pgsql.php") {
@@ -84,6 +84,8 @@ if ($link===false) {
     output_error("Not connected: ".sql_error(),E_USER_ERROR);
        return false; }
 return $link; }
+function sql_disconnect_db($link=null) {
+return cubrid_disconnect($link); }
 // Query Results :P
 function sql_result($result,$row,$field=0) {
 if(is_numeric($field)) {
index d04906d..3fffcb9 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: sqlite.php - Last Update: 07/08/2011 SVN 697 - Author: cooldude2k $
+    $FileInfo: sqlite.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="sqlite.php"||$File3Name=="/sqlite.php") {
@@ -77,6 +77,8 @@ if ($link===false) {
     output_error("Not connected: ".$sqliteerror,E_USER_ERROR);
        return false; }
 return $link; }
+function sql_disconnect_db($link=null) {
+return sqlite_close($link); }
 // Query Results :P
 function sql_result($result,$row,$field=0) {
 $check = sqlite_seek($result,$row);
index ca6caca..a3c5f33 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2008-2011 iDB Support - http://idb.berlios.de/
     Copyright 2008-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: versioninfo.php - Last Update: 07/08/2011 SVN 699 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
@@ -26,9 +26,9 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        if($showsvn!==true&&$showsvn!==null) { $return_var .= " ".$showsvn." ".$svnver; }
        return $return_var; }
 // Version number and date stuff. :P
-$VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 6; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 699;
-$SVNDay[0] = 07; $SVNDay[1] = 08; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 7; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 700;
+$SVNDay[0] = 07; $SVNDay[1] = 09; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
 $AltName = "RDB"; $AltName2 = "ReneeDB"; $RName = "iDB"; $SFName = "IntDB";
 $RFullName = "Internet Discussion Boards"; $AltFullName = "Renee Discussion Boards"; $AltGM2k = "ReneeDB Team";
 $VerCheckName = "iDB"; $AltVerCheckName = "RDB"; $AltiDBHome = "http://duckduckgo.com/?q=ReneeDB";
index d9e6b5e..f18225c 100644 (file)
@@ -12,7 +12,7 @@
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
     iDB Installer made by Game Maker 2k - http://idb.berlios.net/
 
-    $FileInfo: mkconfig.php - Last Update: 07/08/2011 SVN 697 - Author: cooldude2k $
+    $FileInfo: mkconfig.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="mkconfig.php"||$File3Name=="/mkconfig.php") {
@@ -264,6 +264,7 @@ if ($handle = opendir($skindir)) { $dirnum = null;
    "('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s');", array($themelist[$themei], $ThemeSet['ThemeName'], $ThemeSet['ThemeMaker'], $ThemeSet['ThemeVersion'], $ThemeSet['ThemeVersionType'], $ThemeSet['ThemeSubVersion'], $ThemeSet['MakerURL'], $ThemeSet['CopyRight'], $ThemeSet['CSS'], $ThemeSet['CSSType'], $ThemeSet['FavIcon'], $ThemeSet['TableStyle'], $ThemeSet['MiniPageAltStyle'], $ThemeSet['PreLogo'], $ThemeSet['Logo'], $ThemeSet['LogoStyle'], $ThemeSet['SubLogo'], $ThemeSet['TopicIcon'], $ThemeSet['MovedTopicIcon'], $ThemeSet['HotTopic'], $ThemeSet['MovedHotTopic'], $ThemeSet['PinTopic'], $ThemeSet['AnnouncementTopic'], $ThemeSet['MovedPinTopic'], $ThemeSet['HotPinTopic'], $ThemeSet['MovedHotPinTopic'], $ThemeSet['ClosedTopic'], $ThemeSet['MovedClosedTopic'], $ThemeSet['HotClosedTopic'], $ThemeSet['MovedHotClosedTopic'], $ThemeSet['PinClosedTopic'], $ThemeSet['MovedPinClosedTopic'], $ThemeSet['HotPinClosedTopic'], $ThemeSet['MovedHotPinClosedTopic'], $ThemeSet['MessageRead'], $ThemeSet['MessageUnread'], $ThemeSet['Profile'], $ThemeSet['WWW'], $ThemeSet['PM'], $ThemeSet['TopicLayout'], $ThemeSet['AddReply'], $ThemeSet['FastReply'], $ThemeSet['NewTopic'], $ThemeSet['QuoteReply'], $ThemeSet['EditReply'], $ThemeSet['DeleteReply'], $ThemeSet['Report'], $ThemeSet['LineDivider'], $ThemeSet['ButtonDivider'], $ThemeSet['LineDividerTopic'], $ThemeSet['TitleDivider'], $ThemeSet['ForumStyle'], $ThemeSet['ForumIcon'], $ThemeSet['SubForumIcon'], $ThemeSet['RedirectIcon'], $ThemeSet['TitleIcon'], $ThemeSet['NavLinkIcon'], $ThemeSet['NavLinkDivider'], $ThemeSet['StatsIcon'], $ThemeSet['NoAvatar'], $ThemeSet['NoAvatarSize']));
    sql_query($query,$SQLStat);
    ++$themei; } }
+sql_disconnect_db($SQLStat);
 $ThemeSet = $OldThemeSet; }
 $CHMOD = $_SERVER['PHP_SELF'];
 $iDBRDate = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
diff --git a/sql.php b/sql.php
index 2d201df..0e589c3 100644 (file)
--- a/sql.php
+++ b/sql.php
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: sql.php - Last Update: 07/04/2011 SVN 696 - Author: cooldude2k $
+    $FileInfo: sql.php - Last Update: 07/09/2011 SVN 700 - Author: cooldude2k $
 */
 /* Some ini setting changes uncomment if you need them. 
    Display PHP Errors */
@@ -415,6 +415,8 @@ $sess_save_path = $save_path;
 return true; }
 //Session Close Function
 function sql_session_close() {
+global $SQLStat;
+sql_disconnect_db($SQLStat);
 return true; }
 //Session Read Function
 function sql_session_read($id) {