Commit 2a794f23 authored by Bill Lynch's avatar Bill Lynch Committed by bill

Removed some.. stuff.. brain is going to mush.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@383 b35dd754-fafc-0310-a699-88a17e54d16e
parent 14d7bc70
......@@ -96,10 +96,6 @@
url="session-summary.jsp"
description="Click to manage XMPP sessions" />
<item id="session-settings" name="Session Settings"
url="session-settings.jsp"
description="Click to change session settings" />
<item id="user-message" name="Send Message"
url="user-message.jsp"
description="Click to send a message" />
......
<%@ taglib uri="core" prefix="c"%><%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="org.jivesoftware.util.*,
java.util.Iterator,
org.jivesoftware.messenger.*,
java.util.Date,
org.jivesoftware.admin.*,
java.text.DateFormat,
org.jivesoftware.messenger.handler.IQAuthHandler" %>
<%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs
String title = "Session Settings";
pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-settings.jsp"));
pageinfo.setPageID("session-settings");
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<c:set var="success" value="${param.success}" />
<% // Get parameters
boolean save = "true".equals(request.getParameter("save"));
boolean success = "true".equals(request.getParameter("success"));
boolean guestLogin = ParamUtils.getBooleanParameter(request,"guestLogin");
IQAuthHandler authHandler = new IQAuthHandler();
// Save properties if requested
if (save) {
authHandler.setAllowAnonymous(guestLogin);
// Done so redirect
response.sendRedirect("session-settings.jsp?success=true");
return;
}
// Reset the page variables to their current state
guestLogin = authHandler.isAllowAnonymous();
%>
<c:if test="${success}">
<p class="jive-success-text">
Settings saved successfully.
</p>
</c:if>
<table cellpadding="3" cellspacing="1" border="0" width="600">
<form action="session-settings.jsp" method="post">
<tr><td colspan=3 class="text">
By default, anonymous logins are disabled. Enabling them would allow guests
without accounts to join the server. To enable this, choose
"enable" below.
</td></tr>
<input type="hidden" name="save" value="true">
<tr class="">
<td width="1%">
<input type="radio" name="guestLogin" value="true" id="rb01"
<%= (guestLogin ? "checked" : "") %>>
</td>
<td>
<label for="rb01">Enable anonymous logins</label>
</td>
</tr>
<tr>
<td>
<input type="radio" name="guestLogin" value="false" id="rb02"
<%= (!guestLogin ? "checked" : "") %>>
</td>
<td>
<label for="rb02">Disable anonymous logins</label>
</td>
</tr>
</table>
</ul>
</p>
<br>
<input type="submit" value="Save Settings">
</form>
<jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment