Copyright 2004-2017 iDB Support - http://idb.berlios.de/
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: forums.php - Last Update: 01/26/2017 SVN 810 - Author: cooldude2k $
+ $FileInfo: forums.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="forums.php"||$File3Name=="/forums.php") {
</select></td>
</tr><tr style="text-align: left;">
<td style="width: 50%;"><label class="TextBoxLabel" for="RedirectURL">Insert Redirect URL for redirect forum:</label></td>
- <td style="width: 50%;"><input type="url" name="RedirectURL" class="TextBox" id="RedirectURL" size="20" value="http://" /></td>
+ <td style="width: 50%;"><input type="url" name="RedirectURL" class="TextBox" id="RedirectURL" size="20" value="" /></td>
</tr><tr style="text-align: left;">
<td style="width: 50%;"><label class="TextBoxLabel" for="InSubForum">In SubForum:</label></td>
<td style="width: 50%;"><select size="1" class="TextBox" name="InSubForum" id="InSubForum">
</table>
</div>
<?php } if($_POST['act']=="addforum"&&$_POST['update']=="now"&&$_GET['act']=="addforum") {
+if($_POST['RedirectURL']=="") { $_POST['RedirectURL'] = "http://"; }
$_POST['ForumName'] = stripcslashes(htmlspecialchars($_POST['ForumName'], ENT_QUOTES, $Settings['charset']));
//$_POST['ForumName'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumName']);
$_POST['ForumName'] = remove_spaces($_POST['ForumName']);
$ForumType=sql_result($preresult,0,"ForumType");
$InSubForum=sql_result($preresult,0,"InSubForum");
$RedirectURL=sql_result($preresult,0,"RedirectURL");
+if($RedirectURL=="http://") { $RedirectURL = ""; }
$RedirectTimes=sql_result($preresult,0,"Redirects");
$NumberViews=sql_result($preresult,0,"NumViews");
$ForumDescription=sql_result($preresult,0,"Description");
</div>
<?php } } } if($_POST['act']=="editforum"&&$_POST['update']=="now"&&$_GET['act']=="editforum"&&
isset($_POST['id'])) {
+if($_POST['RedirectURL']=="") { $_POST['RedirectURL'] = "http://"; }
$_POST['ForumName'] = stripcslashes(htmlspecialchars($_POST['ForumName'], ENT_QUOTES, $Settings['charset']));
//$_POST['ForumName'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumName']);
$_POST['ForumName'] = remove_spaces($_POST['ForumName']);
Copyright 2004-2017 iDB Support - http://idb.berlios.de/
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: html5.php - Last Update: 01/26/2017 SVN 810 - Author: cooldude2k $
+ $FileInfo: html5.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="html5.php"||$File3Name=="/html5.php") {
<?php } $iWrappers['METATAGS'] = ob_get_clean();
ob_start("idb_suboutput_handler"); ?>
<script type="text/javascript" src="<?php echo url_maker($exfilejs['javascript'],$Settings['js_ext'],null,$Settings['qstr'],$Settings['qsep'],$prexqstrjs['javascript'],$exqstrjs['javascript']); ?>"></script>
+<script type="text/javascript">
+ var tzname=Intl.DateTimeFormat().resolvedOptions().timeZone;
+ document.cookie = "getusertz="+tzname;
+</script>
<?php echo "\n"; $iWrappers['JAVASCRIPT'] = ob_get_clean();
ob_start("idb_suboutput_handler"); ?>
<link rel="Start" href="<?php echo $AltBoardURL.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>" title="<?php echo $Settings['board_name'].$idbpowertitle; ?>" />
Copyright 2004-2017 iDB Support - http://idb.berlios.de/
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: members.php - Last Update: 09/12/2018 SVN 869 - Author: cooldude2k $
+ $FileInfo: members.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="members.php"||$File3Name=="/members.php") {
$_SESSION['ExtraData'] = "currentact:".$_GET['act']."; currentcategoryid:0; currentforumid:0; currenttopicid:0; currentmessageid:0; currenteventid:0; currentmemberid:0;";
$UFID = rand_uuid("rand");
$_SESSION['UserFormID'] = $UFID;
+$gettzinfofromjs = $Settings['DefaultTimeZone'];
+if(isset($_COOKIE['getusertz']) && in_array($_COOKIE['getusertz'], DateTimeZone::listIdentifiers())) {
+ $gettzinfofromjs = $_COOKIE['getusertz']; }
// http://www.tutorialspoint.com/php/php_function_timezone_identifiers_list.htm
$timezone_identifiers = DateTimeZone::listIdentifiers();
//$timezone_identifiers = timezone_identifiers_list();
<?php
$optsel="";
for ($i=0; $i < count($zonelist['africa']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['africa'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['africa'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['africa'][$i][1]."\">".str_replace("_", " ", $zonelist['africa'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['america']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['america'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['america'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['america'][$i][1]."\">".str_replace("_", " ", $zonelist['america'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['antarctica']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['antarctica'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['antarctica'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['antarctica'][$i][1]."\">".str_replace("_", " ", $zonelist['antarctica'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['arctic']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['arctic'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['arctic'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['arctic'][$i][1]."\">".str_replace("_", " ", $zonelist['arctic'][$i][0])."</option>\n";
$optsel=""; }
?>
<optgroup label="Asia">
<?php
for ($i=0; $i < count($zonelist['asia']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['asia'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['asia'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['asia'][$i][1]."\">".str_replace("_", " ", $zonelist['asia'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['atlantic']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['atlantic'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['atlantic'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['atlantic'][$i][1]."\">".str_replace("_", " ", $zonelist['atlantic'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['australia']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['australia'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['australia'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['australia'][$i][1]."\">".str_replace("_", " ", $zonelist['australia'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['europe']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['europe'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['europe'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['europe'][$i][1]."\">".str_replace("_", " ", $zonelist['europe'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['indian']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['indian'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['indian'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['indian'][$i][1]."\">".str_replace("_", " ", $zonelist['indian'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['pacific']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['pacific'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['pacific'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['pacific'][$i][1]."\">".str_replace("_", " ", $zonelist['pacific'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['etcetera']); $i++) {
- if($Settings['DefaultTimeZone']==$zonelist['etcetera'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['etcetera'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['etcetera'][$i][1]."\">".str_replace("_", " ", $zonelist['etcetera'][$i][0])."</option>\n";
$optsel=""; }
?>
</select></td>
</tr><tr>
<td style="width: 30%;"><label class="TextBoxLabel" for="Website">Insert your Website:</label></td>
- <td style="width: 70%;"><input type="url" class="TextBox" name="Website" size="20" value="http://" id="Website" /></td>
+ <td style="width: 70%;"><input type="url" class="TextBox" name="Website" size="20" value="" id="Website" /></td>
</tr><tr>
<td style="width: 30%;"><label class="TextBoxLabel" for="Avatar">Insert a URL for Avatar:</label></td>
- <td style="width: 70%;"><input type="url" class="TextBox" name="Avatar" size="20" value="http://" id="Avatar" /></td>
+ <td style="width: 70%;"><input type="url" class="TextBox" name="Avatar" size="20" value="" id="Avatar" /></td>
</tr><tr>
<td style="width: 30%;"><label class="TextBoxLabel" title="Store userinfo as a cookie so you dont need to login again." for="storecookie">Store as cookie?</label></td>
<td style="width: 70%;"><select id="storecookie" name="storecookie" class="TextBox">
<tr class="TableRow3">
<td class="TableColumn3">
<table style="width: 100%; height: 25%; text-align: center;">
-<?php if (pre_strlen($_POST['Password'])>"60") { $Error="Yes"; ?>
+<?php if (pre_strlen($_POST['Password'])>"60") { $Error="Yes";
+if($_POST['Website']=="") { $_POST['Website'] = "http://"; }
+if($_POST['Avatar']=="") { $_POST['Avatar'] = "http://"; }
+?>
<tr>
<td><span class="TableMessage">
<br />Your password is too big.<br />
Copyright 2004-2017 iDB Support - http://idb.berlios.de/
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: profilemain.php - Last Update: 09/12/2018 SVN 869 - Author: cooldude2k $
+ $FileInfo: profilemain.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
strtolower($Pre1Avatar)=="noavatar") {
$Pre1Avatar=$ThemeSet['NoAvatar'];
$User1AvatarSize=$ThemeSet['NoAvatarSize']; }
+if($User1Avatar=="http://") { $User1Avatar = ""; }
$AvatarSize1=explode("x", $User1AvatarSize);
$AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
?>
if($_POST['update']=="now") {
if($_POST['Avatar']!=null&&$_POST['AvatarSizeW']!=null&&$_POST['AvatarSizeH']!=null&&
$_SESSION['UserGroup']!=$Settings['GuestGroup']) {
+ if($_POST['Avatar']=="") { $_POST['Avatar'] = "http://"; }
if (!filter_var($_POST['Avatar'], FILTER_VALIDATE_URL)&&($_POST['Avatar']!="http://"||$_POST['Avatar']!="https://")) { $Error="Yes"; ?>
<div class="TableMessage" style="text-align: center;">Your avatar url is not a valid web url.<br /> </div>
<?php }
$User1Title=sql_result($result,$i,"Title");
$User1Website=sql_result($result,$i,"Website");
$User1Website = urlcheck($User1Website);
+if($User1Website=="http://") { $User1Website = ""; }
$User1Gender=sql_result($result,$i,"Gender");
$User1TimeZone=sql_result($result,$i,"TimeZone");
$User1DateFormat=sql_result($result,$i,"DateFormat");
$_SESSION['UserGroup']!=$Settings['GuestGroup']) {
if(preg_match("/([0-9]{4})\-([0-9]{2})\-([0-9]{2})/", $_POST['EventDay'])) { $_POST['EventDay'] = preg_replace("/([0-9]{4})\-([0-9]{2})\-([0-9]{2})/", "$2/$3/$1", $_POST['EventDay']); }
$Error = "No";
+ if($_POST['Website']=="") { $_POST['Website'] = "http://"; }
if (!filter_var($_POST['Website'], FILTER_VALIDATE_URL)&&($_POST['Website']!="http://"||$_POST['Website']!="https://")) { $Error="Yes"; ?>
<div class="TableMessage" style="text-align: center;">Your website url is not a valid web url.<br /> </div>
<?php }
Copyright 2004-2017 iDB Support - http://idb.berlios.de/
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: versioninfo.php - Last Update: 09/12/2018 SVN 870 - Author: cooldude2k $
+ $FileInfo: versioninfo.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
return $return_var; }
// Version number and date stuff. :P
$VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 9; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 870;
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 871;
$SVNDay[0] = 9; $SVNDay[1] = 12; $SVNDay[2] = 2018; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
$AltName = "DF2k"; $AltName2 = "DF2k"; $RName = "iDB"; $SFName = "IntDB";
$RFullName = "Internet Discussion Boards"; $AltFullName = "Discussion Forums 2k"; $AltGM2k = "Game Maker 2k";
Copyright 2004-2017 iDB Support - http://idb.berlios.de/
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: html5.php - Last Update: 01/26/2017 SVN 810 - Author: cooldude2k $
+ $FileInfo: html5.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="xhtml10.php"||$File3Name=="/xhtml10.php") {
<?php } echo "\n"; ?>
<script type="text/javascript" src="<?php echo url_maker($exfilejs['javascript'],$Settings['js_ext'],null,$Settings['qstr'],$Settings['qsep'],$prexqstrjs['javascript'],$exqstrjs['javascript']); ?>"></script>
+<script type="text/javascript">
+ var tzname=Intl.DateTimeFormat().resolvedOptions().timeZone;
+ document.cookie = "getusertz="+tzname;
+</script>
<?php echo "\n";
if($ThemeSet['CSSType']=="import") { ?>
<style type="text/css">
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
iDB Installer made by Game Maker 2k - http://idb.berlios.net/
- $FileInfo: presetup.php - Last Update: 01/26/2017 SVN 810 - Author: cooldude2k $
+ $FileInfo: presetup.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="presetup.php"||$File3Name=="/presetup.php") {
Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
iDB Installer made by Game Maker 2k - http://idb.berlios.net/
- $FileInfo: setup.php - Last Update: 09/12/2018 SVN 869 - Author: cooldude2k $
+ $FileInfo: setup.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="setup.php"||$File3Name=="/setup.php") {
$fp = fopen("./settingsbak.php","w+");
fwrite($fp, $BoardSettings);
fclose($fp);
+$gettzinfofromjs = date_default_timezone_get();
+if(isset($_COOKIE['getusertz']) && in_array($_COOKIE['getusertz'], DateTimeZone::listIdentifiers())) {
+ $gettzinfofromjs = $_COOKIE['getusertz']; }
// http://www.tutorialspoint.com/php/php_function_timezone_identifiers_list.htm
$timezone_identifiers = DateTimeZone::listIdentifiers();
//$timezone_identifiers = timezone_identifiers_list();
<?php
$optsel="";
for ($i=0; $i < count($zonelist['africa']); $i++) {
- if(date_default_timezone_get()==$zonelist['africa'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['africa'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['africa'][$i][1]."\">".str_replace("_", " ", $zonelist['africa'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['america']); $i++) {
- if(date_default_timezone_get()==$zonelist['america'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['america'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['america'][$i][1]."\">".str_replace("_", " ", $zonelist['america'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['antarctica']); $i++) {
- if(date_default_timezone_get()==$zonelist['antarctica'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['antarctica'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['antarctica'][$i][1]."\">".str_replace("_", " ", $zonelist['antarctica'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['arctic']); $i++) {
- if(date_default_timezone_get()==$zonelist['arctic'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['arctic'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['arctic'][$i][1]."\">".str_replace("_", " ", $zonelist['arctic'][$i][0])."</option>\n";
$optsel=""; }
?>
<optgroup label="Asia">
<?php
for ($i=0; $i < count($zonelist['asia']); $i++) {
- if(date_default_timezone_get()==$zonelist['asia'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['asia'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['asia'][$i][1]."\">".str_replace("_", " ", $zonelist['asia'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['atlantic']); $i++) {
- if(date_default_timezone_get()==$zonelist['atlantic'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['atlantic'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['atlantic'][$i][1]."\">".str_replace("_", " ", $zonelist['atlantic'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['australia']); $i++) {
- if(date_default_timezone_get()==$zonelist['australia'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['australia'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['australia'][$i][1]."\">".str_replace("_", " ", $zonelist['australia'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['europe']); $i++) {
- if(date_default_timezone_get()==$zonelist['europe'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['europe'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['europe'][$i][1]."\">".str_replace("_", " ", $zonelist['europe'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['indian']); $i++) {
- if(date_default_timezone_get()==$zonelist['indian'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['indian'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['indian'][$i][1]."\">".str_replace("_", " ", $zonelist['indian'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['pacific']); $i++) {
- if(date_default_timezone_get()==$zonelist['pacific'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['pacific'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['pacific'][$i][1]."\">".str_replace("_", " ", $zonelist['pacific'][$i][0])."</option>\n";
$optsel=""; }
?>
<?php
$optsel="";
for ($i=0; $i < count($zonelist['etcetera']); $i++) {
- if(date_default_timezone_get()==$zonelist['etcetera'][$i][1]) { $optsel = " selected=\"selected\""; }
+ if($gettzinfofromjs==$zonelist['etcetera'][$i][1]) { $optsel = " selected=\"selected\""; }
echo "<option".$optsel." value=\"".$zonelist['etcetera'][$i][1]."\">".str_replace("_", " ", $zonelist['etcetera'][$i][0])."</option>\n";
$optsel=""; }
?>