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
0ecaa2d3
Commit
0ecaa2d3
authored
Sep 07, 2017
by
Dave Cridland
Committed by
GitHub
Sep 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #846 from guusdk/OF-1367_BOSH-url-based-on-FQDN
Admin console: apply JSTL to http-bind page.
parents
d99ae522
e3a6cc6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
130 additions
and
219 deletions
+130
-219
http-bind.jsp
src/web/http-bind.jsp
+130
-219
No files found.
src/web/http-bind.jsp
View file @
0ecaa2d3
...
@@ -14,110 +14,99 @@
...
@@ -14,110 +14,99 @@
- See the License for the specific language governing permissions and
- See the License for the specific language governing permissions and
- limitations under the License.
- limitations under the License.
--%>
--%>
<%@ page
import=
"org.jivesoftware.openfire.http.FlashCrossDomainServlet"
%>
<%@ page
import=
"org.jivesoftware.openfire.http.HttpBindManager"
%>
<%@ page
import=
"org.jivesoftware.util.CookieUtils"
%>
<%@ page
import=
"org.jivesoftware.util.Log"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.ParamUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"org.jivesoftware.util.StringUtils"
%>
<%@ page
import=
"java.io.File"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"java.util.HashMap"
%>
<%@ page
import=
"java.util.HashMap"
%>
<%@ page
import=
"org.jivesoftware.util.Log"
%>
<%@ page
import=
"java.util.Map"
%>
<%@ page
import=
"org.jivesoftware.util.CookieUtils"
%>
<%@ page
import=
"org.jivesoftware.openfire.http.FlashCrossDomainServlet"
%>
<%@ page
import=
"org.jivesoftware.openfire.http.HttpBindManager"
%>
<%@ page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%>
<%@ page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%>
<%@ taglib
uri=
"admin"
prefix=
"admin"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/fmt"
prefix=
"fmt"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/fmt"
prefix=
"fmt"
%>
<jsp:useBean
id=
"webManager"
class=
"org.jivesoftware.util.WebManager"
/>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/functions"
prefix=
"fn"
%>
<jsp:useBean
id=
"webManager"
class=
"org.jivesoftware.util.WebManager"
/>
<%
webManager
.
init
(
request
,
response
,
session
,
application
,
out
);
%>
<%
webManager
.
init
(
request
,
response
,
session
,
application
,
out
);
%>
<%!
<%!
HttpBindManager
serverManager
=
HttpBindManager
.
getInstance
();
HttpBindManager
serverManager
=
HttpBindManager
.
getInstance
();
Map
<
String
,
String
>
handleUpdate
(
HttpServletRequest
request
)
{
Map
<
String
,
String
>
handleUpdate
(
HttpServletRequest
request
)
Map
<
String
,
String
>
errorMap
=
new
HashMap
<
String
,
String
>
();
{
boolean
isEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"httpBindEnabled"
,
final
Map
<
String
,
String
>
errorMap
=
new
HashMap
<
>
();
serverManager
.
isHttpBindEnabled
());
final
boolean
isEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"httpBindEnabled"
,
serverManager
.
isHttpBindEnabled
()
);
// CORS
boolean
isCORSEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"CORSEnabled"
,
if
(
isEnabled
)
serverManager
.
isCORSEnabled
());
{
// XFF
final
int
requestedPort
=
ParamUtils
.
getIntParameter
(
request
,
"port"
,
serverManager
.
getHttpBindUnsecurePort
()
);
boolean
isXFFEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"XFFEnabled"
,
final
int
requestedSecurePort
=
ParamUtils
.
getIntParameter
(
request
,
"securePort"
,
serverManager
.
getHttpBindSecurePort
()
);
serverManager
.
isXFFEnabled
());
final
boolean
isCORSEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"CORSEnabled"
,
serverManager
.
isCORSEnabled
()
);
if
(
isEnabled
)
{
final
boolean
isXFFEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"XFFEnabled"
,
serverManager
.
isXFFEnabled
()
);
int
requestedPort
=
ParamUtils
.
getIntParameter
(
request
,
"port"
,
final
String
CORSDomains
=
ParamUtils
.
getParameter
(
request
,
"CORSDomains"
,
true
);
serverManager
.
getHttpBindUnsecurePort
());
try
int
requestedSecurePort
=
ParamUtils
.
getIntParameter
(
request
,
"securePort"
,
{
serverManager
.
getHttpBindSecurePort
());
serverManager
.
setHttpBindPorts
(
requestedPort
,
requestedSecurePort
);
// CORS
serverManager
.
setCORSEnabled
(
isCORSEnabled
);
String
CORSDomains
=
ParamUtils
.
getParameter
(
request
,
"CORSDomains"
,
true
);
serverManager
.
setCORSAllowOrigin
(
CORSDomains
);
try
{
serverManager
.
setXFFEnabled
(
isXFFEnabled
);
serverManager
.
setHttpBindPorts
(
requestedPort
,
requestedSecurePort
);
serverManager
.
setXFFHeader
(
ParamUtils
.
getParameter
(
request
,
"XFFHeader"
)
);
// CORS
serverManager
.
setXFFServerHeader
(
ParamUtils
.
getParameter
(
request
,
"XFFServerHeader"
)
);
serverManager
.
setCORSEnabled
(
isCORSEnabled
);
serverManager
.
setXFFHostHeader
(
ParamUtils
.
getParameter
(
request
,
"XFFHostHeader"
)
);
serverManager
.
setCORSAllowOrigin
(
CORSDomains
);
serverManager
.
setXFFHostName
(
ParamUtils
.
getParameter
(
request
,
"XFFHostName"
)
);
// XFF
serverManager
.
setXFFEnabled
(
isXFFEnabled
);
String
param
=
ParamUtils
.
getParameter
(
request
,
"XFFHeader"
);
serverManager
.
setXFFHeader
(
param
);
param
=
ParamUtils
.
getParameter
(
request
,
"XFFServerHeader"
);
serverManager
.
setXFFServerHeader
(
param
);
param
=
ParamUtils
.
getParameter
(
request
,
"XFFHostHeader"
);
serverManager
.
setXFFHostHeader
(
param
);
param
=
ParamUtils
.
getParameter
(
request
,
"XFFHostName"
);
serverManager
.
setXFFHostName
(
param
);
}
}
catch
(
Exception
e
)
{
catch
(
Exception
e
)
Log
.
error
(
"An error has occured configuring the HTTP binding ports"
,
e
);
{
errorMap
.
put
(
"port"
,
e
.
getMessage
());
Log
.
error
(
"An error has occured configuring the HTTP binding ports"
,
e
);
errorMap
.
put
(
"port"
,
e
.
getMessage
()
);
}
}
boolean
isScriptSyntaxEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
boolean
isScriptSyntaxEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"scriptSyntaxEnabled"
,
serverManager
.
isScriptSyntaxEnabled
()
);
"scriptSyntaxEnabled"
,
serverManager
.
isScriptSyntaxEnabled
());
serverManager
.
setScriptSyntaxEnabled
(
isScriptSyntaxEnabled
);
serverManager
.
setScriptSyntaxEnabled
(
isScriptSyntaxEnabled
);
}
}
if
(
errorMap
.
size
()
<=
0
)
{
if
(
errorMap
.
isEmpty
()
)
serverManager
.
setHttpBindEnabled
(
isEnabled
);
{
serverManager
.
setHttpBindEnabled
(
isEnabled
);
}
}
return
errorMap
;
return
errorMap
;
}
}
%>
%>
<%
<%
Map
<
String
,
String
>
errorMap
=
new
HashMap
<
String
,
String
>
();
final
Map
<
String
,
String
>
errorMap
=
new
HashMap
<
>
();
Cookie
csrfCookie
=
CookieUtils
.
getCookie
(
request
,
"csrf"
);
final
Cookie
csrfCookie
=
CookieUtils
.
getCookie
(
request
,
"csrf"
);
String
csrfParam
=
ParamUtils
.
getParameter
(
request
,
"csrf"
);
String
csrfParam
=
ParamUtils
.
getParameter
(
request
,
"csrf"
);
if
(
request
.
getParameter
(
"update"
)
!=
null
)
{
if
(
request
.
getParameter
(
"update"
)
!=
null
)
if
(
csrfCookie
==
null
||
csrfParam
==
null
||
!
csrfCookie
.
getValue
().
equals
(
csrfParam
))
{
{
errorMap
.
put
(
"csrf"
,
"CSRF Failure!"
);
if
(
csrfCookie
==
null
||
csrfParam
==
null
||
!
csrfCookie
.
getValue
().
equals
(
csrfParam
)
)
}
else
{
{
errorMap
=
handleUpdate
(
request
);
errorMap
.
put
(
"csrf"
,
"CSRF Failure!"
);
}
else
{
errorMap
.
putAll
(
handleUpdate
(
request
)
);
// Log the event
// Log the event
webManager
.
logEvent
(
"updated HTTP bind settings"
,
null
);
webManager
.
logEvent
(
"updated HTTP bind settings"
,
null
);
}
}
}
}
csrfParam
=
StringUtils
.
randomString
(
15
);
csrfParam
=
StringUtils
.
randomString
(
15
);
CookieUtils
.
setCookie
(
request
,
response
,
"csrf"
,
csrfParam
,
-
1
);
CookieUtils
.
setCookie
(
request
,
response
,
"csrf"
,
csrfParam
,
-
1
);
pageContext
.
setAttribute
(
"csrf"
,
csrfParam
);
pageContext
.
setAttribute
(
"csrf"
,
csrfParam
);
boolean
isHttpBindEnabled
=
serverManager
.
isHttpBindEnabled
();
pageContext
.
setAttribute
(
"errors"
,
errorMap
);
int
port
=
serverManager
.
getHttpBindUnsecurePort
();
pageContext
.
setAttribute
(
"serverManager"
,
serverManager
);
int
securePort
=
serverManager
.
getHttpBindSecurePort
();
pageContext
.
setAttribute
(
"crossDomainContent"
,
FlashCrossDomainServlet
.
getCrossDomainContent
()
);
boolean
isScriptSyntaxEnabled
=
serverManager
.
isScriptSyntaxEnabled
();
// CORS
boolean
isCORSEnabled
=
serverManager
.
isCORSEnabled
();
// XFF
boolean
isXFFEnabled
=
serverManager
.
isXFFEnabled
();
String
xffHeader
=
serverManager
.
getXFFHeader
();
String
xffServerHeader
=
serverManager
.
getXFFServerHeader
();
String
xffHostHeader
=
serverManager
.
getXFFHostHeader
();
String
xffHostName
=
serverManager
.
getXFFHostName
();
%>
%>
<
%@page
import=
"org.jivesoftware.openfire.http.FlashCrossDomainServlet"
%><
html>
<html>
<head>
<head>
<title>
<title>
<fmt:message
key=
"httpbind.settings.title"
/>
<fmt:message
key=
"httpbind.settings.title"
/>
</title>
</title>
<meta
name=
"pageID"
content=
"http-bind"
/>
<meta
name=
"pageID"
content=
"http-bind"
/>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
enabled
=
<%=
isHttpBindEnabled
%>
;
var
enabled
=
$
{
serverManager
.
httpBindEnabled
?
'
true
'
:
'
false
'
}
;
var
setEnabled
=
function
()
{
var
setEnabled
=
function
()
{
$
(
"
port
"
).
disabled
=
!
enabled
;
$
(
"
port
"
).
disabled
=
!
enabled
;
$
(
"
securePort
"
).
disabled
=
!
enabled
;
$
(
"
securePort
"
).
disabled
=
!
enabled
;
...
@@ -133,7 +122,7 @@
...
@@ -133,7 +122,7 @@
$
(
"
XFFHostHeader
"
).
disabled
=
!
enabled
;
$
(
"
XFFHostHeader
"
).
disabled
=
!
enabled
;
$
(
"
XFFHostName
"
).
disabled
=
!
enabled
;
$
(
"
XFFHostName
"
).
disabled
=
!
enabled
;
$
(
"
crossdomain
"
).
disabled
=
!
enabled
;
$
(
"
crossdomain
"
).
disabled
=
!
enabled
;
}
}
;
window
.
onload
=
setTimeout
(
"
setEnabled()
"
,
500
);
window
.
onload
=
setTimeout
(
"
setEnabled()
"
,
500
);
</script>
</script>
</head>
</head>
...
@@ -141,237 +130,159 @@
...
@@ -141,237 +130,159 @@
<p>
<p>
<fmt:message
key=
"httpbind.settings.info"
/>
<fmt:message
key=
"httpbind.settings.info"
/>
</p>
</p>
<%
if
(
errorMap
.
size
()
>
0
)
{
for
(
String
key
:
errorMap
.
keySet
())
{
%>
<c:forEach
var=
"err"
items=
"
${
errors
}
"
>
<div
class=
"error"
style=
"width: 400px"
>
<admin:infobox
type=
"error"
>
<%
if
(
key
.
equals
(
"port"
))
{
%>
<c:choose>
<fmt:message
key=
"httpbind.settings.error.port"
/>
<c:when
test=
"
${
err
.
key
eq
'port'
}
"
><fmt:message
key=
"httpbind.settings.error.port"
/></c:when>
<%
}
<c:when
test=
"
${
err
.
key
eq
'missingMotdMessage'
}
"
><fmt:message
key=
"motd.message.missing"
/></c:when>
else
{
%>
<c:otherwise>
<fmt:message
key=
"httpbind.settings.error.general"
/>
<c:if
test=
"
${
not
empty
err
.
value
}
"
>
<%
}
%>
<fmt:message
key=
"httpbind.settings.error.general"
/>
</div>
</c:if>
<%
}
(
<c:out
value=
"
${
err
.
key
}
"
/>
)
}
%>
</c:otherwise>
</c:choose>
</admin:infobox>
</c:forEach>
<form
action=
"http-bind.jsp"
method=
"post"
>
<form
action=
"http-bind.jsp"
method=
"post"
>
<input
type=
"hidden"
name=
"csrf"
value=
"${csrf}"
>
<input
type=
"hidden"
name=
"csrf"
value=
"${csrf}"
>
<div
class=
"jive-contentBox"
style=
"-moz-border-radius: 3px;"
>
<fmt:message
key=
"httpbind.settings.title"
var=
"general_settings_boxtitle"
/>
<admin:contentBox
title=
"
${
general_settings_boxtitle
}
"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<tbody>
<tbody>
<tr
valign=
"top"
>
<tr
valign=
"top"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<input
type=
"radio"
name=
"httpBindEnabled"
value=
"true"
id=
"rb02"
<input
type=
"radio"
name=
"httpBindEnabled"
value=
"true"
id=
"rb02"
onclick=
"enabled = true; setEnabled();"
${
serverManager
.
httpBindEnabled
?
"
checked
"
:
""}
>
onclick=
"enabled = true; setEnabled();"
<%=
(
isHttpBindEnabled
?
"checked"
:
""
)
%>>
</td>
</td>
<td
width=
"99%"
colspan=
"2"
>
<td
width=
"99%"
colspan=
"2"
>
<label
for=
"rb02"
>
<label
for=
"rb02"
><b><fmt:message
key=
"httpbind.settings.label_enable"
/></b>
-
<fmt:message
key=
"httpbind.settings.label_enable_info"
/></label>
<b>
<fmt:message
key=
"httpbind.settings.label_enable"
/>
</b>
-
<fmt:message
key=
"httpbind.settings.label_enable_info"
/>
</label>
<table
border=
"0"
>
<table
border=
"0"
>
<tr>
<tr>
<td>
<td><label
for=
"port"
><fmt:message
key=
"httpbind.settings.vanilla_port"
/></label></td>
<label
for=
"port"
>
<td><input
id=
"port"
type=
"text"
size=
"5"
maxlength=
"10"
name=
"port"
value=
"${serverManager.httpBindUnsecurePort}"
/></td>
<fmt:message
key=
"httpbind.settings.vanilla_port"
/>
<td>
(
<c:out
value=
"
${
serverManager
.
httpBindUnsecureAddress
}
"
/>
)
</td>
</label>
</td><td>
<input
id=
"port"
type=
"text"
size=
"5"
maxlength=
"10"
name=
"port"
value=
"
<%=
port
%>
"
/>
</td>
<td>
(
<%=
serverManager
.
getHttpBindUnsecureAddress
()
%>
)
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td><label
for=
"securePort"
><fmt:message
key=
"httpbind.settings.secure_port"
/></label></td>
<label
for=
"securePort"
>
<td><input
id=
"securePort"
type=
"text"
size=
"5"
maxlength=
"10"
name=
"securePort"
value=
"${serverManager.httpBindSecurePort}"
/></td>
<fmt:message
key=
"httpbind.settings.secure_port"
/>
<td>
(
<c:out
value=
"
${
serverManager
.
httpBindSecureAddress
}
"
/>
)
</td>
</label>
</td><td>
<input
id=
"securePort"
type=
"text"
size=
"5"
maxlength=
"10"
name=
"securePort"
value=
"
<%=
securePort
%>
"
/>
</td>
<td>
(
<%=
serverManager
.
getHttpBindSecureAddress
()
%>
)
</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
<tr
valign=
"top"
>
<tr
valign=
"top"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<input
type=
"radio"
name=
"httpBindEnabled"
value=
"false"
id=
"rb01"
<input
type=
"radio"
name=
"httpBindEnabled"
value=
"false"
id=
"rb01"
onclick=
"enabled = false; setEnabled();"
${
serverManager
.
httpBindEnabled
?
""
:
"
checked
"}
%
>
onclick=
"enabled = false; setEnabled();"
<%=
(!
isHttpBindEnabled
?
"checked"
:
""
)
%>>
</td>
</td>
<td
width=
"99%"
colspan=
"2"
>
<td
width=
"99%"
colspan=
"2"
>
<label
for=
"rb01"
>
<label
for=
"rb01"
><b><fmt:message
key=
"httpbind.settings.label_disable"
/></b>
-
<fmt:message
key=
"httpbind.settings.label_disable_info"
/></label>
<b>
<fmt:message
key=
"httpbind.settings.label_disable"
/>
</b>
-
<fmt:message
key=
"httpbind.settings.label_disable_info"
/>
</label>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</
div
>
</
admin:contentBox
>
<div
class=
"jive-contentBoxHeader"
>
Script Syntax
</div>
<
div
class=
"jive-contentbo
x"
>
<
admin:contentBox
title=
"Script Synta
x"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<tbody>
<tbody>
<tr
valign=
"middle"
>
<tr
valign=
"middle"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
><input
type=
"radio"
name=
"scriptSyntaxEnabled"
value=
"true"
id=
"rb03"
${
serverManager
.
scriptSyntaxEnabled
?
"
checked
"
:
""}
></td>
<input
type=
"radio"
name=
"scriptSyntaxEnabled"
value=
"true"
id=
"rb03"
<td
width=
"99%"
><label
for=
"rb03"
><b><fmt:message
key=
"httpbind.settings.script.label_enable"
/></b>
-
<fmt:message
key=
"httpbind.settings.script.label_enable_info"
/></label></td>
<%=
(
isScriptSyntaxEnabled
?
"checked"
:
""
)
%>>
</td>
<td
width=
"99%"
>
<label
for=
"rb03"
>
<b><fmt:message
key=
"httpbind.settings.script.label_enable"
/></b>
-
<fmt:message
key=
"httpbind.settings.script.label_enable_info"
/>
</label>
</td>
</tr>
</tr>
<tr
valign=
"middle"
>
<tr
valign=
"middle"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
><input
type=
"radio"
name=
"scriptSyntaxEnabled"
value=
"false"
id=
"rb04"
${
serverManager
.
scriptSyntaxEnabled
?
""
:
"
checked
"}
></td>
<input
type=
"radio"
name=
"scriptSyntaxEnabled"
value=
"false"
id=
"rb04"
<td
width=
"99%"
><label
for=
"rb04"
><b><fmt:message
key=
"httpbind.settings.script.label_disable"
/></b>
-
<fmt:message
key=
"httpbind.settings.script.label_disable_info"
/></label></td>
<%=
(!
isScriptSyntaxEnabled
?
"checked"
:
""
)
%>>
</td>
<td
width=
"99%"
>
<label
for=
"rb04"
>
<b><fmt:message
key=
"httpbind.settings.script.label_disable"
/></b>
-
<fmt:message
key=
"httpbind.settings.script.label_disable_info"
/>
</label>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</
div
>
</
admin:contentBox
>
<!-- CORS -->
<!-- CORS -->
<div
class=
"jive-contentBoxHeader"
><fmt:message
key=
"httpbind.settings.cors.group"
/></div
>
<fmt:message
key=
"httpbind.settings.cors.group"
var=
"cors_boxtitle"
/
>
<
div
class=
"jive-contentbox
"
>
<
admin:contentBox
title=
"
${
cors_boxtitle
}
"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<tbody>
<tbody>
<tr
valign=
"top"
>
<tr
valign=
"top"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<input
type=
"radio"
name=
"CORSEnabled"
value=
"true"
id=
"rb05"
<input
type=
"radio"
name=
"CORSEnabled"
value=
"true"
id=
"rb05"
${
serverManager
.
CORSEnabled
?
"
checked
"
:
""}
>
<%=
(
isCORSEnabled
?
"checked"
:
""
)
%>>
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<label
for=
"rb05"
>
<label
for=
"rb05"
><b><fmt:message
key=
"httpbind.settings.cors.label_enable"
/></b>
-
<fmt:message
key=
"httpbind.settings.cors.label_enable_info"
/></label>
<b><fmt:message
key=
"httpbind.settings.cors.label_enable"
/></b>
-
<fmt:message
key=
"httpbind.settings.cors.label_enable_info"
/>
</label>
<table
border=
"0"
>
<table
border=
"0"
>
<tr>
<tr><td><label
for=
"CORSDomains"
><fmt:message
key=
"httpbind.settings.cors.domain_list"
/></label></td></tr>
<td>
<tr><td><input
id=
"CORSDomains"
type=
"text"
size=
"80"
name=
"CORSDomains"
value=
"${fn:escapeXml(serverManager.CORSAllowOrigin)}"
></td></tr>
<label
for=
"CORSDomains"
>
<fmt:message
key=
"httpbind.settings.cors.domain_list"
/>
</label>
</td>
</tr>
<tr>
<td>
<input
id=
"CORSDomains"
type=
"text"
size=
"80"
name=
"CORSDomains"
value=
"
<%=
StringUtils
.
escapeForXML
(
serverManager
.
getCORSAllowOrigin
())
%>
"
>
</td>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
<tr
valign=
"top"
>
<tr
valign=
"top"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<input
type=
"radio"
name=
"CORSEnabled"
value=
"false"
id=
"rb06"
<input
type=
"radio"
name=
"CORSEnabled"
value=
"false"
id=
"rb06"
${
serverManager
.
CORSEnabled
?
""
:
"
checked
"}
>
<%=
(!
isCORSEnabled
?
"checked"
:
""
)
%>>
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<label
for=
"rb06"
>
<label
for=
"rb06"
><b><fmt:message
key=
"httpbind.settings.cors.label_disable"
/></b>
-
<fmt:message
key=
"httpbind.settings.cors.label_disable_info"
/></label>
<b><fmt:message
key=
"httpbind.settings.cors.label_disable"
/></b>
-
<fmt:message
key=
"httpbind.settings.cors.label_disable_info"
/>
</label>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</
div
>
</
admin:contentBox
>
<!-- CORS -->
<!-- CORS -->
<!-- XFF -->
<!-- XFF -->
<div
class=
"jive-contentBoxHeader"
><fmt:message
key=
"httpbind.settings.xff.group"
/></div
>
<fmt:message
key=
"httpbind.settings.xff.group"
var=
"xff_boxtitle"
/
>
<
div
class=
"jive-contentbox
"
>
<
admin:contentBox
title=
"
${
xff_boxtitle
}
"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<table
cellpadding=
"3"
cellspacing=
"0"
border=
"0"
>
<tbody>
<tbody>
<tr
valign=
"top"
>
<tr
valign=
"top"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<input
type=
"radio"
name=
"XFFEnabled"
value=
"true"
id=
"rb07"
<input
type=
"radio"
name=
"XFFEnabled"
value=
"true"
id=
"rb07"
${
serverManager
.
XFFEnabled
?
"
checked
"
:
""}
>
<%=
(
isXFFEnabled
?
"checked"
:
""
)
%>>
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<label
for=
"rb07"
>
<label
for=
"rb07"
><b><fmt:message
key=
"httpbind.settings.xff.label_enable"
/></b>
-
<fmt:message
key=
"httpbind.settings.xff.label_enable_info"
/></label>
<b><fmt:message
key=
"httpbind.settings.xff.label_enable"
/></b>
-
<fmt:message
key=
"httpbind.settings.xff.label_enable_info"
/>
</label>
<table
border=
"0"
>
<table
border=
"0"
>
<tr>
<tr>
<td>
<td><label
for=
"XFFHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_for"
/></label></td>
<label
for=
"XFFHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_for"
/></label>
<td><input
id=
"XFFHeader"
type=
"text"
size=
"40"
name=
"XFFHeader"
value=
"${fn:escapeXml(serverManager.XFFHeader == null ? "
"
:
serverManager
.
XFFHeader
)}"
></td>
</td>
<td>
<input
id=
"XFFHeader"
type=
"text"
size=
"40"
name=
"XFFHeader"
value=
"
<%=
xffHeader
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffHeader
)
%>
"
>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td><label
for=
"XFFServerHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_server"
/></label></td>
<label
for=
"XFFServerHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_server"
/></label>
<td><input
id=
"XFFServerHeader"
type=
"text"
size=
"40"
name=
"XFFServerHeader"
value=
"${fn:escapeXml(serverManager.XFFServerHeader == null ? "
"
:
serverManager
.
XFFServerHeader
)}"
></td>
</td>
<td>
<input
id=
"XFFServerHeader"
type=
"text"
size=
"40"
name=
"XFFServerHeader"
value=
"
<%=
xffServerHeader
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffServerHeader
)
%>
"
>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td><label
for=
"XFFHostHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_host"
/></label></td>
<label
for=
"XFFHostHeader"
><fmt:message
key=
"httpbind.settings.xff.forwarded_host"
/></label>
<td><input
id=
"XFFHostHeader"
type=
"text"
size=
"40"
name=
"XFFHostHeader"
value=
"${fn:escapeXml(serverManager.XFFHostHeader == null ? "
"
:
serverManager
.
XFFHostHeader
)}"
></td>
</td>
<td>
<input
id=
"XFFHostHeader"
type=
"text"
size=
"40"
name=
"XFFHostHeader"
value=
"
<%=
xffHostHeader
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffHostHeader
)
%>
"
>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td><label
for=
"XFFHostName"
><fmt:message
key=
"httpbind.settings.xff.host_name"
/></label></td>
<label
for=
"XFFHostName"
><fmt:message
key=
"httpbind.settings.xff.host_name"
/></label>
<td><input
id=
"XFFHostName"
type=
"text"
size=
"40"
name=
"XFFHostName"
value=
"${fn:escapeXml(serverManager.XFFHostName == null ? "
"
:
serverManager
.
XFFHostName
)}"
></td>
</td>
<td>
<input
id=
"XFFHostName"
type=
"text"
size=
"40"
name=
"XFFHostName"
value=
"
<%=
xffHostName
==
null
?
""
:
StringUtils
.
escapeForXML
(
xffHostName
)
%>
"
>
</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
<tr
valign=
"top"
>
<tr
valign=
"top"
>
<td
width=
"1%"
nowrap
>
<td
width=
"1%"
nowrap
>
<input
type=
"radio"
name=
"XFFEnabled"
value=
"false"
id=
"rb08"
<input
type=
"radio"
name=
"XFFEnabled"
value=
"false"
id=
"rb08"
${
serverManager
.
XFFEnabled
?
""
:
"
checked
"}
>
<%=
(!
isXFFEnabled
?
"checked"
:
""
)
%>>
</td>
</td>
<td
width=
"99%"
>
<td
width=
"99%"
>
<label
for=
"rb08"
>
<label
for=
"rb08"
><b><fmt:message
key=
"httpbind.settings.xff.label_disable"
/></b>
-
<fmt:message
key=
"httpbind.settings.xff.label_disable_info"
/></label>
<b><fmt:message
key=
"httpbind.settings.xff.label_disable"
/></b>
-
<fmt:message
key=
"httpbind.settings.xff.label_disable_info"
/>
</label>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</
div
>
</
admin:contentBox
>
<!-- XFF -->
<!-- XFF -->
<div
class=
"jive-contentBoxHeader"
>
Cross-domain policy
</div>
<admin:contentBox
title=
"Cross-domain policy"
>
<div
class=
"jive-contentbox"
>
<p><fmt:message
key=
"httpbind.settings.crossdomain.info.general"
/></p>
<p><fmt:message
key=
"httpbind.settings.crossdomain.info.general"
/></p>
<p><fmt:message
key=
"httpbind.settings.crossdomain.info.override"
>
<p><fmt:message
key=
"httpbind.settings.crossdomain.info.override"
><fmt:param
value=
"<tt><openfireHome>/conf/crossdomain.xml</tt>"
/></fmt:message></p>
<fmt:param
value=
"<tt><openfireHome>/conf/crossdomain.xml</tt>"
/>
</fmt:message></p>
<p><fmt:message
key=
"httpbind.settings.crossdomain.info.policy"
/></p>
<p><fmt:message
key=
"httpbind.settings.crossdomain.info.policy"
/></p>
<textarea
id=
"crossdomain"
cols=
"120"
rows=
"10"
wrap=
"virtual"
readonly=
"readonly"
><
%=
(
isHttpBindEnabled
?
StringUtils
.
escapeForXML
(
FlashCrossDomainServlet
.
getCrossDomainContent
())
:
""
)
%
></textarea>
<textarea
id=
"crossdomain"
cols=
"120"
rows=
"10"
wrap=
"virtual"
readonly=
"readonly"
><
c:out
value=
"
${
crossDomainContent
}
"
/
></textarea>
</
div
>
</
admin:contentBox
>
<input
type=
"submit"
id=
"settingsUpdate"
name=
"update"
<input
type=
"submit"
id=
"settingsUpdate"
name=
"update"
value=
"
<fmt:message
key=
"global.save_settings"
/>
"
>
value=
"
<fmt:message
key=
"global.save_settings"
/>
"
>
</form>
</form>
</body>
</body>
</html>
</html>
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