Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
ed3492a2
Commit
ed3492a2
authored
Apr 15, 2014
by
Sven Tantau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xss filter
parent
1e103cc3
Changes
57
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
293 additions
and
265 deletions
+293
-265
audit-policy.jsp
src/web/audit-policy.jsp
+6
-5
available-plugins.jsp
src/web/available-plugins.jsp
+28
-27
clearspace-status.jsp
src/web/clearspace-status.jsp
+6
-5
component-session-details.jsp
src/web/component-session-details.jsp
+7
-6
component-session-summary.jsp
src/web/component-session-summary.jsp
+5
-4
error.jsp
src/web/error.jsp
+3
-2
external-components-settings.jsp
src/web/external-components-settings.jsp
+7
-5
group-create.jsp
src/web/group-create.jsp
+5
-4
group-delete.jsp
src/web/group-delete.jsp
+2
-2
group-edit.jsp
src/web/group-edit.jsp
+7
-7
group-summary.jsp
src/web/group-summary.jsp
+4
-4
http-bind.jsp
src/web/http-bind.jsp
+7
-6
import-certificate.jsp
src/web/import-certificate.jsp
+2
-1
log.jsp
src/web/log.jsp
+2
-2
login.jsp
src/web/login.jsp
+1
-1
logviewer.jsp
src/web/logviewer.jsp
+5
-4
manage-updates.jsp
src/web/manage-updates.jsp
+2
-1
media-proxy.jsp
src/web/media-proxy.jsp
+3
-2
muc-create-permission.jsp
src/web/muc-create-permission.jsp
+4
-4
muc-default-settings.jsp
src/web/muc-default-settings.jsp
+2
-2
muc-history-settings.jsp
src/web/muc-history-settings.jsp
+3
-3
muc-room-affiliations.jsp
src/web/muc-room-affiliations.jsp
+9
-8
muc-room-delete.jsp
src/web/muc-room-delete.jsp
+4
-4
muc-room-edit-form.jsp
src/web/muc-room-edit-form.jsp
+10
-9
muc-room-occupants.jsp
src/web/muc-room-occupants.jsp
+14
-18
muc-room-summary.jsp
src/web/muc-room-summary.jsp
+5
-5
muc-service-delete.jsp
src/web/muc-service-delete.jsp
+4
-4
muc-service-edit-form.jsp
src/web/muc-service-edit-form.jsp
+7
-6
muc-service-summary.jsp
src/web/muc-service-summary.jsp
+3
-2
muc-sysadmins.jsp
src/web/muc-sysadmins.jsp
+6
-6
muc-tasks.jsp
src/web/muc-tasks.jsp
+4
-4
security-audit-viewer.jsp
src/web/security-audit-viewer.jsp
+2
-2
server-properties.jsp
src/web/server-properties.jsp
+4
-4
server-session-row.jspf
src/web/server-session-row.jspf
+4
-3
session-details.jsp
src/web/session-details.jsp
+6
-5
session-row.jspf
src/web/session-row.jspf
+5
-5
session-summary.jsp
src/web/session-summary.jsp
+1
-1
ssl-certificates.jsp
src/web/ssl-certificates.jsp
+4
-3
ssl-signing-request.jsp
src/web/ssl-signing-request.jsp
+8
-7
system-cache.jsp
src/web/system-cache.jsp
+2
-1
system-clustering.jsp
src/web/system-clustering.jsp
+3
-2
system-email.jsp
src/web/system-email.jsp
+3
-3
system-emailtest.jsp
src/web/system-emailtest.jsp
+9
-8
user-create.jsp
src/web/user-create.jsp
+4
-4
user-delete.jsp
src/web/user-delete.jsp
+3
-2
user-edit-form.jsp
src/web/user-edit-form.jsp
+5
-4
user-lockout.jsp
src/web/user-lockout.jsp
+5
-4
user-message.jsp
src/web/user-message.jsp
+3
-2
user-password.jsp
src/web/user-password.jsp
+2
-2
user-properties.jsp
src/web/user-properties.jsp
+6
-5
user-roster-add.jsp
src/web/user-roster-add.jsp
+6
-6
user-roster-delete.jsp
src/web/user-roster-delete.jsp
+4
-4
user-roster-edit.jsp
src/web/user-roster-edit.jsp
+9
-8
user-roster-view.jsp
src/web/user-roster-view.jsp
+12
-11
user-roster.jsp
src/web/user-roster.jsp
+3
-3
user-search.jsp
src/web/user-search.jsp
+1
-1
user-summary.jsp
src/web/user-summary.jsp
+2
-2
No files found.
src/web/audit-policy.jsp
View file @
ed3492a2
...
@@ -17,9 +17,10 @@
...
@@ -17,9 +17,10 @@
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.audit.AuditManager,
org.jivesoftware.openfire.audit.AuditManager,
org.jivesoftware.openfire.user.UserNotFoundException,
org.jivesoftware.openfire.user.UserNotFoundException,
org.jivesoftware.util.StringUtils,
org.xmpp.packet.JID,
org.xmpp.packet.JID,
java.io.File"
java.io.File"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
...
@@ -226,7 +227,7 @@
...
@@ -226,7 +227,7 @@
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
size=
"50"
maxlength=
"150"
name=
"logDir"
<input
type=
"text"
size=
"50"
maxlength=
"150"
name=
"logDir"
value=
"
<%=
((
logDir
!=
null
)
?
logDir
:
""
)
%>
"
>
value=
"
<%=
((
logDir
!=
null
)
?
StringUtils
.
escapeForXML
(
logDir
)
:
""
)
%>
"
>
<%
if
(
errors
.
get
(
"logDir"
)
!=
null
)
{
%>
<%
if
(
errors
.
get
(
"logDir"
)
!=
null
)
{
%>
...
@@ -361,7 +362,7 @@
...
@@ -361,7 +362,7 @@
<fmt:message
key=
"audit.policy.ignore"
/>
<fmt:message
key=
"audit.policy.ignore"
/>
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<textarea
name=
"ignore"
cols=
"40"
rows=
"3"
wrap=
"virtual"
><%=
((
ignore
!=
null
)
?
ignore
:
""
)
%></textarea>
<textarea
name=
"ignore"
cols=
"40"
rows=
"3"
wrap=
"virtual"
><%=
((
ignore
!=
null
)
?
StringUtils
.
escapeHTMLTags
(
ignore
)
:
""
)
%></textarea>
<%
if
(
errors
.
get
(
"ignore"
)
!=
null
)
{
%>
<%
if
(
errors
.
get
(
"ignore"
)
!=
null
)
{
%>
<span
class=
"jive-error-text"
>
<span
class=
"jive-error-text"
>
...
@@ -393,4 +394,4 @@
...
@@ -393,4 +394,4 @@
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/available-plugins.jsp
View file @
ed3492a2
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<%@ page
errorPage=
"error.jsp"
import=
"org.jivesoftware.util.ByteFormat,
<%@ page
errorPage=
"error.jsp"
import=
"org.jivesoftware.util.ByteFormat,
org.jivesoftware.util.Version,
org.jivesoftware.util.Version,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.container.Plugin"
org.jivesoftware.openfire.container.Plugin,
org.jivesoftware.util.StringUtils"
%>
%>
<%@ page
import=
"org.jivesoftware.openfire.container.PluginManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.container.PluginManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.update.AvailablePlugin"
%>
<%@ page
import=
"org.jivesoftware.openfire.update.AvailablePlugin"
%>
...
@@ -284,38 +285,38 @@
...
@@ -284,38 +285,38 @@
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
"
>
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<%
if
(
plugin
.
getIcon
()
!=
null
)
{
%>
<%
if
(
plugin
.
getIcon
()
!=
null
)
{
%>
<img
src=
"
<%=
plugin
.
getIcon
(
)
%>
"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<img
src=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getIcon
()
)
%>
"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<%
}
<%
}
else
{
%>
else
{
%>
<img
src=
"images/plugin-16x16.gif"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<img
src=
"images/plugin-16x16.gif"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<%
}
%>
<%
}
%>
</td>
</td>
<td
width=
"20%"
nowrap
class=
"line-bottom-border"
>
<td
width=
"20%"
nowrap
class=
"line-bottom-border"
>
<%=
(
pluginName
!=
null
?
pluginName
:
""
)
%>
<%=
(
pluginName
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginName
)
:
""
)
%>
</td>
</td>
<td
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<td
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<%
if
(
plugin
.
getReadme
()
!=
null
)
{
%>
<%
if
(
plugin
.
getReadme
()
!=
null
)
{
%>
<a
href=
"
<%=
plugin
.
getReadme
(
)
%>
"
<a
href=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getReadme
()
)
%>
"
><img
src=
"images/doc-readme-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"README"
></a>
><img
src=
"images/doc-readme-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"README"
></a>
<%
}
<%
}
else
{
%>
<%
}
%>
else
{
%>
<%
}
%>
<%
if
(
plugin
.
getChangelog
()
!=
null
)
{
%>
<%
if
(
plugin
.
getChangelog
()
!=
null
)
{
%>
<a
href=
"
<%=
plugin
.
getChangelog
(
)
%>
"
<a
href=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getChangelog
()
)
%>
"
><img
src=
"images/doc-changelog-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"changelog"
></a>
><img
src=
"images/doc-changelog-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"changelog"
></a>
<%
}
<%
}
else
{
%>
<%
}
%>
else
{
%>
<%
}
%>
</td>
</td>
<td
width=
"60%"
class=
"line-bottom-border"
>
<td
width=
"60%"
class=
"line-bottom-border"
>
<%=
pluginDescription
!=
null
?
pluginDescription
:
""
%>
<%=
pluginDescription
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginDescription
)
:
""
%>
</td>
</td>
<td
width=
"5%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<td
width=
"5%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<%=
pluginVersion
!=
null
?
pluginVersion
:
""
%>
<%=
pluginVersion
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginVersion
)
:
""
%>
</td>
</td>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<%=
pluginAuthor
!=
null
?
pluginAuthor
:
""
%>
<%=
pluginAuthor
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginAuthor
)
:
""
%>
</td>
</td>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
align=
"right"
>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
align=
"right"
>
<%=
fileSize
%>
<%=
StringUtils
.
escapeHTMLTags
(
fileSize
)
%>
</td>
</td>
<td
width=
"1%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<td
width=
"1%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<%
<%
...
@@ -328,7 +329,7 @@
...
@@ -328,7 +329,7 @@
<%
<%
%>
%>
<a
href=
"javascript:downloadPlugin('
<%=
updateURL
%>
', '
<%=
plugin
.
hashCode
()
%>
')"
><span
id=
"
<%=
plugin
.
hashCode
()
%>
-image"
><img
src=
"images/add-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
<a
href=
"javascript:downloadPlugin('
<%=
StringUtils
.
escapeForXML
(
updateURL
)
%>
', '
<%=
plugin
.
hashCode
()
%>
')"
><span
id=
"
<%=
plugin
.
hashCode
()
%>
-image"
><img
src=
"images/add-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"
<fmt:message
key=
"plugin.available.download"
/>
"
></span></a>
alt=
"
<fmt:message
key=
"plugin.available.download"
/>
"
></span></a>
<%
}
%>
<%
}
%>
...
@@ -336,9 +337,9 @@
...
@@ -336,9 +337,9 @@
</tr>
</tr>
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
-row"
style=
"display:none;background: #E7FBDE;"
>
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
-row"
style=
"display:none;background: #E7FBDE;"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<img
src=
"
<%=
plugin
.
getIcon
(
)
%>
"
width=
"16"
height=
"16"
alt=
""
/>
<img
src=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getIcon
()
)
%>
"
width=
"16"
height=
"16"
alt=
""
/>
</td>
</td>
<td
colspan=
"6"
nowrap
class=
"line-bottom-border"
><%=
plugin
.
getName
(
)
%>
<fmt:message
key=
"plugin.available.installation.success"
/></td>
<td
colspan=
"6"
nowrap
class=
"line-bottom-border"
><%=
StringUtils
.
escapeHTMLTags
(
plugin
.
getName
()
)
%>
<fmt:message
key=
"plugin.available.installation.success"
/></td>
<td
class=
"line-bottom-border"
align=
"center"
>
<td
class=
"line-bottom-border"
align=
"center"
>
<img
src=
"images/success-16x16.gif"
height=
"16"
width=
"16"
alt=
""
/>
<img
src=
"images/success-16x16.gif"
height=
"16"
width=
"16"
alt=
""
/>
</td>
</td>
...
@@ -367,38 +368,38 @@
...
@@ -367,38 +368,38 @@
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
"
>
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<%
if
(
plugin
.
getIcon
()
!=
null
)
{
%>
<%
if
(
plugin
.
getIcon
()
!=
null
)
{
%>
<img
src=
"
<%=
plugin
.
getIcon
(
)
%>
"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<img
src=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getIcon
()
)
%>
"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<%
}
<%
}
else
{
%>
else
{
%>
<img
src=
"images/plugin-16x16.gif"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<img
src=
"images/plugin-16x16.gif"
width=
"16"
height=
"16"
alt=
"Plugin"
>
<%
}
%>
<%
}
%>
</td>
</td>
<td
width=
"20%"
nowrap
class=
"line-bottom-border"
>
<td
width=
"20%"
nowrap
class=
"line-bottom-border"
>
<%=
(
pluginName
!=
null
?
pluginName
:
""
)
%>
<%=
(
pluginName
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginName
)
:
""
)
%>
</td>
</td>
<td
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<td
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<%
if
(
plugin
.
getReadme
()
!=
null
)
{
%>
<%
if
(
plugin
.
getReadme
()
!=
null
)
{
%>
<a
href=
"
<%=
plugin
.
getReadme
(
)
%>
"
<a
href=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getReadme
()
)
%>
"
><img
src=
"images/doc-readme-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"README"
></a>
><img
src=
"images/doc-readme-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"README"
></a>
<%
}
<%
}
else
{
%>
<%
}
%>
else
{
%>
<%
}
%>
<%
if
(
plugin
.
getChangelog
()
!=
null
)
{
%>
<%
if
(
plugin
.
getChangelog
()
!=
null
)
{
%>
<a
href=
"
<%=
plugin
.
getChangelog
(
)
%>
"
<a
href=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getChangelog
()
)
%>
"
><img
src=
"images/doc-changelog-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"changelog"
></a>
><img
src=
"images/doc-changelog-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"changelog"
></a>
<%
}
<%
}
else
{
%>
<%
}
%>
else
{
%>
<%
}
%>
</td>
</td>
<td
width=
"60%"
class=
"line-bottom-border"
>
<td
width=
"60%"
class=
"line-bottom-border"
>
<%=
pluginDescription
!=
null
?
pluginDescription
:
""
%>
<%=
pluginDescription
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginDescription
)
:
""
%>
</td>
</td>
<td
width=
"5%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<td
width=
"5%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<%=
pluginVersion
!=
null
?
pluginVersion
:
""
%>
<%=
pluginVersion
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginVersion
)
:
""
%>
</td>
</td>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<%=
pluginAuthor
!=
null
?
pluginAuthor
:
""
%>
<%=
pluginAuthor
!=
null
?
StringUtils
.
escapeHTMLTags
(
pluginAuthor
)
:
""
%>
</td>
</td>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<td
width=
"15%"
nowrap
valign=
"top"
class=
"line-bottom-border"
>
<%=
fileSize
%>
<%=
StringUtils
.
escapeHTMLTags
(
fileSize
)
%>
</td>
</td>
<td
width=
"1%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<td
width=
"1%"
align=
"center"
valign=
"top"
class=
"line-bottom-border"
>
<%
<%
...
@@ -409,16 +410,16 @@
...
@@ -409,16 +410,16 @@
<%
}
<%
}
else
{
%>
else
{
%>
<span
id=
"
<%=
plugin
.
hashCode
()
%>
-image"
><a
href=
"javascript:downloadPlugin('
<%=
updateURL
%>
', '
<%=
plugin
.
hashCode
()
%>
')"
><img
src=
"images/add-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
<span
id=
"
<%=
plugin
.
hashCode
()
%>
-image"
><a
href=
"javascript:downloadPlugin('
<%=
StringUtils
.
escapeForXML
(
updateURL
)
%>
', '
<%=
plugin
.
hashCode
()
%>
')"
><img
src=
"images/add-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
"
<fmt:message
key=
"plugin.available.download"
/>
"
></a></span>
alt=
"
<fmt:message
key=
"plugin.available.download"
/>
"
></a></span>
<%
}
%>
<%
}
%>
</td>
</td>
</tr>
</tr>
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
-row"
style=
"display:none;background: #E7FBDE;"
>
<tr
id=
"
<%=
plugin
.
hashCode
()
%>
-row"
style=
"display:none;background: #E7FBDE;"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<td
width=
"1%"
class=
"line-bottom-border"
>
<img
src=
"
<%=
plugin
.
getIcon
(
)
%>
"
width=
"16"
height=
"16"
alt=
""
/>
<img
src=
"
<%=
StringUtils
.
escapeForXML
(
plugin
.
getIcon
()
)
%>
"
width=
"16"
height=
"16"
alt=
""
/>
</td>
</td>
<td
colspan=
"6"
nowrap
class=
"line-bottom-border"
><%=
plugin
.
getName
(
)
%>
<fmt:message
key=
"plugin.available.installation.success"
/></td>
<td
colspan=
"6"
nowrap
class=
"line-bottom-border"
><%=
StringUtils
.
escapeHTMLTags
(
plugin
.
getName
()
)
%>
<fmt:message
key=
"plugin.available.installation.success"
/></td>
<td
class=
"line-bottom-border"
align=
"center"
>
<td
class=
"line-bottom-border"
align=
"center"
>
<img
src=
"images/success-16x16.gif"
height=
"16"
width=
"16"
alt=
""
/>
<img
src=
"images/success-16x16.gif"
height=
"16"
width=
"16"
alt=
""
/>
</td>
</td>
...
@@ -493,13 +494,13 @@
...
@@ -493,13 +494,13 @@
else
{
%>
<%
}
%></p>
else
{
%>
<%
}
%></p>
</td>
</td>
<td
class=
"line-bottom-border"
>
<td
class=
"line-bottom-border"
>
<%=
pluginDescription
%>
<%=
StringUtils
.
escapeHTMLTags
(
pluginDescription
)
%>
</td>
</td>
<td
class=
"line-bottom-border"
>
<td
class=
"line-bottom-border"
>
<%=
pluginVersion
%>
<%=
StringUtils
.
escapeHTMLTags
(
pluginVersion
)
%>
</td>
</td>
<td
class=
"line-bottom-border"
>
<td
class=
"line-bottom-border"
>
<%=
pluginAuthor
%>
<%=
StringUtils
.
escapeHTMLTags
(
pluginAuthor
)
%>
</td>
</td>
</tr>
</tr>
<%
}
%>
<%
}
%>
...
@@ -529,4 +530,4 @@
...
@@ -529,4 +530,4 @@
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/clearspace-status.jsp
View file @
ed3492a2
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<%@ page
import=
"org.jivesoftware.openfire.clearspace.ClearspaceManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.clearspace.ClearspaceManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.session.ComponentSession"
%>
<%@ page
import=
"org.jivesoftware.openfire.session.ComponentSession"
%>
<%@ page
import=
"org.jivesoftware.util.JiveGlobals"
%>
<%@ page
import=
"org.jivesoftware.util.JiveGlobals"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"java.text.NumberFormat"
%>
<%@ page
import=
"java.text.NumberFormat"
%>
<%@ page
import=
"java.util.Collection"
%>
<%@ page
import=
"java.util.Collection"
%>
<%@ page
import=
"java.util.Date"
%>
<%@ page
import=
"java.util.Date"
%>
...
@@ -189,17 +190,17 @@
...
@@ -189,17 +190,17 @@
<fmt:message
key=
"clearspace.status.connected.table.label.hostname"
/>
<fmt:message
key=
"clearspace.status.connected.table.label.hostname"
/>
</td>
</td>
<td>
<td>
<%=
cs
.
getHostAddress
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
cs
.
getHostAddress
()
)
%>
/
/
<%=
cs
.
getHostName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
cs
.
getHostName
()
)
%>
</td>
</td>
</tr>
</tr>
<%
}
else
{
%>
<%
}
else
{
%>
<tr>
<tr>
<td>
<td>
<%=
cs
.
getHostAddress
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
cs
.
getHostAddress
()
)
%>
/
/
<%=
cs
.
getHostName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
cs
.
getHostName
()
)
%>
</td>
</td>
</tr>
</tr>
<%
}
%>
<%
}
%>
...
@@ -268,4 +269,4 @@
...
@@ -268,4 +269,4 @@
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/component-session-details.jsp
View file @
ed3492a2
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<%@ page
import=
"org.jivesoftware.openfire.SessionManager,
<%@ page
import=
"org.jivesoftware.openfire.SessionManager,
org.jivesoftware.openfire.session.ComponentSession,
org.jivesoftware.openfire.session.ComponentSession,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.StringUtils,
org.jivesoftware.util.ParamUtils"
org.jivesoftware.util.ParamUtils"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
%>
%>
...
@@ -86,7 +87,7 @@
...
@@ -86,7 +87,7 @@
<fmt:message
key=
"component.session.label.name"
/>
<fmt:message
key=
"component.session.label.name"
/>
</td>
</td>
<td>
<td>
<%=
componentSession
.
getExternalComponent
().
getName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getExternalComponent
().
getName
()
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -94,7 +95,7 @@
...
@@ -94,7 +95,7 @@
<fmt:message
key=
"component.session.label.category"
/>
:
<fmt:message
key=
"component.session.label.category"
/>
:
</td>
</td>
<td>
<td>
<%=
componentSession
.
getExternalComponent
().
getCategory
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getExternalComponent
().
getCategory
()
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -117,7 +118,7 @@
...
@@ -117,7 +118,7 @@
<%
}
<%
}
}
}
%>
%>
<%=
componentSession
.
getExternalComponent
().
getType
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getExternalComponent
().
getType
()
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -150,9 +151,9 @@
...
@@ -150,9 +151,9 @@
<fmt:message
key=
"session.details.hostname"
/>
<fmt:message
key=
"session.details.hostname"
/>
</td>
</td>
<td>
<td>
<%=
componentSession
.
getHostAddress
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getHostAddress
()
)
%>
/
/
<%=
componentSession
.
getHostName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getHostName
()
)
%>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -167,4 +168,4 @@
...
@@ -167,4 +168,4 @@
</form>
</form>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/component-session-summary.jsp
View file @
ed3492a2
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
org.jivesoftware.openfire.session.ComponentSession,
org.jivesoftware.openfire.session.ComponentSession,
org.jivesoftware.openfire.session.Session,
org.jivesoftware.openfire.session.Session,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.StringUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.ParamUtils,
java.net.URLEncoder"
java.net.URLEncoder"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
...
@@ -187,10 +188,10 @@
...
@@ -187,10 +188,10 @@
<a
href=
"component-session-details.jsp?jid=
<%=
URLEncoder
.
encode
(
componentSession
.
getAddress
().
toString
(),
"UTF-8"
)
%>
"
title=
"
<fmt:message
key=
"session.row.cliked"
/>
"
><%=
componentSession
.
getAddress
()
%></a>
<a
href=
"component-session-details.jsp?jid=
<%=
URLEncoder
.
encode
(
componentSession
.
getAddress
().
toString
(),
"UTF-8"
)
%>
"
title=
"
<fmt:message
key=
"session.row.cliked"
/>
"
><%=
componentSession
.
getAddress
()
%></a>
</td>
</td>
<td
align=
"center"
width=
"15%"
nowrap
>
<td
align=
"center"
width=
"15%"
nowrap
>
<%=
componentSession
.
getExternalComponent
().
getName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getExternalComponent
().
getName
()
)
%>
</td>
</td>
<td
align=
"center"
width=
"10%"
nowrap
>
<td
align=
"center"
width=
"10%"
nowrap
>
<%=
componentSession
.
getExternalComponent
().
getCategory
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getExternalComponent
().
getCategory
()
)
%>
</td>
</td>
<td
align=
"center"
width=
"10%"
nowrap
>
<td
align=
"center"
width=
"10%"
nowrap
>
<table
border=
"0"
>
<table
border=
"0"
>
...
@@ -218,7 +219,7 @@
...
@@ -218,7 +219,7 @@
<%
}
<%
}
}
}
%>
%>
<td><%=
componentSession
.
getExternalComponent
().
getType
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
componentSession
.
getExternalComponent
().
getType
()
)
%></td>
</tr></table>
</tr></table>
</td>
</td>
<%
Date
creationDate
=
componentSession
.
getCreationDate
();
<%
Date
creationDate
=
componentSession
.
getCreationDate
();
...
@@ -279,4 +280,4 @@
...
@@ -279,4 +280,4 @@
</p>
</p>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/error.jsp
View file @
ed3492a2
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<%@ page
import=
"java.io.*,
<%@ page
import=
"java.io.*,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.StringUtils,
org.jivesoftware.openfire.auth.UnauthorizedException,
org.jivesoftware.openfire.auth.UnauthorizedException,
org.jivesoftware.openfire.user.UserNotFoundException,
org.jivesoftware.openfire.user.UserNotFoundException,
org.jivesoftware.openfire.group.GroupNotFoundException"
org.jivesoftware.openfire.group.GroupNotFoundException"
...
@@ -54,7 +55,7 @@
...
@@ -54,7 +55,7 @@
%>
%>
<fmt:message
key=
"error.exception"
/>
<fmt:message
key=
"error.exception"
/>
<pre>
<pre>
<%=
sout
.
toString
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
sout
.
toString
()
)
%>
</pre>
</pre>
<%
}
%>
<%
}
%>
\ No newline at end of file
src/web/external-components-settings.jsp
View file @
ed3492a2
...
@@ -25,8 +25,10 @@
...
@@ -25,8 +25,10 @@
org.jivesoftware.openfire.component.ExternalComponentConfiguration,
org.jivesoftware.openfire.component.ExternalComponentConfiguration,
org.jivesoftware.openfire.component.ExternalComponentManager,
org.jivesoftware.openfire.component.ExternalComponentManager,
org.jivesoftware.util.ModificationNotAllowedException,
org.jivesoftware.util.ModificationNotAllowedException,
org.jivesoftware.util.StringUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.ParamUtils,
java.util.Collection"
java.util.Collection,
java.net.URLEncoder"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
%>
%>
<%@ page
import=
"java.util.HashMap"
%>
<%@ page
import=
"java.util.HashMap"
%>
...
@@ -243,7 +245,7 @@
...
@@ -243,7 +245,7 @@
<tr>
<tr>
<td
class=
"jive-icon"
><img
src=
"images/error-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
/></td>
<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"
>
<fmt:message
key=
"component.settings.modification.denied"
/>
<%=
operationFailedDetail
!=
null
?
operationFailedDetail
:
""
%>
<fmt:message
key=
"component.settings.modification.denied"
/>
<%=
operationFailedDetail
!=
null
?
StringUtils
.
escapeHTMLTags
(
operationFailedDetail
)
:
""
%>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -328,7 +330,7 @@
...
@@ -328,7 +330,7 @@
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
size=
"15"
maxlength=
"70"
name=
"defaultSecret"
<input
type=
"text"
size=
"15"
maxlength=
"70"
name=
"defaultSecret"
value=
"
<%=
((
defaultSecret
!=
null
)
?
defaultSecret
:
""
)
%>
"
>
value=
"
<%=
((
defaultSecret
!=
null
)
?
StringUtils
.
escapeForXML
(
defaultSecret
)
:
""
)
%>
"
>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -408,13 +410,13 @@
...
@@ -408,13 +410,13 @@
<%=
count
%>
<%=
count
%>
</td>
</td>
<td>
<td>
<%=
configuration
.
getSubdomain
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
configuration
.
getSubdomain
()
)
%>
</td>
</td>
<td>
<td>
<%=
configuration
.
getSecret
()
%>
<%=
configuration
.
getSecret
()
%>
</td>
</td>
<td
align=
"center"
style=
"border-right:1px #ccc solid;"
>
<td
align=
"center"
style=
"border-right:1px #ccc solid;"
>
<a
href=
"#"
onclick=
"if (confirm('
<fmt:message
key=
"component.settings.confirm_delete"
/>
')) { location.replace('external-components-settings.jsp?deleteConf=
<%=
configuration
.
getSubdomain
(
)
%>
'); } "
<a
href=
"#"
onclick=
"if (confirm('
<fmt:message
key=
"component.settings.confirm_delete"
/>
')) { location.replace('external-components-settings.jsp?deleteConf=
<%=
URLEncoder
.
encode
(
configuration
.
getSubdomain
(),
"UTF-8"
)
%>
'); } "
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"
alt=
""
></a>
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
</td>
</td>
...
...
src/web/group-create.jsp
View file @
ed3492a2
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<%@ page
import=
"org.jivesoftware.openfire.group.Group,
<%@ page
import=
"org.jivesoftware.openfire.group.Group,
org.jivesoftware.openfire.group.GroupAlreadyExistsException,
org.jivesoftware.openfire.group.GroupAlreadyExistsException,
org.jivesoftware.openfire.security.SecurityAuditManager,
org.jivesoftware.openfire.security.SecurityAuditManager,
org.jivesoftware.util.StringUtils,
org.jivesoftware.util.Log"
org.jivesoftware.util.Log"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
%>
%>
...
@@ -188,7 +189,7 @@
...
@@ -188,7 +189,7 @@
<form
name=
"f"
action=
"group-create.jsp"
method=
"post"
>
<form
name=
"f"
action=
"group-create.jsp"
method=
"post"
>
<%
if
(
groupName
!=
null
)
{
%>
<%
if
(
groupName
!=
null
)
{
%>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
groupName
%>
"
id=
"existingName"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
StringUtils
.
escapeForXML
(
groupName
)
%>
"
id=
"existingName"
>
<%
}
%>
<%
}
%>
<!-- BEGIN create group -->
<!-- BEGIN create group -->
...
@@ -213,7 +214,7 @@
...
@@ -213,7 +214,7 @@
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"name"
size=
"30"
maxlength=
"75"
<input
type=
"text"
name=
"name"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
name
!=
null
)
?
name
:
""
)
%>
"
id=
"gname"
>
value=
"
<%=
((
name
!=
null
)
?
StringUtils
.
escapeForXML
(
name
)
:
""
)
%>
"
id=
"gname"
>
</td>
</td>
</tr>
</tr>
...
@@ -238,7 +239,7 @@
...
@@ -238,7 +239,7 @@
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<textarea
name=
"description"
cols=
"30"
rows=
"3"
id=
"gdesc"
<textarea
name=
"description"
cols=
"30"
rows=
"3"
id=
"gdesc"
><%=
((
description
!=
null
)
?
description
:
""
)
%></textarea>
><%=
((
description
!=
null
)
?
StringUtils
.
escapeHTMLTags
(
description
)
:
""
)
%></textarea>
</td>
</td>
</tr>
</tr>
...
@@ -298,4 +299,4 @@ for (i=0;i<limit;i++) {
...
@@ -298,4 +299,4 @@ for (i=0;i<limit;i++) {
<%
}
%>
<%
}
%>
</body>
</body>
</html>
%>
</html>
%>
\ No newline at end of file
src/web/group-delete.jsp
View file @
ed3492a2
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</p>
</p>
<form
action=
"group-delete.jsp"
>
<form
action=
"group-delete.jsp"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
groupName
%>
"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
StringUtils
.
escapeForXML
(
groupName
)
%>
"
>
<input
type=
"submit"
name=
"delete"
value=
"
<fmt:message
key=
"group.delete.delete"
/>
"
>
<input
type=
"submit"
name=
"delete"
value=
"
<fmt:message
key=
"group.delete.delete"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
</form>
</form>
...
@@ -101,4 +101,4 @@
...
@@ -101,4 +101,4 @@
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/group-edit.jsp
View file @
ed3492a2
...
@@ -314,7 +314,7 @@
...
@@ -314,7 +314,7 @@
<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"
/>
<%=
errorBuf
%>
<%=
StringUtils
.
escapeHTMLTags
(
errorBuf
.
toString
())
%>
<%
}
%>
<%
}
%>
</td></tr>
</td></tr>
</tbody>
</tbody>
...
@@ -325,7 +325,7 @@
...
@@ -325,7 +325,7 @@
<div
class=
"jive-horizontalRule"
></div>
<div
class=
"jive-horizontalRule"
></div>
<form
name=
"ff"
action=
"group-edit.jsp"
>
<form
name=
"ff"
action=
"group-edit.jsp"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
groupName
%>
"
/>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
StringUtils
.
escapeForXML
(
groupName
)
%>
"
/>
<!-- BEGIN group name and description -->
<!-- BEGIN group name and description -->
...
@@ -387,7 +387,7 @@
...
@@ -387,7 +387,7 @@
<div
id=
"jive-roster"
style=
"display:
<%=
!
enableRosterGroups
?
"none"
:
"block"
%>
;"
>
<div
id=
"jive-roster"
style=
"display:
<%=
!
enableRosterGroups
?
"none"
:
"block"
%>
;"
>
<b><fmt:message
key=
"group.edit.share_display_name"
/></b>
<b><fmt:message
key=
"group.edit.share_display_name"
/></b>
<input
type=
"text"
name=
"groupDisplayName"
size=
"30"
maxlength=
"100"
value=
"
<%=
(
groupDisplayName
!=
null
?
groupDisplayName
:
""
)
%>
"
><br>
<input
type=
"text"
name=
"groupDisplayName"
size=
"30"
maxlength=
"100"
value=
"
<%=
(
groupDisplayName
!=
null
?
StringUtils
.
escapeForXML
(
groupDisplayName
)
:
""
)
%>
"
><br>
<%
if
(
errors
.
get
(
"groupDisplayName"
)
!=
null
)
{
%>
<%
if
(
errors
.
get
(
"groupDisplayName"
)
!=
null
)
{
%>
<span
class=
"jive-error-text"
><fmt:message
key=
"group.edit.share_display_name"
/></span><br/>
<span
class=
"jive-error-text"
><fmt:message
key=
"group.edit.share_display_name"
/></span><br/>
<%
}
%>
<%
}
%>
...
@@ -489,7 +489,7 @@
...
@@ -489,7 +489,7 @@
</p>
</p>
<form
action=
"group-edit.jsp"
method=
"post"
name=
"f"
>
<form
action=
"group-edit.jsp"
method=
"post"
name=
"f"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
groupName
%>
"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
StringUtils
.
escapeForXML
(
groupName
)
%>
"
>
<input
type=
"hidden"
name=
"add"
value=
"Add"
/>
<input
type=
"hidden"
name=
"add"
value=
"Add"
/>
<table
cellpadding=
"3"
cellspacing=
"1"
border=
"0"
style=
"margin: 0 0 8px 0;"
>
<table
cellpadding=
"3"
cellspacing=
"1"
border=
"0"
style=
"margin: 0 0 8px 0;"
>
<tr>
<tr>
...
@@ -507,7 +507,7 @@
...
@@ -507,7 +507,7 @@
<%
}
%>
<%
}
%>
<form
action=
"group-edit.jsp"
method=
"post"
name=
"main"
>
<form
action=
"group-edit.jsp"
method=
"post"
name=
"main"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
groupName
%>
"
>
<input
type=
"hidden"
name=
"group"
value=
"
<%=
StringUtils
.
escapeForXML
(
groupName
)
%>
"
>
<table
class=
"jive-table"
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
width=
"435"
>
<table
class=
"jive-table"
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
width=
"435"
>
<tr>
<tr>
<th>
</th>
<th>
</th>
...
@@ -581,7 +581,7 @@
...
@@ -581,7 +581,7 @@
</td>
</td>
<%
if
(
user
!=
null
)
{
%>
<%
if
(
user
!=
null
)
{
%>
<td><a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
user
.
getUsername
(),
"UTF-8"
)
%>
"
><%=
JID
.
unescapeNode
(
user
.
getUsername
(
))
%></a><%
if
(!
isLocal
)
{
showRemoteJIDsWarning
=
true
;
%>
<font
color=
"red"
><b>
*
</b></font><%
}
%></td>
<td><a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
user
.
getUsername
(),
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
user
.
getUsername
()
))
%></a><%
if
(!
isLocal
)
{
showRemoteJIDsWarning
=
true
;
%>
<font
color=
"red"
><b>
*
</b></font><%
}
%></td>
<%
}
else
{
%>
<%
}
else
{
%>
<td><%=
jid
%><%
showRemoteJIDsWarning
=
true
;
%>
<font
color=
"red"
><b>
*
</b></font></td>
<td><%=
jid
%><%
showRemoteJIDsWarning
=
true
;
%>
<font
color=
"red"
><b>
*
</b></font></td>
<%
}
%>
<%
}
%>
...
@@ -672,4 +672,4 @@
...
@@ -672,4 +672,4 @@
}
}
return
false
;
return
false
;
}
}
%>
%>
\ No newline at end of file
src/web/group-summary.jsp
View file @
ed3492a2
...
@@ -178,7 +178,7 @@ document.searchForm.search.focus();
...
@@ -178,7 +178,7 @@ document.searchForm.search.focus();
<%=
i
%>
<%=
i
%>
</td>
</td>
<td
width=
"60%"
>
<td
width=
"60%"
>
<a
href=
"group-edit.jsp?group=
<%=
groupName
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
group
.
getName
())
%></a>
<a
href=
"group-edit.jsp?group=
<%=
URLEncoder
.
encode
(
groupName
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
group
.
getName
())
%></a>
<%
if
(
group
.
getDescription
()
!=
null
)
{
%>
<%
if
(
group
.
getDescription
()
!=
null
)
{
%>
<br>
<br>
<span
class=
"jive-description"
>
<span
class=
"jive-description"
>
...
@@ -195,12 +195,12 @@ document.searchForm.search.focus();
...
@@ -195,12 +195,12 @@ document.searchForm.search.focus();
<%
// Only show edit and delete options if the groups aren't read-only.
<%
// Only show edit and delete options if the groups aren't read-only.
if
(!
webManager
.
getGroupManager
().
isReadOnly
())
{
%>
if
(!
webManager
.
getGroupManager
().
isReadOnly
())
{
%>
<td
width=
"1%"
align=
"center"
>
<td
width=
"1%"
align=
"center"
>
<a
href=
"group-edit.jsp?group=
<%=
groupName
%>
"
<a
href=
"group-edit.jsp?group=
<%=
URLEncoder
.
encode
(
groupName
,
"UTF-8"
)
%>
"
title=
<fmt:message
key=
"global.click_edit"
/>
title=
<fmt:message
key=
"global.click_edit"
/>
>
<img
src=
"images/edit-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
>
<img
src=
"images/edit-16x16.gif"
width=
"16"
height=
"16"
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=
<%=
URLEncoder
.
encode
(
groupName
,
"UTF-8"
)
%>
"
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"
alt=
""
></a>
>
<img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
</td>
</td>
...
@@ -234,4 +234,4 @@ document.searchForm.search.focus();
...
@@ -234,4 +234,4 @@ document.searchForm.search.focus();
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/http-bind.jsp
View file @
ed3492a2
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
- limitations under the License.
- limitations under the License.
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"java.io.File"
%>
<%@ page
import=
"java.io.File"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"java.util.HashMap"
%>
<%@ page
import=
"java.util.HashMap"
%>
...
@@ -261,7 +262,7 @@
...
@@ -261,7 +262,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
<td>
<input
id=
"CORSDomains"
type=
"text"
size=
"80"
name=
"CORSDomains"
value=
"
<%=
serverManager
.
getCORSAllowOrigin
(
)
%>
"
>
<input
id=
"CORSDomains"
type=
"text"
size=
"80"
name=
"CORSDomains"
value=
"
<%=
StringUtils
.
escapeForXML
(
serverManager
.
getCORSAllowOrigin
()
)
%>
"
>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -303,7 +304,7 @@
...
@@ -303,7 +304,7 @@
<label
for=
"XFFHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_for"
/></label>
<label
for=
"XFFHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_for"
/></label>
</td>
</td>
<td>
<td>
<input
id=
"XFFHeader"
type=
"text"
size=
"40"
name=
"XFFHeader"
value=
"
<%=
xffHeader
==
null
?
""
:
xffHeader
%>
"
>
<input
id=
"XFFHeader"
type=
"text"
size=
"40"
name=
"XFFHeader"
value=
"
<%=
xffHeader
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffHeader
)
%>
"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -311,7 +312,7 @@
...
@@ -311,7 +312,7 @@
<label
for=
"XFFServerHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_server"
/></label>
<label
for=
"XFFServerHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_server"
/></label>
</td>
</td>
<td>
<td>
<input
id=
"XFFServerHeader"
type=
"text"
size=
"40"
name=
"XFFServerHeader"
value=
"
<%=
xffServerHeader
==
null
?
""
:
xffServerHeader
%>
"
>
<input
id=
"XFFServerHeader"
type=
"text"
size=
"40"
name=
"XFFServerHeader"
value=
"
<%=
xffServerHeader
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffServerHeader
)
%>
"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -319,7 +320,7 @@
...
@@ -319,7 +320,7 @@
<label
for=
"XFFHostHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_host"
/></label>
<label
for=
"XFFHostHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_host"
/></label>
</td>
</td>
<td>
<td>
<input
id=
"XFFHostHeader"
type=
"text"
size=
"40"
name=
"XFFHostHeader"
value=
"
<%=
xffHostHeader
==
null
?
""
:
xffHostHeader
%>
"
>
<input
id=
"XFFHostHeader"
type=
"text"
size=
"40"
name=
"XFFHostHeader"
value=
"
<%=
xffHostHeader
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffHostHeader
)
%>
"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -327,7 +328,7 @@
...
@@ -327,7 +328,7 @@
<label
for=
"XFFHostName"
><fmt:message
key=
"httpbind.settings.xff.host_name"
/></label>
<label
for=
"XFFHostName"
><fmt:message
key=
"httpbind.settings.xff.host_name"
/></label>
</td>
</td>
<td>
<td>
<input
id=
"XFFHostName"
type=
"text"
size=
"40"
name=
"XFFHostName"
value=
"
<%=
xffHostName
==
null
?
""
:
xffHostName
%>
"
>
<input
id=
"XFFHostName"
type=
"text"
size=
"40"
name=
"XFFHostName"
value=
"
<%=
xffHostName
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffHostName
)
%>
"
>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -363,4 +364,4 @@
...
@@ -363,4 +364,4 @@
value=
"
<fmt:message
key=
"global.save_settings"
/>
"
>
value=
"
<fmt:message
key=
"global.save_settings"
/>
"
>
</form>
</form>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/import-certificate.jsp
View file @
ed3492a2
<%@ page
import=
"org.jivesoftware.util.CertificateManager,
<%@ page
import=
"org.jivesoftware.util.CertificateManager,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.net.SSLConfig,
org.jivesoftware.openfire.net.SSLConfig,
java.io.ByteArrayInputStream,
java.io.ByteArrayInputStream,
...
@@ -114,7 +115,7 @@
...
@@ -114,7 +115,7 @@
<td
class=
"jive-icon-label"
>
<td
class=
"jive-icon-label"
>
<fmt:message
key=
"ssl.import.certificate.error.import"
/>
<fmt:message
key=
"ssl.import.certificate.error.import"
/>
<%
if
(
e
!=
null
&&
e
.
getMessage
()
!=
null
)
{
%>
<%
if
(
e
!=
null
&&
e
.
getMessage
()
!=
null
)
{
%>
<fmt:message
key=
"ssl.certificates.error_messenge"
/>
:
<%=
e
.
getMessage
(
)
%>
<fmt:message
key=
"ssl.certificates.error_messenge"
/>
:
<%=
StringUtils
.
escapeHTMLTags
(
e
.
getMessage
()
)
%>
<%
}
%>
<%
}
%>
</td></tr>
</td></tr>
</tbody>
</tbody>
...
...
src/web/log.jsp
View file @
ed3492a2
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
<html>
<html>
<head>
<head>
<title><%=
log
%></title>
<title><%=
StringUtils
.
escapeHTMLTags
(
log
)
%></title>
<meta
name=
"decorator"
content=
"none"
/>
<meta
name=
"decorator"
content=
"none"
/>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.log
TABLE
{
.log
TABLE
{
...
@@ -239,4 +239,4 @@
...
@@ -239,4 +239,4 @@
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/login.jsp
View file @
ed3492a2
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
<%
if
(
url
!=
null
)
{
try
{
%>
<%
if
(
url
!=
null
)
{
try
{
%>
<input
type=
"hidden"
name=
"url"
value=
"
<%=
url
%>
"
>
<input
type=
"hidden"
name=
"url"
value=
"
<%=
StringUtils
.
escapeForXML
(
url
)
%>
"
>
<%
}
catch
(
Exception
e
)
{
Log
.
error
(
e
);
}
}
%>
<%
}
catch
(
Exception
e
)
{
Log
.
error
(
e
);
}
}
%>
...
...
src/web/logviewer.jsp
View file @
ed3492a2
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<%@ page
import=
"java.io.*,
<%@ page
import=
"java.io.*,
org.jivesoftware.util.*,
org.jivesoftware.util.*,
java.text.*,
java.text.*,
java.net.URLEncoder,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.openfire.user.*,
org.jivesoftware.openfire.user.*,
java.util.*"
java.util.*"
...
@@ -250,7 +251,7 @@ IFRAME {
...
@@ -250,7 +251,7 @@ IFRAME {
</style>
</style>
<form
action=
"logviewer.jsp"
name=
"logViewer"
method=
"get"
>
<form
action=
"logviewer.jsp"
name=
"logViewer"
method=
"get"
>
<input
type=
"hidden"
name=
"log"
value=
"
<%=
log
%>
"
>
<input
type=
"hidden"
name=
"log"
value=
"
<%=
StringUtils
.
escapeForXML
(
log
)
%>
"
>
<div
class=
"logviewer"
>
<div
class=
"logviewer"
>
<table
cellpadding=
"0"
cellspacing=
"0"
border=
"0"
width=
"100%"
>
<table
cellpadding=
"0"
cellspacing=
"0"
border=
"0"
width=
"100%"
>
...
@@ -309,7 +310,7 @@ IFRAME {
...
@@ -309,7 +310,7 @@ IFRAME {
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
width=
"100%"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
width=
"100%"
>
<tr>
<tr>
<td
nowrap
><fmt:message
key=
"logviewer.log"
/></td>
<td
nowrap
><fmt:message
key=
"logviewer.log"
/></td>
<td
nowrap
><b><%=
logFile
.
getName
(
)
%></b>
(
<%=
byteFormatter
.
format
(
logFile
.
length
())
%>
)
</td>
<td
nowrap
><b><%=
StringUtils
.
escapeHTMLTags
(
logFile
.
getName
()
)
%></b>
(
<%=
byteFormatter
.
format
(
logFile
.
length
())
%>
)
</td>
<td
width=
"96%"
rowspan=
"3"
>
</td>
<td
width=
"96%"
rowspan=
"3"
>
</td>
<td
nowrap
><fmt:message
key=
"logviewer.order"
/></td>
<td
nowrap
><fmt:message
key=
"logviewer.order"
/></td>
<td
nowrap
>
<td
nowrap
>
...
@@ -446,7 +447,7 @@ IFRAME {
...
@@ -446,7 +447,7 @@ IFRAME {
<br><br>
<br><br>
<iframe
src=
"log.jsp?log=
<%=
log
%>
&mode=
<%=
mode
%>
&lines=
<%=
(
"All"
.
equals
(
numLinesParam
)
?
"All"
:
String
.
valueOf
(
numLines
))
%>
"
<iframe
src=
"log.jsp?log=
<%=
URLEncoder
.
encode
(
log
)
%>
&mode=
<%=
URLEncoder
.
encode
(
mode
)
%>
&lines=
<%=
(
"All"
.
equals
(
numLinesParam
)
?
"All"
:
String
.
valueOf
(
numLines
))
%>
"
frameborder=
"0"
height=
"400"
width=
"100%"
marginheight=
"0"
marginwidth=
"0"
scrolling=
"auto"
></iframe>
frameborder=
"0"
height=
"400"
width=
"100%"
marginheight=
"0"
marginwidth=
"0"
scrolling=
"auto"
></iframe>
</form>
</form>
...
@@ -454,4 +455,4 @@ IFRAME {
...
@@ -454,4 +455,4 @@ IFRAME {
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/manage-updates.jsp
View file @
ed3492a2
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
<%@ taglib
uri=
"http://java.sun.com/jstl/fmt_rt"
prefix=
"fmt"
%>
<%@ taglib
uri=
"http://java.sun.com/jstl/fmt_rt"
prefix=
"fmt"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.XMPPServer,
org.jivesoftware.openfire.update.UpdateManager,
org.jivesoftware.openfire.update.UpdateManager,
java.util.HashMap,
java.util.HashMap,
...
@@ -233,7 +234,7 @@ else if (updateSucess) { %>
...
@@ -233,7 +234,7 @@ else if (updateSucess) { %>
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
size=
"15"
maxlength=
"70"
name=
"proxyHost"
<input
type=
"text"
size=
"15"
maxlength=
"70"
name=
"proxyHost"
value=
"
<%=
((
proxyHost
!=
null
)
?
proxyHost
:
""
)
%>
"
>
value=
"
<%=
((
proxyHost
!=
null
)
?
StringUtils
.
escapeForXML
(
proxyHost
)
:
""
)
%>
"
>
</td>
</td>
</tr>
</tr>
<tr
valign=
"top"
>
<tr
valign=
"top"
>
...
...
src/web/media-proxy.jsp
View file @
ed3492a2
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<%@ page
import=
"org.jivesoftware.util.JiveGlobals"
%>
<%@ page
import=
"org.jivesoftware.util.JiveGlobals"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"org.jivesoftware.openfire.XMPPServer"
%>
<%@ page
import=
"org.jivesoftware.openfire.XMPPServer"
%>
<%@ page
import=
"org.jivesoftware.openfire.mediaproxy.MediaProxyService"
%>
<%@ page
import=
"org.jivesoftware.openfire.mediaproxy.MediaProxyService"
%>
<%@ page
import=
"org.jivesoftware.openfire.mediaproxy.MediaProxySession"
%>
<%@ page
import=
"org.jivesoftware.openfire.mediaproxy.MediaProxySession"
%>
...
@@ -292,7 +293,7 @@
...
@@ -292,7 +293,7 @@
<%=
i
%>
<%=
i
%>
</td>
</td>
<td
width=
"10%"
align=
"left"
valign=
"middle"
>
<td
width=
"10%"
align=
"left"
valign=
"middle"
>
<%=
proxySession
.
getCreator
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
proxySession
.
getCreator
()
)
%>
</td>
</td>
<td
width=
"15%"
align=
"left"
valign=
"middle"
>
<td
width=
"15%"
align=
"left"
valign=
"middle"
>
<%=
proxySession
.
getHostA
()
%>
:
<%=
proxySession
.
getLocalPortA
()
%>
<%=
proxySession
.
getHostA
()
%>
:
<%=
proxySession
.
getLocalPortA
()
%>
...
@@ -328,4 +329,4 @@
...
@@ -328,4 +329,4 @@
<%
}
// end enabled check
%>
<%
}
// end enabled check
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-create-permission.jsp
View file @
ed3492a2
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<p>
<p>
<fmt:message
key=
"muc.create.permission.info"
/>
<fmt:message
key=
"muc.create.permission.info"
/>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
mucname
%></a></b>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%></a></b>
</p>
</p>
<%
if
(
errors
.
size
()
>
0
)
{
%>
<%
if
(
errors
.
size
()
>
0
)
{
%>
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
<!-- BEGIN 'Permission Policy' -->
<!-- BEGIN 'Permission Policy' -->
<form
action=
"muc-create-permission.jsp?save"
method=
"post"
>
<form
action=
"muc-create-permission.jsp?save"
method=
"post"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
/>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
/>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"muc.create.permission.policy"
/>
<fmt:message
key=
"muc.create.permission.policy"
/>
</div>
</div>
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
<%
if
(
mucService
.
isRoomCreationRestricted
())
{
%>
<%
if
(
mucService
.
isRoomCreationRestricted
())
{
%>
<!-- BEGIN 'Allowed Users' -->
<!-- BEGIN 'Allowed Users' -->
<form
action=
"muc-create-permission.jsp?add"
method=
"post"
>
<form
action=
"muc-create-permission.jsp?add"
method=
"post"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
/>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
/>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"muc.create.permission.allowed_users"
/>
<fmt:message
key=
"muc.create.permission.allowed_users"
/>
</div>
</div>
...
@@ -262,4 +262,4 @@
...
@@ -262,4 +262,4 @@
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-default-settings.jsp
View file @
ed3492a2
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<p>
<p>
<fmt:message
key=
"muc.default.settings.info"
/>
<fmt:message
key=
"muc.default.settings.info"
/>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
mucname
%></a></b>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%></a></b>
</p>
</p>
<%
if
(
errors
.
size
()
>
0
)
{
%>
<%
if
(
errors
.
size
()
>
0
)
{
%>
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
<!-- BEGIN 'Default Room Settings' -->
<!-- BEGIN 'Default Room Settings' -->
<form
action=
"muc-default-settings.jsp?save"
method=
"post"
>
<form
action=
"muc-default-settings.jsp?save"
method=
"post"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
/>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
/>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"muc.default.settings.title"
/>
<fmt:message
key=
"muc.default.settings.title"
/>
</div>
</div>
...
...
src/web/muc-history-settings.jsp
View file @
ed3492a2
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<p>
<p>
<fmt:message
key=
"groupchat.history.settings.introduction"
/>
<fmt:message
key=
"groupchat.history.settings.introduction"
/>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
mucname
%></a></b>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%></a></b>
</p>
</p>
<%
if
(
"true"
.
equals
(
request
.
getParameter
(
"success"
)))
{
%>
<%
if
(
"true"
.
equals
(
request
.
getParameter
(
"success"
)))
{
%>
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
<!-- BEGIN 'History Settings' -->
<!-- BEGIN 'History Settings' -->
<form
action=
"muc-history-settings.jsp"
method=
"post"
>
<form
action=
"muc-history-settings.jsp"
method=
"post"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
/>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
/>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"groupchat.history.settings.legend"
/>
<fmt:message
key=
"groupchat.history.settings.legend"
/>
</div>
</div>
...
@@ -187,4 +187,4 @@
...
@@ -187,4 +187,4 @@
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-room-affiliations.jsp
View file @
ed3492a2
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
org.jivesoftware.openfire.muc.MUCRoom,
org.jivesoftware.openfire.muc.MUCRoom,
org.jivesoftware.openfire.muc.NotAllowedException,
org.jivesoftware.openfire.muc.NotAllowedException,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
org.xmpp.packet.IQ"
org.xmpp.packet.IQ"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
%>
%>
...
@@ -250,10 +251,10 @@
...
@@ -250,10 +251,10 @@
<tr>
<tr>
<td>
</td>
<td>
</td>
<td>
<td>
<%=
userDisplay
%>
<%=
StringUtils
.
escapeHTMLTags
(
userDisplay
)
%>
</td>
</td>
<td
width=
"1%"
align=
"center"
>
<td
width=
"1%"
align=
"center"
>
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
user
%>
&delete=true&affiliation=owner"
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
URLEncoder
.
encode
(
user
.
toString
())
%>
&delete=true&affiliation=owner"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
...
@@ -282,10 +283,10 @@
...
@@ -282,10 +283,10 @@
<tr>
<tr>
<td>
</td>
<td>
</td>
<td>
<td>
<%=
userDisplay
%>
<%=
StringUtils
.
escapeHTMLTags
(
userDisplay
)
%>
</td>
</td>
<td
width=
"1%"
align=
"center"
>
<td
width=
"1%"
align=
"center"
>
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
user
%>
&delete=true&affiliation=admin"
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
URLEncoder
.
encode
(
user
.
toString
())
%>
&delete=true&affiliation=admin"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
...
@@ -316,10 +317,10 @@
...
@@ -316,10 +317,10 @@
<tr>
<tr>
<td>
</td>
<td>
</td>
<td>
<td>
<%=
userDisplay
%><%=
nickname
%>
<%=
StringUtils
.
escapeHTMLTags
(
userDisplay
)
%><%=
StringUtils
.
escapeHTMLTags
(
nickname
)
%>
</td>
</td>
<td
width=
"1%"
align=
"center"
>
<td
width=
"1%"
align=
"center"
>
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
user
%>
&delete=true&affiliation=member"
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
URLEncoder
.
encode
(
user
.
toString
())
%>
&delete=true&affiliation=member"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
...
@@ -348,10 +349,10 @@
...
@@ -348,10 +349,10 @@
<tr>
<tr>
<td>
</td>
<td>
</td>
<td>
<td>
<%=
userDisplay
%>
<%=
StringUtils
.
escapeHTMLTags
(
userDisplay
)
%>
</td>
</td>
<td
width=
"1%"
align=
"center"
>
<td
width=
"1%"
align=
"center"
>
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
user
%>
&delete=true&affiliation=outcast"
<a
href=
"muc-room-affiliations.jsp?roomJID=
<%=
URLEncoder
.
encode
(
roomJID
.
toBareJID
(),
"UTF-8"
)
%>
&userJID=
<%=
URLEncoder
.
encode
(
user
.
toString
())
%>
&delete=true&affiliation=outcast"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
onclick=
"return confirm('
<fmt:message
key=
"muc.room.affiliations.confirm_removed"
/>
');"
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
...
...
src/web/muc-room-delete.jsp
View file @
ed3492a2
...
@@ -88,12 +88,12 @@
...
@@ -88,12 +88,12 @@
<p>
<p>
<fmt:message
key=
"muc.room.delete.info"
/>
<fmt:message
key=
"muc.room.delete.info"
/>
<b><a
href=
"muc-room-edit-form.jsp?roomJID=
<%=
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)
%>
"
><%=
room
.
getJID
().
toBareJID
(
)
%></a></b>
<b><a
href=
"muc-room-edit-form.jsp?roomJID=
<%=
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
room
.
getJID
().
toBareJID
()
)
%></a></b>
<fmt:message
key=
"muc.room.delete.detail"
/>
<fmt:message
key=
"muc.room.delete.detail"
/>
</p>
</p>
<form
action=
"muc-room-delete.jsp"
>
<form
action=
"muc-room-delete.jsp"
>
<input
type=
"hidden"
name=
"roomJID"
value=
"
<%=
roomJID
.
toBareJID
(
)
%>
"
>
<input
type=
"hidden"
name=
"roomJID"
value=
"
<%=
StringUtils
.
escapeForXML
(
roomJID
.
toBareJID
()
)
%>
"
>
<fieldset>
<fieldset>
<legend><fmt:message
key=
"muc.room.delete.destructon_title"
/></legend>
<legend><fmt:message
key=
"muc.room.delete.destructon_title"
/></legend>
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
<fmt:message
key=
"muc.room.delete.room_id"
/>
<fmt:message
key=
"muc.room.delete.room_id"
/>
</td>
</td>
<td>
<td>
<%=
room
.
getJID
().
toBareJID
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
room
.
getJID
().
toBareJID
()
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -136,4 +136,4 @@
...
@@ -136,4 +136,4 @@
</form>
</form>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-room-edit-form.jsp
View file @
ed3492a2
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
java.text.DateFormat,
java.text.DateFormat,
java.util.*,
java.util.*,
org.jivesoftware.openfire.muc.MUCRoom,
org.jivesoftware.openfire.muc.MUCRoom,
...
@@ -424,7 +425,7 @@
...
@@ -424,7 +425,7 @@
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td><%=
room
.
getName
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
room
.
getName
()
)
%></td>
<%
if
(
room
.
getOccupantsCount
()
==
0
)
{
%>
<%
if
(
room
.
getOccupantsCount
()
==
0
)
{
%>
<td><%=
room
.
getOccupantsCount
()
%>
/
<%=
room
.
getMaxUsers
()
%></td>
<td><%=
room
.
getOccupantsCount
()
%>
/
<%=
room
.
getMaxUsers
()
%></td>
<%
}
else
{
%>
<%
}
else
{
%>
...
@@ -443,7 +444,7 @@
...
@@ -443,7 +444,7 @@
<%
}
%>
<%
}
%>
<form
action=
"muc-room-edit-form.jsp"
>
<form
action=
"muc-room-edit-form.jsp"
>
<%
if
(!
create
)
{
%>
<%
if
(!
create
)
{
%>
<input
type=
"hidden"
name=
"roomJID"
value=
"
<%=
roomJID
.
toBareJID
(
)
%>
"
>
<input
type=
"hidden"
name=
"roomJID"
value=
"
<%=
StringUtils
.
escapeForXML
(
roomJID
.
toBareJID
()
)
%>
"
>
<%
}
%>
<%
}
%>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<input
type=
"hidden"
name=
"create"
value=
"
<%=
create
%>
"
>
<input
type=
"hidden"
name=
"create"
value=
"
<%=
create
%>
"
>
...
@@ -456,12 +457,12 @@
...
@@ -456,12 +457,12 @@
<%
if
(
create
)
{
%>
<%
if
(
create
)
{
%>
<tr>
<tr>
<td><fmt:message
key=
"muc.room.edit.form.room_id"
/>
:
</td>
<td><fmt:message
key=
"muc.room.edit.form.room_id"
/>
:
</td>
<td><input
type=
"text"
name=
"roomName"
value=
"
<%=
roomName
%>
"
>
<td><input
type=
"text"
name=
"roomName"
value=
"
<%=
StringUtils
.
escapeForXML
(
roomName
)
%>
"
>
<%
if
(
webManager
.
getMultiUserChatManager
().
getMultiUserChatServicesCount
()
>
1
)
{
%>
<%
if
(
webManager
.
getMultiUserChatManager
().
getMultiUserChatServicesCount
()
>
1
)
{
%>
@
<select
name=
"mucName"
>
@
<select
name=
"mucName"
>
<%
for
(
MultiUserChatService
service
:
webManager
.
getMultiUserChatManager
().
getMultiUserChatServices
())
{
%>
<%
for
(
MultiUserChatService
service
:
webManager
.
getMultiUserChatManager
().
getMultiUserChatServices
())
{
%>
<%
if
(
service
.
isHidden
())
continue
;
%>
<%
if
(
service
.
isHidden
())
continue
;
%>
<option
value=
"
<%=
service
.
getServiceDomain
()
%>
"
<%=
service
.
getServiceDomain
().
equals
(
mucName
)
?
" selected='selected'"
:
""
%>><%=
service
.
getServiceDomain
(
)
%></option>
<option
value=
"
<%=
StringUtils
.
escapeForXML
(
service
.
getServiceDomain
())
%>
"
<%=
service
.
getServiceDomain
().
equals
(
mucName
)
?
" selected='selected'"
:
""
%>><%=
StringUtils
.
escapeHTMLTags
(
service
.
getServiceDomain
()
)
%></option>
<%
}
%>
<%
}
%>
</select>
</select>
<%
}
else
{
%>
<%
}
else
{
%>
...
@@ -472,7 +473,7 @@
...
@@ -472,7 +473,7 @@
// Private and hidden, skip it.
// Private and hidden, skip it.
continue
;
continue
;
}
}
out
.
print
(
"<input type='hidden' name='mucName' value='"
+
service
.
getServiceDomain
()+
"'
/
>"
+
service
.
getServiceDomain
(
));
out
.
print
(
"<input type='hidden' name='mucName' value='"
+
StringUtils
.
escapeForXML
(
service
.
getServiceDomain
())+
"'
/
>"
+
StringUtils
.
escapeHTMLTags
(
service
.
getServiceDomain
()
));
break
;
break
;
}
}
%>
%>
...
@@ -482,22 +483,22 @@
...
@@ -482,22 +483,22 @@
<%
}
else
{
%>
<%
}
else
{
%>
<tr>
<tr>
<td><fmt:message
key=
"muc.room.edit.form.service"
/>
:
</td>
<td><fmt:message
key=
"muc.room.edit.form.service"
/>
:
</td>
<td><%=
roomJID
.
getDomain
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
roomJID
.
getDomain
()
)
%></td>
</tr>
</tr>
<%
}
%>
<%
}
%>
<tr>
<tr>
<td><fmt:message
key=
"muc.room.edit.form.room_name"
/>
:
</td>
<td><fmt:message
key=
"muc.room.edit.form.room_name"
/>
:
</td>
<td><input
type=
"text"
name=
"roomconfig_roomname"
value=
"
<%=
(
naturalName
==
null
?
""
:
naturalName
)
%>
"
>
<td><input
type=
"text"
name=
"roomconfig_roomname"
value=
"
<%=
(
naturalName
==
null
?
""
:
StringUtils
.
escapeForXML
(
naturalName
)
)
%>
"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td><fmt:message
key=
"muc.room.edit.form.description"
/>
:
</td>
<td><fmt:message
key=
"muc.room.edit.form.description"
/>
:
</td>
<td><input
name=
"roomconfig_roomdesc"
value=
"
<%=
(
description
==
null
?
""
:
description
)
%>
"
type=
"text"
size=
"40"
>
<td><input
name=
"roomconfig_roomdesc"
value=
"
<%=
(
description
==
null
?
""
:
StringUtils
.
escapeForXML
(
description
)
)
%>
"
type=
"text"
size=
"40"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td><fmt:message
key=
"muc.room.edit.form.topic"
/>
:
</td>
<td><fmt:message
key=
"muc.room.edit.form.topic"
/>
:
</td>
<td><input
name=
"room_topic"
value=
"
<%=
(
roomSubject
==
null
?
""
:
roomSubject
)
%>
"
type=
"text"
size=
"40"
>
<td><input
name=
"room_topic"
value=
"
<%=
(
roomSubject
==
null
?
""
:
StringUtils
.
escapeForXML
(
roomSubject
)
)
%>
"
type=
"text"
size=
"40"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
src/web/muc-room-occupants.jsp
View file @
ed3492a2
...
@@ -20,9 +20,9 @@
...
@@ -20,9 +20,9 @@
<%@ page
import=
"org.jivesoftware.openfire.muc.MUCRole,
<%@ page
import=
"org.jivesoftware.openfire.muc.MUCRole,
org.jivesoftware.openfire.muc.MUCRoom,
org.jivesoftware.openfire.muc.MUCRoom,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
java.net.URLEncoder,
java.net.URLEncoder,
java.text.DateFormat,
java.text.DateFormat"
java.util.List"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
%>
%>
<%@ page
import=
"org.jivesoftware.openfire.XMPPServer"
%>
<%@ page
import=
"org.jivesoftware.openfire.XMPPServer"
%>
...
@@ -50,23 +50,19 @@
...
@@ -50,23 +50,19 @@
// Kick nick specified
// Kick nick specified
if
(
kick
!=
null
)
{
if
(
kick
!=
null
)
{
List
<
MUCRole
>
roles
=
room
.
getOccupantsByNickname
(
nickName
);
MUCRole
role
=
room
.
getOccupant
(
nickName
);
if
(
role
s
!=
null
&&
roles
.
size
()
>
0
)
{
if
(
role
!=
null
)
{
try
{
try
{
for
(
MUCRole
role
:
roles
)
{
room
.
kickOccupant
(
role
.
getUserAddress
(),
XMPPServer
.
getInstance
().
createJID
(
webManager
.
getUser
().
getUsername
(),
null
),
""
);
room
.
kickOccupant
(
role
.
getUserAddress
(),
XMPPServer
.
getInstance
().
createJID
(
webManager
.
getUser
().
getUsername
(),
null
),
""
);
}
// Log the event
// Log the event
webManager
.
logEvent
(
"kicked MUC occupant "
+
nickName
+
" from "
+
roomName
,
null
);
webManager
.
logEvent
(
"kicked MUC occupant "
+
nickName
+
" from "
+
roomName
,
null
);
// Done, so redirect
// Done, so redirect
response
.
sendRedirect
(
"muc-room-occupants.jsp?roomJID="
+
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)+
response
.
sendRedirect
(
"muc-room-occupants.jsp?roomJID="
+
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)+
"&nickName="
+
URLEncoder
.
encode
(
role
.
getNickname
(),
"UTF-8"
)+
"&deletesuccess=true"
);
"&nickName="
+
URLEncoder
.
encode
(
nickName
,
"UTF-8"
)+
"&deletesuccess=true"
);
return
;
return
;
}
}
catch
(
NotAllowedException
e
)
{
catch
(
NotAllowedException
e
)
{
// Done, so redirect
// Done, so redirect
response
.
sendRedirect
(
"muc-room-occupants.jsp?roomJID="
+
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)+
response
.
sendRedirect
(
"muc-room-occupants.jsp?roomJID="
+
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)+
"&nickName="
+
URLEncoder
.
encode
(
role
.
getNickname
(),
"UTF-8"
)+
"&deletefailed=true"
);
"&nickName="
+
URLEncoder
.
encode
(
nickName
,
"UTF-8"
)+
"&deletefailed=true"
);
return
;
return
;
}
}
}
}
...
@@ -96,7 +92,7 @@
...
@@ -96,7 +92,7 @@
<tr><td
class=
"jive-icon"
><img
src=
"images/success-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></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=
"muc.room.occupants.kicked"
>
<fmt:message
key=
"muc.room.occupants.kicked"
>
<fmt:param
value=
"<%=
nickName
%>"
/>
<fmt:param
value=
"<%=
StringUtils.escapeForXML(nickName)
%>"
/>
</fmt:message>
</fmt:message>
</td></tr>
</td></tr>
</tbody>
</tbody>
...
@@ -113,7 +109,7 @@
...
@@ -113,7 +109,7 @@
<tr><td
class=
"jive-icon"
><img
src=
"images/error-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></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"
>
<fmt:message
key=
"muc.room.occupants.kickfailed"
>
<fmt:message
key=
"muc.room.occupants.kickfailed"
>
<fmt:param
value=
"<%=
nickName
%>"
/>
<fmt:param
value=
"<%=
StringUtils.escapeForXML(nickName)
%>"
/>
</fmt:message>
</fmt:message>
</td></tr>
</td></tr>
</tbody>
</tbody>
...
@@ -134,7 +130,7 @@
...
@@ -134,7 +130,7 @@
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td><%=
room
.
getName
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
room
.
getName
()
)
%></td>
<td><%=
room
.
getOccupantsCount
()
%>
/
<%=
room
.
getMaxUsers
()
%></td>
<td><%=
room
.
getOccupantsCount
()
%>
/
<%=
room
.
getMaxUsers
()
%></td>
<td><%=
dateFormatter
.
format
(
room
.
getCreationDate
())
%></td>
<td><%=
dateFormatter
.
format
(
room
.
getCreationDate
())
%></td>
<td><%=
dateFormatter
.
format
(
room
.
getModificationDate
())
%></td>
<td><%=
dateFormatter
.
format
(
room
.
getModificationDate
())
%></td>
...
@@ -162,10 +158,10 @@
...
@@ -162,10 +158,10 @@
<tbody>
<tbody>
<%
for
(
MUCRole
role
:
room
.
getOccupants
())
{
%>
<%
for
(
MUCRole
role
:
room
.
getOccupants
())
{
%>
<tr>
<tr>
<td><%=
role
.
getUserAddress
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
role
.
getUserAddress
().
toString
()
)
%></td>
<td><%=
role
.
getNickname
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
role
.
getNickname
().
toString
()
)
%></td>
<td><%=
role
.
getRole
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
role
.
getRole
().
toString
()
)
%></td>
<td><%=
role
.
getAffiliation
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
role
.
getAffiliation
().
toString
()
)
%></td>
<td><a
href=
"muc-room-occupants.jsp?roomJID=
<%=
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)
%>
&nickName=
<%=
URLEncoder
.
encode
(
role
.
getNickname
(),
"UTF-8"
)
%>
&kick=1"
title=
"
<fmt:message
key=
"muc.room.occupants.kick"
/>
"
><img
src=
"images/delete-16x16.gif"
alt=
"
<fmt:message
key=
"muc.room.occupants.kick"
/>
"
border=
"0"
width=
"16"
height=
"16"
/></a></td>
<td><a
href=
"muc-room-occupants.jsp?roomJID=
<%=
URLEncoder
.
encode
(
room
.
getJID
().
toBareJID
(),
"UTF-8"
)
%>
&nickName=
<%=
URLEncoder
.
encode
(
role
.
getNickname
(),
"UTF-8"
)
%>
&kick=1"
title=
"
<fmt:message
key=
"muc.room.occupants.kick"
/>
"
><img
src=
"images/delete-16x16.gif"
alt=
"
<fmt:message
key=
"muc.room.occupants.kick"
/>
"
border=
"0"
width=
"16"
height=
"16"
/></a></td>
</tr>
</tr>
<%
}
%>
<%
}
%>
...
...
src/web/muc-room-summary.jsp
View file @
ed3492a2
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<p>
<p>
<fmt:message
key=
"muc.room.summary.info"
/>
<fmt:message
key=
"muc.room.summary.info"
/>
<a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucService
.
getServiceName
(),
"UTF-8"
)
%>
"
><%=
mucService
.
getServiceDomain
(
)
%></a>
<a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucService
.
getServiceName
(),
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
mucService
.
getServiceDomain
()
)
%></a>
<fmt:message
key=
"muc.room.summary.info2"
/>
<fmt:message
key=
"muc.room.summary.info2"
/>
</p>
</p>
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
continue
;
continue
;
}
}
%>
%>
<option
value=
"
<%=
service
.
getServiceName
()
%>
"
<%=
mucService
.
getServiceName
().
equals
(
service
.
getServiceName
())
?
" selected='selected'"
:
""
%>><%=
service
.
getServiceDomain
(
)
%></option>
<option
value=
"
<%=
StringUtils
.
escapeForXML
(
service
.
getServiceName
())
%>
"
<%=
mucService
.
getServiceName
().
equals
(
service
.
getServiceName
())
?
" selected='selected'"
:
""
%>><%=
StringUtils
.
escapeHTMLTags
(
service
.
getServiceDomain
()
)
%></option>
<%
}
%>
<%
}
%>
</select>
</select>
<%
}
%>
<%
}
%>
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
String
sep
=
((
i
+
1
)<
numPages
)
?
" "
:
""
;
String
sep
=
((
i
+
1
)<
numPages
)
?
" "
:
""
;
boolean
isCurrent
=
(
i
+
1
)
==
curPage
;
boolean
isCurrent
=
(
i
+
1
)
==
curPage
;
%>
%>
<a
href=
"muc-room-summary.jsp?mucname=
<%=
mucname
==
null
?
""
:
mucname
%>
&start=
<%=
(
i
*
range
)
%>
"
<a
href=
"muc-room-summary.jsp?mucname=
<%=
mucname
==
null
?
""
:
URLEncoder
.
encode
(
mucname
)
%>
&start=
<%=
(
i
*
range
)
%>
"
class=
"
<%=
((
isCurrent
)
?
"jive-current"
:
""
)
%>
"
class=
"
<%=
((
isCurrent
)
?
"jive-current"
:
""
)
%>
"
><%=
(
i
+
1
)
%></a><%=
sep
%>
><%=
(
i
+
1
)
%></a><%=
sep
%>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
String
sep
=
((
i
+
1
)<
numPages
)
?
" "
:
""
;
String
sep
=
((
i
+
1
)<
numPages
)
?
" "
:
""
;
boolean
isCurrent
=
(
i
+
1
)
==
curPage
;
boolean
isCurrent
=
(
i
+
1
)
==
curPage
;
%>
%>
<a
href=
"muc-room-summary.jsp?mucname=
<%=
mucname
==
null
?
""
:
mucname
%>
&start=
<%=
(
i
*
range
)
%>
"
<a
href=
"muc-room-summary.jsp?mucname=
<%=
mucname
==
null
?
""
:
URLEncoder
.
encode
(
mucname
)
%>
&start=
<%=
(
i
*
range
)
%>
"
class=
"
<%=
((
isCurrent
)
?
"jive-current"
:
""
)
%>
"
class=
"
<%=
((
isCurrent
)
?
"jive-current"
:
""
)
%>
"
><%=
(
i
+
1
)
%></a><%=
sep
%>
><%=
(
i
+
1
)
%></a><%=
sep
%>
...
@@ -259,4 +259,4 @@
...
@@ -259,4 +259,4 @@
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-service-delete.jsp
View file @
ed3492a2
...
@@ -73,12 +73,12 @@
...
@@ -73,12 +73,12 @@
<p>
<p>
<fmt:message
key=
"muc.service.delete.info"
/>
<fmt:message
key=
"muc.service.delete.info"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
mucname
%></a></b>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%></a></b>
<fmt:message
key=
"muc.service.delete.detail"
/>
<fmt:message
key=
"muc.service.delete.detail"
/>
</p>
</p>
<form
action=
"muc-service-delete.jsp"
>
<form
action=
"muc-service-delete.jsp"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
>
<fieldset>
<fieldset>
<legend><fmt:message
key=
"muc.service.delete.destructon_title"
/></legend>
<legend><fmt:message
key=
"muc.service.delete.destructon_title"
/></legend>
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
<fmt:message
key=
"muc.service.delete.service_name"
/>
<fmt:message
key=
"muc.service.delete.service_name"
/>
</td>
</td>
<td>
<td>
<%=
mucname
%>
<%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -113,4 +113,4 @@
...
@@ -113,4 +113,4 @@
</form>
</form>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-service-edit-form.jsp
View file @
ed3492a2
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
- limitations under the License.
- limitations under the License.
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.StringUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.AlreadyExistsException,
org.jivesoftware.util.AlreadyExistsException,
java.util.*"
java.util.*"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
...
@@ -147,7 +148,7 @@
...
@@ -147,7 +148,7 @@
<form
action=
"muc-service-edit-form.jsp"
method=
"post"
>
<form
action=
"muc-service-edit-form.jsp"
method=
"post"
>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<%
if
(!
create
)
{
%>
<%
if
(!
create
)
{
%>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
>
<%
}
else
{
%>
<%
}
else
{
%>
<input
type=
"hidden"
name=
"create"
value=
"true"
/>
<input
type=
"hidden"
name=
"create"
value=
"true"
/>
<%
}
%>
<%
}
%>
...
@@ -163,7 +164,7 @@
...
@@ -163,7 +164,7 @@
</td>
</td>
<td>
<td>
<%
if
(
create
)
{
%>
<%
if
(
create
)
{
%>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"mucname"
value=
"
<%=
(
mucname
!=
null
?
mucname
:
""
)
%>
"
>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"mucname"
value=
"
<%=
(
mucname
!=
null
?
StringUtils
.
escapeForXML
(
mucname
)
:
""
)
%>
"
>
<%
if
(
errors
.
get
(
"mucname"
)
!=
null
)
{
%>
<%
if
(
errors
.
get
(
"mucname"
)
!=
null
)
{
%>
...
@@ -173,7 +174,7 @@
...
@@ -173,7 +174,7 @@
<%
}
%>
<%
}
%>
<%
}
else
{
%>
<%
}
else
{
%>
<%=
mucname
%>
<%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%>
<%
}
%>
<%
}
%>
</td>
</td>
</tr>
</tr>
...
@@ -182,7 +183,7 @@
...
@@ -182,7 +183,7 @@
<fmt:message
key=
"groupchat.service.properties.label_service_description"
/>
<fmt:message
key=
"groupchat.service.properties.label_service_description"
/>
</td>
</td>
<td>
<td>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"mucdesc"
value=
"
<%=
(
mucdesc
!=
null
?
mucdesc
:
""
)
%>
"
>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"mucdesc"
value=
"
<%=
(
mucdesc
!=
null
?
StringUtils
.
escapeForXML
(
mucdesc
)
:
""
)
%>
"
>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -193,4 +194,4 @@
...
@@ -193,4 +194,4 @@
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-service-summary.jsp
View file @
ed3492a2
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.LocaleUtils,
<%@ page
import=
"org.jivesoftware.util.LocaleUtils,
org.jivesoftware.util.ParamUtils"
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils"
%><%@ page
import=
"org.xmpp.packet.JID"
%>
%><%@ page
import=
"org.xmpp.packet.JID"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"org.jivesoftware.openfire.muc.MultiUserChatService"
%>
<%@ page
import=
"org.jivesoftware.openfire.muc.MultiUserChatService"
%>
...
@@ -196,7 +197,7 @@
...
@@ -196,7 +197,7 @@
<%=
i
%>
<%=
i
%>
</td>
</td>
<td
width=
"23%"
>
<td
width=
"23%"
>
<a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
service
.
getServiceName
(),
"UTF-8"
)
%>
"
><%=
JID
.
unescapeNode
(
service
.
getServiceName
(
))
%></a>
<a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
service
.
getServiceName
(),
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
service
.
getServiceName
()
))
%></a>
</td>
</td>
<td
width=
"33%"
>
<td
width=
"33%"
>
<%=
service
.
getDescription
()
%>
<%=
service
.
getDescription
()
%>
...
...
src/web/muc-sysadmins.jsp
View file @
ed3492a2
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<p>
<p>
<fmt:message
key=
"groupchat.admins.introduction"
/>
<fmt:message
key=
"groupchat.admins.introduction"
/>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
mucname
%></a></b>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%></a></b>
</p>
</p>
<%
if
(
"true"
.
equals
(
request
.
getParameter
(
"deletesuccess"
)))
{
%>
<%
if
(
"true"
.
equals
(
request
.
getParameter
(
"deletesuccess"
)))
{
%>
...
@@ -135,13 +135,13 @@
...
@@ -135,13 +135,13 @@
<!-- BEGIN 'Administrators' -->
<!-- BEGIN 'Administrators' -->
<form
action=
"muc-sysadmins.jsp?add"
method=
"post"
>
<form
action=
"muc-sysadmins.jsp?add"
method=
"post"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
/>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
/>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"groupchat.admins.legend"
/>
<fmt:message
key=
"groupchat.admins.legend"
/>
</div>
</div>
<div
class=
"jive-contentBox"
>
<div
class=
"jive-contentBox"
>
<label
for=
"userJIDtf"
><fmt:message
key=
"groupchat.admins.label_add_admin"
/></label>
<label
for=
"userJIDtf"
><fmt:message
key=
"groupchat.admins.label_add_admin"
/></label>
<input
type=
"text"
name=
"userJID"
size=
"30"
maxlength=
"100"
value=
"
<%=
(
userJID
!=
null
?
userJID
:
""
)
%>
"
<input
type=
"text"
name=
"userJID"
size=
"30"
maxlength=
"100"
value=
"
<%=
(
userJID
!=
null
?
StringUtils
.
escapeForXML
(
userJID
)
:
""
)
%>
"
id=
"userJIDtf"
>
id=
"userJIDtf"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"groupchat.admins.add"
/>
"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"groupchat.admins.add"
/>
"
>
<br><br>
<br><br>
...
@@ -171,10 +171,10 @@
...
@@ -171,10 +171,10 @@
%>
%>
<tr>
<tr>
<td
width=
"99%"
>
<td
width=
"99%"
>
<%=
userDisplay
%>
<%=
StringUtils
.
escapeHTMLTags
(
userDisplay
)
%>
</td>
</td>
<td
width=
"1%"
align=
"center"
>
<td
width=
"1%"
align=
"center"
>
<a
href=
"muc-sysadmins.jsp?userJID=
<%=
user
.
toString
(
)
%>
&delete=true&mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
<a
href=
"muc-sysadmins.jsp?userJID=
<%=
URLEncoder
.
encode
(
user
.
toString
()
)
%>
&delete=true&mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
title=
"
<fmt:message
key=
"groupchat.admins.dialog.title"
/>
"
title=
"
<fmt:message
key=
"groupchat.admins.dialog.title"
/>
"
onclick=
"return confirm('
<fmt:message
key=
"groupchat.admins.dialog.text"
/>
');"
onclick=
"return confirm('
<fmt:message
key=
"groupchat.admins.dialog.text"
/>
');"
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
...
@@ -191,4 +191,4 @@
...
@@ -191,4 +191,4 @@
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/muc-tasks.jsp
View file @
ed3492a2
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
<p>
<p>
<fmt:message
key=
"muc.tasks.info"
/>
<fmt:message
key=
"muc.tasks.info"
/>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
mucname
%></a></b>
<fmt:message
key=
"groupchat.service.settings_affect"
/>
<b><a
href=
"muc-service-edit-form.jsp?mucname=
<%=
URLEncoder
.
encode
(
mucname
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
mucname
)
%></a></b>
</p>
</p>
<%
if
(
kickSettingSuccess
||
logSettingSuccess
)
{
%>
<%
if
(
kickSettingSuccess
||
logSettingSuccess
)
{
%>
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
<!-- BEGIN 'Idle User Settings' -->
<!-- BEGIN 'Idle User Settings' -->
<form
action=
"muc-tasks.jsp?kickSettings"
method=
"post"
>
<form
action=
"muc-tasks.jsp?kickSettings"
method=
"post"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
/>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
/>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"muc.tasks.user_setting"
/>
<fmt:message
key=
"muc.tasks.user_setting"
/>
</div>
</div>
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
<!-- BEGIN 'Conversation Logging' -->
<!-- BEGIN 'Conversation Logging' -->
<form
action=
"muc-tasks.jsp?logSettings"
method=
"post"
>
<form
action=
"muc-tasks.jsp?logSettings"
method=
"post"
>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
mucname
%>
"
/>
<input
type=
"hidden"
name=
"mucname"
value=
"
<%=
StringUtils
.
escapeForXML
(
mucname
)
%>
"
/>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"muc.tasks.conversation.logging"
/>
<fmt:message
key=
"muc.tasks.conversation.logging"
/>
</div>
</div>
...
@@ -261,4 +261,4 @@
...
@@ -261,4 +261,4 @@
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/security-audit-viewer.jsp
View file @
ed3492a2
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
</select>
</select>
<strong><fmt:message
key=
"security.audit.viewer.username"
/></strong>
:
<strong><fmt:message
key=
"security.audit.viewer.username"
/></strong>
:
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"username"
value=
"
<%=
username
!=
null
?
username
:
""
%>
"
/>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"username"
value=
"
<%=
username
!=
null
?
StringUtils
.
escapeForXML
(
username
)
:
""
%>
"
/>
<br/>
<br/>
<strong><fmt:message
key=
"security.audit.viewer.date_range"
/></strong>
:
<strong><fmt:message
key=
"security.audit.viewer.date_range"
/></strong>
:
<fmt:message
key=
"security.audit.viewer.date_range.start"
/>
:
<fmt:message
key=
"security.audit.viewer.date_range.start"
/>
:
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<%=
event
.
getMsgID
()
%>
<%=
event
.
getMsgID
()
%>
</td>
</td>
<td
width=
"10%"
>
<td
width=
"10%"
>
<a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
event
.
getUsername
(),
"UTF-8"
)
%>
"
><%=
JID
.
unescapeNode
(
event
.
getUsername
(
))
%></a>
<a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
event
.
getUsername
(),
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
event
.
getUsername
()
))
%></a>
</td>
</td>
<td
width=
"15%"
>
<td
width=
"15%"
>
<%=
event
.
getNode
()
%>
<%=
event
.
getNode
()
%>
...
...
src/web/server-properties.jsp
View file @
ed3492a2
...
@@ -298,7 +298,7 @@ function dodelete(propName) {
...
@@ -298,7 +298,7 @@ function dodelete(propName) {
<td>
<td>
<div
class=
"hidebox"
style=
"width:200px;"
>
<div
class=
"hidebox"
style=
"width:200px;"
>
<span
title=
"
<%=
StringUtils
.
escape
HTMLTags
(
n
)
%>
"
>
<span
title=
"
<%=
StringUtils
.
escape
ForXML
(
n
)
%>
"
>
<%=
StringUtils
.
escapeHTMLTags
(
n
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
n
)
%>
</span>
</span>
</div>
</div>
...
@@ -368,12 +368,12 @@ function dodelete(propName) {
...
@@ -368,12 +368,12 @@ function dodelete(propName) {
<td>
<td>
<%
if
(
edit
)
{
%>
<%
if
(
edit
)
{
%>
<input
type=
"hidden"
name=
"propName"
value=
"
<%=
StringUtils
.
escape
HTMLTags
(
propName
)
%>
"
>
<input
type=
"hidden"
name=
"propName"
value=
"
<%=
StringUtils
.
escape
ForXML
(
propName
)
%>
"
>
<%=
StringUtils
.
escapeHTMLTags
(
propName
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
propName
)
%>
<%
}
else
{
%>
<%
}
else
{
%>
<input
type=
"text"
name=
"propName"
size=
"40"
maxlength=
"100"
value=
"
<%=
(
propName
!=
null
?
StringUtils
.
escape
HTMLTags
(
propName
)
:
""
)
%>
"
>
<input
type=
"text"
name=
"propName"
size=
"40"
maxlength=
"100"
value=
"
<%=
(
propName
!=
null
?
StringUtils
.
escape
ForXML
(
propName
)
:
""
)
%>
"
>
<%
if
(
errors
.
containsKey
(
"propName"
))
{
%>
<%
if
(
errors
.
containsKey
(
"propName"
))
{
%>
...
@@ -432,4 +432,4 @@ function dodelete(propName) {
...
@@ -432,4 +432,4 @@ function dodelete(propName) {
<br><br><br><br><br><br>
<br><br><br><br><br><br>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/server-session-row.jspf
View file @
ed3492a2
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<%@ page import="org.jivesoftware.openfire.session.IncomingServerSession,
<%@ page import="org.jivesoftware.openfire.session.IncomingServerSession,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.StringUtils,
java.net.URLEncoder,
java.net.URLEncoder,
java.util.Calendar,
java.util.Calendar,
java.util.Date"%>
java.util.Date"%>
...
@@ -38,8 +39,8 @@
...
@@ -38,8 +39,8 @@
<td width="47%" nowrap>
<td width="47%" nowrap>
<table cellpadding="0" cellspacing="0" border="0">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<tr>
<td width="1%" ><img src="getFavicon?host=<%=
host
%>" width="16" height="16" alt=""></td>
<td width="1%" ><img src="getFavicon?host=<%=
URLEncoder.encode(host, "UTF-8")
%>" width="16" height="16" alt=""></td>
<td><a href="server-session-details.jsp?hostname=<%= URLEncoder.encode(host, "UTF-8") %>" title="<fmt:message key='session.row.cliked' />"><%=
host
%></a></td>
<td><a href="server-session-details.jsp?hostname=<%= URLEncoder.encode(host, "UTF-8") %>" title="<fmt:message key='session.row.cliked' />"><%=
StringUtils.escapeHTMLTags(host)
%></a></td>
</tr>
</tr>
</table>
</table>
</td>
</td>
...
@@ -124,4 +125,4 @@
...
@@ -124,4 +125,4 @@
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"></a>
</td>
</td>
</tr>
</tr>
\ No newline at end of file
src/web/session-details.jsp
View file @
ed3492a2
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
org.jivesoftware.openfire.user.UserManager,
org.jivesoftware.openfire.user.UserManager,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.JiveGlobals,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
java.text.NumberFormat,
java.text.NumberFormat,
java.util.Collection"
java.util.Collection"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
...
@@ -114,7 +115,7 @@
...
@@ -114,7 +115,7 @@
<fmt:message
key=
"session.details.session_id"
/>
<fmt:message
key=
"session.details.session_id"
/>
</td>
</td>
<td>
<td>
<%=
StringUtils
.
escape
ForXML
(
address
.
toString
())
%>
<%=
StringUtils
.
escape
HTMLTags
(
address
.
toString
())
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -125,11 +126,11 @@
...
@@ -125,11 +126,11 @@
<%
String
n
=
address
.
getNode
();
%>
<%
String
n
=
address
.
getNode
();
%>
<%
if
(
isAnonymous
)
{
%>
<%
if
(
isAnonymous
)
{
%>
<i>
<fmt:message
key=
"session.details.anonymous"
/>
</i>
-
<%=
address
.
getResource
()==
null
?
""
:
StringUtils
.
escape
ForXML
(
address
.
getResource
())
%>
<i>
<fmt:message
key=
"session.details.anonymous"
/>
</i>
-
<%=
address
.
getResource
()==
null
?
""
:
StringUtils
.
escape
HTMLTags
(
address
.
getResource
())
%>
<%
}
else
{
%>
<%
}
else
{
%>
<a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
n
,
"UTF-8"
)
%>
"
><%=
JID
.
unescapeNode
(
n
)
%></a>
<a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
n
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
n
)
)
%></a>
-
<%=
address
.
getResource
()==
null
?
""
:
StringUtils
.
escapeForXML
(
address
.
getResource
())
%>
-
<%=
address
.
getResource
()==
null
?
""
:
StringUtils
.
escapeForXML
(
address
.
getResource
())
%>
<%
}
%>
<%
}
%>
...
@@ -190,7 +191,7 @@
...
@@ -190,7 +191,7 @@
Presence
.
Show
show
=
currentSess
.
getPresence
().
getShow
();
Presence
.
Show
show
=
currentSess
.
getPresence
().
getShow
();
String
statusTxt
=
currentSess
.
getPresence
().
getStatus
();
String
statusTxt
=
currentSess
.
getPresence
().
getStatus
();
if
(
statusTxt
!=
null
)
{
if
(
statusTxt
!=
null
)
{
statusTxt
=
" -- "
+
StringUtils
.
escape
ForXML
(
statusTxt
);
statusTxt
=
" -- "
+
StringUtils
.
escape
HTMLTags
(
statusTxt
);
}
}
else
{
else
{
statusTxt
=
""
;
statusTxt
=
""
;
...
@@ -360,4 +361,4 @@
...
@@ -360,4 +361,4 @@
</form>
</form>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/session-row.jspf
View file @
ed3492a2
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
><%= ((!sessionManager.isAnonymousRoute(sess.getUsername())) ? JID.unescapeNode(name): "<i>"+LocaleUtils.getLocalizedString("session.details.anonymous")+"</i>") %></a>
><%= ((!sessionManager.isAnonymousRoute(sess.getUsername())) ? JID.unescapeNode(name): "<i>"+LocaleUtils.getLocalizedString("session.details.anonymous")+"</i>") %></a>
</td>
</td>
<td width="15%" nowrap>
<td width="15%" nowrap>
<%= StringUtils.escape
ForXML
(sess.getAddress().getResource()) %>
<%= StringUtils.escape
HTMLTags
(sess.getAddress().getResource()) %>
</td>
</td>
<td nowrap>
<td nowrap>
<% if (sess instanceof LocalClientSession) { %>
<% if (sess instanceof LocalClientSession) { %>
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
<td width="46%">
<td width="46%">
<% if (_stat != null) { %>
<% if (_stat != null) { %>
<%=
_stat
%>
<%=
StringUtils.escapeHTMLTags(_stat)
%>
<% } else { %>
<% } else { %>
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
<td width="46%">
<td width="46%">
<% if (_stat != null) { %>
<% if (_stat != null) { %>
<%=
sess.getPresence().getStatus(
) %>
<%=
StringUtils.escapeHTMLTags(sess.getPresence().getStatus()
) %>
<% } else { %>
<% } else { %>
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
<td width="46%">
<td width="46%">
<% if (_stat != null) { %>
<% if (_stat != null) { %>
<%=
sess.getPresence().getStatus(
) %>
<%=
StringUtils.escapeHTMLTags(sess.getPresence().getStatus()
) %>
<% } else { %>
<% } else { %>
...
@@ -177,4 +177,4 @@
...
@@ -177,4 +177,4 @@
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" alt=""></a>
><img src="images/delete-16x16.gif" width="16" height="16" border="0" alt=""></a>
</td>
</td>
</tr>
</tr>
\ No newline at end of file
src/web/session-summary.jsp
View file @
ed3492a2
...
@@ -290,4 +290,4 @@
...
@@ -290,4 +290,4 @@
</p>
</p>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/ssl-certificates.jsp
View file @
ed3492a2
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<%@ page
import=
"java.util.HashMap"
%>
<%@ page
import=
"java.util.HashMap"
%>
<%@ page
import=
"java.util.LinkedHashMap"
%>
<%@ page
import=
"java.util.LinkedHashMap"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"org.jivesoftware.openfire.container.PluginManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.container.PluginManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.container.AdminConsolePlugin"
%>
<%@ page
import=
"org.jivesoftware.openfire.container.AdminConsolePlugin"
%>
<%@ page
import=
"java.io.IOException"
%>
<%@ page
import=
"java.io.IOException"
%>
...
@@ -356,7 +357,7 @@
...
@@ -356,7 +357,7 @@
<tr
valign=
"top"
>
<tr
valign=
"top"
>
<td
id=
"rs
<%=
i
%>
"
width=
"1"
rowspan=
"1"
><%=
(
i
)
%>
.
</td>
<td
id=
"rs
<%=
i
%>
"
width=
"1"
rowspan=
"1"
><%=
(
i
)
%>
.
</td>
<td>
<td>
<%=
identities
.
toString
()
%>
(
<%=
a
%>
)
<%=
StringUtils
.
escapeHTMLTags
(
identities
.
toString
())
%>
(
<%=
StringUtils
.
escapeHTMLTags
(
a
)
%>
)
</td>
</td>
<td>
<td>
<%
boolean
expired
=
c
.
getNotAfter
().
before
(
new
Date
());
<%
boolean
expired
=
c
.
getNotAfter
().
before
(
new
Date
());
...
@@ -388,7 +389,7 @@
...
@@ -388,7 +389,7 @@
<%=
c
.
getPublicKey
().
getAlgorithm
()
%>
<%=
c
.
getPublicKey
().
getAlgorithm
()
%>
</td>
</td>
<td
width=
"1"
align=
"center"
>
<td
width=
"1"
align=
"center"
>
<a
href=
"ssl-certificates.jsp?alias=
<%=
a
%>
&type=server&delete=true"
<a
href=
"ssl-certificates.jsp?alias=
<%=
URLEncoder
.
encode
(
a
)
%>
&type=server&delete=true"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
title=
"
<fmt:message
key=
"global.click_delete"
/>
"
onclick=
"return confirm('
<fmt:message
key=
"ssl.certificates.confirm_delete"
/>
');"
onclick=
"return confirm('
<fmt:message
key=
"ssl.certificates.confirm_delete"
/>
');"
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
><img
src=
"images/delete-16x16.gif"
width=
"16"
height=
"16"
border=
"0"
alt=
""
></a>
...
@@ -397,7 +398,7 @@
...
@@ -397,7 +398,7 @@
<%
if
(
isSigningPending
)
{
%>
<%
if
(
isSigningPending
)
{
%>
<form
action=
"ssl-certificates.jsp"
method=
"post"
>
<form
action=
"ssl-certificates.jsp"
method=
"post"
>
<input
name=
"importReply"
type=
"hidden"
value=
"true"
>
<input
name=
"importReply"
type=
"hidden"
value=
"true"
>
<input
name=
"alias"
type=
"hidden"
value=
"
<%=
a
%>
"
>
<input
name=
"alias"
type=
"hidden"
value=
"
<%=
StringUtils
.
escapeForXML
(
a
)
%>
"
>
<tr
id=
"pk
<%=
i
%>
"
>
<tr
id=
"pk
<%=
i
%>
"
>
<td
colspan=
"6"
>
<td
colspan=
"6"
>
<span
class=
"jive-description"
>
<span
class=
"jive-description"
>
...
...
src/web/ssl-signing-request.jsp
View file @
ed3492a2
<%@ page
import=
"org.jivesoftware.util.CertificateManager"
%>
<%@ page
import=
"org.jivesoftware.util.CertificateManager"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"org.jivesoftware.openfire.XMPPServer"
%>
<%@ page
import=
"org.jivesoftware.openfire.XMPPServer"
%>
<%@ page
import=
"org.jivesoftware.openfire.net.SSLConfig"
%>
<%@ page
import=
"org.jivesoftware.openfire.net.SSLConfig"
%>
<%@ page
import=
"java.security.KeyStore"
%>
<%@ page
import=
"java.security.KeyStore"
%>
...
@@ -204,42 +205,42 @@
...
@@ -204,42 +205,42 @@
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"name"
size=
"50"
maxlength=
"75"
<input
type=
"text"
name=
"name"
size=
"50"
maxlength=
"75"
value=
"
<%=
((
name
!=
null
)
?
name
:
""
)
%>
"
id=
"namef"
>
value=
"
<%=
((
name
!=
null
)
?
StringUtils
.
escapeForXML
(
name
)
:
""
)
%>
"
id=
"namef"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<label
for=
"ouf"
><fmt:message
key=
"ssl.signing-request.organizational_unit"
/>
:
</label></td>
<label
for=
"ouf"
><fmt:message
key=
"ssl.signing-request.organizational_unit"
/>
:
</label></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"ou"
size=
"50"
maxlength=
"75"
value=
"
<%=
((
organizationalUnit
!=
null
)
?
organizationalUnit
:
""
)
%>
"
id=
"ouf"
>
<input
type=
"text"
name=
"ou"
size=
"50"
maxlength=
"75"
value=
"
<%=
((
organizationalUnit
!=
null
)
?
StringUtils
.
escapeForXML
(
organizationalUnit
)
:
""
)
%>
"
id=
"ouf"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<label
for=
"of"
><fmt:message
key=
"ssl.signing-request.organization"
/>
:
</label></td>
<label
for=
"of"
><fmt:message
key=
"ssl.signing-request.organization"
/>
:
</label></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"o"
size=
"50"
maxlength=
"75"
value=
"
<%=
((
organization
!=
null
)
?
organization
:
""
)
%>
"
id=
"of"
>
<input
type=
"text"
name=
"o"
size=
"50"
maxlength=
"75"
value=
"
<%=
((
organization
!=
null
)
?
StringUtils
.
escapeForXML
(
organization
)
:
""
)
%>
"
id=
"of"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<label
for=
"cityf"
><fmt:message
key=
"ssl.signing-request.city"
/>
:
</label></td>
<label
for=
"cityf"
><fmt:message
key=
"ssl.signing-request.city"
/>
:
</label></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"city"
size=
"50"
maxlength=
"75"
value=
"
<%=
((
city
!=
null
)
?
city
:
""
)
%>
"
id=
"cityf"
>
<input
type=
"text"
name=
"city"
size=
"50"
maxlength=
"75"
value=
"
<%=
((
city
!=
null
)
?
StringUtils
.
escapeForXML
(
city
)
:
""
)
%>
"
id=
"cityf"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<label
for=
"statef"
><fmt:message
key=
"ssl.signing-request.state"
/>
:
</label></td>
<label
for=
"statef"
><fmt:message
key=
"ssl.signing-request.state"
/>
:
</label></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"state"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
state
!=
null
)
?
state
:
""
)
%>
"
id=
"statef"
>
<input
type=
"text"
name=
"state"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
state
!=
null
)
?
StringUtils
.
escapeForXML
(
state
)
:
""
)
%>
"
id=
"statef"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<label
for=
"countryf"
><fmt:message
key=
"ssl.signing-request.country"
/>
:
</label></td>
<label
for=
"countryf"
><fmt:message
key=
"ssl.signing-request.country"
/>
:
</label></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"country"
size=
"2"
maxlength=
"2"
value=
"
<%=
((
countryCode
!=
null
)
?
countryCode
:
""
)
%>
"
id=
"countryf"
>
<input
type=
"text"
name=
"country"
size=
"2"
maxlength=
"2"
value=
"
<%=
((
countryCode
!=
null
)
?
StringUtils
.
escapeForXML
(
countryCode
)
:
""
)
%>
"
id=
"countryf"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -254,4 +255,4 @@
...
@@ -254,4 +255,4 @@
</form>
</form>
<!-- END 'Issuer information form' -->
<!-- END 'Issuer information form' -->
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/system-cache.jsp
View file @
ed3492a2
<%@ page
import=
"org.jivesoftware.util.cache.Cache"
%>
<%@ page
import=
"org.jivesoftware.util.cache.Cache"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"java.text.DecimalFormat"
%>
<%@ page
import=
"java.text.DecimalFormat"
%>
<%--
<%--
- $RCSfile$
- $RCSfile$
...
@@ -193,7 +194,7 @@
...
@@ -193,7 +194,7 @@
<table
cellpadding=
"0"
cellspacing=
"0"
border=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
border=
"0"
>
<tr>
<tr>
<td
class=
"icon"
><img
src=
"images/cache-16x16.gif"
width=
"16"
height=
"16"
alt=
""
border=
"0"
></td>
<td
class=
"icon"
><img
src=
"images/cache-16x16.gif"
width=
"16"
height=
"16"
alt=
""
border=
"0"
></td>
<td><%=
cache
.
getName
(
)
%></td>
<td><%=
StringUtils
.
escapeHTMLTags
(
cache
.
getName
()
)
%></td>
</tr>
</tr>
</table>
</table>
</td>
</td>
...
...
src/web/system-clustering.jsp
View file @
ed3492a2
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
<%@ page
import=
"java.util.Collection"
%>
<%@ page
import=
"java.util.Collection"
%>
<%@ page
import=
"java.util.Date"
%>
<%@ page
import=
"java.util.Date"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"org.jivesoftware.util.Base64"
%>
<%@ page
import=
"org.jivesoftware.util.Base64"
%>
<jsp:useBean
id=
"webManager"
class=
"org.jivesoftware.util.WebManager"
/>
<jsp:useBean
id=
"webManager"
class=
"org.jivesoftware.util.WebManager"
/>
...
@@ -282,12 +283,12 @@
...
@@ -282,12 +283,12 @@
%>
%>
<tr
class=
"
<%=
(
isLocalMember
?
"local"
:
""
)
%>
"
valign=
"middle"
>
<tr
class=
"
<%=
(
isLocalMember
?
"local"
:
""
)
%>
"
valign=
"middle"
>
<td
align=
"center"
width=
"1%"
>
<td
align=
"center"
width=
"1%"
>
<a
href=
"plugins/
<%=
CacheFactory
.
getPluginName
()
%>
/system-clustering-node.jsp?UID=
<%=
nodeID
%>
"
<a
href=
"plugins/
<%=
CacheFactory
.
getPluginName
()
%>
/system-clustering-node.jsp?UID=
<%=
URLEncoder
.
encode
(
nodeID
)
%>
"
title=
"Click for more details"
title=
"Click for more details"
><img
src=
"images/server-network-24x24.gif"
width=
"24"
height=
"24"
border=
"0"
alt=
""
></a>
><img
src=
"images/server-network-24x24.gif"
width=
"24"
height=
"24"
border=
"0"
alt=
""
></a>
</td>
</td>
<td
class=
"jive-description"
nowrap
width=
"1%"
valign=
"middle"
>
<td
class=
"jive-description"
nowrap
width=
"1%"
valign=
"middle"
>
<a
href=
"plugins/
<%=
CacheFactory
.
getPluginName
()
%>
/system-clustering-node.jsp?UID=
<%=
nodeID
%>
"
>
<a
href=
"plugins/
<%=
CacheFactory
.
getPluginName
()
%>
/system-clustering-node.jsp?UID=
<%=
URLEncoder
.
encode
(
nodeID
)
%>
"
>
<%
if
(
isLocalMember
)
{
%>
<%
if
(
isLocalMember
)
{
%>
<b><%=
nodeInfo
.
getHostName
()
%></b>
<b><%=
nodeInfo
.
getHostName
()
%></b>
<%
}
else
{
%>
<%
}
else
{
%>
...
...
src/web/system-email.jsp
View file @
ed3492a2
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
<fmt:message
key=
"system.email.mail_host"
/>
:
<fmt:message
key=
"system.email.mail_host"
/>
:
</td>
</td>
<td
nowrap
>
<td
nowrap
>
<input
type=
"text"
name=
"host"
value=
"
<%=
(
host
!=
null
)?
host
:
""
%>
"
size=
"40"
maxlength=
"150"
>
<input
type=
"text"
name=
"host"
value=
"
<%=
(
host
!=
null
)?
StringUtils
.
escapeForXML
(
host
)
:
""
%>
"
size=
"40"
maxlength=
"150"
>
</td>
</td>
</tr>
</tr>
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
<fmt:message
key=
"system.email.server_username"
/>
:
<fmt:message
key=
"system.email.server_username"
/>
:
</td>
</td>
<td
nowrap
>
<td
nowrap
>
<input
type=
"text"
name=
"server_username"
value=
"
<%=
(
username
!=
null
)
?
username
:
""
%>
"
size=
"40"
maxlength=
"150"
>
<input
type=
"text"
name=
"server_username"
value=
"
<%=
(
username
!=
null
)
?
StringUtils
.
escapeForXML
(
username
)
:
""
%>
"
size=
"40"
maxlength=
"150"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -230,4 +230,4 @@
...
@@ -230,4 +230,4 @@
<!-- END SMTP settings -->
<!-- END SMTP settings -->
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/system-emailtest.jsp
View file @
ed3492a2
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<%@ page
import=
"org.jivesoftware.util.*,
<%@ page
import=
"org.jivesoftware.util.*,
org.jivesoftware.openfire.user.*,
org.jivesoftware.openfire.user.*,
java.util.*,
java.util.*,
java.net.URLEncoder,
javax.mail.*,
javax.mail.*,
javax.mail.internet.*"
javax.mail.internet.*"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
...
@@ -199,7 +200,7 @@ function checkClick(el) {
...
@@ -199,7 +200,7 @@ function checkClick(el) {
<%
if
(
mex
instanceof
AuthenticationFailedException
)
{
%>
<%
if
(
mex
instanceof
AuthenticationFailedException
)
{
%>
<fmt:message
key=
"system.emailtest.failure_authentication"
/>
<fmt:message
key=
"system.emailtest.failure_authentication"
/>
<%
}
else
{
%>
<%
}
else
{
%>
(Message:
<%=
mex
.
getMessage
(
)
%>
)
(Message:
<%=
StringUtils
.
escapeHTMLTags
(
mex
.
getMessage
()
)
%>
)
<%
}
%>
<%
}
%>
<%
}
%>
<%
}
%>
</td></tr>
</td></tr>
...
@@ -229,7 +230,7 @@ function checkClick(el) {
...
@@ -229,7 +230,7 @@ function checkClick(el) {
<%
<%
}
else
{
}
else
{
%>
%>
<%=
host
%>
:
<%=
JiveGlobals
.
getIntProperty
(
"mail.smtp.port"
,
25
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
host
)
%>
:
<%=
JiveGlobals
.
getIntProperty
(
"mail.smtp.port"
,
25
)
%>
<%
if
(
JiveGlobals
.
getBooleanProperty
(
"mail.smtp.ssl"
,
false
))
{
%>
<%
if
(
JiveGlobals
.
getBooleanProperty
(
"mail.smtp.ssl"
,
false
))
{
%>
...
@@ -244,10 +245,10 @@ function checkClick(el) {
...
@@ -244,10 +245,10 @@ function checkClick(el) {
<fmt:message
key=
"system.emailtest.from"
/>
:
<fmt:message
key=
"system.emailtest.from"
/>
:
</td>
</td>
<td>
<td>
<input
type=
"hidden"
name=
"from"
value=
"
<%=
from
%>
"
>
<input
type=
"hidden"
name=
"from"
value=
"
<%=
StringUtils
.
escapeForXML
(
from
)
%>
"
>
<%=
StringUtils
.
escapeHTMLTags
(
from
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
from
)
%>
<span
class=
"jive-description"
>
<span
class=
"jive-description"
>
(
<a
href=
"user-edit-form.jsp?username=
<%=
user
.
getUsername
(
)
%>
"
>
Update Address
</a>
)
(
<a
href=
"user-edit-form.jsp?username=
<%=
URLEncoder
.
encode
(
user
.
getUsername
()
)
%>
"
>
Update Address
</a>
)
</span>
</span>
</td>
</td>
</tr>
</tr>
...
@@ -256,7 +257,7 @@ function checkClick(el) {
...
@@ -256,7 +257,7 @@ function checkClick(el) {
<fmt:message
key=
"system.emailtest.to"
/>
:
<fmt:message
key=
"system.emailtest.to"
/>
:
</td>
</td>
<td>
<td>
<input
type=
"text"
name=
"to"
value=
"
<%=
((
to
!=
null
)
?
to
:
""
)
%>
"
<input
type=
"text"
name=
"to"
value=
"
<%=
((
to
!=
null
)
?
StringUtils
.
escapeForXML
(
to
)
:
""
)
%>
"
size=
"40"
maxlength=
"100"
>
size=
"40"
maxlength=
"100"
>
</td>
</td>
</tr>
</tr>
...
@@ -265,7 +266,7 @@ function checkClick(el) {
...
@@ -265,7 +266,7 @@ function checkClick(el) {
<fmt:message
key=
"system.emailtest.subject"
/>
:
<fmt:message
key=
"system.emailtest.subject"
/>
:
</td>
</td>
<td>
<td>
<input
type=
"text"
name=
"subject"
value=
"
<%=
((
subject
!=
null
)
?
subject
:
""
)
%>
"
<input
type=
"text"
name=
"subject"
value=
"
<%=
((
subject
!=
null
)
?
StringUtils
.
escapeForXML
(
subject
)
:
""
)
%>
"
size=
"40"
maxlength=
"100"
>
size=
"40"
maxlength=
"100"
>
</td>
</td>
</tr>
</tr>
...
@@ -274,7 +275,7 @@ function checkClick(el) {
...
@@ -274,7 +275,7 @@ function checkClick(el) {
<fmt:message
key=
"system.emailtest.body"
/>
:
<fmt:message
key=
"system.emailtest.body"
/>
:
</td>
</td>
<td>
<td>
<textarea
name=
"body"
cols=
"45"
rows=
"5"
wrap=
"virtual"
><%=
body
%></textarea>
<textarea
name=
"body"
cols=
"45"
rows=
"5"
wrap=
"virtual"
><%=
StringUtils
.
escapeHTMLTags
(
body
)
%></textarea>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -290,4 +291,4 @@ function checkClick(el) {
...
@@ -290,4 +291,4 @@ function checkClick(el) {
</form>
</form>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-create.jsp
View file @
ed3492a2
...
@@ -213,14 +213,14 @@
...
@@ -213,14 +213,14 @@
<tr>
<tr>
<td
width=
"1%"
nowrap
><label
for=
"usernametf"
><fmt:message
key=
"user.create.username"
/>
:
</label>
*
</td>
<td
width=
"1%"
nowrap
><label
for=
"usernametf"
><fmt:message
key=
"user.create.username"
/>
:
</label>
*
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"username"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
username
!=
null
)
?
username
:
""
)
%>
"
<input
type=
"text"
name=
"username"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
username
!=
null
)
?
StringUtils
.
escapeForXML
(
username
)
:
""
)
%>
"
id=
"usernametf"
autocomplete=
"off"
>
id=
"usernametf"
autocomplete=
"off"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"1%"
nowrap
><label
for=
"nametf"
><fmt:message
key=
"user.create.name"
/>
:
</label>
<%=
UserManager
.
getUserProvider
().
isNameRequired
()
?
"*"
:
""
%></td>
<td
width=
"1%"
nowrap
><label
for=
"nametf"
><fmt:message
key=
"user.create.name"
/>
:
</label>
<%=
UserManager
.
getUserProvider
().
isNameRequired
()
?
"*"
:
""
%></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"name"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
name
!=
null
)
?
name
:
""
)
%>
"
<input
type=
"text"
name=
"name"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
name
!=
null
)
?
StringUtils
.
escapeForXML
(
name
)
:
""
)
%>
"
id=
"nametf"
>
id=
"nametf"
>
</td>
</td>
</tr>
</tr>
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<label
for=
"emailtf"
><fmt:message
key=
"user.create.email"
/>
:
</label>
<%=
UserManager
.
getUserProvider
().
isEmailRequired
()
?
"*"
:
""
%></td>
<label
for=
"emailtf"
><fmt:message
key=
"user.create.email"
/>
:
</label>
<%=
UserManager
.
getUserProvider
().
isEmailRequired
()
?
"*"
:
""
%></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"email"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
email
!=
null
)
?
email
:
""
)
%>
"
<input
type=
"text"
name=
"email"
size=
"30"
maxlength=
"75"
value=
"
<%=
((
email
!=
null
)
?
StringUtils
.
escapeForXML
(
email
)
:
""
)
%>
"
id=
"emailtf"
>
id=
"emailtf"
>
</td>
</td>
</tr>
</tr>
...
@@ -299,4 +299,4 @@ if (UserManager.getUserProvider().isReadOnly()) { %>
...
@@ -299,4 +299,4 @@ if (UserManager.getUserProvider().isReadOnly()) { %>
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-delete.jsp
View file @
ed3492a2
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
%>
%>
<%@ page
import=
"org.jivesoftware.openfire.user.UserManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.user.UserManager"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"org.xmpp.packet.JID"
%>
<%@ page
import=
"org.xmpp.packet.JID"
%>
<%@ page
import=
"org.xmpp.packet.StreamError"
%>
<%@ page
import=
"org.xmpp.packet.StreamError"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
...
@@ -95,7 +96,7 @@
...
@@ -95,7 +96,7 @@
<p>
<p>
<fmt:message
key=
"user.delete.info"
/>
<fmt:message
key=
"user.delete.info"
/>
<b><a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
user
.
getUsername
(),
"UTF-8"
)
%>
"
><%=
JID
.
unescapeNode
(
user
.
getUsername
(
))
%></a></b>
<b><a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
user
.
getUsername
(),
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
user
.
getUsername
()
))
%></a></b>
<fmt:message
key=
"user.delete.info1"
/>
<fmt:message
key=
"user.delete.info1"
/>
</p>
</p>
...
@@ -106,7 +107,7 @@
...
@@ -106,7 +107,7 @@
</c:if>
</c:if>
<form
action=
"user-delete.jsp"
>
<form
action=
"user-delete.jsp"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"submit"
name=
"delete"
value=
"
<fmt:message
key=
"user.delete.delete"
/>
"
>
<input
type=
"submit"
name=
"delete"
value=
"
<fmt:message
key=
"user.delete.delete"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
</form>
</form>
...
...
src/web/user-edit-form.jsp
View file @
ed3492a2
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
org.jivesoftware.openfire.user.*,
org.jivesoftware.openfire.user.*,
java.net.URLEncoder"
java.net.URLEncoder"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
...
@@ -141,7 +142,7 @@
...
@@ -141,7 +142,7 @@
<form
action=
"user-edit-form.jsp"
>
<form
action=
"user-edit-form.jsp"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<fieldset>
<fieldset>
...
@@ -154,7 +155,7 @@
...
@@ -154,7 +155,7 @@
<fmt:message
key=
"user.create.username"
/>
:
<fmt:message
key=
"user.create.username"
/>
:
</td>
</td>
<td>
<td>
<%=
JID
.
unescapeNode
(
user
.
getUsername
(
))
%>
<%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
user
.
getUsername
()
))
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -163,7 +164,7 @@
...
@@ -163,7 +164,7 @@
</td>
</td>
<td>
<td>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"name"
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"name"
value=
"
<%=
user
.
getName
(
)
%>
"
>
value=
"
<%=
StringUtils
.
escapeForXML
(
user
.
getName
()
)
%>
"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -172,7 +173,7 @@
...
@@ -172,7 +173,7 @@
</td>
</td>
<td>
<td>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"email"
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"email"
value=
"
<%=
((
user
.
getEmail
()!=
null
)
?
user
.
getEmail
(
)
:
""
)
%>
"
>
value=
"
<%=
((
user
.
getEmail
()!=
null
)
?
StringUtils
.
escapeForXML
(
user
.
getEmail
()
)
:
""
)
%>
"
>
</td>
</td>
</tr>
</tr>
<%
if
(!
AdminManager
.
getAdminProvider
().
isReadOnly
())
{
%>
<%
if
(!
AdminManager
.
getAdminProvider
().
isReadOnly
())
{
%>
...
...
src/web/user-lockout.jsp
View file @
ed3492a2
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<%@ page
import=
"org.jivesoftware.openfire.security.SecurityAuditManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.security.SecurityAuditManager"
%>
<%@ page
import=
"org.jivesoftware.openfire.session.ClientSession"
%>
<%@ page
import=
"org.jivesoftware.openfire.session.ClientSession"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"org.xmpp.packet.JID"
%>
<%@ page
import=
"org.xmpp.packet.JID"
%>
<%@ page
import=
"org.xmpp.packet.StreamError"
%>
<%@ page
import=
"org.xmpp.packet.StreamError"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
...
@@ -133,7 +134,7 @@
...
@@ -133,7 +134,7 @@
<p>
<p>
<fmt:message
key=
"user.lockout.locked"
>
<fmt:message
key=
"user.lockout.locked"
>
<fmt:param
value=
"<%= "
<b>
<
a
href=
'user-properties.jsp?username="+URLEncoder.encode(username, "UTF-8")+"'
>
"+
JID.unescapeNode(username
)+"
</a></b>
" %>"/>
<fmt:param
value=
"<%= "
<b>
<
a
href=
'user-properties.jsp?username="+URLEncoder.encode(username, "UTF-8")+"'
>
"+
StringUtils.escapeHTMLTags(JID.unescapeNode(username)
)+"
</a></b>
" %>"/>
</fmt:message>
</fmt:message>
<%
if
(
flag
.
getStartTime
()
!=
null
)
{
%><fmt:message
key=
"user.lockout.locked2"
><fmt:param
value=
"<%= flag.getStartTime().toString() %>"
/></fmt:message>
<%
}
%>
<%
if
(
flag
.
getStartTime
()
!=
null
)
{
%><fmt:message
key=
"user.lockout.locked2"
><fmt:param
value=
"<%= flag.getStartTime().toString() %>"
/></fmt:message>
<%
}
%>
<%
if
(
flag
.
getStartTime
()
!=
null
&&
flag
.
getEndTime
()
!=
null
)
{
%>
<fmt:message
key=
"user.lockout.lockedand"
/>
<%
}
%>
<%
if
(
flag
.
getStartTime
()
!=
null
&&
flag
.
getEndTime
()
!=
null
)
{
%>
<fmt:message
key=
"user.lockout.lockedand"
/>
<%
}
%>
...
@@ -141,7 +142,7 @@
...
@@ -141,7 +142,7 @@
</p>
</p>
<form
action=
"user-lockout.jsp"
>
<form
action=
"user-lockout.jsp"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"submit"
name=
"unlock"
value=
"
<fmt:message
key=
"user.lockout.unlock"
/>
"
>
<input
type=
"submit"
name=
"unlock"
value=
"
<fmt:message
key=
"user.lockout.unlock"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
</form>
</form>
...
@@ -154,7 +155,7 @@
...
@@ -154,7 +155,7 @@
<p>
<p>
<fmt:message
key=
"user.lockout.info"
/>
<fmt:message
key=
"user.lockout.info"
/>
<b><a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
username
,
"UTF-8"
)
%>
"
><%=
JID
.
unescapeNode
(
username
)
%></a></b>
<b><a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
username
,
"UTF-8"
)
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
username
)
)
%></a></b>
<fmt:message
key=
"user.lockout.info1"
/>
<fmt:message
key=
"user.lockout.info1"
/>
</p>
</p>
...
@@ -183,7 +184,7 @@
...
@@ -183,7 +184,7 @@
<input
type=
"radio"
name=
"duration"
value=
"-2"
/>
<fmt:message
key=
"user.lockout.time.for"
/>
<input
type=
"text"
size=
"5"
maxlength=
"10"
name=
"duration_custom"
/>
<fmt:message
key=
"user.lockout.time.minutes"
/><br
/>
<input
type=
"radio"
name=
"duration"
value=
"-2"
/>
<fmt:message
key=
"user.lockout.time.for"
/>
<input
type=
"text"
size=
"5"
maxlength=
"10"
name=
"duration_custom"
/>
<fmt:message
key=
"user.lockout.time.minutes"
/><br
/>
<br
/>
<br
/>
<%
}
%>
<%
}
%>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"submit"
name=
"lock"
value=
"
<fmt:message
key=
"user.lockout.lock"
/>
"
>
<input
type=
"submit"
name=
"lock"
value=
"
<fmt:message
key=
"user.lockout.lock"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
</form>
</form>
...
...
src/web/user-message.jsp
View file @
ed3492a2
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
org.jivesoftware.openfire.SessionManager,
org.jivesoftware.openfire.SessionManager,
org.jivesoftware.openfire.session.ClientSession,
org.jivesoftware.openfire.session.ClientSession,
org.jivesoftware.openfire.user.User,
org.jivesoftware.openfire.user.User,
...
@@ -169,7 +170,7 @@ function updateSelect(el) {
...
@@ -169,7 +170,7 @@ function updateSelect(el) {
<form
action=
"user-message.jsp"
method=
"post"
name=
"f"
>
<form
action=
"user-message.jsp"
method=
"post"
name=
"f"
>
<%
if
(
username
!=
null
){
%>
<%
if
(
username
!=
null
){
%>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<%
}
%>
<%
}
%>
<input
type=
"hidden"
name=
"tabs"
value=
"
<%=
tabs
%>
"
>
<input
type=
"hidden"
name=
"tabs"
value=
"
<%=
tabs
%>
"
>
<input
type=
"hidden"
name=
"send"
value=
"true"
>
<input
type=
"hidden"
name=
"send"
value=
"true"
>
...
@@ -276,4 +277,4 @@ document.f.message.focus();
...
@@ -276,4 +277,4 @@ document.f.message.focus();
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-password.jsp
View file @
ed3492a2
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
</p>
</p>
<form
action=
"user-password.jsp"
name=
"passform"
method=
"post"
>
<form
action=
"user-password.jsp"
name=
"passform"
method=
"post"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<fieldset>
<fieldset>
<legend><fmt:message
key=
"user.password.change"
/></legend>
<legend><fmt:message
key=
"user.password.change"
/></legend>
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
<fmt:message
key=
"user.create.username"
/>
:
<fmt:message
key=
"user.create.username"
/>
:
</td>
</td>
<td
class=
"c2"
>
<td
class=
"c2"
>
<%=
JID
.
unescapeNode
(
user
.
getUsername
(
))
%>
<%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
user
.
getUsername
()
))
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
src/web/user-properties.jsp
View file @
ed3492a2
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
<%@ page
import=
"org.jivesoftware.util.JiveGlobals"
%>
<%@ page
import=
"org.jivesoftware.util.JiveGlobals"
%>
<%@ page
import=
"org.jivesoftware.util.LocaleUtils"
%>
<%@ page
import=
"org.jivesoftware.util.LocaleUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"org.xmpp.packet.JID"
%><%@ page
import=
"org.xmpp.packet.Presence"
%>
<%@ page
import=
"org.xmpp.packet.JID"
%><%@ page
import=
"org.xmpp.packet.Presence"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"java.net.URLEncoder"
%>
<%@ page
import=
"java.util.Collection"
%>
<%@ page
import=
"java.util.Collection"
%>
...
@@ -185,7 +186,7 @@
...
@@ -185,7 +186,7 @@
<fmt:message
key=
"user.create.username"
/>
:
<fmt:message
key=
"user.create.username"
/>
:
</td>
</td>
<td>
<td>
<%=
JID
.
unescapeNode
(
user
.
getUsername
(
))
%>
<%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
user
.
getUsername
()
))
%>
<%
if
(
lockedOut
)
{
%><img
src=
"/images/forbidden-16x16.gif"
align=
"top"
height=
"16"
width=
"16"
alt=
"
<fmt:message
key=
'user.properties.locked'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked'
/>
"
/><%
}
%>
<%
if
(
lockedOut
)
{
%><img
src=
"/images/forbidden-16x16.gif"
align=
"top"
height=
"16"
width=
"16"
alt=
"
<fmt:message
key=
'user.properties.locked'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked'
/>
"
/><%
}
%>
<%
if
(
pendingLockOut
)
{
%><img
src=
"/images/warning-16x16.gif"
align=
"top"
height=
"16"
width=
"16"
alt=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
/><%
}
%>
<%
if
(
pendingLockOut
)
{
%><img
src=
"/images/warning-16x16.gif"
align=
"top"
height=
"16"
width=
"16"
alt=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
/><%
}
%>
</td>
</td>
...
@@ -241,7 +242,7 @@
...
@@ -241,7 +242,7 @@
</span>
</span>
<%
}
else
{
%>
<%
}
else
{
%>
<%=
user
.
getName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
user
.
getName
()
)
%>
<%
}
%>
<%
}
%>
</td>
</td>
...
@@ -257,7 +258,7 @@
...
@@ -257,7 +258,7 @@
</span>
</span>
<%
}
else
{
%>
<%
}
else
{
%>
<a
href=
"mailto:
<%=
user
.
getEmail
()
%>
"
><%=
user
.
getEmail
(
)
%></a>
<a
href=
"mailto:
<%=
StringUtils
.
escapeForXML
(
user
.
getEmail
())
%>
"
><%=
StringUtils
.
escapeHTMLTags
(
user
.
getEmail
()
)
%></a>
<%
}
%>
<%
}
%>
...
@@ -306,11 +307,11 @@
...
@@ -306,11 +307,11 @@
<%
if
(
user
!=
null
&&
!
UserManager
.
getUserProvider
().
isReadOnly
())
{
%>
<%
if
(
user
!=
null
&&
!
UserManager
.
getUserProvider
().
isReadOnly
())
{
%>
<form
action=
"user-edit-form.jsp"
>
<form
action=
"user-edit-form.jsp"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
user
.
getUsername
(
)
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
user
.
getUsername
()
)
%>
"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"global.edit_properties"
/>
"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"global.edit_properties"
/>
"
>
</form>
</form>
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-roster-add.jsp
View file @
ed3492a2
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
<p>
<p>
<fmt:message
key=
"user.roster.add.info"
>
<fmt:message
key=
"user.roster.add.info"
>
<fmt:param
value=
"<%=
username
%>"
/>
<fmt:param
value=
"<%=
StringUtils.escapeForXML(username)
%>"
/>
</fmt:message>
</fmt:message>
</p>
</p>
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
<form
name=
"f"
action=
"user-roster-add.jsp"
method=
"get"
>
<form
name=
"f"
action=
"user-roster-add.jsp"
method=
"get"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<div
class=
"jive-contentBoxHeader"
>
<div
class=
"jive-contentBoxHeader"
>
<fmt:message
key=
"user.roster.add.new_item"
/>
<fmt:message
key=
"user.roster.add.new_item"
/>
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<tr>
<tr>
<td
width=
"1%"
nowrap
><label
for=
"jidtf"
><fmt:message
key=
"user.roster.jid"
/>
:
</label>
*
</td>
<td
width=
"1%"
nowrap
><label
for=
"jidtf"
><fmt:message
key=
"user.roster.jid"
/>
:
</label>
*
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"jid"
size=
"30"
maxlength=
"255"
value=
"
<%=
((
jid
!=
null
)
?
jid
:
""
)
%>
"
<input
type=
"text"
name=
"jid"
size=
"30"
maxlength=
"255"
value=
"
<%=
((
jid
!=
null
)
?
StringUtils
.
escapeForXML
(
jid
)
:
""
)
%>
"
id=
"jidtf"
>
id=
"jidtf"
>
</td>
</td>
</tr>
</tr>
...
@@ -176,7 +176,7 @@
...
@@ -176,7 +176,7 @@
<label
for=
"nicknametf"
><fmt:message
key=
"user.roster.nickname"
/>
:
</label>
<label
for=
"nicknametf"
><fmt:message
key=
"user.roster.nickname"
/>
:
</label>
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"nickname"
size=
"30"
maxlength=
"255"
value=
"
<%=
((
nickname
!=
null
)
?
nickname
:
""
)
%>
"
<input
type=
"text"
name=
"nickname"
size=
"30"
maxlength=
"255"
value=
"
<%=
((
nickname
!=
null
)
?
StringUtils
.
escapeForXML
(
nickname
)
:
""
)
%>
"
id=
"nicknametf"
>
id=
"nicknametf"
>
</td>
</td>
</tr>
</tr>
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<label
for=
"groupstf"
><fmt:message
key=
"user.roster.groups"
/>
:
</label></td>
<label
for=
"groupstf"
><fmt:message
key=
"user.roster.groups"
/>
:
</label></td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<input
type=
"text"
name=
"groups"
size=
"30"
maxlength=
"255"
value=
"
<%=
((
groups
!=
null
)
?
groups
:
""
)
%>
"
<input
type=
"text"
name=
"groups"
size=
"30"
maxlength=
"255"
value=
"
<%=
((
groups
!=
null
)
?
StringUtils
.
escapeForXML
(
groups
)
:
""
)
%>
"
id=
"groupstf"
>
id=
"groupstf"
>
</td>
</td>
</tr>
</tr>
...
@@ -211,4 +211,4 @@
...
@@ -211,4 +211,4 @@
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-roster-delete.jsp
View file @
ed3492a2
...
@@ -67,14 +67,14 @@
...
@@ -67,14 +67,14 @@
<p>
<p>
<fmt:message
key=
"user.roster.delete.info"
>
<fmt:message
key=
"user.roster.delete.info"
>
<fmt:param
value=
"<%= "
<b>
"+
jid
+"</
b
>
" %>" />
<fmt:param
value=
"<%= "
<b>
"+
StringUtils
.
escapeForXML
(
jid
)
+"</
b
>
" %>" />
<fmt:param
value=
"<%= "
<b>
"+
username
+"</
b
>
" %>" />
<fmt:param
value=
"<%= "
<b>
"+
StringUtils
.
escapeForXML
(
username
)
+"</
b
>
" %>" />
</fmt:message>
</fmt:message>
</p>
</p>
<form
action=
"user-roster-delete.jsp"
>
<form
action=
"user-roster-delete.jsp"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
jid
%>
"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
StringUtils
.
escapeForXML
(
jid
)
%>
"
>
<input
type=
"submit"
name=
"delete"
value=
"
<fmt:message
key=
"user.roster.delete.delete"
/>
"
>
<input
type=
"submit"
name=
"delete"
value=
"
<fmt:message
key=
"user.roster.delete.delete"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
<input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
>
</form>
</form>
...
...
src/web/user-roster-edit.jsp
View file @
ed3492a2
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
java.net.URLEncoder"
java.net.URLEncoder"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
%><%@ page
import=
"org.xmpp.packet.JID"
%>
%><%@ page
import=
"org.xmpp.packet.JID"
%>
...
@@ -85,14 +86,14 @@
...
@@ -85,14 +86,14 @@
<p>
<p>
<fmt:message
key=
"user.roster.edit.info"
>
<fmt:message
key=
"user.roster.edit.info"
>
<fmt:param
value=
"<%=
username
%>"
/>
<fmt:param
value=
"<%=
StringUtils.escapeForXML(username)
%>"
/>
</fmt:message>
</fmt:message>
</p>
</p>
<form
action=
"user-roster-edit.jsp"
>
<form
action=
"user-roster-edit.jsp"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
jid
%>
"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
StringUtils
.
escapeForXML
(
jid
)
%>
"
>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<input
type=
"hidden"
name=
"save"
value=
"true"
>
<fieldset>
<fieldset>
...
@@ -105,7 +106,7 @@
...
@@ -105,7 +106,7 @@
<fmt:message
key=
"user.roster.jid"
/>
:
<fmt:message
key=
"user.roster.jid"
/>
:
</td>
</td>
<td>
<td>
<%=
jid
%>
<%=
StringUtils
.
escapeHTMLTags
(
jid
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -114,7 +115,7 @@
...
@@ -114,7 +115,7 @@
</td>
</td>
<td>
<td>
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"nickname"
<input
type=
"text"
size=
"30"
maxlength=
"150"
name=
"nickname"
value=
"
<%=
item
.
getNickname
(
)
%>
"
>
value=
"
<%=
StringUtils
.
escapeForXML
(
item
.
getNickname
()
)
%>
"
>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -131,7 +132,7 @@
...
@@ -131,7 +132,7 @@
if
(
count
!=
0
)
{
if
(
count
!=
0
)
{
out
.
print
(
","
);
out
.
print
(
","
);
}
}
out
.
print
(
group
);
out
.
print
(
StringUtils
.
escapeForXML
(
group
)
);
count
++;
count
++;
}
}
}
}
...
@@ -152,7 +153,7 @@
...
@@ -152,7 +153,7 @@
out
.
print
(
","
);
out
.
print
(
","
);
}
}
out
.
print
(
"<a href='group-edit.jsp?group="
+
URLEncoder
.
encode
(
group
.
getName
(),
"UTF-8"
)+
"'>
");
out
.
print
(
"<a href='group-edit.jsp?group="
+
URLEncoder
.
encode
(
group
.
getName
(),
"UTF-8"
)+
"'>
");
out.print(
group.getName(
));
out.print(
StringUtils.escapeForXML(group.getName()
));
out.print("
</
a
>
");
out.print("
</
a
>
");
count++;
count++;
}
}
...
@@ -190,4 +191,4 @@
...
@@ -190,4 +191,4 @@
</form>
</form>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-roster-view.jsp
View file @
ed3492a2
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
--%>
--%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
<%@ page
import=
"org.jivesoftware.util.ParamUtils,
org.jivesoftware.util.StringUtils,
java.net.URLEncoder"
java.net.URLEncoder"
errorPage=
"error.jsp"
errorPage=
"error.jsp"
%><%@ page
import=
"org.xmpp.packet.JID"
%>
%><%@ page
import=
"org.xmpp.packet.JID"
%>
...
@@ -84,7 +85,7 @@
...
@@ -84,7 +85,7 @@
<p>
<p>
<fmt:message
key=
"user.roster.edit.info"
>
<fmt:message
key=
"user.roster.edit.info"
>
<fmt:param
value=
"<%=
username
%>"
/>
<fmt:param
value=
"<%=
StringUtils.escapeForXML(username)
%>"
/>
</fmt:message>
</fmt:message>
</p>
</p>
...
@@ -98,7 +99,7 @@
...
@@ -98,7 +99,7 @@
<fmt:message
key=
"user.roster.jid"
/>
:
<fmt:message
key=
"user.roster.jid"
/>
:
</td>
</td>
<td>
<td>
<%=
jid
%>
<%=
StringUtils
.
escapeHTMLTags
(
jid
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -106,7 +107,7 @@
...
@@ -106,7 +107,7 @@
<fmt:message
key=
"user.roster.nickname"
/>
:
<fmt:message
key=
"user.roster.nickname"
/>
:
</td>
</td>
<td>
<td>
<%=
item
.
getNickname
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
item
.
getNickname
()
)
%>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -122,7 +123,7 @@
...
@@ -122,7 +123,7 @@
if
(
count
!=
0
)
{
if
(
count
!=
0
)
{
out
.
print
(
","
);
out
.
print
(
","
);
}
}
out
.
print
(
group
);
out
.
print
(
StringUtils
.
escapeForXML
(
group
)
);
count
++;
count
++;
}
}
}
}
...
@@ -146,7 +147,7 @@
...
@@ -146,7 +147,7 @@
out
.
print
(
","
);
out
.
print
(
","
);
}
}
out
.
print
(
"<a href='group-edit.jsp?group="
+
URLEncoder
.
encode
(
group
.
getName
(),
"UTF-8"
)+
"'>
");
out
.
print
(
"<a href='group-edit.jsp?group="
+
URLEncoder
.
encode
(
group
.
getName
(),
"UTF-8"
)+
"'>
");
out.print(
group.getName(
));
out.print(
StringUtils.escapeForXML(group.getName()
));
out.print("
</
a
>
");
out.print("
</
a
>
");
count++;
count++;
}
}
...
@@ -162,7 +163,7 @@
...
@@ -162,7 +163,7 @@
<fmt:message
key=
"user.roster.subscription"
/>
:
<fmt:message
key=
"user.roster.subscription"
/>
:
</td>
</td>
<td>
<td>
<%=
item
.
getSubStatus
().
getName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
item
.
getSubStatus
().
getName
()
)
%>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -173,18 +174,18 @@
...
@@ -173,18 +174,18 @@
<br><br>
<br><br>
<form
style=
"display: inline"
action=
"user-roster-edit.jsp"
>
<form
style=
"display: inline"
action=
"user-roster-edit.jsp"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
jid
%>
"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
StringUtils
.
escapeForXML
(
jid
)
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"user.roster.edit"
/>
"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"user.roster.edit"
/>
"
>
</form>
</form>
<%
if
(
sharedGroups
.
isEmpty
())
{
%>
<%
if
(
sharedGroups
.
isEmpty
())
{
%>
<form
style=
"display: inline"
action=
"user-roster-delete.jsp"
>
<form
style=
"display: inline"
action=
"user-roster-delete.jsp"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
jid
%>
"
>
<input
type=
"hidden"
name=
"jid"
value=
"
<%=
StringUtils
.
escapeForXML
(
jid
)
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
username
%>
"
>
<input
type=
"hidden"
name=
"username"
value=
"
<%=
StringUtils
.
escapeForXML
(
username
)
%>
"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"global.delete"
/>
"
>
<input
type=
"submit"
value=
"
<fmt:message
key=
"global.delete"
/>
"
>
</form>
</form>
<%
}
%>
<%
}
%>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-roster.jsp
View file @
ed3492a2
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<p>
<p>
<fmt:message
key=
"user.roster.info"
>
<fmt:message
key=
"user.roster.info"
>
<fmt:param
value=
"<%= "
<b>
"+
JID
.
unescapeNode
(
username
)+"</
b
>
" %>" />
<fmt:param
value=
"<%= "
<b>
"+
StringUtils
.
escapeForXML
(
JID
.
unescapeNode
(
username
)
)+"</
b
>
" %>" />
</fmt:message>
</fmt:message>
</p>
</p>
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
><%=
rosterItem
.
getJid
()
%></a>
><%=
rosterItem
.
getJid
()
%></a>
</td>
</td>
<td>
<td>
<%=
(
rosterItem
.
getNickname
()
!=
null
?
rosterItem
.
getNickname
(
)
:
"
<
i
>
None
</
i
>"
)
%>
<%=
(
rosterItem
.
getNickname
()
!=
null
?
StringUtils
.
escapeHTMLTags
(
rosterItem
.
getNickname
()
)
:
"
<
i
>
None
</
i
>"
)
%>
</td>
</td>
<td>
<td>
<%
<%
...
@@ -363,4 +363,4 @@
...
@@ -363,4 +363,4 @@
<br><br>
<br><br>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/web/user-search.jsp
View file @
ed3492a2
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<tr
class=
"c1"
>
<tr
class=
"c1"
>
<td
width=
"1%"
nowrap
><fmt:message
key=
"user.create.username"
/>
:
</td>
<td
width=
"1%"
nowrap
><fmt:message
key=
"user.create.username"
/>
:
</td>
<td
class=
"c2"
>
<td
class=
"c2"
>
<input
type=
"text"
name=
"username"
value=
"
<%=
((
username
!=
null
)
?
username
:
""
)
%>
"
size=
"30"
maxlength=
"75"
/>
<input
type=
"text"
name=
"username"
value=
"
<%=
((
username
!=
null
)
?
StringUtils
.
escapeForXML
(
username
)
:
""
)
%>
"
size=
"30"
maxlength=
"75"
/>
</td>
</td>
</tr>
</tr>
<tr><td
colspan=
"2"
nowrap
><input
type=
"submit"
name=
"search"
value=
"
<fmt:message
key=
"user.search.search"
/>
"
/><input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
/></td>
<tr><td
colspan=
"2"
nowrap
><input
type=
"submit"
name=
"search"
value=
"
<fmt:message
key=
"user.search.search"
/>
"
/><input
type=
"submit"
name=
"cancel"
value=
"
<fmt:message
key=
"global.cancel"
/>
"
/></td>
...
...
src/web/user-summary.jsp
View file @
ed3492a2
...
@@ -230,13 +230,13 @@
...
@@ -230,13 +230,13 @@
<%
}
%>
<%
}
%>
</td>
</td>
<td
width=
"23%"
>
<td
width=
"23%"
>
<a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
user
.
getUsername
(),
"UTF-8"
)
%>
"
<%=
lockedOut
?
" style='text-decoration: line-through underline;'"
:
""
%>><%=
JID
.
unescapeNode
(
user
.
getUsername
(
))
%></a>
<a
href=
"user-properties.jsp?username=
<%=
URLEncoder
.
encode
(
user
.
getUsername
(),
"UTF-8"
)
%>
"
<%=
lockedOut
?
" style='text-decoration: line-through underline;'"
:
""
%>><%=
StringUtils
.
escapeHTMLTags
(
JID
.
unescapeNode
(
user
.
getUsername
()
))
%></a>
<%
if
(
isAdmin
)
{
%><img
src=
"/images/star-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.isadmin'
/>
"
title=
"
<fmt:message
key=
'user.properties.isadmin'
/>
"
/><%
}
%>
<%
if
(
isAdmin
)
{
%><img
src=
"/images/star-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.isadmin'
/>
"
title=
"
<fmt:message
key=
'user.properties.isadmin'
/>
"
/><%
}
%>
<%
if
(
lockedOut
)
{
%><img
src=
"/images/forbidden-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.locked'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked'
/>
"
/><%
}
%>
<%
if
(
lockedOut
)
{
%><img
src=
"/images/forbidden-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.locked'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked'
/>
"
/><%
}
%>
<%
if
(
pendingLockOut
)
{
%><img
src=
"/images/warning-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
/><%
}
%>
<%
if
(
pendingLockOut
)
{
%><img
src=
"/images/warning-16x16.gif"
height=
"16"
width=
"16"
align=
"top"
alt=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
title=
"
<fmt:message
key=
'user.properties.locked_set'
/>
"
/><%
}
%>
</td>
</td>
<td
width=
"33%"
>
<td
width=
"33%"
>
<%=
user
.
getName
(
)
%>
<%=
StringUtils
.
escapeHTMLTags
(
user
.
getName
()
)
%>
</td>
</td>
<td
width=
"15%"
>
<td
width=
"15%"
>
<%=
JiveGlobals
.
formatDate
(
user
.
getCreationDate
())
%>
<%=
JiveGlobals
.
formatDate
(
user
.
getCreationDate
())
%>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment