Commit 7ddf9f6e authored by Matt Tucker's avatar Matt Tucker Committed by matt

Work on converting admin console to Sitemesh (JM-421). Not all JSP pages are...

Work on converting admin console to Sitemesh (JM-421). Not all JSP pages are finished, but will be shortly.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2925 b35dd754-fafc-0310-a699-88a17e54d16e
parent 597b7529
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
<SOURCES /> <SOURCES />
</library> </library>
</orderEntry> </orderEntry>
<orderEntry type="module-library"> <orderEntry type="module-library" exported="">
<library> <library>
<CLASSES> <CLASSES>
<root url="jar://$MODULE_DIR$/build/lib/merge/shaj.jar!/" /> <root url="jar://$MODULE_DIR$/build/lib/merge/shaj.jar!/" />
...@@ -247,6 +247,15 @@ ...@@ -247,6 +247,15 @@
<SOURCES /> <SOURCES />
</library> </library>
</orderEntry> </orderEntry>
<orderEntry type="module-library" exported="">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/build/lib/merge/sitemesh.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntryProperties /> <orderEntryProperties />
</component> </component>
</module> </module>
......
...@@ -356,6 +356,7 @@ ...@@ -356,6 +356,7 @@
<mkdir dir="${war.dest.dir}/build"/> <mkdir dir="${war.dest.dir}/build"/>
<!-- Make a new web.xml file in the build dir --> <!-- Make a new web.xml file in the build dir -->
<copy file="${webapp.dest.dir}/WEB-INF/web.xml" toFile="${war.dest.dir}/build/web.xml" overwrite="${overwrite}"/> <copy file="${webapp.dest.dir}/WEB-INF/web.xml" toFile="${war.dest.dir}/build/web.xml" overwrite="${overwrite}"/>
<!-- TODO: copy in decorators.xml -->
<!-- Make the war --> <!-- Make the war -->
<war destfile="${war.dest.dir}/${war.name}" basedir="${web.dir}" <war destfile="${war.dest.dir}/${war.name}" basedir="${web.dir}"
webxml="${war.dest.dir}/build/web.xml"> webxml="${war.dest.dir}/build/web.xml">
...@@ -460,6 +461,12 @@ ...@@ -460,6 +461,12 @@
</filterset> </filterset>
</copy> </copy>
<!-- Copy over decorators file. -->
<copy file="${web.dir}/WEB-INF/decorators.xml"
toFile="${webapp.dest.dir}/WEB-INF/decorators.xml"
overwrite="true">
</copy>
<!-- Create a jar of compiled servlets --> <!-- Create a jar of compiled servlets -->
<jar jarfile="${jspc.dest.dir}/${jspc.jar.name}"> <jar jarfile="${jspc.dest.dir}/${jspc.jar.name}">
<fileset dir="${jspc.classes.dest.dir}" includes="**/*.class"/> <fileset dir="${jspc.classes.dest.dir}" includes="**/*.class"/>
......
No preview for this file type
No preview for this file type
Name | Version Name | Version
--------------------------------------------- ---------------------------------------------
hsqldb.jar | 1.8.0.1
mysql.jar | 3.1.10
postgres.jar | 7.4 version 215
ant.jar | Jetty 5.1.2pre0 ant.jar | Jetty 5.1.2pre0
ant-contrib.jar | 1.0b1
ant-subdirtask.jar | Revision 1.4 (CVS)
commons-logging.jar | Jetty 5.1.2pre0 commons-logging.jar | Jetty 5.1.2pre0
commons-el.jar | Jetty 5.1.2pre0 commons-el.jar | Jetty 5.1.2pre0
dom4j.jar | 1.6.1
hsqldb.jar | 1.8.0.1
jetty.jar | Jetty 5.1.2 jetty.jar | Jetty 5.1.2
jasper-compiler.jar | Jetty 5.1.2pre0 jasper-compiler.jar | Jetty 5.1.2pre0
jasper-runtime.jar | Jetty 5.1.2pre0 jasper-runtime.jar | Jetty 5.1.2pre0
servlet.jar | Jetty 5.1.2pre0 jaxen.jar | 1.1 beta 4 (from DOM4J 1.6.1)
dom4j.jar | 1.6.1
jaxen.jar | 1.1 beta 4 (from DOM4J 1.5.2)
junit.jar | 3.8.1 junit.jar | 3.8.1
ant-contrib.jar | 1.0b1 jdic.jar | 0.9.1 (for windows only)
ant-subdirtask.jar | Revision 1.4 (CVS)
jdic.jar | 0.8.7 (for windows only)
xmltask.jar | 1.10.5
jstl.jar | Jakarta standard taglib 1.1.2 jstl.jar | Jakarta standard taglib 1.1.2
jmdns.jar | 1.0 RC1
mysql.jar | 3.1.10
postgres.jar | 7.4 version 215
servlet.jar | Jetty 5.1.2pre0
shaj.jar | 0.5
sitemesh.jar | 2.2.1
standard.jar | Jakarta standard taglib 1.1.2 standard.jar | Jakarta standard taglib 1.1.2
xpp3.jar | XPP_3 1.1.3.4.M
whack.jar | April-26-2005 whack.jar | April-26-2005
jmdns.jar | 1.0 RC1 xmltask.jar | 1.10.5
shaj.jar | 0.5 xpp3.jar | XPP_3 1.1.3.4.M
\ No newline at end of file \ No newline at end of file
...@@ -143,7 +143,12 @@ ...@@ -143,7 +143,12 @@
## Added key: 'timezone.choose' ## Added key: 'timezone.choose'
## Added key: 'plugin.admin.click_reload' ## Added key: 'plugin.admin.click_reload'
## Added key: 'plugin.admin.reload_success' ## Added key: 'plugin.admin.reload_success'
## Modified key: 'sidebar.server-locale'
## Modified key: 'sidebar.server-locale.descr'
## Modified key: 'locale.title'
## Modified key: 'locale.title.info' ## Modified key: 'locale.title.info'
## Modified key: 'locale.system.set'
## Modified key: 'locale.current'
## Modified key: 'component.settings.info' ## Modified key: 'component.settings.info'
## Modified key: 'sidebar.server-db.descr' ## Modified key: 'sidebar.server-db.descr'
## Modified key: 'sidebar.server2server-settings' ## Modified key: 'sidebar.server2server-settings'
...@@ -154,8 +159,31 @@ ...@@ -154,8 +159,31 @@
## Modified key: 'sidebar.server-audit-policy.descr' ## Modified key: 'sidebar.server-audit-policy.descr'
## Modified key: 'sidebar.server-data-settings.descr' ## Modified key: 'sidebar.server-data-settings.descr'
## Modified key: 'sidebar.server-ssl.descr' ## Modified key: 'sidebar.server-ssl.descr'
## Removed key: 'license.details.info'
## Removed key: 'license.details.info1'
## Removed key: 'license.details.details'
## Removed key: 'license.details.type'
## Removed key: 'license.details.max_session'
## Removed key: 'license.details.unlimited'
## Removed key: 'license.details.expiration_date'
## Removed key: 'license.details.expiration_date_never'
## Removed key: 'locale.choose' ## Removed key: 'locale.choose'
## Removed key: 'plugin.admin.reload_success' ## Removed key: 'plugin.admin.reload_success'
## Removed key: 'session.filter.title'
## Removed key: 'session.filter.info'
## Removed key: 'session.filter.enter_username'
## Removed key: 'session.filter.specify_username'
## Removed key: 'session.filter.choose_user'
## Removed key: 'user.browser.title'
## Removed key: 'user.browser.legend'
## Removed key: 'user.browser.info'
## Removed key: 'user.browser.viewing_page'
## Removed key: 'user.browser.username'
## Removed key: 'user.browser.name'
## Removed key: 'user.browser.no_users'
## Removed key: 'user.browser.add_user'
## Removed key: 'user.browser.browse_users'
## Removed key: 'user.browser.browse_users_desc'
# Messenger # Messenger
...@@ -171,8 +199,8 @@ tab.server.descr=Click to manage server settings ...@@ -171,8 +199,8 @@ tab.server.descr=Click to manage server settings
sidebar.server-settings.descr=Click to manage system settings sidebar.server-settings.descr=Click to manage system settings
sidebar.system-props=System Properties sidebar.system-props=System Properties
sidebar.system-props.descr=Click to manage server properties sidebar.system-props.descr=Click to manage server properties
sidebar.server-locale=System Locale sidebar.server-locale=Language and Time
sidebar.server-locale.descr=Click to set the locale used by the system sidebar.server-locale.descr=Click to set the language and time zone
sidebar.server-db=Database sidebar.server-db=Database
sidebar.server-db.descr=Click to view database connection information sidebar.server-db.descr=Click to view database connection information
sidebar.server-logs=Logs sidebar.server-logs=Logs
...@@ -505,19 +533,6 @@ audit.policy.label_audit_presence_packets=Audit Presence Packets ...@@ -505,19 +533,6 @@ audit.policy.label_audit_presence_packets=Audit Presence Packets
audit.policy.label_audit_iq_packets=Audit IQ Packets audit.policy.label_audit_iq_packets=Audit IQ Packets
audit.policy.queued_packets=Queued packets: audit.policy.queued_packets=Queued packets:
# Users browser Page
user.browser.title=User Browser
user.browser.legend=Possible Users to Add
user.browser.info=Click "Add User" to add a user to the list box below. When you're done click "Done"
user.browser.viewing_page=Viewing page
user.browser.username=Username
user.browser.name=Name
user.browser.no_users=No users in the system
user.browser.add_user=Add User
user.browser.browse_users=Browse Users
user.browser.browse_users_desc=Click to browse available users...
# Chatroom history settings Page # Chatroom history settings Page
chatroom.history.settings.title=Chat Room History Settings chatroom.history.settings.title=Chat Room History Settings
...@@ -655,24 +670,13 @@ index.memory=Java Memory ...@@ -655,24 +670,13 @@ index.memory=Java Memory
# Locale Page # Locale Page
locale.title=Server Locale locale.title=Language and Time Settings
locale.title.info=Use the form below to set the locale. locale.title.info=Use the form below to set the system language and time zone (locale).
locale.system.set=Set System Locale locale.system.set=Set Locale
locale.current=Current Locale locale.current=Current Settings
language.choose=Choose Language language.choose=Choose Language
timezone.choose=Choose Time Zone timezone.choose=Choose Time Zone
# License details Page
license.details.info=The following is a summary of your
license.details.info1=license.
license.details.details=License Details
license.details.type=License Type:
license.details.max_session=Maximum Allowable Sessions:
license.details.unlimited=Unlimited
license.details.expiration_date=Expiration Date:
license.details.expiration_date_never=Never
# Log Page # Log Page
log.line=line log.line=line
...@@ -1146,15 +1150,6 @@ session.details.close_connect=Close Connection ...@@ -1146,15 +1150,6 @@ session.details.close_connect=Close Connection
session.details.session_detail=Current session details above. session.details.session_detail=Current session details above.
session.details.back_button=Back to Summary session.details.back_button=Back to Summary
# Session filter Page
session.filter.title=Filter Session Summary by User
session.filter.info=To filter the list of sessions by user, select the user from the list below \
or enter their username in the box below.
session.filter.enter_username=Please enter a valid username or choose a username from the list.
session.filter.specify_username=Specify username:
session.filter.choose_user=Choose user:
# Session row Page # Session row Page
session.row.cliked=Click for more info... session.row.cliked=Click for more info...
......
...@@ -118,12 +118,8 @@ public class TabsTag extends BodyTagSupport { ...@@ -118,12 +118,8 @@ public class TabsTag extends BodyTagSupport {
HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
String beanName = getBean(); String beanName = getBean();
// Get the page data bean from the request: // Get the page data bean from the request:
AdminPageBean pageInfo = (AdminPageBean)request.getAttribute(beanName);
// If the page info bean is not in the request then no tab will be selected - so, it'll fail gracefully // If the page info bean is not in the request then no tab will be selected - so, it'll fail gracefully
String pageID = null; String pageID = (String)request.getAttribute("pageID");
if (pageInfo != null) {
pageID = pageInfo.getPageID();
}
// Get tabs from the model: // Get tabs from the model:
List tabs = AdminConsole.getModel().selectNodes("//tab"); List tabs = AdminConsole.getModel().selectNodes("//tab");
if (tabs.size() > 0) { if (tabs.size() > 0) {
......
...@@ -225,7 +225,6 @@ public class PluginServlet extends HttpServlet { ...@@ -225,7 +225,6 @@ public class PluginServlet extends HttpServlet {
// Strip the starting "/" from the path to find the JSP URL. // Strip the starting "/" from the path to find the JSP URL.
String jspURL = pathInfo.substring(1); String jspURL = pathInfo.substring(1);
HttpServlet servlet = servlets.get(jspURL); HttpServlet servlet = servlets.get(jspURL);
if (servlet != null) { if (servlet != null) {
servlet.service(request, response); servlet.service(request, response);
...@@ -338,11 +337,13 @@ public class PluginServlet extends HttpServlet { ...@@ -338,11 +337,13 @@ public class PluginServlet extends HttpServlet {
in.close(); in.close();
} }
catch (Exception ignored) { catch (Exception ignored) {
// Ignore.
} }
try { try {
out.close(); out.close();
} }
catch (Exception ignored) { catch (Exception ignored) {
// Ignore.
} }
} }
} }
...@@ -455,19 +456,18 @@ public class PluginServlet extends HttpServlet { ...@@ -455,19 +456,18 @@ public class PluginServlet extends HttpServlet {
// Load all jars from lib // Load all jars from lib
File libDirectory = new File(pluginDirectory, "lib"); File libDirectory = new File(pluginDirectory, "lib");
File[] libs = libDirectory.listFiles(); File[] libs = libDirectory.listFiles();
for (int i = 0; i < libs.length; i++) { for (File libFile : libs) {
File libFile = libs[i]; builder.append(libFile.getAbsolutePath()).append(';');
builder.append(libFile.getAbsolutePath() + ';');
} }
File messengerRoot = pluginDirectory.getParentFile().getParentFile().getParentFile(); File messengerRoot = pluginDirectory.getParentFile().getParentFile().getParentFile();
File messengerLib = new File(messengerRoot, "target//lib"); File messengerLib = new File(messengerRoot, "target//lib");
builder.append(messengerLib.getAbsolutePath() + "//servlet.jar;"); builder.append(messengerLib.getAbsolutePath()).append("//servlet.jar;");
builder.append(messengerLib.getAbsolutePath() + "//messenger.jar;"); builder.append(messengerLib.getAbsolutePath()).append("//messenger.jar;");
builder.append(messengerLib.getAbsolutePath() + "//jasper-compiler.jar;"); builder.append(messengerLib.getAbsolutePath()).append("//jasper-compiler.jar;");
builder.append(messengerLib.getAbsolutePath() + "//jasper-runtime.jar;"); builder.append(messengerLib.getAbsolutePath()).append("//jasper-runtime.jar;");
builder.append(env.getClassesDir().getAbsolutePath() + ";"); builder.append(env.getClassesDir().getAbsolutePath()).append(";");
return builder.toString(); return builder.toString();
} }
......
...@@ -21,8 +21,6 @@ import org.jivesoftware.messenger.user.UserManager; ...@@ -21,8 +21,6 @@ import org.jivesoftware.messenger.user.UserManager;
import java.io.*; import java.io.*;
import java.net.URL; import java.net.URL;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.StringTokenizer; import java.util.StringTokenizer;
/** /**
...@@ -30,10 +28,6 @@ import java.util.StringTokenizer; ...@@ -30,10 +28,6 @@ import java.util.StringTokenizer;
*/ */
public class WebManager extends WebBean { public class WebManager extends WebBean {
private Map breadcrumbMap = new LinkedHashMap();
private String title = "";
private String sidebar = "";
private int start = 0; private int start = 0;
private int range = 15; private int range = 15;
...@@ -107,7 +101,9 @@ public class WebManager extends WebBean { ...@@ -107,7 +101,9 @@ public class WebManager extends WebBean {
try { try {
pageUser = getUserManager().getUser(getAuthToken().getUsername()); pageUser = getUserManager().getUser(getAuthToken().getUsername());
} }
catch (Exception ignored) {} catch (Exception ignored) {
// Ignore.
}
return pageUser; return pageUser;
} }
...@@ -162,39 +158,7 @@ public class WebManager extends WebBean { ...@@ -162,39 +158,7 @@ public class WebManager extends WebBean {
} }
public boolean isServerRunning() { public boolean isServerRunning() {
if (getPresenceManager() == null || return !(getPresenceManager() == null || getXMPPServer() == null);
getXMPPServer() == null) {
return false;
}
return true;
}
public void addBreadCrumb(String name, String url) {
breadcrumbMap.put(name, url);
}
public Map getBreadCrumbs() {
return breadcrumbMap;
}
public void setSidebar(String sidebar) {
this.sidebar = sidebar;
}
public String getSidebar() {
return sidebar;
}
public void setTitle(String title) {
this.title = title;
}
public String getTitle() {
return title;
}
public int getBreadcrumbSize() {
return getBreadCrumbs().size();
} }
public void setStart(int start) { public void setStart(int start) {
...@@ -223,6 +187,7 @@ public class WebManager extends WebBean { ...@@ -223,6 +187,7 @@ public class WebManager extends WebBean {
Thread.sleep(3000L); Thread.sleep(3000L);
} }
catch (Exception ignored) { catch (Exception ignored) {
// Ignore.
} }
} }
...@@ -253,13 +218,17 @@ public class WebManager extends WebBean { ...@@ -253,13 +218,17 @@ public class WebManager extends WebBean {
in.close(); in.close();
} }
} }
catch (IOException e) { } catch (IOException e) {
// Ignore.
}
try { try {
if (out != null) { if (out != null) {
out.close(); out.close();
} }
} }
catch (IOException e) { } catch (IOException e) {
// Ignore.
}
} }
} }
...@@ -378,7 +347,7 @@ public class WebManager extends WebBean { ...@@ -378,7 +347,7 @@ public class WebManager extends WebBean {
} }
} }
} }
else if (values == null) { else {
// Store the new page-value as a new user property // Store the new page-value as a new user property
user.getProperties().put(property, toStore); user.getProperties().put(property, toStore);
} }
......
...@@ -24,11 +24,6 @@ ...@@ -24,11 +24,6 @@
<required>false</required> <required>false</required>
<rtexprvalue>true</rtexprvalue> <rtexprvalue>true</rtexprvalue>
</attribute> </attribute>
<attribute>
<name>bean</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute> <attribute>
<name>role</name> <name>role</name>
<required>false</required> <required>false</required>
...@@ -60,11 +55,6 @@ ...@@ -60,11 +55,6 @@
<required>false</required> <required>false</required>
<rtexprvalue>true</rtexprvalue> <rtexprvalue>true</rtexprvalue>
</attribute> </attribute>
<attribute>
<name>bean</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute> <attribute>
<name>role</name> <name>role</name>
<required>false</required> <required>false</required>
......
<decorators defaultdir="/decorators">
<decorator name="main" page="main.jsp">
<pattern>/*.jsp</pattern>
</decorator>
<excludes>
<pattern>/setup/*</pattern>
<pattern>/login.jsp*</pattern>
</excludes>
</decorators>
\ No newline at end of file
...@@ -36,6 +36,11 @@ ...@@ -36,6 +36,11 @@
<filter-name>LocaleFilter</filter-name> <filter-name>LocaleFilter</filter-name>
<filter-class>org.jivesoftware.util.LocaleFilter</filter-class> <filter-class>org.jivesoftware.util.LocaleFilter</filter-class>
</filter> </filter>
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>
<filter-mapping> <filter-mapping>
<filter-name>AuthCheck</filter-name> <filter-name>AuthCheck</filter-name>
...@@ -56,6 +61,11 @@ ...@@ -56,6 +61,11 @@
<filter-name>AuthCheck</filter-name> <filter-name>AuthCheck</filter-name>
<servlet-name>PluginServlet</servlet-name> <servlet-name>PluginServlet</servlet-name>
</filter-mapping> </filter-mapping>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet> <servlet>
<servlet-name>PluginServlet</servlet-name> <servlet-name>PluginServlet</servlet-name>
......
...@@ -10,39 +10,30 @@ ...@@ -10,39 +10,30 @@
--%> --%>
<%@ page import="org.jivesoftware.messenger.audit.AuditManager, <%@ page import="org.jivesoftware.messenger.audit.AuditManager,
org.jivesoftware.admin.*,
org.jivesoftware.util.*, org.jivesoftware.util.*,
java.util.*, java.util.*,
java.io.File, java.io.File,
org.xmpp.component.ComponentManagerFactory,
org.xmpp.packet.JID, org.xmpp.packet.JID,
java.util.LinkedList,
org.jivesoftware.messenger.user.UserNotFoundException" org.jivesoftware.messenger.user.UserNotFoundException"
errorPage="error.jsp" errorPage="error.jsp"
%> %>
<%@ page import="org.jivesoftware.messenger.XMPPServer"%>
<%@ page import="org.jivesoftware.messenger.user.UserManager"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<html>
<head>
<title><fmt:message key="audit.policy.title"/></title>
<meta name="pageID" content="server-audit-policy"/>
<meta name="helpPage" content="set_server_traffic_auditing_policy.html"/>
</head>
<body>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs
String title = LocaleUtils.getLocalizedString("audit.policy.title");
pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "audit-policy.jsp"));
pageinfo.setPageID("server-audit-policy");
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="set_server_traffic_auditing_policy.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<script language="JavaScript" type="text/javascript">
function openWin(el) {
var win = window.open('user-browser.jsp?formName=f&elName=ignore','newWin','width=500,height=550,menubar=yes,location=no,personalbar=no,scrollbars=yes,resize=yes');
}
</script>
<% // Get parameters: <% // Get parameters:
boolean update = request.getParameter("update") != null; boolean update = request.getParameter("update") != null;
...@@ -61,9 +52,9 @@ function openWin(el) { ...@@ -61,9 +52,9 @@ function openWin(el) {
// Get an audit manager: // Get an audit manager:
AuditManager auditManager = admin.getXMPPServer().getAuditManager(); AuditManager auditManager = XMPPServer.getInstance().getAuditManager();
Map errors = new HashMap(); Map<String,String> errors = new HashMap<String,String>();
if (update) { if (update) {
auditManager.setEnabled(auditEnabled); auditManager.setEnabled(auditEnabled);
auditManager.setAuditMessage(auditMessages); auditManager.setAuditMessage(auditMessages);
...@@ -117,7 +108,7 @@ function openWin(el) { ...@@ -117,7 +108,7 @@ function openWin(el) {
String tok = tokenizer.nextToken(); String tok = tokenizer.nextToken();
String username = tok; String username = tok;
if (tok.contains("@")) { if (tok.contains("@")) {
if (tok.contains("@" + admin.getServerInfo().getName())) { if (tok.contains("@" + webManager.getServerInfo().getName())) {
username = new JID(tok).getNode(); username = new JID(tok).getNode();
} }
else { else {
...@@ -126,7 +117,7 @@ function openWin(el) { ...@@ -126,7 +117,7 @@ function openWin(el) {
} }
} }
try { try {
admin.getUserManager().getUser(username); webManager.getUserManager().getUser(username);
newIgnoreList.add(username); newIgnoreList.add(username);
} }
catch (UserNotFoundException e){ catch (UserNotFoundException e){
...@@ -140,7 +131,7 @@ function openWin(el) { ...@@ -140,7 +131,7 @@ function openWin(el) {
<div class="jive-success"> <div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td> <tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0" alt=""></td>
<td class="jive-icon-label"> <td class="jive-icon-label">
<fmt:message key="audit.policy.settings.saved_successfully" /> <fmt:message key="audit.policy.settings.saved_successfully" />
</td></tr> </td></tr>
...@@ -353,7 +344,7 @@ function openWin(el) { ...@@ -353,7 +344,7 @@ function openWin(el) {
<td nowrap valign="top"> <td nowrap valign="top">
<a href="#" onclick="openWin(document.f.ignore);return false;" <a href="#" onclick="openWin(document.f.ignore);return false;"
title="<fmt:message key="user.browser.browse_users_desc" />" title="<fmt:message key="user.browser.browse_users_desc" />"
><img src="images/user.gif" border="0"/> <fmt:message key="user.browser.browse_users" /></a> ><img src="images/user.gif" border="0" alt=""/> <fmt:message key="user.browser.browse_users" /></a>
</td> </td>
</table> </table>
</td> </td>
...@@ -382,4 +373,5 @@ function openWin(el) { ...@@ -382,4 +373,5 @@ function openWin(el) {
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
<%--
- $RCSfile$
- $Revision$
- $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is published under the terms of the GNU Public License (GPL), - This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
...@@ -12,7 +11,6 @@ ...@@ -12,7 +11,6 @@
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.HistoryStrategy, org.jivesoftware.messenger.muc.HistoryStrategy,
org.jivesoftware.messenger.muc.MultiUserChatServer" org.jivesoftware.messenger.muc.MultiUserChatServer"
errorPage="error.jsp" errorPage="error.jsp"
...@@ -21,19 +19,16 @@ ...@@ -21,19 +19,16 @@
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("chatroom.history.settings.title"); <title><fmt:message key="chatroom.history.settings.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="server-chatroom-history"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="helpPage" content="edit_group_chat_history_settings.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "chatroom-history-settings.jsp")); </head>
pageinfo.setPageID("server-chatroom-history"); <body>
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<%! // Global vars and methods: <%! // Global vars and methods:
static final int ALL = 1; static final int ALL = 1;
...@@ -47,10 +42,10 @@ ...@@ -47,10 +42,10 @@
int numMessages = ParamUtils.getIntParameter(request,"numMessages",0); int numMessages = ParamUtils.getIntParameter(request,"numMessages",0);
// Get an audit manager: // Get an audit manager:
MultiUserChatServer muc = admin.getMultiUserChatServer(); MultiUserChatServer muc = webManager.getMultiUserChatServer();
HistoryStrategy historyStrat = muc.getHistoryStrategy(); HistoryStrategy historyStrat = muc.getHistoryStrategy();
Map errors = new HashMap(); Map<String, String> errors = new HashMap<String, String>();
if (update) { if (update) {
if (policy != ALL && policy != NONE && policy != NUMBER) { if (policy != ALL && policy != NONE && policy != NUMBER) {
errors.put("general", "Please choose a valid chat history policy."); errors.put("general", "Please choose a valid chat history policy.");
...@@ -76,7 +71,7 @@ ...@@ -76,7 +71,7 @@
<div class="jive-success"> <div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td> <tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0" alt=""></td>
<td class="jive-icon-label"> <td class="jive-icon-label">
<fmt:message key="chatroom.history.settings.saved_successfully" /> <fmt:message key="chatroom.history.settings.saved_successfully" />
</td></tr> </td></tr>
...@@ -151,6 +146,7 @@ ...@@ -151,6 +146,7 @@
<input type="text" name="numMessages" size="5" maxlength="10" <input type="text" name="numMessages" size="5" maxlength="10"
onclick="this.form.policy[2].checked=true;" onclick="this.form.policy[2].checked=true;"
value="<%= ((numMessages > 0) ? ""+numMessages : "") %>"> messages value="<%= ((numMessages > 0) ? ""+numMessages : "") %>"> messages
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
...@@ -163,4 +159,5 @@ ...@@ -163,4 +159,5 @@
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
...@@ -10,24 +10,17 @@ ...@@ -10,24 +10,17 @@
--%> --%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.text.DateFormat,
java.text.NumberFormat, java.text.NumberFormat,
org.jivesoftware.admin.*,
org.jivesoftware.messenger.user.User,
org.xmpp.packet.JID,
org.xmpp.packet.Presence,
java.net.URLEncoder,
org.jivesoftware.messenger.server.IncomingServerSession,
org.jivesoftware.messenger.server.OutgoingServerSession,
org.jivesoftware.messenger.component.ComponentSession" org.jivesoftware.messenger.component.ComponentSession"
errorPage="error.jsp" errorPage="error.jsp"
%> %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% webManager.init(request, response, session, application, out ); %>
<% // Get parameters <% // Get parameters
String jid = ParamUtils.getParameter(request, "jid"); String jid = ParamUtils.getParameter(request, "jid");
...@@ -46,16 +39,12 @@ ...@@ -46,16 +39,12 @@
NumberFormat numFormatter = NumberFormat.getNumberInstance(); NumberFormat numFormatter = NumberFormat.getNumberInstance();
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("component.session.details.title"); <title><fmt:message key="component.session.details.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="component-session-summary"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); </head>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "component-session-details.jsp?jid=" + jid)); <body>
pageinfo.setPageID("component-session-summary");
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="component.session.details.info"> <fmt:message key="component.session.details.info">
...@@ -105,16 +94,16 @@ ...@@ -105,16 +94,16 @@
<td> <td>
<% if ("gateway".equals(componentSession.getExternalComponent().getCategory())) { <% if ("gateway".equals(componentSession.getExternalComponent().getCategory())) {
if ("msn".equals(componentSession.getExternalComponent().getType())) { %> if ("msn".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/msn.gif" width="16" height="16" border="0">&nbsp; <img src="images/msn.gif" width="16" height="16" border="0" alt="MSN">&nbsp;
<% } <% }
else if ("aim".equals(componentSession.getExternalComponent().getType())) { %> else if ("aim".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/aim.gif" width="16" height="16" border="0">&nbsp; <img src="images/aim.gif" width="16" height="16" border="0" alt="AIM">&nbsp;
<% } <% }
else if ("yahoo".equals(componentSession.getExternalComponent().getType())) { %> else if ("yahoo".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/yahoo.gif" width="22" height="16" border="0">&nbsp; <img src="images/yahoo.gif" width="22" height="16" border="0" alt="Yahoo!">&nbsp;
<% } <% }
else if ("icq".equals(componentSession.getExternalComponent().getType())) { %> else if ("icq".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/icq.gif" width="16" height="16" border="0">&nbsp; <img src="images/icq.gif" width="16" height="16" border="0" alt="ICQ">&nbsp;
<% } <% }
} }
%> %>
...@@ -167,4 +156,5 @@ ...@@ -167,4 +156,5 @@
</center> </center>
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
...@@ -13,10 +13,6 @@ ...@@ -13,10 +13,6 @@
java.util.*, java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.util.Date, java.util.Date,
org.jivesoftware.admin.*,
java.text.DateFormat,
org.xmpp.packet.JID,
org.jivesoftware.messenger.server.IncomingServerSession,
java.net.URLEncoder, java.net.URLEncoder,
org.jivesoftware.messenger.component.ComponentSession" org.jivesoftware.messenger.component.ComponentSession"
errorPage="error.jsp" errorPage="error.jsp"
...@@ -73,16 +69,12 @@ ...@@ -73,16 +69,12 @@
int maxIndex = (start+range <= sessionCount ? start+range : sessionCount); int maxIndex = (start+range <= sessionCount ? start+range : sessionCount);
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("component.session.summary.title"); <title><fmt:message key="component.session.summary.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="component-session-summary"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); </head>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "component-session-summary.jsp")); <body>
pageinfo.setPageID("component-session-summary");
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% if ("success".equals(request.getParameter("close"))) { %> <% if ("success".equals(request.getParameter("close"))) { %>
...@@ -110,12 +102,11 @@ ...@@ -110,12 +102,11 @@
<% } %> <% } %>
</select> </select>
</p>
<% if (numPages > 1) { %> <% if (numPages > 1) { %>
<p> <p>
<fmt:message key="global.page" />: <fmt:message key="global.pages" />:
[ [
<% for (int i=0; i<numPages; i++) { <% for (int i=0; i<numPages; i++) {
String sep = ((i+1)<numPages) ? " " : ""; String sep = ((i+1)<numPages) ? " " : "";
...@@ -131,8 +122,6 @@ ...@@ -131,8 +122,6 @@
<% } %> <% } %>
</p>
<p> <p>
<fmt:message key="component.session.summary.info"> <fmt:message key="component.session.summary.info">
<fmt:param value="<%= "<a href='external-components-settings.jsp'>" %>" /> <fmt:param value="<%= "<a href='external-components-settings.jsp'>" %>" />
...@@ -187,16 +176,16 @@ ...@@ -187,16 +176,16 @@
<td align="center" width="10%" nowrap> <td align="center" width="10%" nowrap>
<% if ("gateway".equals(componentSession.getExternalComponent().getCategory())) { <% if ("gateway".equals(componentSession.getExternalComponent().getCategory())) {
if ("msn".equals(componentSession.getExternalComponent().getType())) { %> if ("msn".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/msn.gif" width="16" height="16" border="0">&nbsp; <img src="images/msn.gif" width="16" height="16" border="0" alt="MSN">&nbsp;
<% } <% }
else if ("aim".equals(componentSession.getExternalComponent().getType())) { %> else if ("aim".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/aim.gif" width="16" height="16" border="0">&nbsp; <img src="images/aim.gif" width="16" height="16" border="0" alt="AIM">&nbsp;
<% } <% }
else if ("yahoo".equals(componentSession.getExternalComponent().getType())) { %> else if ("yahoo".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/yahoo.gif" width="22" height="16" border="0">&nbsp; <img src="images/yahoo.gif" width="22" height="16" border="0" alt="Yahoo!">&nbsp;
<% } <% }
else if ("icq".equals(componentSession.getExternalComponent().getType())) { %> else if ("icq".equals(componentSession.getExternalComponent().getType())) { %>
<img src="images/icq.gif" width="16" height="16" border="0">&nbsp; <img src="images/icq.gif" width="16" height="16" border="0" alt="ICQ">&nbsp;
<% } <% }
} }
%> %>
...@@ -226,7 +215,7 @@ ...@@ -226,7 +215,7 @@
<a href="component-session-summary.jsp?jid=<%= URLEncoder.encode(componentSession.getAddress().toString(), "UTF-8") %>&close=true" <a href="component-session-summary.jsp?jid=<%= URLEncoder.encode(componentSession.getAddress().toString(), "UTF-8") %>&close=true"
title="<fmt:message key="session.row.cliked_kill_session" />" title="<fmt:message key="session.row.cliked_kill_session" />"
onclick="return confirm('<fmt:message key="session.row.confirm_close" />');" onclick="return confirm('<fmt:message key="session.row.confirm_close" />');"
><img src="images/delete-16x16.gif" width="16" height="16" border="0"></a> ><img src="images/delete-16x16.gif" width="16" height="16" border="0" alt=""></a>
</td> </td>
</tr> </tr>
<% } %> <% } %>
...@@ -259,4 +248,5 @@ ...@@ -259,4 +248,5 @@
<fmt:message key="component.session.summary.last_update" />: <%= JiveGlobals.formatDateTime(new Date()) %> <fmt:message key="component.session.summary.last_update" />: <%= JiveGlobals.formatDateTime(new Date()) %>
</p> </p>
<jsp:include page="bottom.jsp" flush="true" /> </body>
\ No newline at end of file </html>
\ No newline at end of file
<%--
- $Revision: 2701 $
- $Date: 2005-08-19 16:48:22 -0700 (Fri, 19 Aug 2005) $
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%>
<%@ page import="org.jivesoftware.util.StringUtils,
org.jivesoftware.admin.AdminConsole,
org.jivesoftware.util.LocaleUtils"
errorPage="../error.jsp"
%>
<%@ taglib uri="admin" prefix="admin" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<jsp:useBean id="info" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out); %>
<decorator:usePage id="decoratedPage" />
<%
String path = request.getContextPath();
// Decorated pages will typically must set a pageID and optionally set a subPageID
// and extraParams. Store these values as request attributes so that the tab and sidebar
// handling tags can get at the data.
request.setAttribute("pageID", decoratedPage.getProperty("meta.pageID"));
request.setAttribute("subPageID", decoratedPage.getProperty("meta.subPageID"));
request.setAttribute("extraParams", decoratedPage.getProperty("meta.extraParams"));
%>
<%
// If the page has instructed that no decorator should be applied, include the original
// page content and return.
if("false".equals(decoratedPage.getProperty("meta.decorator"))) {
decoratedPage.writePage(out);
return;
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><%= AdminConsole.getAppName() %> <fmt:message key="login.title" />: <decorator:title /></title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="<%= path %>/style/global.css">
<script language="JavaScript" type="text/javascript">
<!-- // code for window popups
function helpwin() {
var newwin = window.open('/help/index.html#<decorator:getProperty property="meta.helpPage" default=""/>',
'helpWindow','width=750,height=550,menubar=yes,location=no,personalbar=no,scrollbars=yes,resize=yes');
newwin.focus();
}
//-->
</script>
</head>
<body id="jive-body">
<div id="jive-header">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody>
<tr>
<td>
<img src="<%= path %>/<%= AdminConsole.getLogoImage() %>" border="0" alt="<%= AdminConsole.getAppName() %> <fmt:message key="login.title" />">
</td>
<td align="right">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<a href="#" onclick="helpwin();return false;"
><img src="/images/header-help.gif" width="24" height="24" border="0" alt="Click for help" hspace="10"></a>
&nbsp;
</td>
<td class="info">
<nobr><%= AdminConsole.getAppName() %> <%= AdminConsole.getVersionString() %></nobr>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td width="99%" nowrap>
<div id="jive-tabs">
<admin:tabs css="" currentcss="currentlink">
<a href="[url]" title="[description]"
onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;"
>[name]</a>
</admin:tabs>
</div>
</td>
<td width="1%" id="jive-logout" nowrap>
<a href="<%= path %>/index.jsp?logout=true"><%= LocaleUtils.getLocalizedString("global.logout") %> [<%= StringUtils.escapeHTMLTags(admin.getUser().getUsername()) %>]</a>
&nbsp;&nbsp;&nbsp;
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div id="jive-main">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr valign="top">
<td width="1%">
<div id="jive-sidebar">
<admin:sidebar css="" currentcss="currentlink" headercss="category">
<a href="[url]" title="[description]"
onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;"
>[name]</a>
<admin:subsidebar css="" currentcss="currentlink">
<a href="[url]" title="[description]"
onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;"
>[name]</a>
</admin:subsidebar>
</admin:sidebar>
<br>
<img src="<%= path %>/images/blank.gif" width="150" height="1" border="0" alt="">
</div>
</td>
<td width="99%" id="jive-content">
<div id="jive-title">
<decorator:title default="&nbsp;"/>
</div>
<decorator:body/>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
\ No newline at end of file
...@@ -65,7 +65,9 @@ ...@@ -65,7 +65,9 @@
</td> </td>
<td width="99%" id="jive-content"> <td width="99%" id="jive-content">
<jsp:include page="title.jsp" flush="true" /> <div id="jive-title">
<%= title %>
</div>
<p> <p>
<%= AdminConsole.getAppName() %> <fmt:message key="error.serverdown.is_down" /> <%= AdminConsole.getAppName() %> <fmt:message key="error.serverdown.is_down" />
......
...@@ -16,28 +16,17 @@ ...@@ -16,28 +16,17 @@
java.util.Iterator, java.util.Iterator,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.util.*, java.util.*,
java.text.DateFormat,
org.jivesoftware.admin.AdminPageBean,
org.jivesoftware.messenger.net.SocketAcceptThread,
org.jivesoftware.messenger.component.ExternalComponentManager, org.jivesoftware.messenger.component.ExternalComponentManager,
org.jivesoftware.messenger.component.ExternalComponentConfiguration" org.jivesoftware.messenger.component.ExternalComponentConfiguration"
errorPage="error.jsp" errorPage="error.jsp"
%> %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <html>
<% admin.init(request, response, session, application, out ); %> <head>
<title><fmt:message key="component.settings.title"/></title>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <meta name="pageID" content="external-components-settings"/>
<% // Title of this page and breadcrumbs </head>
String title = LocaleUtils.getLocalizedString("component.settings.title"); <body>
pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "external-components-settings.jsp"));
pageinfo.setPageID("external-components-settings");
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% // Get parameters <% // Get parameters
boolean update = request.getParameter("update") != null; boolean update = request.getParameter("update") != null;
...@@ -61,7 +50,7 @@ ...@@ -61,7 +50,7 @@
// Update the session kick policy if requested // Update the session kick policy if requested
Map errors = new HashMap(); Map<String, String> errors = new HashMap<String, String>();
if (update) { if (update) {
// Validate params // Validate params
if (componentEnabled) { if (componentEnabled) {
...@@ -255,7 +244,7 @@ ...@@ -255,7 +244,7 @@
<fmt:message key="component.settings.port" /> <fmt:message key="component.settings.port" />
</td> </td>
<td width="99%"> <td width="99%">
<input type="text" size="15" maxlength="50" name="port" <input type="text" size="10" maxlength="50" name="port"
value="<%= port %>"> value="<%= port %>">
</td> </td>
</tr> </tr>
...@@ -264,7 +253,7 @@ ...@@ -264,7 +253,7 @@
<fmt:message key="component.settings.defaultSecret" /> <fmt:message key="component.settings.defaultSecret" />
</td> </td>
<td width="99%"> <td width="99%">
<input type="text" size="25" maxlength="70" name="defaultSecret" <input type="text" size="15" maxlength="70" name="defaultSecret"
value="<%= ((defaultSecret != null) ? defaultSecret : "") %>"> value="<%= ((defaultSecret != null) ? defaultSecret : "") %>">
</td> </td>
</tr> </tr>
...@@ -374,7 +363,7 @@ ...@@ -374,7 +363,7 @@
<fmt:message key="component.settings.secret" /> <fmt:message key="component.settings.secret" />
</td> </td>
<td> <td>
<input type="text" size="40" name="secret"value="<%= componentAllowed ? secret : "" %>"/> <input type="text" size="15" name="secret"value="<%= componentAllowed ? secret : "" %>"/>
</td> </td>
</tr> </tr>
<tr align="center"> <tr align="center">
...@@ -392,9 +381,14 @@ ...@@ -392,9 +381,14 @@
<fieldset> <fieldset>
<legend><fmt:message key="component.settings.disallowed" /></legend> <legend><fmt:message key="component.settings.disallowed" /></legend>
<p><fmt:message key="component.settings.disallowed.info" /></p>
<div> <div>
<table class="jive-table" cellpadding="0" cellspacing="0" border="0" width="100%"> <table cellpadding="3" cellspacing="0" border="0" width="100%">
<tbody>
<tr><td><p><fmt:message key="component.settings.disallowed.info" /></p></td></tr>
</tbody>
</table>
<br><br>
<table class="jive-table" cellpadding="3" cellspacing="0" border="0" width="100%">
<thead> <thead>
<tr> <tr>
<th width="1%">&nbsp;</th> <th width="1%">&nbsp;</th>
...@@ -449,4 +443,5 @@ ...@@ -449,4 +443,5 @@
</div> </div>
</fieldset> </fieldset>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
<%
/**
* $RCSfile$
* $Revision$
* $Date$
*/
%>
</body>
</html>
<%--
- $RCSfile$
- $Revision$
- $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%>
<%@ page import="org.jivesoftware.messenger.auth.AuthToken,
org.jivesoftware.util.ClassUtils,
org.jivesoftware.messenger.XMPPServer,
org.jivesoftware.messenger.user.*"
%>
<% // Security check
AuthToken authToken = (AuthToken)session.getAttribute("jive.admin.authToken");
if (authToken == null) {
response.sendRedirect("login.jsp");
return;
}
else {
// check for an anonymous user token
if (authToken.isAnonymous()) {
response.sendRedirect("login.jsp");
return;
}
}
// Handle an admin logout requst:
if (request.getParameter("logout") != null) {
session.removeAttribute("jive.admin.authToken");
response.sendRedirect("index.jsp");
return;
}
// Check to see if we're in "setup" mode:
if (XMPPServer.getInstance().isSetupMode()) {
response.sendRedirect("setup-index.jsp");
return;
}
// Should only be set to true if logged in user is an admin.
// Since anyone that logged in is an admin, it's redundant to recheck.
boolean isSystemAdmin = true;
// Otherwise, get the xmpp server
XMPPServer xmppServer = XMPPServer.getInstance();
// The user object of the logged-in user
UserManager userManager = xmppServer.getUserManager();
User pageUser = null;
try {
pageUser = userManager.getUser(authToken.getUsername());
}
catch (UserNotFoundException ignored) {}
// embedded mode?
boolean embeddedMode = false;
try {
ClassUtils.forName("org.jivesoftware.messenger.starter.ServerStarter");
embeddedMode = true;
}
catch (Exception ignored) {}
%>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is published under the terms of the GNU Public License (GPL), - This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
...@@ -13,15 +12,6 @@ ...@@ -13,15 +12,6 @@
java.util.HashMap, java.util.HashMap,
java.util.Map, java.util.Map,
java.util.*, java.util.*,
org.jivesoftware.messenger.*,
org.jivesoftware.admin.*,
java.io.StringWriter,
java.io.StringWriter,
java.io.IOException,
org.jivesoftware.messenger.auth.UnauthorizedException,
java.io.PrintStream,
org.dom4j.xpath.DefaultXPath,
org.dom4j.*,
org.jivesoftware.messenger.group.*, org.jivesoftware.messenger.group.*,
java.net.URLEncoder, java.net.URLEncoder,
org.jivesoftware.messenger.user.UserManager, org.jivesoftware.messenger.user.UserManager,
...@@ -33,8 +23,6 @@ ...@@ -33,8 +23,6 @@
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<jsp:useBean id="errors" class="java.util.HashMap" />
<% webManager.init(request, response, session, application, out); %> <% webManager.init(request, response, session, application, out); %>
<% // Get parameters // <% // Get parameters //
...@@ -54,6 +42,8 @@ ...@@ -54,6 +42,8 @@
// String displayName = ParamUtils.getParameter(request, "display"); // String displayName = ParamUtils.getParameter(request, "display");
// String groupList = ParamUtils.getParameter(request, "groupList"); // String groupList = ParamUtils.getParameter(request, "groupList");
Map<String, String> errors = new HashMap<String, String>();
// Handle a cancel // Handle a cancel
if (cancel) { if (cancel) {
response.sendRedirect("group-summary.jsp"); response.sendRedirect("group-summary.jsp");
...@@ -126,32 +116,24 @@ ...@@ -126,32 +116,24 @@
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean"/> <html>
<head>
<% // Title of this page and breadcrumbs <title><fmt:message key="group.create.title"/></title>
String title = LocaleUtils.getLocalizedString("group.create.title"); <meta name="pageID" content="group-create"/>
pageinfo.setTitle(title); <meta name="helpPage" content="create_a_group.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); </head>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "group-create.jsp")); <body>
pageinfo.setPageID("group-create");
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="create_a_group.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true"/>
<c:set var="submit" value="${param.create}"/> <c:set var="submit" value="${param.create}"/>
<c:set var="errors" value="${errors}"/>
<% if (errors.get("general") != null) { %> <% if (errors.get("general") != null) { %>
<div class="jive-success"> <div class="jive-error">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr> <tr>
<td class="jive-icon"> <td class="jive-icon">
<img src="images/success-16x16.gif" width="16" height="16" border="0"> <img src="images/error-16x16.gif" width="16" height="16" border="0" alt="">
</td> </td>
<td class="jive-icon-label"> <td class="jive-icon-label">
<fmt:message key="group.create.error" /> <fmt:message key="group.create.error" />
...@@ -227,7 +209,7 @@ ...@@ -227,7 +209,7 @@
<fmt:message key="group.create.label_initial_member" /> <fmt:message key="group.create.label_initial_member" />
</td> </td>
<td nowrap class="c1" align="left"> <td nowrap class="c1" align="left">
<textarea name="users" cols="30" rows="3" id="gdesc" <textarea name="users" cols="30" rows="3" id="users"
><%= ((users != null) ? users : "") %></textarea> ><%= ((users != null) ? users : "") %></textarea>
</td> </td>
</tr> </tr>
...@@ -360,7 +342,8 @@ ...@@ -360,7 +342,8 @@
document.f.name.focus(); document.f.name.focus();
</script> </script>
<jsp:include page="bottom.jsp" flush="true"/> </body>
</html>
<%! <%!
private static String toList(String[] array) { private static String toList(String[] array) {
......
...@@ -46,20 +46,14 @@ ...@@ -46,20 +46,14 @@
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("group.delete.title"); <title><fmt:message key="group.delete.title"/></title>
pageinfo.setTitle(title); <meta name="subPageID" content="group-delete"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="extraParams" content="<%= URLEncoder.encode(groupName, "UTF-8") %>"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "group-delete.jsp?group="+URLEncoder.encode(groupName, "UTF-8"))); <meta name="helpPage" content="delete_a_group.html"/>
pageinfo.setSubPageID("group-delete"); </head>
pageinfo.setExtraParams("group="+URLEncoder.encode(groupName, "UTF-8")); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="delete_a_group.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="group.delete.hint_info" /> <fmt:message key="group.delete.hint_info" />
...@@ -73,4 +67,5 @@ ...@@ -73,4 +67,5 @@
<input type="submit" name="cancel" value="<fmt:message key="global.cancel" />"> <input type="submit" name="cancel" value="<fmt:message key="global.cancel" />">
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
...@@ -9,17 +8,11 @@ ...@@ -9,17 +8,11 @@
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
--%> --%>
<%@ page import="java.text.DateFormat, <%@ page import="java.util.*,
java.util.*,
org.jivesoftware.admin.*,
org.xmpp.packet.JID,
org.jivesoftware.messenger.group.GroupManager, org.jivesoftware.messenger.group.GroupManager,
org.jivesoftware.messenger.group.Group, org.jivesoftware.messenger.group.Group,
java.net.URLEncoder, java.net.URLEncoder,
java.net.URLDecoder, java.net.URLDecoder,
org.jivesoftware.messenger.user.UserManager,
org.jivesoftware.messenger.user.UserNotFoundException,
org.jivesoftware.stringprep.Stringprep,
java.io.UnsupportedEncodingException, java.io.UnsupportedEncodingException,
org.jivesoftware.util.*" org.jivesoftware.util.*"
%> %>
...@@ -28,9 +21,10 @@ ...@@ -28,9 +21,10 @@
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<!-- Define Administration Bean --> <!-- Define Administration Bean -->
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager"/> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager"/>
<% webManager.init(pageContext); %>
<jsp:useBean id="errors" class="java.util.HashMap"/> <jsp:useBean id="errors" class="java.util.HashMap"/>
<% webManager.init(pageContext); %>
<% // Get parameters <% // Get parameters
boolean add = request.getParameter("add") != null; boolean add = request.getParameter("add") != null;
...@@ -148,11 +142,15 @@ ...@@ -148,11 +142,15 @@
count++; count++;
} }
catch (IllegalArgumentException unfe) { catch (IllegalArgumentException unfe) {
errorBuf.append("<br>" + LocaleUtils.getLocalizedString("group.edit.inexistent_user", JiveGlobals.getLocale(), Arrays.asList(username))); errorBuf.append("<br>").append(
LocaleUtils.getLocalizedString("group.edit.inexistent_user",
JiveGlobals.getLocale(), Arrays.asList(username)));
} }
} }
else { else {
errorBuf.append("<br>" + LocaleUtils.getLocalizedString("group.edit.already_user", JiveGlobals.getLocale(), Arrays.asList(username))); errorBuf.append("<br>").append(
LocaleUtils.getLocalizedString("group.edit.already_user",
JiveGlobals.getLocale(), Arrays.asList(username)));
} }
} }
if (count > 0) { if (count > 0) {
...@@ -201,20 +199,15 @@ ...@@ -201,20 +199,15 @@
groupDisplayName = group.getProperties().get("sharedRoster.displayName"); groupDisplayName = group.getProperties().get("sharedRoster.displayName");
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean"/>
<% // Title of this page and breadcrumbs
String title = LocaleUtils.getLocalizedString("group.edit.title");
pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "group-edit.jsp?group="+URLEncoder.encode(groupName, "UTF-8")));
pageinfo.setSubPageID("group-edit");
pageinfo.setExtraParams("group="+URLEncoder.encode(groupName, "UTF-8"));
%>
<jsp:include page="top.jsp" flush="true"> <html>
<jsp:param name="helpPage" value="edit_group_properties.html" /> <head>
</jsp:include> <title><fmt:message key="group.edit.title"/></title>
<jsp:include page="title.jsp" flush="true"/> <meta name="subPageID" content="group-edit"/>
<meta name="extraParams" content="<%= "group="+URLEncoder.encode(groupName, "UTF-8") %>"/>
<meta name="helpPage" content="edit_group_properties.html"/>
</head>
<body>
<p> <p>
<fmt:message key="group.edit.form_info" /> <fmt:message key="group.edit.form_info" />
...@@ -226,7 +219,7 @@ ...@@ -226,7 +219,7 @@
<div class="jive-success"> <div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td> <tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0" alt=""></td>
<td class="jive-icon-label"> <td class="jive-icon-label">
<% if (groupInfoChanged) { %> <% if (groupInfoChanged) { %>
<fmt:message key="group.edit.update" /> <fmt:message key="group.edit.update" />
...@@ -252,7 +245,7 @@ ...@@ -252,7 +245,7 @@
<div class="jive-error"> <div class="jive-error">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr><td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0"></td> <tr><td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0" alt=""></td>
<td class="jive-icon-label"> <td class="jive-icon-label">
<% if(add) { %> <% if(add) { %>
<fmt:message key="group.edit.not_update" /> <fmt:message key="group.edit.not_update" />
...@@ -282,7 +275,7 @@ ...@@ -282,7 +275,7 @@
</td> </td>
<td> <td>
<a href="group-edit.jsp?edit=true&group=<%= URLEncoder.encode(groupName, "UTF-8") %>"> <a href="group-edit.jsp?edit=true&group=<%= URLEncoder.encode(groupName, "UTF-8") %>">
<img src="images/edit-16x16.gif" border="0"> <img src="images/edit-16x16.gif" border="0" alt="">
</a> </a>
</td> </td>
<% } else { %> <% } else { %>
...@@ -537,9 +530,8 @@ ...@@ -537,9 +530,8 @@
document.f.users.focus(); document.f.users.focus();
</script> </script>
<jsp:include page="footer.jsp" flush="true"/> </body>
</html>
<%! <%!
private static String toList(String[] array, String enc) { private static String toList(String[] array, String enc) {
......
...@@ -25,18 +25,13 @@ ...@@ -25,18 +25,13 @@
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% webManager.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("group.summary.title"); <title><fmt:message key="group.summary.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="group-summary"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="helpPage" content="about_users_and_groups.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "group-summary.jsp")); </head>
pageinfo.setPageID("group-summary"); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="about_users_and_groups.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<% // Get parameters <% // Get parameters
int start = ParamUtils.getIntParameter(request,"start",0); int start = ParamUtils.getIntParameter(request,"start",0);
...@@ -154,12 +149,12 @@ ...@@ -154,12 +149,12 @@
<td width="1%" align="center"> <td width="1%" align="center">
<a href="group-edit.jsp?group=<%= groupName %>" <a href="group-edit.jsp?group=<%= groupName %>"
title=<fmt:message key="global.click_edit" /> title=<fmt:message key="global.click_edit" />
><img src="images/edit-16x16.gif" width="17" height="17" border="0"></a> ><img src="images/edit-16x16.gif" width="17" height="17" border="0" alt=""></a>
</td> </td>
<td width="1%" align="center" style="border-right:1px #ccc solid;"> <td width="1%" align="center" style="border-right:1px #ccc solid;">
<a href="group-delete.jsp?group=<%= groupName %>" <a href="group-delete.jsp?group=<%= groupName %>"
title=<fmt:message key="global.click_delete" /> title=<fmt:message key="global.click_delete" />
><img src="images/delete-16x16.gif" width="16" height="16" border="0"></a> ><img src="images/delete-16x16.gif" width="16" height="16" border="0" alt=""></a>
</td> </td>
</tr> </tr>
...@@ -189,4 +184,5 @@ ...@@ -189,4 +184,5 @@
<% } %> <% } %>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><fmt:message key="title" /> <fmt:message key="header.admin" /></title>
<meta http-equiv="content-type" content="text/html; charset=">
<link rel="stylesheet" href="style/global.css" type="text/css">
</head>
<body>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is published under the terms of the GNU Public License (GPL), - This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
--%> --%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.HashMap,
java.util.Map,
org.jivesoftware.messenger.*,
org.jivesoftware.messenger.user.*,
java.util.*,
java.text.*, java.text.*,
org.jivesoftware.admin.AdminPageBean,
org.jivesoftware.admin.AdminConsole" org.jivesoftware.admin.AdminConsole"
%> %>
...@@ -54,22 +47,19 @@ ...@@ -54,22 +47,19 @@
} }
%> %>
<% // Title of this page and breadcrumbs <html>
String title = LocaleUtils.getLocalizedString("index.title"); <head>
pageinfo.setTitle(title); <title><fmt:message key="index.title"/></title>
pageinfo.setPageID("server-settings"); <meta name="pageID" content="server-settings"/>
%> <meta name="helpPage" content="about_the_server.html"/>
</head>
<jsp:include page="top.jsp" flush="true"> <body>
<jsp:param name="helpPage" value="about_the_server.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="index.title.info" /> <fmt:message key="index.title.info" />
</p> </p>
<script lang="JavaScript" type="text/javascript"> <script language="JavaScript" type="text/javascript">
var checked = false; var checked = false;
function checkClick() { function checkClick() {
if (checked) { return false; } if (checked) { return false; }
...@@ -313,4 +303,5 @@ ...@@ -313,4 +303,5 @@
<input type="submit" value="<fmt:message key="global.edit_properties" />"> <input type="submit" value="<fmt:message key="global.edit_properties" />">
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
\ No newline at end of file </html>
\ No newline at end of file
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="org.jivesoftware.messenger.container.*,
java.text.DateFormat,
java.util.HashMap,
java.util.Map,
org.jivesoftware.util.*" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %>
<!-- Define BreadCrumbs -->
<c:set var="title" value="License Details" />
<c:set var="breadcrumbs" value="${admin.breadCrumbs}" />
<c:set target="${breadcrumbs}" property="Home" value="index.jsp" />
<c:set target="${breadcrumbs}" property="${title}" value="license-details.jsp" />
<jsp:include page="top.jsp" flush="true" />
<% // Get parameters
String licenseText = ParamUtils.getParameter(request,"licenseText");
boolean loadNew = request.getParameter("loadNew") != null;
// Handle a new license
Map errors = new HashMap();
if (loadNew) {
// Validate
if (licenseText == null) {
errors.put("licenseText","licenseText");
}
// if no errors, continue
if (errors.size() == 0) {
}
}
// Date dateFormatter for all dates on this page:
DateFormat dateFormatter = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.SHORT);
%>
<p>
<fmt:message key="license.details.info" /> <fmt:message key="short.title" /> <fmt:message key="license.details.info1" />
</p>
<table class="box" cellpadding="3" cellspacing="1" border="0" width="600">
<tr class="tableHeaderBlue"><td colspan="2" align="center"><fmt:message key="short.title" /> <fmt:message key="license.details.details" /></td></tr>
<tr>
<td class="jive-label">
<fmt:message key="license.details.type" />
</td>
<td>
</td>
</tr>
<tr>
<td class="jive-label">
<fmt:message key="license.details.max_session" />
</td>
<td>
<fmt:message key="license.details.unlimited" />
</td>
</tr>
<tr>
<td class="jive-label">
<fmt:message key="license.details.expiration_date" />
</td>
<td>
<fmt:message key="license.details.expiration_date_never" />
</td>
</tr>
</table>
</div>
<%--
<br>
<p>
<b>Update License</b>
</p>
<p>
You can update your license by entering new license text below and clicking
"Update License". Note, this will first verify the license before overriding your
current one.
</p>
<form action="license-details.jsp" method="post">
<div class="jive-table">
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr valign="top">
<td class="jive-label">
New License Text:
</td>
<td>
<textarea cols="50" rows="6" wrap="virtual" name="licenseText"></textarea>
</td>
</tr>
</table>
</div>
<br>
<input type="submit" name="loadNew" value="Update License">
</form>
--%>
<jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file
...@@ -11,10 +11,8 @@ ...@@ -11,10 +11,8 @@
<%@ page import="java.io.*, <%@ page import="java.io.*,
java.text.SimpleDateFormat, java.text.SimpleDateFormat,
org.jivesoftware.messenger.user.User,
java.util.Date, java.util.Date,
java.text.ParseException, java.text.ParseException,
org.jivesoftware.messenger.auth.UnauthorizedException,
org.jivesoftware.util.ParamUtils, org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.Log, org.jivesoftware.util.Log,
org.jivesoftware.util.StringUtils" org.jivesoftware.util.StringUtils"
...@@ -138,6 +136,7 @@ ...@@ -138,6 +136,7 @@
<html> <html>
<head> <head>
<title><%= log %></title> <title><%= log %></title>
<meta name="decorator" content="false"/>
<style type="text/css"> <style type="text/css">
.log TABLE { .log TABLE {
border : 1px #ccc solid; border : 1px #ccc solid;
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<%-- Check if in setup mode --%> <%-- Check if in setup mode --%>
<c:if test="${admin.setupMode}"> <c:if test="${admin.setupMode}">
<c:redirect url="setup-index.jsp" /> <c:redirect url="setup/setup-index.jsp" />
</c:if> </c:if>
<% // get parameters <% // get parameters
......
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
...@@ -12,12 +11,9 @@ ...@@ -12,12 +11,9 @@
<%@ page import="java.io.*, <%@ page import="java.io.*,
org.jivesoftware.util.*, org.jivesoftware.util.*,
java.text.*, java.text.*,
org.jivesoftware.util.log.Logger,
org.jivesoftware.messenger.auth.UnauthorizedException,
org.jivesoftware.util.JiveGlobals, org.jivesoftware.util.JiveGlobals,
org.jivesoftware.messenger.user.*, org.jivesoftware.messenger.user.*,
java.util.*, java.util.*"
org.jivesoftware.admin.AdminPageBean"
%> %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
...@@ -49,7 +45,7 @@ ...@@ -49,7 +45,7 @@
return empty; return empty;
} }
StringTokenizer tokenizer = new StringTokenizer(cookie.getValue(),"&"); StringTokenizer tokenizer = new StringTokenizer(cookie.getValue(),"&");
HashMap valueMap = new HashMap(); HashMap<String, String> valueMap = new HashMap<String, String>();
while (tokenizer.hasMoreTokens()) { while (tokenizer.hasMoreTokens()) {
String tok = tokenizer.nextToken(); String tok = tokenizer.nextToken();
int pos = tok.indexOf("="); int pos = tok.indexOf("=");
...@@ -196,22 +192,16 @@ ...@@ -196,22 +192,16 @@
HashMap newlogs = getLogUpdate(request, response, logDir); HashMap newlogs = getLogUpdate(request, response, logDir);
%> %>
<% // Title of this page and breadcrumbs <html>
String title = LocaleUtils.getLocalizedString("logviewer.title"); <head>
pageinfo.setTitle(title); <title><fmt:message key="logviewer.title"/></title>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="pageID" content="server-logs"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "logviewer.jsp?log=" + log)); <meta name="helpPage" content="use_the_server_logs.html"/>
pageinfo.setPageID("server-logs"); </head>
%> <body>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="use_the_server_logs.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<% if (refreshParam != null && !NONE.equals(refreshParam)) { %> <% if (refreshParam != null && !NONE.equals(refreshParam)) { %>
<meta http-equiv="refresh" content="<%= refresh %>"> <meta http-equiv="refresh" content="<%= refresh %>">
<% } %> <% } %>
<div id="logviewer"> <div id="logviewer">
...@@ -447,4 +437,5 @@ IFRAME { ...@@ -447,4 +437,5 @@ IFRAME {
</div> </div>
<jsp:include page="bottom.jsp" flush="true" /> </body>
\ No newline at end of file </html>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is published under the terms of the GNU Public License (GPL), - This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
...@@ -11,17 +10,14 @@ ...@@ -11,17 +10,14 @@
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.muc.MultiUserChatServer"
org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.MultiUserChatServer,
java.util.Iterator"
errorPage="error.jsp" errorPage="error.jsp"
%> %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<% // Get parameters <% // Get parameters
String userJID = ParamUtils.getParameter(request,"userJID"); String userJID = ParamUtils.getParameter(request,"userJID");
...@@ -34,7 +30,7 @@ ...@@ -34,7 +30,7 @@
boolean openPerms = ParamUtils.getBooleanParameter(request,"openPerms"); boolean openPerms = ParamUtils.getBooleanParameter(request,"openPerms");
// Get muc server // Get muc server
MultiUserChatServer mucServer = admin.getMultiUserChatServer(); MultiUserChatServer mucServer = webManager.getMultiUserChatServer();
// Handle a save // Handle a save
Map errors = new HashMap(); Map errors = new HashMap();
...@@ -82,18 +78,13 @@ ...@@ -82,18 +78,13 @@
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("muc.create.permission.title"); <title><fmt:message key="muc.create.permission.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="muc-perms"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="helpPage" content="set_group_chat_room_creation_permissions.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-create-permission.jsp")); </head>
pageinfo.setPageID("muc-perms"); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="set_group_chat_room_creation_permissions.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="muc.create.permission.info" /> <fmt:message key="muc.create.permission.info" />
...@@ -235,4 +226,5 @@ ...@@ -235,4 +226,5 @@
<% } %> <% } %>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
...@@ -11,8 +10,6 @@ ...@@ -11,8 +10,6 @@
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*,
org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.HistoryStrategy, org.jivesoftware.messenger.muc.HistoryStrategy,
org.jivesoftware.messenger.muc.MultiUserChatServer" org.jivesoftware.messenger.muc.MultiUserChatServer"
errorPage="error.jsp" errorPage="error.jsp"
...@@ -29,8 +26,8 @@ ...@@ -29,8 +26,8 @@
static final int NUMBER = 3; static final int NUMBER = 3;
%> %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager"/> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager"/>
<% admin.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<% // Get parameters: <% // Get parameters:
boolean update = request.getParameter("update") != null; boolean update = request.getParameter("update") != null;
...@@ -38,7 +35,7 @@ ...@@ -38,7 +35,7 @@
int numMessages = ParamUtils.getIntParameter(request,"numMessages",0); int numMessages = ParamUtils.getIntParameter(request,"numMessages",0);
// Get muc history // Get muc history
MultiUserChatServer mucServer = admin.getMultiUserChatServer(); MultiUserChatServer mucServer = webManager.getMultiUserChatServer();
HistoryStrategy historyStrat = mucServer.getHistoryStrategy(); HistoryStrategy historyStrat = mucServer.getHistoryStrategy();
Map errors = new HashMap(); Map errors = new HashMap();
...@@ -86,18 +83,13 @@ ...@@ -86,18 +83,13 @@
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("groupchat.history.settings.title"); <title><fmt:message key="groupchat.history.settings.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="muc-history"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="helpPage" content="edit_group_chat_history_settings.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-history-settings.jsp")); </head>
pageinfo.setPageID("muc-history"); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="edit_group_chat_history_settings.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="groupchat.history.settings.introduction" /> <fmt:message key="groupchat.history.settings.introduction" />
...@@ -172,4 +164,5 @@ ...@@ -172,4 +164,5 @@
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
\ No newline at end of file </html>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is the proprietary information of Jive Software. - This software is the proprietary information of Jive Software.
- Use is subject to license terms. - Use is subject to license terms.
...@@ -11,9 +10,6 @@ ...@@ -11,9 +10,6 @@
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*,
org.jivesoftware.admin.*,
java.util.Iterator,
org.jivesoftware.messenger.muc.*, org.jivesoftware.messenger.muc.*,
org.xmpp.packet.IQ, org.xmpp.packet.IQ,
org.dom4j.Element, org.dom4j.Element,
...@@ -23,8 +19,8 @@ ...@@ -23,8 +19,8 @@
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<% // Get parameters <% // Get parameters
String roomName = ParamUtils.getParameter(request,"roomName"); String roomName = ParamUtils.getParameter(request,"roomName");
...@@ -37,7 +33,7 @@ ...@@ -37,7 +33,7 @@
boolean delete = ParamUtils.getBooleanParameter(request,"delete"); boolean delete = ParamUtils.getBooleanParameter(request,"delete");
// Load the room object // Load the room object
MUCRoom room = admin.getMultiUserChatServer().getChatRoom(roomName); MUCRoom room = webManager.getMultiUserChatServer().getChatRoom(roomName);
if (room == null) { if (room == null) {
// The requested room name does not exist so return to the list of the existing rooms // The requested room name does not exist so return to the list of the existing rooms
...@@ -105,19 +101,14 @@ ...@@ -105,19 +101,14 @@
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("muc.room.affiliations.title"); <title><fmt:message key="muc.room.affiliations.title"/></title>
pageinfo.setTitle(title); <meta name="subPageID" content="muc-room-affiliations"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="extraParams" content="<%= "roomName="+URLEncoder.encode(roomName, "UTF-8") %>"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-room-affiliations.jsp?roomName="+URLEncoder.encode(roomName, "UTF-8"))); <meta name="helpPage" content="edit_group_chat_room_user_permissions.html"/>
pageinfo.setSubPageID("muc-room-affiliations"); </head>
pageinfo.setExtraParams("roomName="+URLEncoder.encode(roomName, "UTF-8")); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="edit_group_chat_room_user_permissions.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="muc.room.affiliations.info" /> <fmt:message key="muc.room.affiliations.info" />
...@@ -322,4 +313,5 @@ ...@@ -322,4 +313,5 @@
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
<%--
- $RCSfile$
- $Revision$
- $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is the proprietary information of Jive Software.
- Use is subject to license terms.
--%>
<% // Redirect to muc-room-edit-form and set that a room will be created
response.sendRedirect("muc-room-edit-form.jsp?&create=true");
return;
%>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
...@@ -10,7 +9,6 @@ ...@@ -10,7 +9,6 @@
--%> --%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.MUCRoom, org.jivesoftware.messenger.muc.MUCRoom,
java.net.URLEncoder" java.net.URLEncoder"
errorPage="error.jsp" errorPage="error.jsp"
...@@ -50,19 +48,14 @@ ...@@ -50,19 +48,14 @@
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("muc.room.delete.title"); <title><fmt:message key="muc.room.delete.title"/></title>
pageinfo.setTitle(title); <meta name="subPageID" content="muc-room-delete"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="extraParams" content="<%= "roomName="+URLEncoder.encode(roomName, "UTF-8") %>"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-room-delete.jsp?roomName="+URLEncoder.encode(roomName, "UTF-8"))); <meta name="helpPage" content="delete_a_group_chat_room.html"/>
pageinfo.setSubPageID("muc-room-delete"); </head>
pageinfo.setExtraParams("roomName="+URLEncoder.encode(roomName, "UTF-8")); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="delete_a_group_chat_room.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="muc.room.delete.info" /> <fmt:message key="muc.room.delete.info" />
...@@ -113,4 +106,5 @@ ...@@ -113,4 +106,5 @@
<input type="submit" name="cancel" value="<fmt:message key="global.cancel" />"> <input type="submit" name="cancel" value="<fmt:message key="global.cancel" />">
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
} }
// Handle an save // Handle an save
Map errors = new HashMap(); Map<String, String> errors = new HashMap<String, String>();
if (save) { if (save) {
// do validation // do validation
...@@ -307,25 +307,18 @@ ...@@ -307,25 +307,18 @@
roomName = roomName == null ? "" : roomName; roomName = roomName == null ? "" : roomName;
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("muc.room.edit.form.title"); <title><fmt:message key="muc.room.edit.form.title"/></title>
pageinfo.setTitle(title); <% if (create) { %>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="pageID" content="muc-room-create"/>
if (create) { <% } else { %>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-room-edit-form.jsp?create=true")); <meta name="subPageID" content="muc-room-edit-form"/>
pageinfo.setPageID("muc-room-create"); <% } %>
} <meta name="extraParams" content="<%= "roomName="+URLEncoder.encode(roomName, "UTF-8")+"&create="+create %>"/>
else { <meta name="helpPage" content="view_group_chat_room_summary.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-room-edit-form.jsp?roomName="+URLEncoder.encode(roomName, "UTF-8"))); </head>
pageinfo.setSubPageID("muc-room-edit-form"); <body>
}
pageinfo.setExtraParams("roomName="+URLEncoder.encode(roomName, "UTF-8")+"&create="+create);
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="view_group_chat_room_summary.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<% if (!errors.isEmpty()) { %> <% if (!errors.isEmpty()) { %>
...@@ -381,7 +374,7 @@ ...@@ -381,7 +374,7 @@
</td></tr> </td></tr>
</tbody> </tbody>
</table> </table>
</div><br </div><br>
<% } %> <% } %>
...@@ -423,7 +416,8 @@ ...@@ -423,7 +416,8 @@
<input type="hidden" name="roomconfig_persistentroom" value="<%= persistentRoom %>"> <input type="hidden" name="roomconfig_persistentroom" value="<%= persistentRoom %>">
<table width="100%" border="0"> <tr> <table width="100%" border="0"> <tr>
<td width="70%"><table width="100%" border="0"> <td width="70%">
<table width="100%" border="0">
<tbody> <tbody>
<% if (create) { %> <% if (create) { %>
<tr> <tr>
...@@ -488,7 +482,9 @@ ...@@ -488,7 +482,9 @@
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table></td> </table>
</td>
<td width="30%" valign="top" > <td width="30%" valign="top" >
<fieldset> <fieldset>
<legend><fmt:message key="muc.room.edit.form.room_options" /></legend> <legend><fmt:message key="muc.room.edit.form.room_options" /></legend>
...@@ -530,6 +526,7 @@ ...@@ -530,6 +526,7 @@
<td><input type="checkbox" name="roomconfig_enablelogging" value="true" id="enablelogging" <% if ("true".equals(enableLog)) out.write("checked");%>> <td><input type="checkbox" name="roomconfig_enablelogging" value="true" id="enablelogging" <% if ("true".equals(enableLog)) out.write("checked");%>>
<LABEL FOR="enablelogging"><fmt:message key="muc.room.edit.form.log" /></td> <LABEL FOR="enablelogging"><fmt:message key="muc.room.edit.form.log" /></td>
</tr> </tr>
</tbody>
</table> </table>
</fieldset> </fieldset>
</tr> </tr>
...@@ -541,4 +538,5 @@ ...@@ -541,4 +538,5 @@
</table> </table>
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
\ No newline at end of file </html>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is the proprietary information of Jive Software. - This software is the proprietary information of Jive Software.
- Use is subject to license terms. - Use is subject to license terms.
--%> --%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
org.jivesoftware.messenger.muc.spi.*,
java.text.DateFormat,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.MUCRoom, org.jivesoftware.messenger.muc.MUCRoom,
java.util.*, java.util.*,
...@@ -24,18 +21,13 @@ ...@@ -24,18 +21,13 @@
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% webManager.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("muc.room.summary.title"); <title><fmt:message key="muc.room.summary.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="muc-room-summary"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="helpPage" content="edit_group_chat_room_settings.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-room-summary.jsp")); </head>
pageinfo.setPageID("muc-room-summary"); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="edit_group_chat_room_settings.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<% // Get parameters <% // Get parameters
int start = ParamUtils.getIntParameter(request,"start",0); int start = ParamUtils.getIntParameter(request,"start",0);
...@@ -205,4 +197,5 @@ ...@@ -205,4 +197,5 @@
<% } %> <% } %>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is published under the terms of the GNU Public License (GPL), - This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
--%> --%>
<%@ page import="org.jivesoftware.util.ParamUtils, <%@ page import="org.jivesoftware.util.ParamUtils,
java.text.DateFormat, java.util.*"
org.jivesoftware.messenger.XMPPServerInfo,
org.jivesoftware.messenger.muc.MultiUserChatServer,
org.jivesoftware.admin.*,
org.jivesoftware.util.JiveGlobals,
java.util.*,
org.jivesoftware.util.LocaleUtils"
errorPage="error.jsp" errorPage="error.jsp"
%> %>
...@@ -32,9 +25,8 @@ ...@@ -32,9 +25,8 @@
%> %>
<%-- Define Administration Bean --%> <%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<c:set var="admin" value="${admin.manager}" /> <% webManager.init(request, response, session, application, out ); %>
<% admin.init(pageContext); %>
<% // Get parameters <% // Get parameters
boolean save = request.getParameter("save") != null; boolean save = request.getParameter("save") != null;
...@@ -53,34 +45,29 @@ ...@@ -53,34 +45,29 @@
errors.put("mucname","mucname"); errors.put("mucname","mucname");
} }
if (errors.size() == 0) { if (errors.size() == 0) {
admin.getMultiUserChatServer().setServiceName(muc); webManager.getMultiUserChatServer().setServiceName(muc);
response.sendRedirect("muc-server-props-edit-form.jsp?success=true&mucname="+muc); response.sendRedirect("muc-server-props-edit-form.jsp?success=true&mucname="+muc);
return; return;
} }
} }
else if(muc == null) { else if(muc == null) {
name = admin.getServerInfo().getName() == null ? "" : admin.getServerInfo().getName(); name = webManager.getServerInfo().getName() == null ? "" : webManager.getServerInfo().getName();
muc = admin.getMultiUserChatServer().getServiceName() == null ? "" : admin.getMultiUserChatServer().getServiceName(); muc = webManager.getMultiUserChatServer().getServiceName() == null ? "" : webManager.getMultiUserChatServer().getServiceName();
} }
name = admin.getServerInfo().getName(); name = webManager.getServerInfo().getName();
if (errors.size() == 0 && muc == null) { if (errors.size() == 0 && muc == null) {
muc = admin.getMultiUserChatServer().getServiceName(); muc = webManager.getMultiUserChatServer().getServiceName();
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("groupchat.service.properties.title"); <title><fmt:message key="groupchat.service.properties.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="muc-server-props"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="helpPage" content="edit_group_chat_service_properties.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-server-props-edit-form.jsp")); </head>
pageinfo.setPageID("muc-server-props"); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="edit_group_chat_service_properties.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="groupchat.service.properties.introduction" /> <fmt:message key="groupchat.service.properties.introduction" />
...@@ -148,4 +135,5 @@ ...@@ -148,4 +135,5 @@
</form> </form>
<jsp:include page="bottom.jsp" flush="true" /> </body>
\ No newline at end of file </html>
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is published under the terms of the GNU Public License (GPL), - This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
...@@ -11,10 +10,8 @@ ...@@ -11,10 +10,8 @@
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.MultiUserChatServer, org.jivesoftware.messenger.muc.MultiUserChatServer"
java.util.Iterator"
%> %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
......
...@@ -5,17 +5,8 @@ ...@@ -5,17 +5,8 @@
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
--%> --%>
<%@ page import="java.util.zip.ZipFile, <%@ page import="java.io.*,
java.util.jar.JarFile,
java.util.jar.JarEntry,
java.io.*,
org.dom4j.io.SAXReader,
org.dom4j.Document,
org.dom4j.Element,
org.dom4j.Node,
java.text.DateFormat,
org.jivesoftware.admin.AdminPageBean, org.jivesoftware.admin.AdminPageBean,
org.jivesoftware.messenger.XMPPServer,
org.jivesoftware.messenger.container.PluginManager, org.jivesoftware.messenger.container.PluginManager,
org.jivesoftware.util.*, org.jivesoftware.util.*,
org.jivesoftware.messenger.container.Plugin, org.jivesoftware.messenger.container.Plugin,
...@@ -202,7 +193,7 @@ ...@@ -202,7 +193,7 @@
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr> <tr>
<td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td> <td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0" alt=""></td>
<td class="jive-icon-label"><fmt:message key="plugin.admin.deleted_success" /></td> <td class="jive-icon-label"><fmt:message key="plugin.admin.deleted_success" /></td>
</tr> </tr>
</tbody> </tbody>
...@@ -216,7 +207,7 @@ ...@@ -216,7 +207,7 @@
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr> <tr>
<td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0"></td> <td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0" alt="" />></td>
<td class="jive-icon-label"><fmt:message key="plugin.admin.deleted_failure" /></td> <td class="jive-icon-label"><fmt:message key="plugin.admin.deleted_failure" /></td>
</tr> </tr>
</tbody> </tbody>
...@@ -231,7 +222,7 @@ ...@@ -231,7 +222,7 @@
<div class="jive-success"> <div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td> <tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0" alt=""></td>
<td class="jive-icon-label"><fmt:message key="plugin.admin.reload_success" /></td></tr> <td class="jive-icon-label"><fmt:message key="plugin.admin.reload_success" /></td></tr>
</tbody> </tbody>
</table> </table>
...@@ -271,8 +262,7 @@ ...@@ -271,8 +262,7 @@
} }
int count = 0; int count = 0;
for (int i=0; i<plugins.size(); i++) { for (Plugin plugin : plugins) {
Plugin plugin = plugins.get(i);
String dirName = pluginManager.getPluginDirectory(plugin).getName(); String dirName = pluginManager.getPluginDirectory(plugin).getName();
// Skip the admin plugin. // Skip the admin plugin.
if (!"admin".equals(dirName)) { if (!"admin".equals(dirName)) {
...@@ -326,12 +316,12 @@ ...@@ -326,12 +316,12 @@
<td width="1%" align="center"> <td width="1%" align="center">
<a href="plugin-admin.jsp?reloadplugin=<%= dirName %>" <a href="plugin-admin.jsp?reloadplugin=<%= dirName %>"
title="<fmt:message key="plugin.admin.click_reload" />" title="<fmt:message key="plugin.admin.click_reload" />"
><img src="images/refresh-16x16.gif" width="16" height="16" border="0"></a> ><img src="images/refresh-16x16.gif" width="16" height="16" border="0" alt="<fmt:message key="global.refresh" />"></a>
</td> </td>
<td width="1%" align="center" style="border-right:1px #ccc solid;"> <td width="1%" align="center" style="border-right:1px #ccc solid;">
<a href="#" onclick="if (confirm('<fmt:message key="plugin.admin.confirm" />')) { location.replace('plugin-admin.jsp?deleteplugin=<%= dirName %>'); } " <a href="#" onclick="if (confirm('<fmt:message key="plugin.admin.confirm" />')) { location.replace('plugin-admin.jsp?deleteplugin=<%= dirName %>'); } "
title="<fmt:message key="global.click_delete" />" title="<fmt:message key="global.click_delete" />"
><img src="images/delete-16x16.gif" width="16" height="16" border="0"></a> ><img src="images/delete-16x16.gif" width="16" height="16" border="0" alt="<fmt:message key="global.delete" />"></a>
</td> </td>
</tr> </tr>
<% <%
......
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
- Copyright (C) 2004 Jive Software. All rights reserved. - Copyright (C) 2004-2005 Jive Software. All rights reserved.
- -
- This software is published under the terms of the GNU Public License (GPL), - This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution. - a copy of which is included in this distribution.
...@@ -18,13 +17,6 @@ ...@@ -18,13 +17,6 @@
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%-- Define page bean for header and sidebar --%>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<%-- Define Administration Bean --%>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% webManager.init(request, response, session, application, out); %>
<% // Get parameters // <% // Get parameters //
String localeCode = ParamUtils.getParameter(request,"localeCode"); String localeCode = ParamUtils.getParameter(request,"localeCode");
String timeZoneID = ParamUtils.getParameter(request,"timeZoneID"); String timeZoneID = ParamUtils.getParameter(request,"timeZoneID");
...@@ -61,16 +53,14 @@ ...@@ -61,16 +53,14 @@
TimeZone timeZone = JiveGlobals.getTimeZone(); TimeZone timeZone = JiveGlobals.getTimeZone();
%> %>
<% // Title of this page and breadcrumbs <html>
String title = LocaleUtils.getLocalizedString("locale.title"); <head>
pageinfo.setTitle(title); <title><fmt:message key="locale.title" /></title>
pageinfo.setPageID("server-locale"); <meta name="pageID" content="server-locale"/>
%> <meta name="helpPage" content="edit_server_properties.html"/>
</head>
<jsp:include page="top.jsp" flush="true"> <body>
<jsp:param name="helpPage" value="edit_server_properties.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<p> <p>
<fmt:message key="locale.title.info" /> <fmt:message key="locale.title.info" />
...@@ -200,4 +190,6 @@ ...@@ -200,4 +190,6 @@
</form> </form>
<jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file </body>
</html>
\ No newline at end of file
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="org.jivesoftware.util.*,
org.jivesoftware.messenger.SessionManager,
java.util.*,
org.jivesoftware.messenger.Session" %>
<%@ include file="global.jsp" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<% // Check to see if the server is down.
if (xmppServer == null) {
response.sendRedirect("error-serverdown.jsp");
return;
}
%>
<% // Get parameters
boolean doFilter = ParamUtils.getBooleanParameter(request, "doFilter");
boolean choose = ParamUtils.getBooleanParameter(request,"choose");
boolean remove = ParamUtils.getBooleanParameter(request, "remove");
String username = ParamUtils.getParameter(request, "username");
String usernameTF = ParamUtils.getParameter(request, "usernameTF");
String usernameSEL = ParamUtils.getParameter(request, "usernameSEL");
if (username == null) {
if (choose) {
username = usernameSEL;
}
else {
username = usernameTF;
}
}
boolean errors = false;
if (doFilter) {
if (username == null) {
errors = true;
}
else {
// Set the username in the session, return to the session summary page:
session.setAttribute("messenger.admin.session-summary.username",username);
response.sendRedirect("session-summary.jsp");
return;
}
}
if (remove) {
// Remove the filtered username from the session:
session.removeAttribute("messenger.admin.session-summary.username");
response.sendRedirect("session-summary.jsp");
return;
}
%>
<jsp:include page="header.jsp" flush="true" />
<% // Title of this page and breadcrumbs
String title = LocaleUtils.getLocalizedString("session.filter.title");
String[][] breadcrumbs = {
{"Home", "index.jsp"},
{"Session Summary", "session-summary.jsp"},
{title, "session-filter.jsp"}
};
%>
<jsp:include page="title.jsp" flush="true" />
<p>
<fmt:message key="session.filter.info" />
</p>
<% if (errors) { %>
<p class="jive-error-text">
<fmt:message key="session.filter.enter_username" />
</p>
<% } %>
<form action="session-filter.jsp" name="filterform">
<input type="hidden" name="doFilter" value="true">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr valign="top">
<td width="1%" nowrap align="center">
<input type="radio" name="choose" value="false">
</td>
<td width="1%" nowrap>
<fmt:message key="session.filter.specify_username" />
</td>
<td width="98%">
<input type="text" name="usernameTF" size="30" maxlength="100"
value="<%= ((username != null) ? username : "") %>"
onfocus="this.form.choose[0].checked=true;">
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap align="center">
<input type="radio" name="choose" value="true">
</td>
<td width="1%" nowrap>
<fmt:message key="session.filter.choose_user" />
</td>
<td width="98%">
<select size="1" name="usernameSEL" onfocus="this.form.choose[1].checked=true;">
<%
Collection<User> users = userManager.getUsers();
for (User user: users) {
%>
<option value="<%= user.getUsername() %>"><%= user.getUsername() %></option>
<% } %>
</select>
</td>
</tr>
</table>
<br>
<input type="submit" value="Save and Return">
<input type="submit" value="<fmt:message key="global.cancel" />" onclick="location.href='session-summary.jsp';">
</form>
<script language="JavaScript" type="text/javascript">
<% if (!doFilter) { %>
document.filterform.usernameTF.focus();
<% } else { %>
<% if (usernameSEL == null) { %>
document.filterform.usernameTF.focus();
<% } %>
<% } %>
</script>
<jsp:include page="footer.jsp" flush="true" />
\ No newline at end of file
<%-- <%--
- $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
- -
...@@ -13,7 +12,6 @@ ...@@ -13,7 +12,6 @@
java.util.*, java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.util.Date, java.util.Date,
org.jivesoftware.admin.*,
org.xmpp.packet.JID" org.xmpp.packet.JID"
errorPage="error.jsp" errorPage="error.jsp"
%> %>
...@@ -29,26 +27,26 @@ ...@@ -29,26 +27,26 @@
static final int[] REFRESHES = {0, 10, 30, 60, 90}; static final int[] REFRESHES = {0, 10, 30, 60, 90};
static final String[] REFRESHES_LABELS = {NONE,"10","30","60","90"}; static final String[] REFRESHES_LABELS = {NONE,"10","30","60","90"};
%> %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
<% // Get parameters <% // Get parameters
int start = ParamUtils.getIntParameter(request,"start",0); int start = ParamUtils.getIntParameter(request,"start",0);
int range = ParamUtils.getIntParameter(request,"range",admin.getRowsPerPage("session-summary", DEFAULT_RANGE)); int range = ParamUtils.getIntParameter(request,"range",webManager.getRowsPerPage("session-summary", DEFAULT_RANGE));
int refresh = ParamUtils.getIntParameter(request,"refresh",admin.getRefreshValue("session-summary", 0)); int refresh = ParamUtils.getIntParameter(request,"refresh",webManager.getRefreshValue("session-summary", 0));
boolean close = ParamUtils.getBooleanParameter(request,"close"); boolean close = ParamUtils.getBooleanParameter(request,"close");
String jid = ParamUtils.getParameter(request,"jid"); String jid = ParamUtils.getParameter(request,"jid");
if (request.getParameter("range") != null) { if (request.getParameter("range") != null) {
admin.setRowsPerPage("session-summary", range); webManager.setRowsPerPage("session-summary", range);
} }
if (request.getParameter("refresh") != null) { if (request.getParameter("refresh") != null) {
admin.setRefreshValue("session-summary", refresh); webManager.setRefreshValue("session-summary", refresh);
} }
// Get the user manager // Get the user manager
SessionManager sessionManager = admin.getSessionManager(); SessionManager sessionManager = webManager.getSessionManager();
// Get the session count // Get the session count
int sessionCount = sessionManager.getSessionCount(); int sessionCount = sessionManager.getSessionCount();
...@@ -65,7 +63,7 @@ ...@@ -65,7 +63,7 @@
catch (Exception ignored) { catch (Exception ignored) {
// Session might have disappeared on its own // Session might have disappeared on its own
} }
// redirect back to this page // Redirect back to this page
response.sendRedirect("session-summary.jsp?close=success"); response.sendRedirect("session-summary.jsp?close=success");
return; return;
} }
...@@ -75,24 +73,13 @@ ...@@ -75,24 +73,13 @@
int curPage = (start/range) + 1; int curPage = (start/range) + 1;
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <html>
<% // Title of this page and breadcrumbs <head>
String title = LocaleUtils.getLocalizedString("session.summary.title"); <title><fmt:message key="session.summary.title"/></title>
pageinfo.setTitle(title); <meta name="pageID" content="session-summary"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(LocaleUtils.getLocalizedString("global.main"), "index.jsp")); <meta name="helpPage" content="view_active_client_sessions.html"/>
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-summary.jsp")); </head>
pageinfo.setPageID("session-summary"); <body>
%>
<jsp:include page="top.jsp" flush="true">
<jsp:param name="helpPage" value="view_active_client_sessions.html" />
</jsp:include>
<jsp:include page="title.jsp" flush="true" />
<% if (refresh > 0) { %>
<meta http-equiv="refresh" content="<%= refresh %>">
<% } %>
<% if ("success".equals(request.getParameter("close"))) { %> <% if ("success".equals(request.getParameter("close"))) { %>
...@@ -102,6 +89,10 @@ ...@@ -102,6 +89,10 @@
<% } %> <% } %>
<% if (refresh > 0) { %>
<meta http-equiv="refresh" content="<%= refresh %>">
<% } %>
<table cellpadding="0" cellspacing="0" border="0" width="100%"> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody> <tbody>
<form action="session-summary.jsp" method="get"> <form action="session-summary.jsp" method="get">
...@@ -203,7 +194,6 @@ ...@@ -203,7 +194,6 @@
count++; count++;
%> %>
<%@ include file="session-row.jspf" %> <%@ include file="session-row.jspf" %>
<% } %> <% } %>
</tbody> </tbody>
...@@ -234,4 +224,5 @@ ...@@ -234,4 +224,5 @@
<fmt:message key="session.summary.last_update" />: <%= JiveGlobals.formatDateTime(new Date()) %> <fmt:message key="session.summary.last_update" />: <%= JiveGlobals.formatDateTime(new Date()) %>
</p> </p>
<jsp:include page="bottom.jsp" flush="true" /> </body>
</html>
\ No newline at end of file
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision: 985 $
- $Date$ - $Date: 2005-02-18 10:35:44 -0800 (Fri, 18 Feb 2005) $
--%> --%>
<%@ page import="org.jivesoftware.util.*" %> <%@ page import="org.jivesoftware.util.*" %>
<html> <html>
<head> <head>
<title><fmt:message key="short.title" /> <fmt:message key="setup.completed.setup" /></title> <title><fmt:message key="short.title" /> <fmt:message key="setup.completed.setup" /></title>
<link rel="stylesheet" type="text/css" href="setup-style.css"> <link rel="stylesheet" type="text/css" href="setup-style.css">
</head> </head>
<body> <body>
<span class="jive-setup-header"> <span class="jive-setup-header">
<table cellpadding="8" cellspacing="0" border="0" width="100%"> <table cellpadding="8" cellspacing="0" border="0" width="100%">
<tr> <tr>
<td width="99%"> <td width="99%">
<fmt:message key="short.title" /> <fmt:message key="setup.completed.setup" /> <fmt:message key="short.title" /> <fmt:message key="setup.completed.setup" />
</td> </td>
<td width="1%" nowrap> <td width="1%" nowrap>
<font size="-2" face="arial,helvetica,sans-serif" color="#ffffff"> <font size="-2" face="arial,helvetica,sans-serif" color="#ffffff">
<b> <b>
<fmt:message key="setup.completed.jive" /> <fmt:message key="setup.completed.jive" />
</b> </b>
</font> </font>
</td> </td>
</tr> </tr>
</table> </table>
</span> </span>
<table bgcolor="#bbbbbb" cellpadding="0" cellspacing="0" border="0" width="100%"> <table bgcolor="#bbbbbb" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td><img src="images/blank.gif" width="1" height="1" border="0"></td></tr> <tr><td><img src="../images/blank.gif" width="1" height="1" border="0"></td></tr>
</table> </table>
<table bgcolor="#dddddd" cellpadding="0" cellspacing="0" border="0" width="100%"> <table bgcolor="#dddddd" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td><img src="images/blank.gif" width="1" height="1" border="0"></td></tr> <tr><td><img src="../images/blank.gif" width="1" height="1" border="0"></td></tr>
</table> </table>
<table bgcolor="#eeeeee" cellpadding="0" cellspacing="0" border="0" width="100%"> <table bgcolor="#eeeeee" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td><img src="images/blank.gif" width="1" height="1" border="0"></td></tr> <tr><td><img src="../images/blank.gif" width="1" height="1" border="0"></td></tr>
</table> </table>
<br> <br>
<table cellpadding="0" cellspacing="0" border="0" width="100%"> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top"> <tr valign="top">
<td width="98%"> <td width="98%">
<p class="jive-setup-page-header"> <p class="jive-setup-page-header">
<fmt:message key="setup.completed.run" /> <fmt:message key="setup.completed.run" />
</p> </p>
<p> <p>
<fmt:message key="setup.completed.run_info" /> <fmt:message key="setup.completed.run_info" />
<a href="index.jsp"><fmt:message key="short.title" /> <fmt:message key="setup.completed.run_info1" /></a>. <a href="index.jsp"><fmt:message key="short.title" /> <fmt:message key="setup.completed.run_info1" /></a>.
<fmt:message key="setup.completed.run_info2" /> <fmt:message key="setup.completed.run_info2" />
</p> </p>
<form action="index.jsp"> <form action="index.jsp">
<br><br> <br><br>
<center> <center>
<input type="submit" value="Login to Admin Tool"> <input type="submit" value="Login to Admin Tool">
</center> </center>
</form> </form>
</td> </td>
</tr> </tr>
</table> </table>
<%@ include file="setup-footer.jsp"%> <%@ include file="setup-footer.jsp"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision: 1410 $
- $Date$ - $Date: 2005-05-26 23:00:40 -0700 (Thu, 26 May 2005) $
--%> --%>
<%@ page import="org.jivesoftware.util.ParamUtils, <%@ page import="org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.JiveGlobals, org.jivesoftware.util.JiveGlobals,
org.jivesoftware.database.EmbeddedConnectionProvider, org.jivesoftware.database.EmbeddedConnectionProvider,
org.jivesoftware.database.DbConnectionManager, org.jivesoftware.database.DbConnectionManager,
org.jivesoftware.database.ConnectionProvider, org.jivesoftware.database.ConnectionProvider,
org.jivesoftware.database.ConnectionProvider, org.jivesoftware.database.ConnectionProvider,
org.jivesoftware.database.DbConnectionManager, org.jivesoftware.database.DbConnectionManager,
java.util.*" %> java.util.*" %>
<%! // Global vars <%! // Global vars
static final String STANDARD = "standard"; static final String STANDARD = "standard";
static final String JNDI = "jndi"; static final String JNDI = "jndi";
static final String EMBEDDED = "embedded"; static final String EMBEDDED = "embedded";
%> %>
<%@ include file="setup-global.jspf" %> <%@ include file="setup-global.jspf" %>
<% // Get parameters <% // Get parameters
String mode = ParamUtils.getParameter(request,"mode"); String mode = ParamUtils.getParameter(request,"mode");
boolean next = ParamUtils.getBooleanParameter(request,"next"); boolean next = ParamUtils.getBooleanParameter(request,"next");
// handle a mode redirect // handle a mode redirect
Map errors = new HashMap(); Map errors = new HashMap();
if (next) { if (next) {
if (STANDARD.equals(mode)) { if (STANDARD.equals(mode)) {
response.sendRedirect("setup-datasource-standard.jsp"); response.sendRedirect("setup-datasource-standard.jsp");
return; return;
} }
else if (JNDI.equals(mode)) { else if (JNDI.equals(mode)) {
if (!embeddedMode) { if (!embeddedMode) {
response.sendRedirect("setup-datasource-jndi.jsp"); response.sendRedirect("setup-datasource-jndi.jsp");
return; return;
} }
} }
else if (EMBEDDED.equals(mode)) { else if (EMBEDDED.equals(mode)) {
// Set the classname of the provider in the config file: // Set the classname of the provider in the config file:
JiveGlobals.setXMLProperty("connectionProvider.className", JiveGlobals.setXMLProperty("connectionProvider.className",
"org.jivesoftware.database.EmbeddedConnectionProvider"); "org.jivesoftware.database.EmbeddedConnectionProvider");
ConnectionProvider conProvider = new EmbeddedConnectionProvider(); ConnectionProvider conProvider = new EmbeddedConnectionProvider();
DbConnectionManager.setConnectionProvider(conProvider); DbConnectionManager.setConnectionProvider(conProvider);
if (testConnection(errors)) { if (testConnection(errors)) {
// Update the sidebar status // Update the sidebar status
session.setAttribute("jive.setup.sidebar.3","done"); session.setAttribute("jive.setup.sidebar.3","done");
session.setAttribute("jive.setup.sidebar.4","in_progress"); session.setAttribute("jive.setup.sidebar.4","in_progress");
// Redirect // Redirect
response.sendRedirect("setup-admin-settings.jsp"); response.sendRedirect("setup-admin-settings.jsp");
return; return;
} }
} }
} }
// Defaults // Defaults
if (mode == null) { if (mode == null) {
// If the "embedded-database" directory exists, select to the embedded db as the default. // If the "embedded-database" directory exists, select to the embedded db as the default.
if (new File(JiveGlobals.getHomeDirectory(), "embedded-db").exists()) { if (new File(JiveGlobals.getHomeDirectory(), "embedded-db").exists()) {
mode = EMBEDDED; mode = EMBEDDED;
} }
// Otherwise default to standard. // Otherwise default to standard.
else { else {
mode = STANDARD; mode = STANDARD;
} }
} }
%> %>
<%@ include file="setup-header.jspf" %> <%@ include file="setup-header.jspf" %>
<p class="jive-setup-page-header"> <p class="jive-setup-page-header">
<fmt:message key="setup.datasource.settings.title" /> <fmt:message key="setup.datasource.settings.title" />
</p> </p>
<p> <p>
<fmt:message key="setup.datasource.settings.info"> <fmt:message key="setup.datasource.settings.info">
<fmt:param value="<%= LocaleUtils.getLocalizedString("short.title") %>" /> <fmt:param value="<%= LocaleUtils.getLocalizedString("short.title") %>" />
</fmt:message> </fmt:message>
</p> </p>
<% if (errors.size() > 0) { %> <% if (errors.size() > 0) { %>
<p class="jive-error-text"> <p class="jive-error-text">
<%= errors.get("general") %> <%= errors.get("general") %>
</p> </p>
<% } %> <% } %>
<form action="setup-datasource-settings.jsp"> <form action="setup-datasource-settings.jsp">
<input type="hidden" name="next" value="true"> <input type="hidden" name="next" value="true">
<table cellpadding="3" cellspacing="2" border="0"> <table cellpadding="3" cellspacing="2" border="0">
<tr> <tr>
<td align="center" valign="top"> <td align="center" valign="top">
<input type="radio" name="mode" value="<%= STANDARD %>" id="rb02" <input type="radio" name="mode" value="<%= STANDARD %>" id="rb02"
<%= ((STANDARD.equals(mode)) ? "checked" : "") %>> <%= ((STANDARD.equals(mode)) ? "checked" : "") %>>
</td> </td>
<td> <td>
<label for="rb02"><b><fmt:message key="setup.datasource.settings.connect" /></b></label> - <label for="rb02"><b><fmt:message key="setup.datasource.settings.connect" /></b></label> -
<fmt:message key="setup.datasource.settings.connect_info" /> <fmt:message key="setup.datasource.settings.connect_info" />
</td> </td>
</tr> </tr>
<% if (!embeddedMode) { %> <% if (!embeddedMode) { %>
<tr> <tr>
<td align="center" valign="top"> <td align="center" valign="top">
<input type="radio" name="mode" value="<%= JNDI %>" id="rb03" <input type="radio" name="mode" value="<%= JNDI %>" id="rb03"
<%= ((JNDI.equals(mode)) ? "checked" : "") %>> <%= ((JNDI.equals(mode)) ? "checked" : "") %>>
</td> </td>
<td> <td>
<label for="rb03"><b><fmt:message key="setup.datasource.settings.jndi" /></b></label> - <label for="rb03"><b><fmt:message key="setup.datasource.settings.jndi" /></b></label> -
<fmt:message key="setup.datasource.settings.jndi_info" /> <fmt:message key="setup.datasource.settings.jndi_info" />
</td> </td>
</tr> </tr>
<% } %> <% } %>
<tr> <tr>
<td align="center" valign="top"> <td align="center" valign="top">
<input type="radio" name="mode" value="<%= EMBEDDED %>" id="rb01" <input type="radio" name="mode" value="<%= EMBEDDED %>" id="rb01"
<%= ((EMBEDDED.equals(mode)) ? "checked" : "") %>> <%= ((EMBEDDED.equals(mode)) ? "checked" : "") %>>
</td> </td>
<td> <td>
<label for="rb01"><b><fmt:message key="setup.datasource.settings.embedded" /></b></label> - <label for="rb01"><b><fmt:message key="setup.datasource.settings.embedded" /></b></label> -
<fmt:message key="setup.datasource.settings.embedded_info" /> <fmt:message key="setup.datasource.settings.embedded_info" />
</td> </td>
</tr> </tr>
</table> </table>
<br><br> <br><br>
<hr size="0"> <hr size="0">
<div align="right"><input type="submit" value=" <fmt:message key="global.continue" /> "></div> <div align="right"><input type="submit" value=" <fmt:message key="global.continue" /> "></div>
</form> </form>
<%@ include file="setup-footer.jsp" %> <%@ include file="setup-footer.jsp" %>
\ No newline at end of file
<%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision: 1080 $
- $Date$ - $Date: 2005-03-05 22:58:01 -0800 (Sat, 05 Mar 2005) $
--%> --%>
<%@ page import="java.util.Calendar" %> <%@ page import="java.util.Calendar" %>
</td></tr> </td></tr>
</table> </table>
<br><br> <br><br>
<table cellpadding="0" cellspacing="0" border="0" width="75%" align="center" <table cellpadding="0" cellspacing="0" border="0" width="75%" align="center"
style="border-bottom:1px #ccc solid;"> style="border-bottom:1px #ccc solid;">
<tr><td>&nbsp;</td></tr> <tr><td>&nbsp;</td></tr>
</table><br> </table><br>
<div class="jive-setup-footer"> <div class="jive-setup-footer">
&copy; <a href="http://www.jivesoftware.org" target="_blank">Jive Software</a>, 2005 &copy; <a href="http://www.jivesoftware.org" target="_blank">Jive Software</a>, 2005
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision: 985 $
- $Date$ - $Date: 2005-02-18 10:35:44 -0800 (Fri, 18 Feb 2005) $
--%> --%>
<%@ page import="org.jivesoftware.util.ParamUtils, <%@ page import="org.jivesoftware.util.ParamUtils,
org.jivesoftware.messenger.auth.UnauthorizedException" %> org.jivesoftware.messenger.auth.UnauthorizedException" %>
<%-- Define Administration Bean --%> <%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% admin.init(request, response, session, application, out ); %>
<% boolean showSidebar = false; %> <% boolean showSidebar = false; %>
<%@ include file="setup-header.jspf" %> <%@ include file="setup-header.jspf" %>
<div align=center> <div align=center>
<p> <p>
<fmt:message key="setup.pause.title" /> <fmt:message key="setup.pause.title" />
</p> </p>
<a href="javascript:window.close();"><fmt:message key="setup.pause.close" /></a> <a href="javascript:window.close();"><fmt:message key="setup.pause.close" /></a>
</div> </div>
<%@ include file="setup-footer.jsp" %> <%@ include file="setup-footer.jsp" %>
<html>
<head><title></title></head>
<body bgcolor="#bbbbbb">
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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