Project

General

Profile

« Previous | Next » 

Revision 8527

Added by Jing Tao almost 11 years ago

Add a default page to handle the user management for the filed-based authentication.

View differences:

lib/style/common/default-user-management.jsp
1
<%@page import="edu.ucsb.nceas.metacat.properties.PropertyService"%>
2
<%@page import="edu.ucsb.nceas.metacat.properties.SkinPropertyService"%>
3
<%
4
    /**
5
 *  '$RCSfile$'
6
 *    Copyright: 2000 Regents of the University of California and the
7
 *               National Center for Ecological Analysis and Synthesis
8
 *  For Details: http://www.nceas.ucsb.edu/
9
 *
10
 *   '$Author: leinfelder $'
11
 *     '$Date: 2013-09-17 16:33:52 -0700 (Tue, 17 Sep 2013) $'
12
 * '$Revision: 8224 $'
13
 * 
14
 * This program is free software; you can redistribute it and/or modify
15
 * it under the terms of the GNU General Public License as published by
16
 * the Free Software Foundation; either version 2 of the License, or
17
 * (at your option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful,
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 * GNU General Public License for more details.
23
 *
24
 * You should have received a copy of the GNU General Public License
25
 * along with this program; if not, write to the Free Software
26
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
 *
28
 * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
29
 * convert an XML file showing the resultset of a query
30
 * into an HTML format suitable for rendering with modern web browsers.
31
 */
32
%>
33
<% 
34

  
35
String CFG = PropertyService.getProperty("application.default-style");
36
String email = SkinPropertyService.getProperty(CFG, "email.recipient");
37
%>
38
<%@ include file="common-settings.jsp"%>
39
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
40
<html>
41
<head>
42
<title>Metacat Data Catalog </title>
43
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
44
    <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/<%=CFG%>/<%=CFG%>.css">
45
    <script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/<%=CFG%>/<%=CFG%>.js"></script>
46
    <script language="javascript" type="text/javascript" src="branding.js"></script>
47
</head>
48
<body>
49
  <script language="javascript">
50
      insertTemplateOpening("<%=CONTEXT_URL%>");
51
  </script>
52
  <p>Please contact the administrator( <%=email%> ) to get a new account or reset password.
53
 
54
  <script language="javascript">
55
      insertTemplateClosing("<%=CONTEXT_URL%>");
56
  </script>
57
</body>
58
</html>

Also available in: Unified diff