summaryrefslogtreecommitdiffstats
path: root/base/tks/shared/webapps/tks/agent/ports.template
blob: 88acbb90f3994bea6ec31a9571220dcd3570e6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!-- --- BEGIN COPYRIGHT BLOCK ---
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; version 2 of the License.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License along
     with this program; if not, write to the Free Software Foundation, Inc.,
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

     Copyright (C) 2007 Red Hat, Inc.
     All rights reserved.
     --- END COPYRIGHT BLOCK --- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.js"></script>
<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.i18n.properties.js"></script>

<script type="text/javascript" language="JavaScript">
$(function() {
    $.i18n.properties({
        name: 'ports',
        language: ' ', // suppress potential 404's due to .i18n.browserLang()
        path: '/pki/tks/agent/',
        mode: 'map',
        callback: function() {
            var key;
            for (key in $.i18n.map) {
                var message = $.i18n.prop(key);
                $('span.message[name='+key+']').html(message);
            }
        }
    });
});
</script>

<CMS_TEMPLATE>
<title>TKS Agent Ports</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

<body bgcolor="#FFFFFF" link="#666699" vlink="#666699" alink="#333366">
<table border="0" width="100%" cellspacing="0" cellpadding="6">
  <tr bgcolor="#000080"> 
    <td> 
      <table border="0" cellspacing="12" cellpadding="0">
        <tr> 
          <td><img src="/pki/images/logo_header.gif"></td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><span class="message" name="title"><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b>Services Summary</b></font></span></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr valign="TOP"> 
    <td>&nbsp;</td>
    <td> 
      <table border="0" cellspacing="0" cellpadding="0">
        <tr valign="TOP"> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
<SCRIPT type="text/javascript">
function displayError()
{
        document.write("<center><h2><b>" +
                "Problem Processing Your Request" +
                "</b></h2></center><p>" +
                "The service encountered a problem " +
                "when processing your request. This problem may " +
                "indicate a flaw in the form used to submit your " +
                "request or the values that were entered into the form." +
                "The following message supplies more information " +
                "about the error that occurred.<p>");
        document.write("<blockquote><b><pre>");
        if (result.header.errorDetails != null) {
                document.write(result.header.errorDetails);
        } else {
                document.write("Unable to provide details. " +
                 "Contact Administrator.");
        }
        document.write("</pre></b></blockquote>");
        if (result.header.errorDescription != null) {
                document.write('<p>Additional Information:<p>');
                document.write('<blockquote><b>');
                document.write(result.header.errorDescription);
                document.write('</b></blockquote>');
        }
        document.write("<p>");
        document.write("Please consult your local administrator for " +
                "further assistance.");
        document.write("The certificate server's log may provide " +
                "further information.");
}

if (result.header.errorDetails != null) {
        displayError();
} else {
	for (var i = 0; i < result.recordSet.length; ++i) {
          if (result.recordSet[i].port == -1)
                  continue;
        	document.write('<tr valign="TOP">');
          	document.write('<td>');
		document.write('<img src="/pki/images/goto-tall.gif" width="10" height="15">&nbsp;</td>');
          	document.write('<td>');
		document.write('<font face="PrimaSans BT, Verdana, sans-serif">');
		document.write('<a href="');
		document.write(result.recordSet[i].prefix + "://" +
			result.header.hostname + ":" +
			result.recordSet[i].port);
		if (result.recordSet[i].type == "eeGateway.http.port") {
			document.write('">End Users Services</a></font>');
			document.write('<font size="-1" face="PrimaSans BT, Verdana, sans-serif"><br>');
		} else if (result.recordSet[i].type == "eeGateway.https.port") {
			document.write('">SSL End Users Services</a></font>');
			document.write('<font size="-1" face="PrimaSans BT, Verdana, sans-serif"><br>');
		} else if (result.recordSet[i].type == "agentGateway.https.port") {
			document.write('">Agent Services</a></font>');
			document.write('<font size="-1" face="PrimaSans BT, Verdana, sans-serif"><br>');
		} else {
			document.write('">Internal Error</a></font>');
		}
		document.write('</font></td></tr>');
	}
}
</SCRIPT>
        <tr valign="TOP"> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>