OSDN Git Service

Yet another small update.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 1 Aug 2011 20:55:52 +0000 (20:55 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 1 Aug 2011 20:55:52 +0000 (20:55 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@734 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/misc/ibbcode.php
inc/versioninfo.php
sql.php

index 639d3b5..c43f121 100644 (file)
@@ -12,7 +12,7 @@
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
        iBBCode / iBBTags by Kazuki Przyborowski - http://idb.berlios.net/
 
-    $FileInfo: ibbcode.php - Last Update: 07/20/2011 SVN 723 - Author: cooldude2k $
+    $FileInfo: ibbcode.php - Last Update: 08/01/2011 SVN 734 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="ibbcode.php"||$File3Name=="/ibbcode.php") {
@@ -31,9 +31,10 @@ function html_decode($matches) {
        return html_entity_decode($matches[1], ENT_QUOTES, $BoardCharSet); }
 function do_html_bbcode($text) {
        return preg_replace_callback("/\[DoHTML\](.*?)\[\/DoHTML\]/is","html_decode",$text); }
+function idb_exec_php_handler($buffer) { return $buffer; }
 function exec_php($matches) {
        global $BoardCharSet;
-       ob_start();
+       ob_start("idb_exec_php_handler");
        $matches[1] = html_entity_decode($matches[1], ENT_QUOTES, $BoardCharSet);
        @eval("?> ".$matches[1]);
        return ob_get_clean(); }
index 89cc524..f1f5eea 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/31/2011 SVN 733 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 08/01/2011 SVN 734 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
@@ -27,8 +27,8 @@ 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] = 7; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 733;
-$SVNDay[0] = 07; $SVNDay[1] = 31; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 734;
+$SVNDay[0] = 08; $SVNDay[1] = 01; $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";
diff --git a/sql.php b/sql.php
index aa45f10..64e3af0 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/31/2011 SVN 733 - Author: cooldude2k $
+    $FileInfo: sql.php - Last Update: 08/01/2011 SVN 734 - Author: cooldude2k $
 */
 /* Some ini setting changes uncomment if you need them. 
    Display PHP Errors */
@@ -438,10 +438,17 @@ $iopts = array(
                 "Accept: */*\r\n".
                 "Connection: keep-alive\r\n".
                 "Referer: ".$isiteurl."\r\n".
-                "From: ".$isiteurl."\r\n"
+                "From: ".$isiteurl."\r\n".
+                "Via: ".$_SERVER['REMOTE_ADDR']."\r\n".
+                "Forwarded: ".$_SERVER['REMOTE_ADDR']."\r\n".
+                "X-Forwarded-For: ".$_SERVER['REMOTE_ADDR']."\r\n".
+                "Client-IP: ".$_SERVER['REMOTE_ADDR']."\r\n"
   )
 );
-$icontext = stream_context_create($iopts); } }
+$icontext = stream_context_create($iopts); 
+function file_get_contents_alt($filename,$use_include_path=null,$offset=-1,$maxlen=null) {
+global $icontext;
+return file_get_contents($filename,$icontext,$use_include_path,$offset,$maxlen); } } }
 $iDBVerName = $VerCheckName."|".$VER2[1]."|".$VER1[0].".".$VER1[1].".".$VER1[2]."|".$VER2[2]."|".$SubVerN;
 /* 
 This way checks iDB version by sending the iDBVerName to the iDB Version Checker.