OSDN Git Service

Small bug fix to theme_checker.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Wed, 20 Jul 2011 06:50:56 +0000 (06:50 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Wed, 20 Jul 2011 06:50:56 +0000 (06:50 +0000)
Small update to idb logger it now show - for status 302.

git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@722 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/function.php
inc/versioninfo.php

index 5fefb3e..3175b36 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: function.php - Last Update: 07/01/2011 SVN 690 - Author: cooldude2k $
+    $FileInfo: function.php - Last Update: 07/20/2011 SVN 7220 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="function.php"||$File3Name=="/function.php") {
@@ -314,7 +314,7 @@ $ckskindir = dirname(realpath("settings.php"))."/".$ThemeDir;
 if ($handle = opendir($ckskindir)) { $dirnum = null;
    while (false !== ($ckfile = readdir($handle))) {
           if ($dirnum==null) { $dirnum = 0; }
-          if (file_exists($ckskindir.$ckfile."/info.php")) {
+          if (is_dir($ckskindir.$ckfile)&&file_exists($ckskindir.$ckfile."/info.php")) {
                   if ($ckfile != "." && $ckfile != "..") {
           //include($ckskindir.$ckfile."/info.php");
        $cktheme[$dirnum] =  $ckfile;
@@ -499,6 +499,7 @@ if($oldcontentsize=="-") { $oldcontentsize = 0; }
 if($contentsize===0) { $contentsize = "-"; }
 if($contentsize=="-"&&$headersize!==0) { $fullsitesize = $headersize; }
 if($contentsize!="-"&&$headersize!==0) { $fullsitesize = $contentsize + $headersize; }
+if($status=="302") { $contentsize = "-"; }
 $HTTP_REQUEST_LINE = $_SERVER["REQUEST_METHOD"]." ".$_SERVER["REQUEST_URI"]." ".$_SERVER["SERVER_PROTOCOL"];
 $logtxt = preg_replace("/%%/s", "{percent}p", $logtxt);
 $logtxt = preg_replace("/%([\<\>]*?)a/s", $_SERVER['REMOTE_ADDR'], $logtxt);
index 75e04d9..23c2221 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/18/2011 SVN 721 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 07/20/2011 SVN 722 - 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 = 721;
-$SVNDay[0] = 07; $SVNDay[1] = 18; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 722;
+$SVNDay[0] = 07; $SVNDay[1] = 20; $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";