From 5aa5c468ed23a71a82c39ceea2e22a12928e0224 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Thu, 28 Jun 2007 07:08:22 +0000 Subject: [PATCH] Fixed GZip ^_^ and another temp fix for /idb/inc/calendars.php <_< git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@32 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/calendars.php | 4 +++- inc/filename.php | 6 +++--- inc/misc/setcheck.php | 5 +++-- setup/setup.php | 7 ++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/inc/calendars.php b/inc/calendars.php index 2f8dfbd..b5f33ae 100644 --- a/inc/calendars.php +++ b/inc/calendars.php @@ -11,7 +11,7 @@ Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/ Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ - $FileInfo: calendars.php - Last Update: 06/24/2007 SVN 27 - Author: cooldude2k $ + $FileInfo: calendars.php - Last Update: 06/28/2007 SVN 32 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="calendars.php"||$File3Name=="/calendars.php") { @@ -47,6 +47,8 @@ $EventStart=mysql_result($result,$is,"TimeStamp"); $EventEnd=mysql_result($result,$is,"TimeStampEnd"); $EventDay = GMTimeChange("j",$EventStart,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']); $EventDayEnd = GMTimeChange("j",$EventEnd,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']); +$EventMonthEnd = GMTimeChange("m",$EventEnd,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']); +if($EventMonthEnd!=$MyMonth) { $EventDayEnd = $CountDays; } $oldeventname=$EventName; $EventName1 = substr($EventName,0,10); if (strlen($EventName)>10) { $EventName1 = $EventName1."..."; } diff --git a/inc/filename.php b/inc/filename.php index abe9a6e..55c5175 100644 --- a/inc/filename.php +++ b/inc/filename.php @@ -11,7 +11,7 @@ Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/ Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ - $FileInfo: filename.php - Last Update: 06/27/2007 SVN 31 - Author: cooldude2k $ + $FileInfo: filename.php - Last Update: 06/28/2007 SVN 32 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="filename.php"||$File3Name=="/filename.php") { @@ -44,8 +44,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { if($showsvn!=true&&$showsvn!=null) { $return_var .= " ".$showsvn." ".$svnver; } return $return_var; } $VER1[0] = 0; $VER1[1] = 1; $VER1[2] = 5; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 31; $RName = "iDB"; $SFName = "IntDB"; -$SVNDay[0] = 06; $SVNDay[1] = 27; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 32; $RName = "iDB"; $SFName = "IntDB"; +$SVNDay[0] = 06; $SVNDay[1] = 28; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false); $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true); $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false); diff --git a/inc/misc/setcheck.php b/inc/misc/setcheck.php index 83b1995..e05a45f 100644 --- a/inc/misc/setcheck.php +++ b/inc/misc/setcheck.php @@ -11,14 +11,15 @@ Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/ Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ - $FileInfo: setcheck.php - Last Update: 06/27/2007 SVN 29 - Author: cooldude2k $ + $FileInfo: setcheck.php - Last Update: 06/28/2007 SVN 32 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="setcheck.php"||$File3Name=="/setcheck.php") { require('index.php'); exit(); } if(!isset($_GET['debug'])) { $_GET['debug'] = false; } -if(!isset($GZipEncode)) { $GZipEncode = 'none'; } +if(!isset($GZipEncode)) { $GZipEncode = array("Type" => "none"); } +if(!is_array($GZipEncode)) { $GZipEncode = array("Type" => "none"); } if(!isset($preact)) { $preact = null; } if(!isset($Settings['hash_type'])) { $Settings['hash_type'] = null; } if(!isset($Error)) { $Error = null; } diff --git a/setup/setup.php b/setup/setup.php index 6d41446..b494264 100644 --- a/setup/setup.php +++ b/setup/setup.php @@ -12,7 +12,7 @@ Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ iDB Installer made by Game Maker 2k - http://idb.berlios.net/ - $FileInfo: setup.php - Last Update: 06/27/2007 SVN 29 - Author: cooldude2k $ + $FileInfo: setup.php - Last Update: 06/28/2007 SVN 32 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="setup.php"||$File3Name=="/setup.php") { @@ -80,7 +80,6 @@ fclose($fp); " /> - -*/ ?> - + -- 2.11.0