From 2f2907357ce494ec6aa33254686b9bdb70e3cf96 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Wed, 27 Jun 2007 16:53:58 +0000 Subject: [PATCH] Added minute offset to User Time Zone. git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@29 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/endpage.php | 9 +++++---- inc/filename.php | 6 +++--- inc/members.php | 36 +++++++++++++++++++++++++++++------- inc/misc/functions.php | 45 +++++++++++++++++++++++++++++++++++---------- inc/misc/setcheck.php | 4 +--- inc/profilemain.php | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- mysql.php | 29 ++++++++++++++++++----------- setup/mkconfig.php | 12 +++++++++--- setup/setup.php | 15 ++++++++++++++- 9 files changed, 161 insertions(+), 45 deletions(-) diff --git a/inc/endpage.php b/inc/endpage.php index 6843bf7..a97da3b 100644 --- a/inc/endpage.php +++ b/inc/endpage.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: endpage.php - Last Update: 06/26/2007 SVN 28 - Author: cooldude2k $ + $FileInfo: endpage.php - Last Update: 06/27/2007 SVN 29 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="endpage.php"||$File3Name=="/endpage.php") { @@ -19,10 +19,11 @@ if ($File3Name=="endpage.php"||$File3Name=="/endpage.php") { exit(); } if(!isset($_GET['time'])) { $_GET['time'] = true; } if($_GET['time']=="show"||$_GET['time']==true) { -if($_SESSION['UserDST']=="on") { $MyDST = $_SESSION['UserTimeZone']+1; } -if($_SESSION['UserDST']=="off") { $MyDST = $_SESSION['UserTimeZone']; } +if($_SESSION['UserDST']=="on") { $MyDST = $checktimea['hour']+1; } +if($_SESSION['UserDST']=="off") { $MyDST = $checktimea['hour']; } +$MyDST = $MyDST.":".$checktimea['minute']; $MyTimeNow = GMTimeGet('g:i a',$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']); -$endpagevar=$endpagevar."
All times are GMT ".$MyDST.". The time now is ".$MyTimeNow; } +$endpagevar=$endpagevar."
The time now is ".$MyTimeNow." ".$ThemeSet['LineDivider']." All times are GMT ".$MyDST; } if($_GET['debug']=="true"||$_GET['debug']=="on") { $endpagevar=$endpagevar."
\nFiles included: ".count_included_files()." & Extensions Enabled: ".count_extensions().$ThemeSet['LineDivider']."HTML".$ThemeSet['LineDivider']."CSS"; } $endpagevar=$endpagevar."\n"; diff --git a/inc/filename.php b/inc/filename.php index e64b366..b50ca9b 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/26/2007 SVN 28 - Author: cooldude2k $ + $FileInfo: filename.php - Last Update: 06/27/2007 SVN 29 - 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 = 28; $RName = "iDB"; $SFName = "IntDB"; -$SVNDay[0] = 06; $SVNDay[1] = 26; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 29; $RName = "iDB"; $SFName = "IntDB"; +$SVNDay[0] = 06; $SVNDay[1] = 27; $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/members.php b/inc/members.php index eb1c16c..e475b90 100644 --- a/inc/members.php +++ b/inc/members.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: members.php - Last Update: 06/18/2007 SVN 26 - Author: cooldude2k $ + $FileInfo: members.php - Last Update: 06/27/2007 SVN 29 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="members.php"||$File3Name=="/members.php") { @@ -448,27 +448,42 @@ $membertitle = " ".$ThemeSet['TitleDivider']." Signing up"; ?> + + + - + GMT + ".$plusi.":00 hours\n"; ++$plusi; } ?> + + + - + GMT + ".$plusi.":00 hours\n"; ++$plusi; } ?> + + + + + +