<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<iframe width="260" height="165" id="colourPalette" src="../images/post/nc_selcolor.htm" style="visibility:hidden; position: absolute; left: 0px; top: 0px;border:1px gray solid" frameborder="0" scrolling="no" ></iframe>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<form method="POST" action="?action=save" name="theform">
<tr><td>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td width="100%" colspan="3" class="tit1"><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info1']?></span>
</td></tr>
<tr> 
<td width="100%" class="forumrow2" colspan=3 height="23">
<a href="?doaction=appearance">[<?=$lang['forum_settings.info322']?>]</a>&nbsp;<a href="?doaction=basic"><?=$lang['forum_settings.info2']?></a>&nbsp;<a href="?doaction=datadesign"><?=$lang['forum_settings.info3']?></a>&nbsp;<a href="?doaction=stealthily"><?=$lang['forum_settings.info4']?></a>&nbsp;<a href="?doaction=firstoption"><?=$lang['forum_settings.info5']?></a>&nbsp;<a href="?doaction=reg"><?=$lang['forum_settings.info6']?></a>&nbsp;<a href="?doaction=system"><?=$lang['forum_settings.info7']?></a>&nbsp;<a href="?doaction=userfrom"><?=$lang['forum_settings.info8']?></a>&nbsp;<a href="?doaction=search"><?=$lang['forum_settings.info16']?></a>&nbsp;<a href="?doaction=plus">[<font color="blue"><?=$lang['forum_settings.info17']?></font>]</a>&nbsp;
</td>
</tr>
<tr> 
<td width="100%" class="forumrow2" colspan="3" height="23">
<?php if (!defined('MAIN_DOMAIN_NAME')) {?><a href="?doaction=postoption"><?=$lang['forum_settings.info9']?></a>&nbsp;<?php } ?><a href="?doaction=upload"><?=$lang['forum_settings.info10']?></a>&nbsp;<a href="?doaction=useroption"><?=$lang['forum_settings.info11']?></a>&nbsp;<a href="?doaction=forumoption"><?=$lang['forum_settings.info12']?></a>&nbsp;<a href="?doaction=refurbish"><?=$lang['forum_settings.info13']?></a>&nbsp;<a href="?doaction=pagedesign"><?=$lang['forum_settings.info14']?></a>&nbsp;<a href="?doaction=menpai"><?=$lang['forum_settings.info15']?></a>&nbsp;<a href="?doaction=safe">[<font color="red"><?=$lang['forum_settings.info18']?></font>]</a>&nbsp;<a href="challenge.php">[<font color="blue"><?=$lang['forum_settings.info19']?></font>]</a>&nbsp;<a href="?doaction=vipuser"><?=$lang['forum_settings.info20']?></a>
</td>
</tr>
<tr> 
<td width="20%" bgcolor="#F1F3F5" height="23">&nbsp;</td>
<td width="30%" height="23" bgcolor="#C9DEFA"><font color="red"><?get_actionvalue()?></font></td>
<td width="50%" bgcolor="#F1F3F5" height="23">&nbsp;</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='appearance'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td width="100%" colspan="3" class="tdtit"><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info322']?></span>
</td></tr>
<tr> 
<td width="93%" class="forumrow1" colspan="2" height="18">
<?=$lang['forum_settings.info21']?><a href="?action=restore"><B><?=$lang['forum_settings.info22']?></B></a>
</td>
<input type="hidden" id="forum_return" value="<?=$lang['forum_settings.info23']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(forum_return);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td width="50%" class="forumrow">
<B><?=$lang['forum_settings.info25']?></B></td>
<td width="43%" class="forumrow">
<?
	$query=$db->query("Select forum_setting,forum_sid,forum_cid,forum_adminfolder,forum_maxonline,forum_maxonlinedate,forum_maxpostnum,forum_maxpostdate,forum_usernum,forum_lastuser,forum_yesterdaynum,forum_topicnum,forum_postnum,forum_usernum,forum_tpl From {$dv}setup Limit 1");
	$fs = $db->fetch_array($query);
	$query=$db->query("Select styleid,name,ename,directory,stype From {$dv}styles");
	while($tpl = &$db->fetch_array($query)){
		$tplarray[] = $tpl;
	}
	$sforum_setting = explode('|||',$fs['forum_setting']);
	$tpl_css_apc=explode('|',$fs['forum_tpl']);
?>
<Select Size=1 Name="forum_sid">
<?
foreach( $tplarray as $val ){
	if (intval($val['stype']) == 0){
		echo "<option value=\"{$val['ename']}\"";
		if ($tpl_css_apc[0] == $val['ename']){echo ' selected';}//$fs['forum_sid']== $val['styleid']
		echo ">{$val['name']}</option>";
	}
}
?>
</Select>
<Select Size=1 Name="forum_cid">
<?
foreach( $tplarray as $val ){
	if (intval($val['stype']) == 2){
		$val['directory'] = str_replace('/templates/','templates/',$val['directory']);
		$val['directory'] .= $val['ename'].'.css';
		echo "<option value=\"{$val['directory']}\"";
		if ($tpl_css_apc[1] == $val['directory']){echo ' selected';}//$fs['forum_cid']== $val['styleid']
		echo ">{$val['name']}</option>";
	}
}
?>
</Select>
<Select Size=1 Name="forum_lang">
<?
foreach( $tplarray as $val ){
	if (intval($val['stype']) == 1){
		echo "<option value=\"{$val['ename']}\"";
		if ($tpl_css_apc[2] == $val['ename']){echo ' selected';}//$fs['forum_cid']== $val['styleid']
		echo ">{$val['name']}</option>";
	}
}
?>
</Select>
</td>
<input type="hidden" id="forum_skin" value="<?=$lang['forum_settings.info26']?>">
<td class="forumrow"><a href="#" onclick="helpscript(forum_skin);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1"><B><?=$lang['forum_settings.info300']?></B><BR><?=$lang['forum_settings.info313']?></td>
<td class="forumrow1" colspan="2">
<select name="ads_id">
<?
$ads_id=$db->scalar("select forum_adsid from {$dv}setup");
$sql_ads=$db->query("select id,type from {$dv}fsettings where s_class=2 order by c_orders");
while($adslist = $db->fetch_array($sql_ads)){
	echo "<option value=\"{$adslist['id']}\"";
	if ($ads_id==$adslist['id']){
		echo ' selected';
	}
	echo ">{$adslist['type']}</option>";
}
?>
</select>
</td>
<input type="hidden" id="forum_open" value="<?=$lang['forum_settings.info29']?>">
</tr>
<tr> 
<td class="forumrow"><B><?=$lang['forum_settings.info314']?></B></td>
<td class="forumrow" colspan="2">
<input type="radio" name="forum_setting(2)" value="0" <?if($forum_setting[2] == "0"){echo "checked";}?>><?=$lang['forum_settings.info315']?>&nbsp;
<input type="radio" name="forum_setting(2)" value="1" <?if($forum_setting[2] == "1"){echo "checked";}?>><?=$lang['forum_settings.info316']?>&nbsp;
</td>
<input type="hidden" id="forum_open" value="<?=$lang['forum_settings.info29']?>">
</tr>
<tr> 
<td class="forumrow1"><B><?=$lang['forum_settings.info27']?></B><BR><?=$lang['forum_settings.info28']?></td>
<td class="forumrow1"> 
<input type="radio" name="forum_setting(21)" value="0" <?if($forum_setting[21] == "0"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
<input type="radio" name="forum_setting(21)" value="1" <?if($forum_setting[21] == "1"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
</td>
<input type="hidden" id="forum_open" value="<?=$lang['forum_settings.info29']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(forum_open);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow"><B><?=$lang['forum_settings.info30']?></B><BR><?=$lang['forum_settings.info31']?></td>
<td class="forumrow"> 
<textarea name="stopreadme" cols="50" rows="3" ID="TDStopReadme"><?=$sforum_setting[5]?></textarea><br><a href="javascript:admin_Size(-3,'TDStopReadme')"><img src="images/minus.gif" unselectable="on" border='0'></a> <a href="javascript:admin_Size(3,'TDStopReadme')"><img src="images/plus.gif" unselectable="on" border='0'></a>
</td>
<input type="hidden" id="forum_opens" value="<?=$lang['forum_settings.info32']?>">
<td class="forumrow"><a href="#" onclick="helpscript(forum_opens);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1">
<B><?=$lang['forum_settings.info33']?></B></td>
<td class="forumrow1"> 
<input type="radio" name="forum_setting(69)" value="0" <?if($forum_setting[69] == "0"){echo "checked";}?>><?=$lang['forum_close']?></option>
<input type="radio" name="forum_setting(69)" value="1" <?if($forum_setting[69] == "1"){echo "checked";}?>><?=$lang['forum_settings.info34']?>
<input type="radio" name="forum_setting(69)" value="2" <?if($forum_setting[69] == "2"){echo "checked";}?>><?=$lang['forum_settings.info35']?>
</td>
<input type="hidden" id="forum_isopentime" value="<?=$lang['forum_settings.info36']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(forum_isopentime);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow">
<B><?=$lang['forum_settings.info37']?></B><BR><?=$lang['forum_settings.info38']?></td>
<td class="forumrow"> 
<?
$stoptimelist = explode('|',$forum_setting[70]);
$ii = 0;
for ($i=0; $i<24; $i++){
	$ii++;
	if ($i < 10){echo '&nbsp; ';}
	echo $i.$lang['forum_settings.info301'];
?>
<input type="checkbox" name="forum_setting(70)<?=$i?>" value="1" <?if(intval($stoptimelist[$i]) == 1){echo 'checked="checked"';}?>>
<?
	if ($ii == 4){
		$ii = 0;
		echo '<br>';
	}
}
?>
</td>
<input type="hidden" id="forum_opentime" value="<?=$lang['forum_settings.info39']?>">
<td class="forumrow"><a href="#" onclick="helpscript(forum_opentime);return false;" class="helplink"></a></td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder" style="<?if($doaction=='safe'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td width="100%" colspan="3" align="center"  height="25" class="tdtit"><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info18']?></span>
</td></tr>
<tr> 
<td class="forumrow" width="50%">
<b><?=$lang['forum_settings.info40']?></b><br><?=$lang['forum_settings.info41']?></td>
<td class="forumrow" width="43%"> 
<input type="text" name="forum_admin_folder" size="35" value="<?=$fs['forum_adminfolder']?>" <?php defined('MAIN_DOMAIN_NAME') AND print(' disabled="disabled" ')?>><br><BR><b><?=$lang['forum_settings.info42']?>:</b><?=$lang['forum_settings.info43']?>
<input type="hidden" id="AdminFolder" value="<?=$lang['forum_settings.info44']?>">
</td>
<td class="forumrow"><a href="#" onclick="helpscript(AdminFolder);return false;" class="helplink"></a></td>
</tr>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info44_1']?></b><br><?=$lang['forum_settings.info44_2']?></td>
<td width="50%" class="forumrow1" colspan="2">
<input type="radio" name="forum_setting(106)" value="1" <?if($forum_setting[106] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
<input type="radio" name="forum_setting(106)" value="0" <?if($forum_setting[106] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='basic' or $doaction==''){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting3"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info45']?></span></td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info46']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_info(0)" size="35" value="<?=$forum_info[0]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info47']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_info(1)" size="35" value="<?=$forum_info[1]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info297']?></b></td>
<td width="50%" class="forumrow">
<input type="radio" name="forum_info(14)" value="0" <?if($forum_info[14] == "0"){echo "checked";}?>><?=$lang['forum_settings.info298']?>&nbsp;
<input type="radio" name="forum_info(14)" value="1" <?if($forum_info[14] == "1"){echo "checked";}?>><?=$lang['forum_settings.info299']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info48']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_setting(74)" size="35" value="<?=$forum_setting[74]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info49']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_info(11)" size="35" value="<?=$forum_info[11]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info50']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_info(2)" size="35" value="<?=$forum_info[2]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info51']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_info(3)" size="35" value="<?=$forum_info[3]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info52']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_info(5)" size="35" value="<?=$forum_info[5]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info53']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_info(7)" size="35" value="<?=$forum_info[7]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info54']?></b><BR><?=$lang['forum_settings.info55']?></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_info(6)" size="35" value="<?=$forum_info[6]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info56']?></b><BR><?=$lang['forum_settings.info57']?><BR><?=$lang['forum_settings.info58']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_info(8)" size="35" value="<?=$forum_info[8]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info59']?></b><BR><?=$lang['forum_settings.info60']?><BR><font color="red"><?=$lang['forum_settings.info61']?></font></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_info(10)" size="35" value="<?=$forum_info[10]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info62']?></b></td>
<td width="50%" class="forumrow" valign="top">  
<textarea name="copyright" cols="50" rows="5" id="TdCopyright"><?=$sforum_setting[3]?></textarea>
<a href="javascript:admin_Size(-5,'TdCopyright')"><img src="images/minus.gif" unselectable="on" border='0'></a> <a href="javascript:admin_Size(5,'TdCopyright')"><img src="images/plus.gif" unselectable="on" border='0'></a>
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='datadesign'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting21"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info63']?></span>--<?=$lang['forum_settings.info64']?></td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info65']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_usernum" size="25" value="<?=$fs['forum_usernum']?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info66']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_topicnum" size="25" value="<?=$fs['forum_topicnum']?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info67']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_postnum" size="25" value="<?=$fs['forum_postnum']?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info68']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_maxpost_num" size="25" value="<?=$fs['forum_maxpostnum']?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info69']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_maxpost_date" size="25" value="<?=(is_numeric($fs['forum_maxpostdate']) ? gmdate('Y-m-d H:i:s', $fs['forum_maxpostdate']+getUserTimeZoneOffset()
) : $fs['forum_maxpostdate'])?>"><?=$lang['forum_settings.info70']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info71']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_max_online" size="25" value="<?=$fs['forum_maxonline']?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info72']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_maxonline_date" size="25" value="<?=(is_numeric($fs['forum_maxonlinedate']) ? gmdate('Y-m-d H:i:s', $fs['forum_maxonlinedate']+getUserTimeZoneOffset()
) : $fs['forum_maxonlinedate'])?>"><?=$lang['forum_settings.info70']?>
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder" style="<?if($doaction=='stealthily'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting6"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info73']?></span></td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info74']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(10)" value="0" <?if(empty($forum_setting[10])){echo "checked";}?>><?=$lang['yes']?>&nbsp;
<input type="radio" name="forum_setting(10)" value="1" <?if(intval($forum_setting[10]) == "1"){echo "checked";}?>><?=$lang['no']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info75']?></b><BR><?=$lang['forum_settings.info76']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(80)" value="0" <?if(empty($forum_setting[80])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(80)" value="1" <?if(intval($forum_setting[80]) == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"><?=$lang['forum_settings.info321']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(104)" value="0" <?if(empty($forum_setting[104])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(104)" value="1" <?if(intval($forum_setting[104]) == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder" style="<?if($doaction=='firstoption'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="3" align="center" id="tabletitlelink" class="tdtit"><a name="setting7"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info77']?></span></td>
</tr>
<tr>
<td width="50%" class="forumrow">
<b><?=$lang['forum_settings.info78']?></b>
<input type="hidden" id="forum_depth" value="<?=$lang['forum_settings.info79']?>">
</td>
<td width="43%" class="forumrow"> 
<input type=text size="10" name="forum_setting(5)" value="<?=$forum_setting[5]?>"> <?=$lang['forum_settings.info80']?>
</td>
<td class="forumrow"><a href="#" onclick="helpscript(forum_depth);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1"> <b><?=$lang['forum_settings.info81']?></b>
<input type="hidden" id="forum_userbirthday" value="<?=$lang['forum_settings.info82']?>">
</td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(29)" value="0" <?if(empty($forum_setting[29])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(29)" value="1" <?if(intval($forum_setting[29]) == 1){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
<td class="forumrow1"><a href="#" onclick="helpscript(forum_userbirthday);return false;" class="helplink"></a></td>
</tr>

<tr> 
<td class="forumrow"><?=$lang['forum_settings.info328']?>
</td>
<td class="forumrow" colspan="2">  
<input type="radio" name="forum_setting(114)" value="0" <?if(empty($forum_setting[114])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(114)" value="1" <?if(intval($forum_setting[114]) == 1){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow1"><?=$lang['forum_settings.info329']?>
</td>
<td class="forumrow1" colspan="2">  
<input type="radio" name="forum_setting(115)" value="0" <?if(empty($forum_setting[115])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(115)" value="1" <?if(intval($forum_setting[115]) == 1){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"><?=$lang['forum_settings.info330']?>
</td>
<td class="forumrow" colspan="2">  
<input type="radio" name="forum_setting(116)" value="0" <?if(empty($forum_setting[116])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(116)" value="1" <?if(intval($forum_setting[116]) == 1){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"><?=$lang['forum_settings.info331']?>
</td>
<td class="forumrow" colspan="2">  
<input type="radio" name="forum_setting(117)" value="0" <?if(empty($forum_setting[117])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(117)" value="1" <?if(intval($forum_setting[117]) == 1){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"><?=$lang['forum_settings.info332']?>
</td>
<td class="forumrow" colspan="2"> 
<input type="radio" name="forum_setting(118)" value="0" <?if(empty($forum_setting[118])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(118)" value="1" <?if(intval($forum_setting[118]) == 1){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>


<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder" style="<?if($doaction=='reg'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting8"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info83']?></span></td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info84']?></b><BR><?=$lang['forum_settings.info85']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(37)" value="0" <?if($forum_setting[37] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(37)" value="1" <?if($forum_setting[37] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info86']?></b><BR><?=$lang['forum_settings.info87']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(78)" value="0" <?if($forum_setting[78] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(78)" value="1" <?if($forum_setting[78] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info88']?></b><BR><?=$lang['forum_settings.info89']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(79)" value="0" <?if($forum_setting[79] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(79)" value="1" <?if($forum_setting[79] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info90']?></b><BR><?=$lang['forum_settings.info91']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(81)" value="0" <?if($forum_setting[81] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(81)" value="1" <?if($forum_setting[81] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>

<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info333']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(119)" value="swf" <?if($forum_setting[119] == "swf"||empty($forum_setting[119] )){echo "checked";}?>><?=$lang['forum_settings.info333_1']?>&nbsp;
<input type="radio" name="forum_setting(119)" value="agif" <?if($forum_setting[119] == "agif"){echo "checked";}?>><?=$lang['forum_settings.info333_2']?>&nbsp;
<input type="radio" name="forum_setting(119)" value="gif" <?if($forum_setting[119] == "gif"){echo "checked";}?>><?=$lang['forum_settings.info333_3']?>&nbsp;
<input type="radio" name="forum_setting(119)" value="jpg" <?if($forum_setting[119] == "jpg"){echo "checked";}?>><?=$lang['forum_settings.info333_4']?>&nbsp;
</td>
</tr>

<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info92']?></b><BR><?=$lang['forum_settings.info93']?></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_setting(84)" size="3" value="<?=$forum_setting[84]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info94']?></b><BR><?=$lang['forum_settings.info95']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(40)" size="3" value="<?=$forum_setting[40]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info96']?></b><BR><?=$lang['forum_settings.info95']?></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_setting(41)" size="3" value="<?=$forum_setting[41]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info97']?></b><BR><?=$lang['forum_settings.info98']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(22)" size="3" value="<?=$forum_setting[22]?>">&nbsp;<?=$lang['second']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info99']?></b><BR><?=$lang['forum_settings.info100']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(23)" value="0" <?if($forum_setting[23] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(23)" value="1" <?if($forum_setting[23] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info101']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(24)" value="0" <?if($forum_setting[24] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(24)" value="1" <?if($forum_setting[24] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info102']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(25)" value="0" <?if($forum_setting[25] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(25)" value="1" <?if($forum_setting[25] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info103']?></b><BR><?=$lang['forum_settings.info104']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(47)" value="0" <?if($forum_setting[47] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(47)" value="1" <?if($forum_setting[47] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info105']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(46)" value="0" <?if($forum_setting[46] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(46)" value="1" <?if($forum_setting[46] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr><td colspan="3" class="forumrow" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder" style="<?if($doaction=='system'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting10"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info108']?></span> [<a href="#top"><?=$lang['top']?></a>]</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info106']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_info(9)" size="35" value="<?=$forum_info[9]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info107']?></b></td>
<td width="50%" class="forumrow1">
<select name="forum_setting(88)">
<?
if (is_array($lang['timeDiffText']) && is_array($lang['timeDiffValue'])){
	for ($i=0;$i<sizeof($lang['timeDiffText']);$i++){
		echo("<option value=".$lang['timeDiffValue'][$i].">".$lang['timeDiffText'][$i]."</option>");
	}
}
?>
</select>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info109']?></b><BR><?=$lang['forum_settings.info110']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(1)" size="3" value="<?=$forum_setting[1]?>">&nbsp;<?=$lang['second']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info111']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(30)" value="0" <?if($forum_setting[30] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(30)" value="1" <?if($forum_setting[30] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"><?=$lang['forum_settings.info112']?></td>
<td width="50%" class="forumrow"> 
<input type="text" name="forum_setting(52)" size="50" value="<?=$forum_setting[52]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"><?=$lang['forum_settings.info113']?></td>
<td width="50%" class="forumrow1"> 
<Input type="text" name="forum_setting(77)" size="50" value="<?=$forum_setting[77]?>"><br> <?=$lang['forum_settings.info114']?></td>
</tr>


<tr> 
<td width="50%" class="forumrow"> <?=$lang['forum_settings.info334']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(120)" value="0" <?if($forum_setting[120] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(120)" value="1" <?if($forum_setting[120] != "0"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>


<tr><td colspan="3" class="forumrow" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='userfrom'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting12"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info115']?></span></td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info116']?></b><BR><?=$lang['forum_settings.info117']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(28)" value="0" <?if($forum_setting[28] == "0"){echo "checked";}?>><?=$lang['forum_settings.info118']?>&nbsp;
<input type="radio" name="forum_setting(28)" value="1" <?if($forum_setting[28] == "1"){echo "checked";}?>><?=$lang['forum_settings.info119']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info120']?></b><BR><?=$lang['forum_settings.info121']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(36)" value="0" <?if($forum_setting[36] == "0"){echo "checked";}?>><?=$lang['forum_settings.info118']?>&nbsp;
<input type="radio" name="forum_setting(36)" value="1" <?if($forum_setting[36] == "1"){echo "checked";}?>><?=$lang['forum_settings.info119']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info122']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(33)" value="0" <?if($forum_setting[33] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(33)" value="1" <?if($forum_setting[33] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info123']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(34)" value="0" <?if($forum_setting[34] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(34)" value="1" <?if($forum_setting[34] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info124']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(35)" value="0" <?if($forum_setting[35] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(35)" value="1" <?if($forum_setting[35] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info125']?></b><BR><?=$lang['forum_settings.info126']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(15)" value="0" <?if($forum_setting[15] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(15)" value="1" <?if($forum_setting[15] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info127']?></b><BR><?=$lang['forum_settings.info128']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(14)" value="0" <?if($forum_setting[14] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(14)" value="1" <?if($forum_setting[14] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info129']?></b><BR><?=$lang['forum_settings.info130']?><BR><?=$lang['forum_settings.info131']?></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_setting(8)" size="3" value="<?=$forum_setting[8]?>">&nbsp;<?=$lang['forum_settings.info132']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info133']?></b><BR><?=$lang['forum_settings.info134']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(26)" size="6" value="<?=$forum_setting[26]?>">&nbsp;<?=$lang['tpl.str2']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info135']?></b></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_setting(58)" size="6" value="<?=$forum_setting[58]?>">&nbsp;<?=$lang['tpl.str2']?>
</td>
</tr>
<tr><td colspan="3" class="forumrow" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<?php
if (!defined('MAIN_DOMAIN_NAME')) {
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder" style="<?if($doaction=='postoption'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="3" align="center" id="tabletitlelink" class="tdtit"><a name="setting13"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info136']?></span></td>
</tr>
<tr> 
	<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info137']?></b>
	<input type="hidden" id="forum_emailplus" value="<?=$lang['forum_settings.info138']?>">
	<BR><?=$lang['forum_settings.info139']?></td>
	<td width="43%" class="forumrow">  
	<select name="forum_setting(87)">
	<option value="0"<?if($forum_setting[87]==0){echo ' selected';}?>><?=$lang['forum_settings.info140']?> </option>
	<option value="1"<?if($forum_setting[87]==1){echo ' selected';}?>><?=$lang['forum_settings.info144']?></option>
	<option value="2"<?if($forum_setting[87]==2){echo ' selected';}?>><?=$lang['forum_settings.info295']?></option>
	<option value="3"<?if($forum_setting[87]==3){echo ' selected';}?>><?=$lang['forum_settings.info296']?></option>
	</select></td>
	<td class="forumrow"><a href="#" onclick="helpscript(forum_emailplus);return false;" class="helplink"></a></td>
</tr>
<tr> 
	<td class="forumrow1"> <b>SMTP Server<?=$lang['addr']?></b>
	<input type="hidden" id="forum_smtp" value="<?=$lang['forum_settings.info141']?>">
	<BR><?=$lang['forum_settings.info142']?></td>
	<td class="forumrow1">  
	<input type="text" name="forum_info(4)" size="35" value="<?=$forum_info[4]?>">
	</td>
	<td class="forumrow1"><a href="#" onclick="helpscript(forum_smtp);return false;" class="helplink"></a></td>
</tr>
<tr>
	<td class="forumrow"> <b><?=$lang['forum_settings.info143']?></b><BR><?=$lang['forum_settings.info142']?></td>
	<td colspan=2 class="forumrow">
	<input type="text" name="forum_info(12)" size="35" value="<?=$forum_info[12]?>">
	</td>
</tr>
<tr>
	<td class="forumrow"> <b><?=$lang['forum_settings.info143_1']?></b><BR><?=$lang['forum_settings.info142_1']?></td>
	<td colspan=2 class="forumrow">
	<input type="text" name="forum_setting(86)" size="35" value="<?=$forum_setting[86]?>">
	</td>
</tr>
<tr> 
	<td class="forumrow1"> <b><?=$lang['forum_settings.info145']?></b><BR><?=$lang['forum_settings.info142']?></td>
	<td colspan="2" class="forumrow1">  
	<input type="password" name="forum_info(13)" size="35" value="<?=$forum_info[13]?>">
	</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<?php
}
?>
<?
$uploadsetting = explode('|',$forum_setting[7]);
if (count($uploadsetting) != 21){
	for($i=0; $i<21; $i++){
		if ($i == 2 || $i == 3){
			//$uploadsetting[$i] = 999;
			$uploadsetting[$i] = 1;
		}else{
			$uploadsetting[$i] = 0;
		}
	}
}
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='upload'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="3" align="center" id="tabletitlelink" class="tdtit"><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info146']?></span></td>
</tr>
<tr> 
	<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info147']?></b></td>
	<td width="43%" class="forumrow">
	<SELECT name="uploadsetting(0)" id="uploadsetting(0)">
	<OPTION value="0" <?if($uploadsetting[0] == "0"){echo "selected";}?>><?=$lang['forum_settings.info148']?>&nbsp;
	<OPTION value="1" <?if($uploadsetting[0] == "1"){echo "selected";}?>><?=$lang['forum_settings.info149']?>&nbsp;
	<OPTION value="2" <?if($uploadsetting[0] == "2"){echo "selected";}?>><?=$lang['forum_settings.info150']?>&nbsp;
	</SELECT>
	</td>
	<input type="hidden" id="Forum_FaceUpload" value="<?=$lang['forum_settings.info151']?>">
	<td class="forumrow"><a href="#" onclick="helpscript(Forum_FaceUpload);return false;" class="helplink"></a></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info152']?></b></td>
	<td class="forumrow1"> 
	<input type="text" name="uploadsetting(1)" size="6" value="<?=$uploadsetting[1]?>">&nbsp;K
	</td>
	<input type="hidden" id="Forum_FaceUploadSize" value="<?=$lang['forum_settings.info153']?>">
	<td class="forumrow1"><a href="#" onclick="helpscript(Forum_FaceUploadSize);return false;" class="helplink"></a></td>
</tr>
<tr>
	<td class="forumrow" ><b><?=$lang['forum_settings.info154']?></b></td>
	<td class="forumrow">
	<input type="radio" name="uploadsetting(2)" value="0" <?=($uploadsetting[2]=='0'?" checked ":"")?> /><?=$lang['forum_close']?>&nbsp;&nbsp;<input type="radio" name="uploadsetting(2)" value="1" <?=($uploadsetting[2]!='0'?" checked ":"")?> /><?=$lang['forum_open1']?>
	</td>
	<td class="forumrow" >
	<input type="hidden" id="forum_upload" value="<?=$lang['forum_settings.info159']?>">
	<a href="#" onclick="helpscript(forum_upload);return false;" class="helplink"></a></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info160']?></b></td>
	<td class="forumrow1"> 
	<input type="radio" name="uploadsetting(3)" value="0" <?=($uploadsetting[3]=='0'?" checked ":"")?> /><?=$lang['forum_close']?>&nbsp;&nbsp;<input type="radio" name="uploadsetting(3)" value="1" <?=($uploadsetting[3]!='0'?" checked ":"")?> /><?=$lang['forum_open1']?>
	</td>
	<td class="forumrow1">
	<input type="hidden" id="forum_CreatImg" value="<?=$lang['forum_settings.info164']?>">
	<a href="#" onclick="helpscript(forum_CreatImg);return false;" class="helplink"></a></td>
</tr>
<tr> 
	<td class="forumrow"><b><?=$lang['forum_settings.info165']?>:</b></td>
	<td class="forumrow">
		<?=$lang['width']?><INPUT TYPE="text" NAME="uploadsetting(14)" size=10 value="<?=$uploadsetting[14]?>"> <?=$lang['pix']?>
		<?=$lang['height']?><INPUT TYPE="text" NAME="uploadsetting(15)" size=10 value="<?=$uploadsetting[15]?>"> <?=$lang['pix']?>
	</td>
	<td class="forumrow">
	<input type="hidden" id="forum_CreatImgSize" value="<?=$lang['forum_settings.info166']?>">
	<a href="#" onclick="helpscript(forum_CreatImgSize);return false;" class="helplink"></a></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info167']?>:</b></td>
	<td class="forumrow1"> 
		<SELECT name="uploadsetting(16)" id="uploadsetting(16)">
		<OPTION value="0"><?=$lang['forum_settings.info169']?></OPTION>
		<OPTION value="1"><?=$lang['forum_settings.info168']?></OPTION>
		</SELECT>
	</td>
	<td class="forumrow1"></td>
</tr>
<tr> 
	<td class="forumrow"><b><?=$lang['forum_settings.info170']?>:</b></td>
	<td class="forumrow"> 
		<SELECT name="uploadsetting(17)" id="uploadsetting(17)">
		<OPTION value="0"><?=$lang['forum_settings.info171']?></OPTION>
		<OPTION value="1"><?=$lang['forum_settings.info172']?></OPTION>
		<OPTION value="2"><?=$lang['forum_settings.info173']?></OPTION>
		</SELECT>
	</td>
	<td class="forumrow"></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info174']?>:</b></td>
	<td class="forumrow1"> 
	<INPUT TYPE="text" NAME="uploadsetting(4)" size="40" value="<?=$uploadsetting[4]?>">
	</td>
	<td class="forumrow1">
	<input type="hidden" id="forum_CreatText" value="<?=$lang['forum_settings.info175']?>">
	<a href="#" onclick="helpscript(forum_CreatText);return false;" class="helplink"></a></td>
</tr>
<tr> 
	<td class="forumrow"><b><?=$lang['forum_settings.info176']?>:</b></td>
	<td class="forumrow"> 
	<INPUT TYPE="text" NAME="uploadsetting(5)" size="10" value="<?=$uploadsetting[5]?>"> <b>px</b>
	</td>
	<td class="forumrow"></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info177']?>:</b></td>
	<td class="forumrow1">
	<input type="hidden" name="uploadsetting(6)" id="uploadsetting(6)" value="<?=$uploadsetting[6]?>">
	<img border="0" src="../images/post/rect.gif" style="cursor:pointer;background-Color:<?=$uploadsetting[6]?>;" onclick="Getcolor(this,'uploadsetting(6)');" title="<?=$lang['forum_settings.info178']?>">
	</td>
	<td class="forumrow1"></td>
</tr>
<tr> 
	<td class="forumrow"><b><?=$lang['forum_settings.info179']?>:</b></td>
	<td class="forumrow">
	<SELECT name="uploadsetting(7)" id="uploadsetting(7)">
	<?
		if (is_array($lang['ArrayFont'])){
			for ($i=0;$i<sizeof($lang['ArrayFont']);$i++){
				echo("<option value=\"".$lang['ArrayFont'][$i]."\">".$lang['ArrayFont'][$i]."</option>\n");
			}
		}
	?>
	</SELECT>
	</td>
	<td class="forumrow"></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info180']?>:</b></td>
	<td class="forumrow1"> 
		<SELECT name="uploadsetting(8)" id="uploadsetting(8)">
		<OPTION value="0"><?=$lang['no']?></OPTION>
		<OPTION value="1"><?=$lang['yes']?></OPTION>
		</SELECT>
	</td>
	<td class="forumrow1"></td>
</tr>
<!-- 上传图片添加水印LOGO图片定义 -->
<tr> 
	<td class="forumrow"><b><?=$lang['forum_settings.info181']?>:</b><br><?=$lang['forum_settings.info182']?></td>
	<td class="forumrow"> 
	<INPUT TYPE="text" NAME="uploadsetting(9)" size="40" value="<? echo strtolower($uploadsetting[9])?>">
	</td>
	<td class="forumrow"></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info183']?>:</b></td>
	<td class="forumrow1"> 
	<INPUT TYPE="text" NAME="uploadsetting(10)" size="10" value="<?=$uploadsetting[10]?>"> <?=$lang['forum_settings.info184']?>
	</td>
	<td class="forumrow1"></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info185']?>:</b><br><?=$lang['forum_settings.info186']?></td>
	<td class="forumrow1"> 
	<INPUT TYPE="text" NAME="uploadsetting(18)" ID="uploadsetting(18)" size="10" value="<?=$uploadsetting[18]?>"> 
	<img border="0" src="../images/post/rect.gif" style="cursor:pointer;background-Color:<?=$uploadsetting[18]?>;" onclick="Getcolor(this,'uploadsetting(18)');" title="<?=$lang['forum_settings.info178']?>">
	</td>
	<td class="forumrow1"></td>
</tr>
<tr> 
	<td class="forumrow"><b><?=$lang['forum_settings.info187']?>:</b><br><?=$lang['forum_settings.info188']?></td>
	<td class="forumrow"> 
	<?=$lang['width']?><INPUT TYPE="text" NAME="uploadsetting(11)" size=10 value="<?=$uploadsetting[11]?>"> <?=$lang['pix']?>
	<?=$lang['height']?><INPUT TYPE="text" NAME="uploadsetting(12)" size=10 value="<?=$uploadsetting[12]?>"> <?=$lang['pix']?>
	</td>
	<td class="forumrow"></td>
</tr>
<tr> 
	<td class="forumrow1"><b><?=$lang['forum_settings.info189']?> :</b></td>
	<td class="forumrow1">
	<SELECT NAME="uploadsetting(13)" id="uploadsetting(13)">
		<option value="0"><?=$lang['forum_settings.info190']?></option>
		<option value="1"><?=$lang['forum_settings.info191_a']?></option>
		<option value="2"><?=$lang['forum_settings.info191_b']?></option>
		<option value="3"><?=$lang['forum_settings.info191_c']?></option>
		<option value="4"><?=$lang['forum_settings.info192_a']?></option>
		<option value="5"><?=$lang['forum_settings.info192_b']?></option>
		<option value="6"><?=$lang['forum_settings.info192_c']?></option>
		<option value="7"><?=$lang['forum_settings.info193_a']?></option>
		<option value="8"><?=$lang['forum_settings.info193_b']?></option>
		<option value="9"><?=$lang['forum_settings.info193_c']?></option>
	</SELECT>
	</td>
	<td class="forumrow1"></td>
</tr>
<!-- 上传图片添加水印LOGO图片定义 -->
<tr> 
<td class="forumrow"><b><?=$lang['forum_settings.info195']?></b></td>
<td class="forumrow">
<input type="radio" name="forum_setting(75)" value="0" <?if($forum_setting[75] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(75)" value="1" <?if($forum_setting[75] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
<td class="forumrow">
</td>
</tr>
<tr> 
<td class="forumrow1"><b><?=$lang['forum_settings.info196']?></b></td>
<td class="forumrow1">
<?
if ($forum_setting[76] == '' || $forum_setting[76] == '0'){
	$forum_setting[76] = 'uploadfile/';
}
?>
<input type=text name="forum_setting(76)" value="<? echo strtolower($forum_setting[76])?>" <?php defined('MAIN_DOMAIN_NAME') AND print(' disabled="disabled" ')?> /><?=$lang['forum_settings.info197']?></td>
<td class="forumrow1">
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='useroption'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting15"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info198']?></span></td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info199']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(42)" value="1" <?if($forum_setting[42] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
<input type="radio" name="forum_setting(42)" value="0" <?if($forum_setting[42] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info200']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(53)" value="0" <?if($forum_setting[53] == "0"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
<input type="radio" name="forum_setting(53)" value="1" <?if($forum_setting[53] == "1"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow" width="50%"><b><?=$lang['forum_settings.info201']?></b><BR><?=$lang['forum_settings.info202']?></td>
<td class="forumrow" width="50%"> 
<input type="text" name="forum_setting(57)" size="6" value="<?=$forum_setting[57]?>">&nbsp;<?=$lang['pix']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info203']?></b><BR><?=$lang['forum_settings.info204']?></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_setting(38)" size="6" value="<?=$forum_setting[38]?>">&nbsp;<?=$lang['pix']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info205']?></b><BR><?=$lang['forum_settings.info206']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(39)" size="6" value="<?=$forum_setting[39]?>">&nbsp;<?=$lang['pix']?>
</td>
</tr>
<tr> 
<td class="forumrow1" width="50%"><b><?=$lang['forum_settings.info207']?></b></td>
<td class="forumrow1" width="50%"> 
<input type="text" name="forum_setting(54)" size="6" value="<?=$forum_setting[54]?>">&nbsp;<?=$lang['forum_settings.info208']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info209']?></b><BR><?=$lang['forum_settings.info210']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(55)" value="0" <?if($forum_setting[55] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(55)" value="1" <?if($forum_setting[55] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info211']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(65)" value="0" <?if($forum_setting[65] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(65)" value="1" <?if($forum_setting[65] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info212']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(66)" value="0" <?if($forum_setting[66] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(66)" value="1" <?if($forum_setting[66] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info213']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(67)" value="0" <?if($forum_setting[67] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(67)" value="1" <?if($forum_setting[67] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info214']?></b></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(71)" value="0" <?if($forum_setting[71] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(71)" value="1" <?if($forum_setting[71] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info215']?></b><BR><?=$lang['forum_settings.info216']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(6)" value="0" <?if($forum_setting[6] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(6)" value="1" <?if($forum_setting[6] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info217']?></b></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(59)" size="6" value="<?=$forum_setting[59]?>">&nbsp;byte
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info218']?></b><BR><?=$lang['forum_settings.info219']?></td>
<td width="50%" class="forumrow1">  
<input type="text" name="forum_setting(60)" size="6" value="<?=$forum_setting[60]?>">&nbsp;<?=$lang['forum_settings.info208']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info220']?></b><BR><?=$lang['forum_settings.info219']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(61)" size="6" value="<?=$forum_setting[61]?>">&nbsp;<?=$lang['forum_settings.info221']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info222']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(62)" value="0" <?if($forum_setting[62] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(62)" value="1" <?if($forum_setting[62] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info223']?></b><BR><?=$lang['forum_settings.info224']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(63)" size="50" value="<?=$forum_setting[63]?>">
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info225']?></b></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(89)" value="0" <?if($forum_setting[89] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(89)" value="1" <?if($forum_setting[89] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info225_1']?></b><br><?=$lang['forum_settings.info225_2']?></td>
<td width="50%" class="forumrow">  
<input type="radio" name="forum_setting(107)" value="0" <?if($forum_setting[107] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(107)" value="1" <?if($forum_setting[107] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info225_3']?></b><br><?=$lang['forum_settings.info225_4']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(108)" value="0" <?if($forum_setting[108] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(108)" value="1" <?if($forum_setting[108] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr><td colspan="3" class="forumrow" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='refurbish'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting17"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info226']?></span> [<a href="#top"><?=$lang['top']?></a>]</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"> <b><?=$lang['forum_settings.info226']?></b><BR><?=$lang['forum_settings.info227']?></td>
<td width="50%" class="forumrow1">  
<input type="radio" name="forum_setting(19)" value="0" <?if($forum_setting[19] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(19)" value="1" <?if($forum_setting[19] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class="forumrow"> <b><?=$lang['forum_settings.info228']?></b><BR><?=$lang['forum_settings.info229']?></td>
<td width="50%" class="forumrow">  
<input type="text" name="forum_setting(20)" size="3" value="<?=$forum_setting[20]?>">&nbsp;<?=$lang['second']?>
</td>
</tr>
<tr> 
<td width="50%" class="forumrow1"><b><?=$lang['forum_settings.info230']?></b><BR><?=$lang['forum_settings.info231']?></td>
<td width="50%" class="forumrow1"> 
<input type="text" name="forum_setting(64)" size="50" value="<?=$forum_setting[64]?>">
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='search'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="3" align="center" id="tabletitlelink" class="tdtit"><a name="setting20"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info232']?></span></td>
</tr>
<tr> 
<td class="forumrow" width="50%"><b><?=$lang['forum_settings.info233']?></b></td>
<td class="forumrow" width="43%"> 
<input type="text" name="forum_setting(3)" size="6" value="<?=$forum_setting[3]?>">&nbsp;<?=$lang['second']?>
</td>
<input type="hidden" id="s_1" value="<b><?=$lang['forum_settings.info233']?></b><br><li><?=$lang['forum_settings.info234']?>">
<td class="forumrow"><a href="#" onclick="helpscript(s_1);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1"><b><?=$lang['forum_settings.info235']?></b><BR><?=$lang['forum_settings.info236']?></td>
<td class="forumrow1" > 
<input type="text" name="forum_setting(4)" size="8" value="<?=$forum_setting[4]?>">
</td>
<input type="hidden" id="s_2" value="<?=$lang['forum_settings.info237']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(s_2);return false;" class="helplink"></a></td>
</tr>
<tr> 
	<td class="forumrow"><b><?=$lang['forum_settings.info237_1']?>:</b></td>
	<td class="forumrow"> 
	<INPUT TYPE="text" NAME="forum_setting(105)" ID="forum_setting(105)" size="10" value="<?=$forum_setting[105]?>"> 
	<img border="0" src="../images/post/rect.gif" style="cursor:pointer;background-Color:<?=$forum_setting[105]?>;" onclick="Getcolor(this,'forum_setting(105)');" title="<?=$lang['forum_settings.info178']?>">
	</td>
	<td class="forumrow"></td>
</tr>
<tr> 
<td class="forumrow" ><b><?=$lang['forum_settings.info238']?></b><BR><?=$lang['forum_settings.info239']?></td>
<td class="forumrow"> 
<input type="text" name="forum_setting(9)" size="50" value="<?=$forum_setting[9]?>">&nbsp;
</td>
<input type="hidden" id="s_3" value="<?=$lang['forum_settings.info240']?>">
<td class="forumrow"><a href="#" onclick="helpscript(s_3);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1"><b><?=$lang['forum_settings.info241']?></b><BR><?=$lang['forum_settings.info242']?></td>
<td class="forumrow1"> 
<input type="text" name="forum_setting(12)" size="6" value="<?=$forum_setting[12]?>">&nbsp;<?=$lang['tpl.str2']?>
</td>
<input type="hidden" id="s_4" value="<?=$lang['forum_settings.info243']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(s_4);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow">
<?=$lang['forum_settings.info244']?></td>
<td class="forumrow"> 
<input type="text" name="forum_setting(13)" size="8" value="<?=$forum_setting[13]?>">
</td>
<input type="hidden" id="s_5" value="<?=$lang['forum_settings.info245']?>">
<td class="forumrow"><a href="#" onclick="helpscript(s_5);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1"> <b><?=$lang['forum_settings.info246']?></b></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(16)" value="0" <?if($forum_setting[16] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(16)" value="1" <?if($forum_setting[16] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
<input type="hidden" id="s_6" value="<?=$lang['forum_settings.info248']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(s_6);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow"> <b><?=$lang['forum_settings.info249']?></b></td>
<td class="forumrow">  
<input type="radio" name="forum_setting(17)" value="0" <?if($forum_setting[17] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(17)" value="1" <?if($forum_setting[17] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
<input type="hidden" id="s_7" value="<?=$lang['forum_settings.info250']?>">
<td class="forumrow"><a href="#" onclick="helpscript(s_7);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1"> <b><?=$lang['forum_settings.info251']?></b></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(18)" value="0" <?if($forum_setting[18] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(18)" value="1" <?if($forum_setting[18] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
<input type="hidden" id="s_8" value="<?=$lang['forum_settings.info252']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(s_8);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow"> <b><?=$lang['forum_settings.info253']?></b></td>
<td class="forumrow">  
<input type="radio" name="forum_setting(27)" value="0" <?if($forum_setting[27] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(27)" value="1" <?if($forum_setting[27] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
<input type="hidden" id="s_9" value="<?=$lang['forum_settings.info254']?>">
<td class="forumrow"><a href="#" onclick="helpscript(s_9);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow1"> <b><?=$lang['forum_settings.info255']?></b></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(31)" value="0" <?if($forum_setting[31] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(31)" value="1" <?if($forum_setting[31] == "1"){echo "checked";}?>><?=$lang['forum_open']?>&nbsp;
</td>
<input type="hidden" id="s_10" value="<?=$lang['forum_settings.info256']?>">
<td class="forumrow1"><a href="#" onclick="helpscript(s_10);return false;" class="helplink"></a></td>
</tr>
<tr> 
<td class="forumrow"><b><?=$lang['forum_settings.info257']?></b></td>
<td class="forumrow"> 
<input type="text" name="forum_setting(68)" size="6" value="<?=$forum_setting[68]?>">&nbsp;<?=$lang['tpl.str2']?>
</td>
<input type="hidden" id="s_11" value="<?=$lang['forum_settings.info258']?>">
<td class="forumrow"><a href="#" onclick="helpscript(s_11);return false;" class="helplink"></a></td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='pagedesign'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting18"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info259']?></span></td>
</tr>
<tr> 
<td class="forumrow"  width="50%"> <b><?=$lang['forum_settings.info260']?></b><BR><?=$lang['forum_settings.info261']?></td>
<td class="forumrow"  width="50%">  
<input type="text" name="forum_setting(11)" size="3" value="<?=$forum_setting[11]?>">&nbsp;<?=$lang['forum_settings.info262']?>
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='forumoption'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting16"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info263']?></span></td>
</tr>
<tr>
<td class="forumrow"  width="50%"> <b><?=$lang['forum_settings.info264']?></b><BR><?=$lang['forum_settings.info265']?></td>
<td class="forumrow"  width="50%">  
<input type="text" name="forum_setting(44)" size="3" value="<?=$forum_setting[44]?>">&nbsp;<?=$lang['forum_settings.info262']?>
</td>
</tr>
<tr> 
<td class="forumrow1"> <b><?=$lang['forum_settings.info266']?></b></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(48)" value="0" <?if($forum_setting[48] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(48)" value="1" <?if($forum_setting[48] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"> <b><?=$lang['forum_settings.info267']?></b></td>
<td class="forumrow">  
<input type="radio" name="forum_setting(49)" value="0" <?if($forum_setting[49] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(49)" value="1" <?if($forum_setting[49] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow1"> <?=$lang['forum_settings.info268']?></td>
<td class="forumrow1">  
<input type="text" name="forum_setting(50)" size="3" value="<?=$forum_setting[50]?>">&nbsp;<?=$lang['forum_settings.info270']?>
</td>
</tr>
<tr> 
<td class="forumrow"><?=$lang['forum_settings.info269']?></td>
<td class="forumrow">  
<input type="text" name="forum_setting(51)" size="3" value="<?=$forum_setting[51]?>">&nbsp;<?=$lang['forum_settings.info270']?>
</td>
</tr>
<tr> 
<td class="forumrow1"><?=$lang['forum_settings.info320']?></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(103)" value="0" <?if(intval($forum_setting[103])==0){echo 'checked';}?>>&nbsp;<?=$lang['no']?>&nbsp;<input type="radio" name="forum_setting(103)" value="1" <?if(intval($forum_setting[103])==1){echo 'checked';}?>>&nbsp;<?=$lang['yes']?>
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='menpai'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting19"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info271']?></span></td>
</tr>
<tr> 
<td class="forumrow1"  width="50%"> <b><?=$lang['forum_settings.info272']?></b></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(32)" value="0" <?if($forum_setting[32] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(32)" value="1" <?if($forum_setting[32] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='vipuser'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="center" id="tabletitlelink" class="tdtit"><a name="setting19"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info273']?></span></td>
</tr>
<tr> 
<td class="forumrow1"  width="50%"><a name="SettingVIP"></a>
<b><?=$lang['forum_settings.info274']?></b>
<br><?=$lang['forum_settings.info275']?>
</td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(43)" value="0" <?if($forum_setting[43] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(43)" value="1" <?if($forum_setting[43] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
<!-- 全文检索设置开始 -->
<?
$ft_settings = explode('|', $forum_setting[101]);	//	fulltext 设置
if (!isset($ft_settings[0])) {	//	是否启用全文检索
	$ft_settings[0] = 0;
}
if (!isset($ft_settings[1])) {	//	是否开启相关主题功能
	$ft_settings[1] = 0;
}
if (!isset($ft_settings[2])) {	//	搜索页面是否开启全文检索
	$ft_settings[2] = 0;
}
if (0 == $ft_settings[0]) {
	$ft_settings[1] = $ft_settings[2] = 0;
}
print <<<EOT
<input type="hidden" name="ft_settings(0)" value="{$ft_settings[0]}" />
<input type="hidden" name="ft_settings(1)" value="{$ft_settings[1]}" />
<input type="hidden" name="ft_settings(2)" value="{$ft_settings[2]}" />
EOT;
?>
<!-- 全文检索设置结束 -->
<!-- 伪HTML设置开始 -->
<?
$bogushtml_settings = explode('|', $forum_setting[102]);	//	伪 HTML 设置
if (!is_numeric($bogushtml_settings[0])) {
	$bogushtml_settings[0] = 0;
}
print <<<EOT
<input type="hidden" name="bogushtml_settings(0)" value="{$bogushtml_settings[0]}" />
EOT;
?>
<!-- 伪HTML设置结束 -->
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder"  style="<?if($doaction=='plus'){echo 'display:block;';}else{echo 'display:none;';}?>">
<tr> 
<td height="25" colspan="2" align="left" id="tabletitlelink" class="tdtit"><a name="settingxu"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info276']?></span></td>
</tr>
<tr> 
<td class="forumrow" width="50%"> <b><?=$lang['forum_settings.info277']?></b></td>
<td class="forumrow" width="43%">  
<input type="radio" name="forum_setting(90)" value="0" <?if($forum_setting[90] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(90)" value="1" <?if($forum_setting[90] == "1"){echo "checked";}?>><?=$lang['forum_open1']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow1"> <b><?=$lang['forum_settings.info278']?></b></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(91)" value="0" <?if($forum_setting[91] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(91)" value="1" <?if($forum_setting[91] == "1"){echo "checked";}?>><?=$lang['forum_open1']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"> <?=$lang['forum_settings.info279']?></td>
<td class="forumrow">  
<input type="radio" name="forum_setting(92)" value="0" <?if($forum_setting[92] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(92)" value="1" <?if($forum_setting[92] == "1"){echo "checked";}?>><?=$lang['forum_open1']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow1" width="50%"> <?=$lang['forum_settings.info280']?></td>
<td class="forumrow1" width="43%">  
<input type="radio" name="forum_setting(98)" value="0" <?if($forum_setting[98] == "0"){echo "checked";}?>><?=$lang['forum_close']?>&nbsp;
<input type="radio" name="forum_setting(98)" value="1" <?if($forum_setting[98] == "1"){echo "checked";}?>><?=$lang['forum_open1']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"  width="50%"> <?=$lang['forum_settings.info281']?></td>
<td class="forumrow">  
<input type="radio" name="forum_setting(99)" value="0" <?if($forum_setting[99] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(99)" value="1" <?if($forum_setting[99] == "1"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow1"  width="50%"> <?=$lang['forum_settings.info282']?></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(82)" value="1" <?if($forum_setting[82] == "1"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(82)" value="0" <?if($forum_setting[82] == "0"){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"  width="50%"><?=$lang['forum_settings.info323']?></td>
<td class="forumrow">
<input type="radio" name="forum_setting(109)" value="0" <?if(empty($forum_setting[109])){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(109)" value="1" <?if(intval($forum_setting[109]) == 1){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow1"  width="50%"><?=$lang['forum_settings.info324']?></td>
<td class="forumrow1">  
<input type="radio" name="forum_setting(110)" value="0" <?if($forum_setting[110] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(110)" value="1" <?if($forum_setting[110] == "1" or $forum_setting[110]==''){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow"  width="50%"><?=$lang['forum_settings.info325']?></td>
<td class="forumrow">  
<input type="radio" name="forum_setting(111)" value="0" <?if($forum_setting[111] == "0"){echo "checked";}?>><?=$lang['no']?>&nbsp;
<input type="radio" name="forum_setting(111)" value="1" <?if($forum_setting[111] == "1" or $forum_setting[111]==''){echo "checked";}?>><?=$lang['yes']?>&nbsp;
</td>
</tr>
<tr> 
<td class="forumrow1"  width="50%"><?=$lang['forum_settings.info326']?></td>
<td class="forumrow1">  
<input type="text" name="forum_setting(112)" size="6" value="<?if($forum_setting[112]=="0" || $forum_setting[112]==""){echo "200";}else{echo $forum_setting[112];}?>">
</td>
</tr>
<tr> 
<td class="forumrow"  width="50%"><?=$lang['forum_settings.info327']?></td>
<td class="forumrow">  
<select name="forum_setting(113)">
<?
$sql_set=$db->query("select id,type from {$dv}fsettings where s_class=1 order by c_orders");
while($setlist = $db->fetch_array($sql_set)){
	echo "<option value=\"{$setlist['id']}\"";
	if ($forum_setting[113]==$setlist['id']){
		echo ' selected';
	}
	echo ">{$setlist['type']}</option>";
}
?>
</select>
</td>
</tr>
<tr> 
<td height="25" colspan="3" align="left" id="tabletitlelink" class="tit1"><a name="setting23"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info283']?></span></td>
</tr>
<tr> 
<td class="forumrow1" width="50%"> <b><?=$lang['forum_settings.info284']?></b></td>
<td class="forumrow1">  
<input type="text" name="forum_setting(93)" size="6" value="<?=$forum_setting[93]?>">&nbsp;<?=$lang['forum_settings.info285']?>
</td>
</tr>
<tr> 
<td class="forumrow" width="50%"> <b><?=$lang['forum_settings.info286']?></b></td>
<td class="forumrow">  
<input type="text" name="forum_setting(94)" size="6" value="<?=$forum_setting[94]?>">&nbsp;<?=$lang['forum_settings.info287']?>
</td>
</tr>
<tr> 
<td class="forumrow1" width="50%"> <b><?=$lang['forum_settings.info289']?></b></td>
<td class="forumrow1">  
<input type="text" name="forum_setting(95)" size="6" value="<?=$forum_setting[95]?>">&nbsp;<?=$lang['forum_settings.info288']?>
</td>
</tr>
<tr>
<td class="forumrow" width="50%"> <b><?=$lang['forum_settings.info290']?></b></td>
<td class="forumrow">  
<input type="text" name="forum_setting(96)" size="6" value="<?=$forum_setting[96]?>">&nbsp;<?=$lang['forum_settings.info291']?>
</td>
</tr>
<tr> 
<td height="25" colspan="3" align="left" id="tabletitlelink" class="tit1"><a name="setting23"></a><?=$lang['tpl.str1']?> <span class="bfont"><?=$lang['forum_settings.info292']?></span></td>
</tr>
<tr>
<td class="forumrow1" width="50%"> <b><?=$lang['forum_settings.info293']?></b></td>
<td class="forumrow1">  
<input type="text" name="forum_setting(97)" size="6" value="<?=$forum_setting[97]?>">&nbsp;<?=$lang['forum_settings.info294']?>

<input type="hidden" name="forum_setting(123)" value="<?=$forum_setting[123]?>">
<input type="hidden" name="forum_setting(124)" value="<?=$forum_setting[124]?>">
<input type="hidden" name="forum_setting(125)" value="<?=$forum_setting[125]?>">

</td>
</tr>
<tr><td colspan="3" class="forumrow" style="text-align:center">
<input type="submit" name="Submit" value="<?=$lang['submit']?>" class="button">
</td></tr>
</table>
</td></tr>
</form>
</table>
<SCRIPT LANGUAGE="JavaScript">
//CheckSel('forum_setting(2)','<?=$forum_setting[2]?>');
CheckSel('uploadsetting(0)','<?=$uploadsetting[0]?>');
CheckSel('uploadsetting(2)','<?=$uploadsetting[2]?>');
CheckSel('uploadsetting(3)','<?=$uploadsetting[3]?>');
CheckSel('uploadsetting(7)','<?=$uploadsetting[7]?>');
CheckSel('uploadsetting(13)','<?=$uploadsetting[13]?>');
CheckSel('uploadsetting(16)','<?=$uploadsetting[16]?>');
CheckSel('uploadsetting(17)','<?=$uploadsetting[17]?>');
//CheckSel('ft_settings(2)','<?=$ft_settings[2]?>');
CheckSel('bogushtml_settings(0)','<?=$bogushtml_settings[0]?>');
</script>
<div id="Issubport999" style="display:none"></div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function chkselect(s,divid)
{
var divname='Issubport';
var chkreport;
	s=Number(s)
	if (divid=="know1")
	{
	divname=divname+s;
	}
	if (divid=="know2")
	{
	s+=4;
	if (s==1003){s=999;}
	divname=divname+s;
	}
	if (divid=="know3")
	{
	s+=9;
	if (s==1008){s=999;}
	divname=divname+s;
	}
document.getElementById(divid).innerHTML=divname;
chkreport=document.getElementById(divname).innerHTML;
document.getElementById(divid).innerHTML=chkreport;
}
//-->
</SCRIPT>