?? access.jsp
字號(hào):
<%@ page contentType="text/html;charset=gbk" errorPage="../error.jsp"%>
<%@ page import="com.hongshee.ejforum.util.PageUtils"%>
<%@ page import="com.hongshee.ejforum.data.UserDAO.UserInfo"%>
<%@ page import="com.hongshee.ejforum.common.ForumSetting"%>
<%
UserInfo userinfo = PageUtils.getAdminUser(request, response);
if (userinfo == null) return;
ForumSetting setting = ForumSetting.getInstance();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gbk">
<LINK href="../style/admin.css" type=text/css rel=stylesheet>
<SCRIPT src="../../js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="../js/admin.js" type=text/javascript></SCRIPT>
</HEAD>
<BODY topMargin=10>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD>
<TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><A onclick="parent.location='../index.htm'; return false;"
href="#">后臺(tái)管理首頁</A> » 注冊(cè)與訪問控制</TD></TR></TBODY></TABLE><BR>
<FORM id=settings name=settings onSubmit="checkfields(this); return false;" action="../perform.jsp" method=post>
<INPUT type=hidden name="act" value="basic_access">
<A name=tb01></A>
<TABLE class=info_tb cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR class=header>
<TD colSpan=2>注冊(cè)相關(guān)設(shè)置<A onClick="collapse_change('tb01','../images')" href="#"><IMG
id=menuimg_tb01 style="MARGIN-TOP: -12px; FLOAT: right; MARGIN-RIGHT: 8px"
src="../images/menu_reduce.gif" border=0></A> </TD></TR>
<TBODY id=menu_tb01>
<TR>
<TD class=altbg1 width="45%"><B>新用戶注冊(cè)方式:</B><BR><SPAN
class=smalltxt>設(shè)置游客注冊(cè)后是否立即成為會(huì)員</SPAN></TD>
<TD class=altbg2>
<INPUT class=radio type=radio CHECKED
value="open" name=registerType id=registerType[open]> 開放式注冊(cè) - 注冊(cè)后立即成為會(huì)員<BR>
<INPUT class=radio type=radio value="close"
name=registerType id=registerType[close]> 封閉式注冊(cè) - 注冊(cè)后需要經(jīng)過人工審核才能成為會(huì)員<BR></TD></TR>
<TR>
<TD class=altbg1 vAlign=top width="45%"><B>用戶信息保留關(guān)鍵字:</B><BR><SPAN
class=smalltxt>用戶在其用戶信息(如用戶名、昵稱等)中無法使用這些關(guān)鍵字,每個(gè)關(guān)鍵字一行</SPAN></TD>
<TD class=altbg2>
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('reserveWords', 1)" src="../images/zoomin.gif">
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('reserveWords', 0)" src="../images/zoomout.gif">
<BR><TEXTAREA id=reserveWords name=reserveWords rows=6 cols=50 style="width:278px"></TEXTAREA></TD></TR>
<TR>
<TD class=altbg1 width="45%"><B>注冊(cè)用戶有效期限制(天):</B><BR><SPAN
class=smalltxt>若注冊(cè)用戶在某一限制的天數(shù)內(nèi)沒有登錄, 且從未發(fā)表文章,則此注冊(cè)用戶將自動(dòng)失效,0 為不限制</SPAN></TD>
<TD class=altbg2><INPUT size=50 value=0 id=newUserExpireDays name=newUserExpireDays>
</TD></TR>
</TBODY></TABLE><BR>
<A name=tb02></A>
<TABLE class=info_tb cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR class=header>
<TD colSpan=2>訪問控制相關(guān)設(shè)置<A onclick="collapse_change('tb02','../images')" href="#">
<IMG id=menuimg_tb02 style="MARGIN-TOP: -12px; FLOAT: right; MARGIN-RIGHT: 8px"
src="../images/menu_reduce.gif" border=0></A> </TD></TR>
<TBODY id=menu_tb02>
<TR>
<TD class=altbg1 vAlign=top width="45%"><B>IP 禁止列表:</B><BR><SPAN class=smalltxt>
當(dāng)用戶處于本列表中的 IP 地址時(shí),將禁止訪問本論壇。
本功能對(duì)管理員沒有特例,請(qǐng)務(wù)必慎重使用本功能。每個(gè) IP 一行,既可輸入完整地址,也可只輸入 IP 開頭,
例如 "192.168."(不含引號(hào)) 可匹配 192.168.0.0~192.168.255.255 范圍內(nèi)的所有地址,
當(dāng)下面的 IP 訪問列表不為空時(shí)此列表無效</SPAN></TD>
<TD class=altbg2>
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('ipBanned', 1)" src="../images/zoomin.gif">
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('ipBanned', 0)" src="../images/zoomout.gif">
<BR><TEXTAREA id=ipBanned name=ipBanned rows=6 cols=50 style="width:278px"></TEXTAREA></TD></TR>
<TR>
<TD class=altbg1 vAlign=top width="45%"><B>IP 訪問列表:</B><BR><SPAN class=smalltxt>
只有當(dāng)用戶處于本列表中的 IP 地址時(shí)才可以訪問本論壇,列表以外的地址訪問將視為 IP 被禁止,
僅適用于諸如企業(yè)、學(xué)校內(nèi)部論壇等極個(gè)別場(chǎng)合。本功能對(duì)管理員沒有特例,請(qǐng)務(wù)必慎重使用本功能。
格式及規(guī)則同上,留空為所有 IP 除明確禁止的以外均可訪問</SPAN></TD>
<TD class=altbg2>
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('ipAllowed', 1)" src="../images/zoomin.gif">
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('ipAllowed', 0)" src="../images/zoomout.gif">
<BR><TEXTAREA id=ipAllowed name=ipAllowed rows=6 cols=50 style="width:278px"></TEXTAREA></TD></TR>
<TR>
<TD class=altbg1 vAlign=top width="45%"><B>管理員后臺(tái) IP 訪問列表:</B><BR><SPAN class=smalltxt>
只有當(dāng)管理員(版主不在此列)處于本列表中的 IP 地址時(shí)才可以訪問論壇后臺(tái)管理,
列表以外的地址訪問將無法訪問,但仍可訪問論壇前端用戶界面,請(qǐng)務(wù)必慎重使用本功能。
格式及規(guī)則同上,留空為所有 IP 除明確禁止的以外均可訪問系統(tǒng)設(shè)置</SPAN></TD>
<TD class=altbg2>
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('ipAdminAllowed', 1)" src="../images/zoomin.gif">
<IMG onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('ipAdminAllowed', 0)" src="../images/zoomout.gif">
<BR><TEXTAREA id=ipAdminAllowed name=ipAdminAllowed rows=6 cols=50 style="width:278px"></TEXTAREA></TD></TR>
</TBODY></TABLE><BR>
<CENTER><INPUT class=button type=submit value="提 交"></CENTER></FORM>
</TD></TR></TBODY></TABLE><BR><BR>
<script language="javascript">
function checkfields(theform) {
var filter = /^\d+$/;
var value = trim(theform.newUserExpireDays.value);
if (!filter.test(value)) {
alert('注冊(cè)用戶有效期限制必須為整數(shù)');
theform.newUserExpireDays.focus();
return;
}
theform.submit();
}
$('registerType[<%= setting.getHTMLStr(ForumSetting.ACCESS,"registerType") %>]').checked = "true";
$('settings').reserveWords.value = "<%= setting.getHTMLStr(ForumSetting.ACCESS,"reserveWords") %>";
$('settings').newUserExpireDays.value =
"<%= setting.getInt(ForumSetting.ACCESS,"newUserExpireDays") %>";
$('settings').ipBanned.value = "<%= setting.getHTMLStr(ForumSetting.ACCESS,"ipBanned") %>";
$('settings').ipAllowed.value = "<%= setting.getHTMLStr(ForumSetting.ACCESS,"ipAllowed") %>";
$('settings').ipAdminAllowed.value = "<%= setting.getHTMLStr(ForumSetting.ACCESS,"ipAdminAllowed") %>";
</script>
<%= PageUtils.getAdminFooter(request) %>
</BODY></HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -