📄 setting.php
字号:
<?php defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<script type="text/javascript" src="<?=PHPCMS_PATH?>fckeditor/fckeditor.js"></script>
<script type="text/javascript">
var editorBasePath = '<?=PHPCMS_PATH?>fckeditor/';
var ChannelId = <?=$channelid?> ;
</script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor('copyright',450,200,'Basic') ;
oFCKeditor.BasePath = editorBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<script language='javascript'>
var tID=0;
function ShowTabs(ID){
if(ID!=tID){
TabTitle[tID].className='title1';
TabTitle[ID].className='title2';
Tabs[tID].style.display='none';
Tabs[ID].style.display='';
tID=ID;
}
}
</script>
<form name="myform" method="post" action="?file=setting&action=save">
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr align='center' height='24'>
<td id='TabTitle' class='title2' onclick='ShowTabs(0)'>基本信息</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(1)'>网站设置</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(2)'>搜索设置</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(3)'>安全设置</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(4)'>图片处理</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(5)'>邮件设置</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(6)'>FTP设置</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(7)'>论坛整合</td>
<td> </td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tbody id='Tabs' style='display:'>
<th colspan=2>基本信息</th>
<tr>
<td width='40%' class='tablerow'><strong>网站名称</strong></td>
<td class='tablerow'><input name='setting[sitename]' type='text' id='sitename' value='<?=$sitename?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>网站地址</strong><br>请添写完整URL地址</td>
<td class='tablerow'><input name='setting[siteurl]' type='text' id='siteurl' value='<?=$siteurl?>' size='40' maxlength='255'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><font color=red><strong>安装目录</strong><br>系统安装目录(相对于根目录的位置)<br>系统会自动获得正确的路径,但需要手工保存设置。</font></td>
<td class='tablerow'><input name='newrootpath' type='text' id='newrootpath' value='<?=$rootpath?>' size='40' maxlength='30' readonly></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>LOGO地址</strong><br>请添写完整URL地址</td>
<td class='tablerow'><input name='setting[logo]' type='text' id='logo' value='<?=$logo?>' size='40' maxlength='255'> <input type="button" value=" 上传 " onclick="javascript:openwinx('?mod=phpcms&file=uppic&channelid=<?=$channelid?>&uploadtext=logo&width=88&height=31','upload','350','200')"></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>友情链接LOGO地址</strong><br>请添写完整URL地址,一般为 88*31 px</td>
<td class='tablerow'><input name='setting[linklogo]' type='text' id='linklogo' value='<?=$linklogo?>' size='40' maxlength='255'> <input type="button" value=" 上传 " onclick="javascript:openwinx('?mod=phpcms&file=uppic&channelid=<?=$channelid?>&uploadtext=linklogo&width=88&height=31','upload','350','200')"></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>Title(网站标题)</strong><br>针对搜索引擎设置的网页标题</td>
<td class='tablerow'><input name='setting[meta_title]' type='text' id='meta_title' value='<?=$meta_title?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>Meta Keywords(网页关键词)</strong><br>针对搜索引擎设置的关键词</td>
<td class='tablerow'><textarea name='setting[meta_keywords]' cols='60' rows='2' id='meta_keywords'><?=$meta_keywords?></textarea></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>Meta Description(网页描述)</strong><br>针对搜索引擎设置的网页描述</td>
<td class='tablerow'><textarea name='setting[meta_description]' cols='60' rows='2' id='meta_description'><?=$meta_description?></textarea></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>管理员信箱</strong></td>
<td class='tablerow'><input name='setting[webmasteremail]' type='text' id='webmasteremail' value='<?=$webmasteremail?>' size='40' maxlength='100'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>版权信息</strong><br>支持HTML</td>
<td class='tablerow'> <textarea name='setting[copyright]' id="copyright" style='display:none' ><?=$copyright?></textarea>
</td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>网站设置</th>
<tr>
<td width='40%' class='tablerow'><strong>附件目录</strong></td>
<td class='tablerow'><input name='setting[uploaddir]' type='text' id='uploaddir' value='<?=$uploaddir?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>允许上传的附件类型</strong></td>
<td class='tablerow'><input name='setting[uploadfiletype]' type='text' id='uploadfiletype' value='<?=$uploadfiletype?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>页面Gzip压缩</strong><br>
将页面内容以gzip压缩后传输,可以加快传输速度,需PHP 4.0.4以上且支持Zlib模块才能使用
</td>
<td class='tablerow'>
<input type='radio' name='setting[enablegzip]' value='1' <?php if($enablegzip){ ?>checked <?php } ?>> 是
<input type='radio' name='setting[enablegzip]' value='0' <?php if(!$enablegzip){ ?>checked <?php } ?>> 否
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>信息列表最大页数</strong><br></td>
<td class='tablerow'><input name='setting[maxpage]' type='text' id='maxpage' value='<?=$maxpage?>' size='40' maxlength='255'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>信息列表每页默认信息条数</strong><br></td>
<td class='tablerow'><input name='setting[pagesize]' type='text' id='pagesize' value='<?=$pagesize?>' size='40' maxlength='255'></td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>搜索设置</th>
<tr>
<td width='40%' class='tablerow'><strong>每次搜索时间间隔</strong><br>
设置合理的每次搜索时间间隔,可以避免恶意搜索而消耗大量系统资源</td>
<td class='tablerow'><input name='setting[searchtime]' type='text' id='searchtime' value='<?=$searchtime?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>搜索返回最多的结果数</strong><br>
返回搜索的结果数和消耗的资源成正比,请合理设置,建议不要设置过大</td>
<td class='tablerow'><input name='setting[maxsearchresults]' type='text' id='maxsearchresults' value='<?=$maxsearchresults?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>每页信息数</strong></td>
<td class='tablerow'><input name='setting[searchperpage]' type='text' id='searchperpage' value='<?=$searchperpage?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>是否启用全文搜索</strong></td>
<td class='tablerow'>
<input type='radio' name='setting[searchcontent]' value='1' <?php if($searchcontent){ ?>checked <?php } ?>> 是
<input type='radio' name='setting[searchcontent]' value='0' <?php if(!$searchcontent){ ?>checked <?php } ?>> 否
</td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>安全设置</th>
<tr>
<td width='40%' class='tablerow'><strong>允许访问后台的IP列表</strong><br/>
只有当管理员处于本列表中的 IP 地址时才可以访问网站后台,列表以外的地址访问将无法访问,但仍可访问网站前台界面,请务必慎重使用本功能。每个 IP 一行,既可输入完整地址,也可只输入 IP 开头,例如 "192.168." 可匹配 192.168.0.0~192.168.255.255 范围内的所有地址<br/><font color="red">留空则所有 IP 均可访问网站后台</font>
</td>
<td class='tablerow'>
<textarea name='setting[adminaccessip]' cols='60' rows='8' id='adminaccessip'><?=$adminaccessip?></textarea>
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>后台最大登陆失败次数</strong><br/>登陆失败次数超过后系统将自动锁定该IP,0表示不限制次数</td>
<td class='tablerow'>
<input name='setting[maxfailedtimes]' type='text' id='maxfailedtimes' value='<?=$maxfailedtimes?>' size='10' maxlength='2'> 次
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>IP锁定时间</strong><br/>超过锁定时间后该IP将自动解锁</td>
<td class='tablerow'>
<input name='setting[maxlockedtime]' type='text' id='maxlockedtime' value='<?=$maxlockedtime?>' size='10' maxlength='5'> 小时
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>IP访问禁止</strong><br/>可按IP或者IP段设置禁止访问站点,此功能会消耗一定的服务器资源</td>
<td class='tablerow'>
<input type='radio' name='setting[enablebanip]' value='1' <?php if($enablebanip){ ?>checked <?php } ?>> 启用
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -