Author: tdraier
Date: Fri Sep 7 15:34:15 2007
New Revision: 18401
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18401&repname=
=3Djahia
Log:
add a 403/forbidden page that does not allow login (different from unauthor=
ized)
Added:
branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/errors/error_403=
_forbidden.jsp
Added: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/errors/error_=
403_forbidden.jsp
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/branches/JAHIA=
-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/errors/error_403_forbidden.jsp&rev=
=3D18401&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/errors/error_403=
_forbidden.jsp (added)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/errors/error_403=
_forbidden.jsp Fri Sep 7 15:34:15 2007
@@ -0,0 +1,81 @@
+<%--
+Copyright 2002-2006 Jahia Ltd
+
+Licensed under the JAHIA COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (JCDD=
L), =
+Version 1.0 (the "License"), or (at your option) any later version; you ma=
y =
+not use this file except in compliance with the License. You should have =
+received a copy of the License along with this program; if not, you may ob=
tain =
+a copy of the License at =
+
+ http://www.jahia.org/license/
+
+Unless required by applicable law or agreed to in writing, software =
+distributed under the License is distributed on an "AS IS" BASIS, =
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. =
+See the License for the specific language governing permissions and =
+limitations under the License.
+--%>
+<[EMAIL PROTECTED] language=3D"java"%>
+<[EMAIL PROTECTED] import=3D"org.jahia.exceptions.JahiaInvalidModeException"%>
+<[EMAIL PROTECTED] import=3D"java.text.MessageFormat"%>
+<[EMAIL PROTECTED] import=3D"org.jahia.resourcebundle.JahiaResourceBundle"%>
+<[EMAIL PROTECTED] import=3D"org.jahia.params.ParamBean"%>
+<[EMAIL PROTECTED] import=3D"org.jahia.bin.Jahia" %>
+<[EMAIL PROTECTED] import=3D"org.jahia.params.ProcessingContext" %>
+<[EMAIL PROTECTED] import=3D"org.jahia.services.usermanager.JahiaUser" %>
+<[EMAIL PROTECTED] import=3D"org.jahia.data.JahiaData"%>
+<[EMAIL PROTECTED] uri=3D"JahiaLib" prefix=3D"jahia" %>
+<?xml version=3D"1.0" encoding=3D"iso-8859-1"?><%
+ =
+ final String cpath =3D Jahia.getContextPath();
+ final String spath =3D Jahia.getServletPath();
+ final ParamBean jParams =3D (ParamBean) request.getAttribute("org.jahi=
a.params.ParamBean");
+ final int REDIRECTION_DELAY =3D 5000;
+ Throwable exception =3D (Throwable)request.getAttribute("originalExcep=
tion");
+ while (exception !=3D null && exception.getCause() !=3D null) {
+ exception =3D exception.getCause();
+ }
+
+%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns=3D"http://www.w3.org/1999/xhtml">
+<head>
+ <link rel=3D"stylesheet" href=3D"<%=3Drequest.getContextPath()%>/jsp/j=
ahia/engines/css/error.css" type=3D"text/css"/>
+ <script type=3D"text/javascript" src=3D"<%=3Drequest.getContextPath()%=
>/jsp/jahia/javascript/jahia.js"></script>
+ <script type=3D"text/javascript" src=3D"<%=3Drequest.getContextPath()%=
>/jsp/jahia/errors/error_include.js"></script>
+ =
+ <title><jahia:engineResourceBundle resourceName=3D"org.jahia.bin.Jahia=
ErrorDisplay.httpForbidden.label"/></title>
+</head>
+<%
+ final JahiaUser currentUser =3D ((JahiaUser) session.getAttribute(Proc=
essingContext.SESSION_USER));
+ final String currentUserName;
+ if (currentUser !=3D null) {
+ currentUserName =3D currentUser.getUsername();
+ } else {
+ currentUserName =3D null;
+ }
+ boolean isGuest =3D currentUserName =3D=3D null || "guest".equals(curr=
entUserName);
+ =
+%>
+<body>
+<br/><br/><br/>
+<table align=3D"center" width=3D"530" height=3D"63" border=3D"0" cellspaci=
ng=3D"0" cellpadding=3D"0">
+ <tr>
+ <td colspan=3D"2" class=3D"boxtitlecolor1"><jahia:engineResourceBu=
ndle
+ resourceName=3D"org.jahia.bin.JahiaErrorDisplay.errorPage.=
label"/></td>
+ </tr>
+ <tr>
+ <td colspan=3D"2" class=3D"boxcontentcolor3">
+ <p class=3D"bold"><jahia:engineResourceBundle
+ resourceName=3D"org.jahia.bin.JahiaErrorDisplay.error4=
03.label"/></p>
+
+ <p><jahia:engineResourceBundle resourceName=3D"org.jahia.bin.J=
ahiaErrorDisplay.accessForbidden.label"/></p>
+
+ <% if (isGuest) { %>
+ <p><jahia:engineResourceBundle resourceName=3D"org.jahia.bin.J=
ahiaErrorDisplay.loginAgain.label"/></p>
+ <% } %>
+ </td>
+ </tr>
+</table>
+</body>
+</html>
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list