OSDN Git Service

Small bug fix.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 2 Aug 2011 08:20:15 +0000 (08:20 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 2 Aug 2011 08:20:15 +0000 (08:20 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@738 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/stats.php
inc/versioninfo.php
sql.php

index ac5ccf3..93ce5ff 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: stats.php - Last Update: 07/14/2011 SVN 717 - Author: cooldude2k $
+    $FileInfo: stats.php - Last Update: 08/02/2011 SVN 738 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="stats.php"||$File3Name=="/stats.php") {
@@ -41,6 +41,7 @@ $session_data=sql_result($uolresult,$uoli,"session_data");
 $session_user_agent=sql_result($uolresult,$uoli,"user_agent"); 
 $session_ip_address=sql_result($uolresult,$uoli,"ip_address");
 $UserSessInfo = unserialize_session($session_data);
+if(!isset($UserSessInfo['UserGroup'])) { $UserSessInfo['UserGroup'] = $Settings['GuestGroup']; }
 $AmIHiddenUser = "no";
 $user_agent_check = false;
 if(user_agent_check($session_user_agent)) {
index 0a62bc0..c9d3153 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: 08/02/2011 SVN 737 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 08/02/2011 SVN 738 - 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] = 7; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 737;
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 738;
 $SVNDay[0] = 08; $SVNDay[1] = 02; $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";
diff --git a/sql.php b/sql.php
index 64e3af0..bedc5ed 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: 08/01/2011 SVN 734 - Author: cooldude2k $
+    $FileInfo: sql.php - Last Update: 08/02/2011 SVN 738 - Author: cooldude2k $
 */
 /* Some ini setting changes uncomment if you need them. 
    Display PHP Errors */
@@ -427,7 +427,7 @@ if($Settings['hideverinfohttp']=="on") {
        $iverstring = "FR 0.0.0 ".$VER2[2]." 0"; }
 $qstrtest = htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']);
 $qseptest = htmlentities($Settings['qsep'], ENT_QUOTES, $Settings['charset']);
-$isiteurl = $Settings['idburl']."?act".$qseptest."view";
+$isiteurl = $Settings['idburl'].url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']);
 @ini_set("user_agent", "Mozilla/5.0 (compatible; ".$VerCheckName."/".$iverstring."; +".$isiteurl.")"); 
 if (function_exists("stream_context_create")) {
 $iopts = array(
@@ -448,7 +448,10 @@ $iopts = array(
 $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); } } }
+if($maxlen!==null) {
+return file_get_contents($filename,$use_include_path,$icontext,$offset,$maxlen); }
+if($maxlen===null) {
+return file_get_contents($filename,$use_include_path,$icontext,$offset); } } } }
 $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.