OSDN Git Service

Yet another small update. :P
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Wed, 29 Jun 2011 15:53:35 +0000 (15:53 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Wed, 29 Jun 2011 15:53:35 +0000 (15:53 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@686 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/versioninfo.php
sql.php

index 58d3234..e153839 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: versioninfo.php - Last Update: 06/29/2011 SVN 686 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 06/29/2011 SVN 687 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
@@ -27,7 +27,7 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        return $return_var; }
 // Version number and date stuff. :P
 $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 5; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 686;
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 687;
 $SVNDay[0] = 06; $SVNDay[1] = 29; $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";
diff --git a/sql.php b/sql.php
index 9c73415..9b3b8cd 100644 (file)
--- a/sql.php
+++ b/sql.php
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: sql.php - Last Update: 06/29/2011 SVN 686 - Author: cooldude2k $
+    $FileInfo: sql.php - Last Update: 06/29/2011 SVN 687 - Author: cooldude2k $
 */
 /* Some ini setting changes uncomment if you need them. 
    Display PHP Errors */
 $disfunc = @ini_get("disable_functions");
+$disfunc = @trim($disfunc);
+$disfunc = @preg_replace("/([\\s+|\\t+|\\n+|\\r+|\\0+|\\x0B+])/i", "", $disfunc);
 if($disfunc!="ini_set") { $disfunc = explode(",",$disfunc); }
 if($disfunc=="ini_set") { $disfunc = array("ini_set"); }
 if(!in_array("ini_set", $disfunc)) {
@@ -312,13 +314,14 @@ if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'], "gzip")) { $Settings['use_gzip'] = "
 if($Settings['use_gzip']=="deflate") {
 if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'], "deflate")) { $Settings['use_gzip'] = "on";
        $GZipEncode['Type'] = "deflate"; } else { $Settings['use_gzip'] = "off"; } }
+function idb_output_handler($buffer) { return $buffer; }
 if($Settings['clean_ob']=="on") {
 /* Check for other output handlers/buffers are open
    and close and get the contents in an array */
 $numob = count(ob_list_handlers()); $iob = 0; 
 while ($iob < $numob) { 
        $old_ob_var[$iob] = ob_get_clean(); 
-       ++$iob; } } ob_start();
+       ++$iob; } } ob_start("idb_output_handler");
 if($Settings['use_gzip']=="on") { 
 if($GZipEncode['Type']!="gzip") { if($GZipEncode['Type']!="deflate") { $GZipEncode['Type'] = "gzip"; } }
        if($GZipEncode['Type']=="gzip") {