?? 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 + -