<?php
require(dirname(__FILE__) .'/check.php');
$skin->CheckIframe();

/* **** 版权所有 ****

 网钛CMS(OTCMS)
 程序开发：网钛科技
 官方网站：http://otcms.com
 联系ＱＱ：877873666
 联系邮箱：877873666@qq.com

 **** 版权所有 **** */


//打开用户表，并检测用户是否登录
$MB->Open('','login');

$skin->WebTop();


echo('
<script language="javascript" type="text/javascript" src="js/system.js?v='. OT_VERSION .'"></script>
');



switch($mudi){
	case 'companyInfo':
		$MB->IsSecMenuRight('alertBack',40,$dataType);
		companyInfo();
		break;

	default:
		die('err');
}

$skin->WebBottom();

$MB->Close();
$DB->Close();





// 新增、修改
function companyInfo(){
	global $DB,$skin,$mudi,$dataType,$dataTypeCN,$sysAdminArr;

	$revexe=$DB->query('select * from '. OT_dbPref .'system');
		if ($row = $revexe->fetch()){
			$SYS_title			= $row['SYS_title'];
			$SYS_titleSign		= $row['SYS_titleSign'];
			$SYS_titleAddi		= $row['SYS_titleAddi'];
			$SYS_URL			= $row['SYS_URL'];
				if (! Is::HttpUrl($SYS_URL)){ $SYS_URL = GetUrl::HttpHead() . $SYS_URL; }
				if (substr($SYS_URL,-1) != '/'){ $SYS_URL .= '/'; }
			$SYS_isUrl301		= $row['SYS_isUrl301'];
			$SYS_webKey			= $row['SYS_webKey'];
			$SYS_webDesc		= $row['SYS_webDesc'];
			$SYS_isFloatAd		= $row['SYS_isFloatAd'];
			$SYS_isClose		= $row['SYS_isClose'];
			$SYS_closeNote		= $row['SYS_closeNote'];
			$SYS_isLogErr		= $row['SYS_isLogErr'];
			$SYS_isTplErr		= $row['SYS_isTplErr'];
			$SYS_isAjaxErr		= $row['SYS_isAjaxErr'];
			$SYS_isTimeInfo		= $row['SYS_isTimeInfo'];
			$SYS_isBaiduSitemap	= $row['SYS_isBaiduSitemap'];
			$SYS_verCodeMode	= $row['SYS_verCodeMode'];
			$SYS_verCodeStr		= $row['SYS_verCodeStr'];
			$SYS_geetestID		= $row['SYS_geetestID'];
			$SYS_geetestKey		= $row['SYS_geetestKey'];
			$SYS_templateDir	= $row['SYS_templateDir'];	//y
			$SYS_htmlCacheMin	= $row['SYS_htmlCacheMin'];
			$SYS_htmlCacheTime	= $row['SYS_htmlCacheTime'];
			$SYS_eventStr		= $row['SYS_eventStr'];

			$SYS_titleHome		= $row['SYS_titleHome'];
			$SYS_titleList		= $row['SYS_titleList'];
			$SYS_titleShow		= $row['SYS_titleShow'];
			$SYS_titleWeb		= $row['SYS_titleWeb'];
			$SYS_titleSearch	= $row['SYS_titleSearch'];
			$SYS_titleMark		= $row['SYS_titleMark'];
			$SYS_titleTopic		= $row['SYS_titleTopic'];
			if (AppBbs::Jud()){
				$SYS_titleBbsList	= $row['SYS_titleBbsList'];
				$SYS_titleBbsShow	= $row['SYS_titleBbsShow'];
				$SYS_titleBbsSearch	= $row['SYS_titleBbsSearch'];
			}else{
				$SYS_titleBbsList	= '';
				$SYS_titleBbsShow	= '';
				$SYS_titleBbsSearch	= '';
			}

			$SYS_subWeb404		= $row['SYS_subWeb404'];
			$SYS_announName		= $row['SYS_announName'];
			$SYS_searchAllowStr	= $row['SYS_searchAllowStr'];
			$SYS_searchListNum	= $row['SYS_searchListNum'];
			$SYS_searchBadStr	= $row['SYS_searchBadStr'];
			$SYS_isMark			= $row['SYS_isMark'];
			$SYS_markListNum	= $row['SYS_markListNum'];
			$SYS_markBadStr		= $row['SYS_markBadStr'];

			$SYS_isMessage			= $row['SYS_isMessage'];
			$SYS_messageName		= $row['SYS_messageName'];
			$SYS_messageWebKey		= $row['SYS_messageWebKey'];
			$SYS_messageWebDesc		= $row['SYS_messageWebDesc'];
			$SYS_messageCloseNote	= $row['SYS_messageCloseNote'];
			$SYS_messageNum			= $row['SYS_messageNum'];
			$SYS_messageSecond		= $row['SYS_messageSecond'];
			$SYS_messageAudit		= $row['SYS_messageAudit'];
			$SYS_messageOnly		= $row['SYS_messageOnly'];
			$SYS_messageMaxLen		= $row['SYS_messageMaxLen'];
			$SYS_messageAdminName	= $row['SYS_messageAdminName'];
			$SYS_messageBadWord		= $row['SYS_messageBadWord'];
			$SYS_messageRndMd5		= $row['SYS_messageRndMd5'];
			$SYS_messageVoteNum		= $row['SYS_messageVoteNum'];
			$SYS_messageHotNum		= $row['SYS_messageHotNum'];
			$SYS_messageEvent		= $row['SYS_messageEvent'];

			$SYS_isHtmlHome			= $row['SYS_isHtmlHome'];

			$SYS_htmlUrlDel			= $row['SYS_htmlUrlDel'];
			$SYS_htmlUrlJump		= $row['SYS_htmlUrlJump'];
			$SYS_htmlUrlDir			= $row['SYS_htmlUrlDir'];
			$SYS_diyInfoTypeDir		= $row['SYS_diyInfoTypeDir'];
			$SYS_htmlInfoTypeDir	= $row['SYS_htmlInfoTypeDir'];
			$SYS_htmlDatetimeDir	= $row['SYS_htmlDatetimeDir'];
			$SYS_newsListUrlMode	= $row['SYS_newsListUrlMode'];
			$SYS_newsListFileName	= $row['SYS_newsListFileName'];
			$SYS_newsShowUrlMode	= $row['SYS_newsShowUrlMode'];
			$SYS_newsShowFileName	= $row['SYS_newsShowFileName'];
			$SYS_dynWebUrlMode		= $row['SYS_dynWebUrlMode'];
			$SYS_dynWebFileName		= $row['SYS_dynWebFileName'];
			$SYS_eventStr			= $row['SYS_eventStr'];

			$SYS_proxyIpPoint		= $row['SYS_proxyIpPoint'];
			$SYS_proxyIpList		= $row['SYS_proxyIpList'];
		}
	unset($revexe);

	echo('
	<form id="dealForm" name="dealForm" method="post" action="system_deal.php?mudi='. $mudi .'" onsubmit="return CheckForm()">
	<input type="hidden" id="dataType" name="dataType" value="'. $dataType .'" />
	<input type="hidden" id="dataTypeCN" name="dataTypeCN" value="'. $dataTypeCN .'" />
	<script language="javascript" type="text/javascript">document.write(\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>

	<div class="tabMenu">
	<ul>
	   <li rel="tabBase" class="selected">基本信息</li>
	   <li rel="tabWeb">页面设置</li>
	   <li id="seoBox" rel="tabSeo" style="display:none;">SEO设置</li>
	   <li id="staicBox" rel="tabStaic">首页静态</li>
	   <li id="newsBox" rel="tabNews" style="display:none;">文章路径</li>
	   <li id="buyBox" rel="tabBuy" style="display:none;">商业版专属</li>
	</ul>
	</div>

	<div class="tabMenuArea">
		<table id="tabBase" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td style="width:150px;"></td><td></td></tr>
		<tr>
			<td align="right">网站名称：</td>
			<td><input type="text" id="title" name="title" size="50" style="width:500px;" value="'. $SYS_title .'" /></td>
		</tr>
		<tr>
			<td align="right">网站标题连接符：</td>
			<td>
				<input type="text" id="titleSign" name="titleSign" size="50" style="width:40px;" value="'. $SYS_titleSign .'" />
				<span class="font3_2">&ensp;如：连接符“_”，列表页：栏目名称<span style="color:red;">_</span>网站名称，内容页：文章标题<span style="color:red;">_</span>栏目名称<span style="color:red;">_</span>网站名称</span>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">网站标题附加内容：</td>
			<td>
				<input type="text" id="titleAddi" name="titleAddi" size="50" style="width:500px;" value="'. $SYS_titleAddi .'" />
				<div class="font3_2">为了灵活性，该附加内容与网站标题之间系统不会自动添加连接符。</div>
			</td>
		</tr>
		<!-- <tr>
			<td align="right">网站网址模式：</td>
			<td>
				<label><input type="radio" id="isUrl3012" name="isUrl301" value="2" '. Is::Checked($SYS_isUrl301,2) .' onclick="CheckIsUrl301()" />默认</label>&ensp;&ensp;
				<label><input type="radio" id="isUrl3010" name="isUrl301" value="0" '. Is::Checked($SYS_isUrl301,0) .' onclick="CheckIsUrl301()" />用base标签网址锁定</label><span class="font2_2">(不推荐)</span>&ensp;&ensp;
			</td>
		</tr>
		<tr id="webUrlBox">
			<td align="right" valign="top" style="padding-top:8px;">网站网址：</td>
			<td>
				<input type="text" id="webURL" name="webURL" size="50" style="width:500px;" value="'. $SYS_URL .'" />
				<div class="font3_2" style="color:red;padding-bottom:5px;">如该网站有多个域名，请填写主打域名，不然<b>请</b>留空</div>
			</td>
		</tr> --><input type="hidden" name="isUrl301" value="2" />
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">
				网站关键字(Keywords)：<br />
				<span class="font3_2">（便于搜索引擎搜到）<br />多个用英文逗号“,”隔开</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="webKey" name="webKey" rows="5" cols="40" style="width:500px; height:60px;">'. $SYS_webKey .'</textarea></td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">
				网站描述(Description)：<br />
				<span class="font3_2">（便于搜索引擎搜到）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="webDesc" name="webDesc" rows="5" cols="40" style="width:500px; height:60px;">'. $SYS_webDesc .'</textarea></td>
		</tr>
		<tr>
			<td align="right">网站开关：</td>
			<td>
				<select id="isClose" name="isClose" onchange="CheckCloseK();">
					<option value="20" '. Is::Selected($SYS_isClose,20) .'>网站开启</option>
					<option value="10" '. Is::Selected($SYS_isClose,10) .'>网站关闭</option>
				</select>
			</td>
		</tr>
		<tr id="closeNoteK" style="display:none;">
			<td align="right" valign="top">网站关闭说明：</td>
			<td>
				<textarea id="closeNote" name="closeNote" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("closeNote",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($SYS_closeNote,'textarea') .'</textarea>
			</td>
		</tr>
		<tr class="verCodeBox">
			<td align="right">验证码模式：</td>
			<td>
				<select id="verCodeMode" name="verCodeMode" onchange="CheckVerCodeMode()">
					<option value="1" '. Is::Selected($SYS_verCodeMode,1) .'>数字验证码1</option>
					<option value="2" '. Is::Selected($SYS_verCodeMode,2) .'>数字验证码2</option>
					<option value="3" '. Is::Selected($SYS_verCodeMode,3) .'>数字验证码3</option>
					<option value="4" '. Is::Selected($SYS_verCodeMode,4) .'>数字验证码4</option>
					<!-- <option value="5" '. Is::Selected($SYS_verCodeMode,5) .'>中文验证码</option> -->
					<option value="20" '. Is::Selected($SYS_verCodeMode,20) .'>滑动验证码</option>
				</select>
				<span style="position:relative;"><img src="temp/verCode.png" style="display:none;position:absolute;border:1px #000 solid;" /></span>
			</td>
		</tr>
		<tr class="geetestClass">
			<td align="right" class="font1_2d">极验ID：</td>
			<td align="left">
				<input type="text" id="geetestID" name="geetestID" size="50" style="width:250px;" value="'. $SYS_geetestID .'" />&ensp;&ensp;
				<span style="color:red;">极验申请网址：<a href="http://www.geetest.com/" target="_blank">http://www.geetest.com/</a></span>
			</td>
		</tr>
		<tr class="geetestClass">
			<td align="right" class="font1_2d">极验KEY：</td>
			<td align="left">
				<input type="text" id="geetestKey" name="geetestKey" size="50" style="width:250px;" value="'. $SYS_geetestKey .'" />&ensp;&ensp;
				<span style="color:red;">极验申请教程：<a href="http://otcms.com/news/8004.html" target="_blank">http://otcms.com/news/8004.html</a></span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">验证码开启范围：</td>
			<td>
				<label><input type="checkbox" name="verCodeStr[]" value="|admin|" '. Is::InstrChecked($SYS_verCodeStr,'|admin|') .' />后台登录</label>&ensp;&ensp;
				<label><input type="checkbox" name="verCodeStr[]" value="|login|" '. Is::InstrChecked($SYS_verCodeStr,'|login|') .' />会员登录</label>&ensp;&ensp;
				<!-- <label><input type="checkbox" name="verCodeStr[]" value="|news|" '. Is::InstrChecked($SYS_verCodeStr,'|news|') .' />前台投稿</label>&ensp;&ensp; -->
				<label><input type="checkbox" name="verCodeStr[]" value="|newsReply|" '. Is::InstrChecked($SYS_verCodeStr,'|newsReply|') .' />内容页评论区</label>&ensp;&ensp;
				<label><input type="checkbox" name="verCodeStr[]" value="|message|" '. Is::InstrChecked($SYS_verCodeStr,'|message|') .' />留言板</label>&ensp;&ensp;
				'. AppBbs::SystemBox1($SYS_verCodeStr) .'
			</td>
		</tr>
		<tr>
			<td align="right">程序错误写入日志：</td>
			<td>
				<select id="isLogErr" name="isLogErr">
					<option value="1" '. Is::Selected($SYS_isLogErr,1) .'>开启</option>
					<option value="0" '. Is::Selected($SYS_isLogErr,0) .'>关闭</option>
				</select>
				&ensp;&ensp;'. $skin->TishiBox('开启后，程序错误信息自动保存到 数据库目录/softErr.log') .'
			</td>
		</tr>
		<tr>
			<td align="right">网站模板错误提示：</td>
			<td>
				<select id="isTplErr" name="isTplErr">
					<option value="1" '. Is::Selected($SYS_isTplErr,1) .'>开启</option>
					<option value="0" '. Is::Selected($SYS_isTplErr,0) .'>关闭</option>
				</select>
				<!-- &ensp;&ensp;'. $skin->TishiBox('当前台出现class_template.php错误时，开启该项可以看到详细错误信息') .' -->
			</td>
		</tr>
		<tr style="display:none;">
			<td align="right">前台AJAX错误提示：</td>
			<td>
				<select id="isAjaxErr" name="isAjaxErr">
					<option value="1" '. Is::Selected($SYS_isAjaxErr,1) .'>开启</option>
					<option value="0" '. Is::Selected($SYS_isAjaxErr,0) .'>关闭</option>
				</select>
			</td>
		</tr>
		</table>


		<table id="tabSeo" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td style="width:150px;"></td><td></td></tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;"></td>
			<td style="color:red;font-size:14px;padding:5px 0;">没特殊要求，这块SEO设置请不要动，设置不对会严重影响SEO，默认的就是官方觉得最适合的。</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">首页网页title：</td>
			<td>
				<input type="text" id="titleHome" name="titleHome" size="50" style="width:500px;" value="'. $SYS_titleHome .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleHome").value="{%网站标题%}{%网站标题附加%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleHome","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleHome","{%网站标题附加%}")\'>{%网站标题附加%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">列表页网页title：</td>
			<td>
				<input type="text" id="titleList" name="titleList" size="50" style="width:500px;" value="'. $SYS_titleList .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleList").value="{%栏目名称%}{%父栏目名称%}{%栏目名称附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%栏目名称%}")\'>{%栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%父栏目名称%}")\'>{%父栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%栏目名称附加%}")\'>{%栏目名称附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">内容页网页title：</td>
			<td>
				<input type="text" id="titleShow" name="titleShow" size="50" style="width:500px;" value="'. $SYS_titleShow .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleShow").value="{%文章标题%}_{%栏目名称%}{%父栏目名称%}{%文章标题附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%栏目名称%}")\'>{%栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%父栏目名称%}")\'>{%父栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%文章标题%}")\'>{%文章标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%文章标题附加%}")\'>{%文章标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">单篇页网页title：</td>
			<td>
				<input type="text" id="titleWeb" name="titleWeb" size="50" style="width:500px;" value="'. $SYS_titleWeb .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleWeb").value="{%标题%}_{%网站标题%}{%标题附加%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%标题%}")\'>{%标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%标题附加%}")\'>{%标题附加%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">搜索页网页title：</td>
			<td>
				<input type="text" id="titleSearch" name="titleSearch" size="50" style="width:500px;" value="'. $SYS_titleSearch .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleSearch").value="搜索({%搜索类型%})：{%搜索词%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%搜索词%}")\'>{%搜索词%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%搜索类型%}")\'>{%搜索类型%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">标签页网页title：</td>
			<td>
				<input type="text" id="titleMark" name="titleMark" size="50" style="width:500px;" value="'. $SYS_titleMark .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleMark").value="标签：{%标签%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%标签%}")\'>{%标签%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">专题页网页title：</td>
			<td>
				<input type="text" id="titleTopic" name="titleTopic" size="50" style="width:500px;" value="'. $SYS_titleTopic .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleTopic").value="专题：{%专题%}{%专题附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%专题%}")\'>{%专题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%专题附加%}")\'>{%专题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		'. AppBbs::SystemBox2($SYS_titleBbsList,$SYS_titleBbsShow,$SYS_titleBbsSearch) .'
		<!-- <tr>
			<td align="right" valign="top" style="padding-top:6px;">文章路径<span style="color:red;">屏蔽</span>：</td>
			<td>
				<input type="hidden" id="htmlUrlDelOld" name="htmlUrlDelOld" value="'. $SYS_htmlUrlDel .'" />
				<label><input type="checkbox" id="htmlUrlDel12" name="htmlUrlDel[]" value="|otcms_dyn-2.x|" '. Is::InstrChecked($SYS_htmlUrlDel,'|otcms_dyn-2.x|') .' onclick=\'CheckHtmlUrlDel(1,"dyn-2.x");\' />网钛-动态 </label>&ensp;&ensp;
				<label><input type="checkbox" id="htmlUrlDel13" name="htmlUrlDel[]" value="|otcms_html-2.x|" '. Is::InstrChecked($SYS_htmlUrlDel,'|otcms_html-2.x|') .' onclick=\'CheckHtmlUrlDel(1,"otcms_html-2.x");\' />网钛-纯静态</label>&ensp;&ensp;
				<div style="color:red;">打钩，即在robots.txt文件里屏蔽搜索蜘蛛收录此路径，建议都不要打钩，以防止收录受影响。</div>
			</td>
		</tr> -->
		</table>


		<table id="tabWeb" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td style="width:150px;"></td><td></td></tr>
		<tr>
			<td align="right">错误页面跳转：</td>
			<td align="left">
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="" '. Is::Checked($SYS_subWeb404,'') .' />首页</label>&ensp;&ensp;
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="404.html" '. Is::Checked($SYS_subWeb404,'404.html') .' />404.html</label>&ensp;&ensp;
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="404.php" '. Is::Checked($SYS_subWeb404,'404.php') .' />404.php<span style="color:red;">(推荐)</span></label>&ensp;&ensp;
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="404gy.php" '. Is::Checked($SYS_subWeb404,'404gy.php') .' />404gy.php(公益)</label>&ensp;&ensp;
				<label><input type="radio" id="subWeb404Other" name="subWeb404" onclick="CheckSubWeb404()" value="-1" />其他页面</label><span id="subWeb404NewBox" style="display:none;"><input type="text" style="width:80px;" id="subWeb404New" name="subWeb404New" value="'. $SYS_subWeb404 .'" /><span class="font2_2">(请确保前台目录下有该文件)</span></span>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right">网站公告名称：</td>
			<td>
				<input type="text" id="announName" name="announName" value="'. $SYS_announName .'" style="width:120px;" />
			</td>
		</tr>
		<tr>
			<td align="right">搜索结果每页条数：</td>
			<td align="left"><input type="text" id="searchListNum" name="searchListNum" size="50" style="width:30px;" value="'. $SYS_searchListNum .'" /></td>
		</tr>
		<!-- <tr>
			<td align="right" class="font1_2d">搜索词允许特殊字符：</td>
			<td align="left" colspan="4">
				<label><input type="checkbox" name="searchAllowStr[]" value="[(]" '. Is::InstrChecked($SYS_searchAllowStr,'[(]') .'>(</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[)]" '. Is::InstrChecked($SYS_searchAllowStr,'[)]') .'>)</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[-]" '. Is::InstrChecked($SYS_searchAllowStr,'[-]') .'>-</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[/]" '. Is::InstrChecked($SYS_searchAllowStr,'[/]') .'>/</label>&ensp;&ensp;
				<span style="color:red;">(建议都不要打钩，特殊字符会降低网站安全性)</span>
			</td>
		</tr> -->
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				搜索页禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="searchBadStr" name="searchBadStr" rows="5" cols="40" style="width:500px; height:40px;">'. $SYS_searchBadStr .'</textarea></td>
		</tr>
		<tr>
			<td align="right">标签页：</td>
			<td>
				<label><input type="radio" id="isMark1" name="isMark" value="1" '. Is::Checked($SYS_isMark,1) .' '. Is::Checked($SYS_isMark,2) .' onclick="CheckMark();" />开启</label>&ensp;&ensp;
				<label title="标签页开启，但标签的超链接不被搜索引擎追踪，采用nofollow属性"><input type="radio" id="isMark2" name="isMark" value="2" '. Is::Checked($SYS_isMark,2) .' onclick="CheckMark();" />开启（但不被搜索引擎追踪）</label>&ensp;&ensp;
				<label><input type="radio" id="isMark0" name="isMark" value="0" '. Is::Checked($SYS_isMark,0) .' onclick="CheckMark();" />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="markBox">
		<tr>
			<td align="right" class="font1_2d">标签每页条数：</td>
			<td align="left"><input type="text" id="markListNum" name="markListNum" size="50" style="width:30px;" value="'. $SYS_markListNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				标签页禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="markBadStr" name="markBadStr" rows="5" cols="40" style="width:500px; height:40px;">'. $SYS_markBadStr .'</textarea></td>
		</tr>
		</tbody>
		<tr>
			<td align="right">启用留言板：</td>
			<td>
				<label><input type="radio" id="isMessage1" name="isMessage" value="1" '. Is::Checked($SYS_isMessage,1) .' onclick="CheckMessage();" />启用</label>&ensp;&ensp;
				<label><input type="radio" id="isMessage10" name="isMessage" value="10" '. Is::Checked($SYS_isMessage,10) .' onclick="CheckMessage();" />仅限会员</label>&ensp;&ensp;
				<label><input type="radio" id="isMessage0" name="isMessage" value="0" '. Is::Checked($SYS_isMessage,0) .' onclick="CheckMessage();" />禁用</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言板名称：</td>
			<td>
				<input type="text" id="messageName" name="messageName" value="'. $SYS_messageName .'" style="width:120px;" />
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				留言板页面关键字(Keywords)：<br />
				<span class="font3_2">（便于搜索引擎搜到）<br />多个用英文逗号“,”隔开</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="messageWebKey" name="messageWebKey" rows="5" cols="40" style="width:510px; height:60px;">'. $SYS_messageWebKey .'</textarea></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				留言板页面描述(Description)：<br />
				<span class="font3_2">（便于搜索引擎搜到）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="messageWebDesc" name="messageWebDesc" rows="5" cols="40" style="width:510px; height:60px;">'. $SYS_messageWebDesc .'</textarea></td>
		</tr>
		<tr id="messageCloseBox">
			<td align="right" class="font1_2d" valign="top">留言板关闭信息：</td>
			<td>
				<textarea id="messageCloseNote" name="messageCloseNote" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("messageCloseNote",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($SYS_messageCloseNote,'textarea') .'</textarea>
			</td>
		</tr>
		<tbody id="messageBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">留言本每页显示数量：</td>
			<td align="left"><input type="text" id="messageNum" name="messageNum" size="50" style="width:30px;" value="'. $SYS_messageNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言连续发言间隔秒数：</td>
			<td align="left"><input type="text" id="messageSecond" name="messageSecond" size="50" style="width:30px;" value="'. $SYS_messageSecond .'" /> 秒</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言审核：</td>
			<td>
				<label><input type="radio" name="messageAudit" value="0" '. Is::Checked($SYS_messageAudit,0) .' />需审核</label>&ensp;&ensp;
				<label><input type="radio" name="messageAudit" value="1" '. Is::Checked($SYS_messageAudit,1) .' />无需审核</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言最大字数：</td>
			<td align="left"><input type="text" id="messageMaxLen" name="messageMaxLen" size="50" style="width:30px;" value="'. $SYS_messageMaxLen .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言回复称呼：</td>
			<td><input type="text" id="messageAdminName" name="messageAdminName" size="50" style="width:100px;" value="'. $SYS_messageAdminName .'" /></td>
		</tr>
		</tbody>
		<tr style="display:none;">
			<td align="right">留言/评论热门评论：</td>
			<td align="left">
				显示数量：<input type="text" id="messageHotNum" name="messageHotNum" size="50" style="width:30px;" value="'. $SYS_messageHotNum .'" />，
				要求“顶”投票数至少<input type="text" id="messageVoteNum" name="messageVoteNum" size="50" style="width:30px;" value="'. $SYS_messageVoteNum .'" />个
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">
				留言/评论/回帖禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="messageBadWord" name="messageBadWord" rows="5" cols="40" style="width:500px; height:60px;">'. $SYS_messageBadWord .'</textarea></td>
		</tr>
		<tr>
			<td align="right">留言/评论/回帖跟随验证：</td>
			<td>
				<label><input type="radio" name="messageRndMd5" value="1" '. Is::Checked($SYS_messageRndMd5,1) .' />开启</label>&ensp;&ensp;
				<label><input type="radio" name="messageRndMd5" value="2" '. Is::Checked($SYS_messageRndMd5,2) .' />开启(过期自动更新)</label>&ensp;&ensp;
				<label><input type="radio" name="messageRndMd5" value="0" '. Is::Checked($SYS_messageRndMd5,0) .' />关闭</label>&ensp;&ensp;
				&ensp;&ensp;<span class="font2_2">（建议开启，可以一定程度防止机器灌水）</span>
			</td>
		</tr>
		</table>


		<table id="tabStaic" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td style="width:150px;"></td><td></td></tr>
		<tr>
			<td align="right">首页静态页：</td>
			<td>
				<input type="hidden" id="isHtmlHomeOld" name="isHtmlHomeOld" value="'. $SYS_isHtmlHome .'" />
				<label><input type="radio" id="isHtmlHome1" name="isHtmlHome" value="1" '. Is::Checked($SYS_isHtmlHome,1) .' />启用</label>&ensp;&ensp;
				<label><input type="radio" id="isHtmlHome0" name="isHtmlHome" value="0" '. Is::Checked($SYS_isHtmlHome,0) .' />禁用</label>&ensp;&ensp;
				&ensp;&ensp;'. $skin->TishiBox('当禁用时，系统会自动删除根目录下首页静态页index.html') .'
			</td>
		</tr>
		</table>
		');

		if (! AppBase::Jud()){
			$skin->PaySoftBox('tabBuy','您尚未购买商业版基础包插件，无法使用该功能。');
			$skin->PaySoftBox('tabNews','您尚未购买商业版基础包插件，无法使用该功能。');
			echo('<input type="hidden" id="authState" name="authState" value="false" />');

		}elseif ($sysAdminArr['SA_isLan'] == 1 && $sysAdminArr['SA_sendUrlMode'] == 0){
			$skin->PaySoftBox('tabBuy',$skin->LanPaySoft());
			$skin->PaySoftBox('tabNews',$skin->LanPaySoft());
			echo('<input type="hidden" id="authState" name="authState" value="false" />');

		}else{
			if ($sysAdminArr['SA_sendUrlMode'] == 1){
				$isRewrite = 1;
			}else{
				$retArr = @ReqUrl::UseAuto($sysAdminArr['SA_getUrlMode'], 'GET',GetUrl::CurrDir(1) .'readSoft.html', 'UTF-8');
				if ($retArr['res'] && $retArr['note'] == '[该访问地址存在]'){
					$isRewrite = 1;
				}else{
					$isRewrite = 0;
				}
			}

			$paraArr = array(
				'SYS_isTimeInfo'		=> $SYS_isTimeInfo ,
				'SYS_isBaiduSitemap'	=> $SYS_isBaiduSitemap ,
				'SYS_htmlCacheMin'		=> $SYS_htmlCacheMin ,
				'SYS_htmlCacheTime'		=> $SYS_htmlCacheTime ,
				'SYS_isFloatAd'			=> $SYS_isFloatAd ,
				'SYS_eventStr'			=> $SYS_eventStr ,
				'SYS_messageEvent'		=> $SYS_messageEvent ,
				'SYS_proxyIpPoint'		=> $SYS_proxyIpPoint ,
				'SYS_proxyIpList'		=> $SYS_proxyIpList ,

				'SYS_htmlUrlJump'		=> $SYS_htmlUrlJump ,
				'SYS_htmlUrlDir'		=> $SYS_htmlUrlDir ,
				'SYS_htmlInfoTypeDir'	=> $SYS_htmlInfoTypeDir ,
				'SYS_htmlDatetimeDir'	=> $SYS_htmlDatetimeDir ,
				'SYS_diyInfoTypeDir'	=> $SYS_diyInfoTypeDir ,
				'SYS_newsListUrlMode'	=> $SYS_newsListUrlMode ,
				'SYS_newsListFileName'	=> $SYS_newsListFileName ,
				'SYS_newsShowUrlMode'	=> $SYS_newsShowUrlMode ,
				'SYS_newsShowFileName'	=> $SYS_newsShowFileName ,
				'SYS_dynWebUrlMode'		=> $SYS_dynWebUrlMode ,
				'SYS_dynWebFileName'	=> $SYS_dynWebFileName ,
				'isRewrite'				=> $isRewrite
				);

			$getWebHtml = OTauthWeb('system', 'system_V3.80.php', $paraArr);
			if (strpos($getWebHtml,'(OTCMS)') === false){
				$authAlertStr='未知原因（'. $getWebHtml .'）';
				if (strpos($getWebHtml,'<!-- noRemote -->') !== false){
					$authAlertStr='无法访问外网';
				}elseif (strpos($getWebHtml,'<!-- noUse -->') !== false){
					$authAlertStr='授权禁用';
				}else{
				
				}
				$getWebHtml = ''.
					$skin->PaySoftBox('tabBuy','因'. $authAlertStr .'而无法使用',true) .
					$skin->PaySoftBox('tabNews','因'. $authAlertStr .'而无法使用',true) .
					'<input type="hidden" id="authState" name="authState" value="false" />';
			}else{
				echo('
				<script language="javascript" type="text/javascript">
				$id("seoBox").style.display = "";
				$id("buyBox").style.display = "";
				$id("newsBox").style.display = "";
				</script>
				');
			}
			echo($getWebHtml);
		}


		echo('
		<div class="tabMenuSubmit"><input type="submit" class="btnBg" value="保 存" /></div>
	</div>

	</form>
	');

}

?>