source: ComponentRegistry/trunk/ComponentRegistry/src/main/webresources/index.jsp @ 282

Last change on this file since 282 was 282, checked in by patdui, 14 years ago

Trying out shibboleth

  • Property svn:executable set to *
File size: 4.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2<%@ page language="java" contentType="text/html; charset=UTF-8"
3    pageEncoding="UTF-8"%>
4<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
6<head>
7<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
9<!--  BEGIN Browser History required section -->
10<link rel="stylesheet" type="text/css" href="history/history.css" />
11<!--  END Browser History required section -->
12
13<title>${title}</title>
14<script src="AC_OETags.js" language="javascript"></script>
15
16<!--  BEGIN Browser History required section -->
17<script src="history/history.js" language="javascript"></script>
18<!--  END Browser History required section -->
19
20<style>
21body { margin: 0px; overflow:hidden }
22</style>
23<script type="text/javascript" src="./js/extMouseWheel.js"></script>
24<script language="JavaScript" type="text/javascript">
25<!--
26// -----------------------------------------------------------------------------
27// Globals
28// Major version of Flash required
29var requiredMajorVersion = ${version_major};
30// Minor version of Flash required
31var requiredMinorVersion = ${version_minor};
32// Minor version of Flash required
33var requiredRevision = ${version_revision};
34// -----------------------------------------------------------------------------
35// -->
36</script>
37</head>
38
39<body scroll="no">
40<div id="flashContainerDiv" style="position:absolute; width:100%; height:100%">
41<script language="JavaScript" type="text/javascript">
42<!--
43// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
44var hasProductInstall = DetectFlashVer(6, 0, 65);
45
46// Version check based upon the values defined in globals
47var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
48
49if ( hasProductInstall && !hasRequestedVersion ) {
50        // DO NOT MODIFY THE FOLLOWING FOUR LINES
51        // Location visited after installation is complete if installation is required
52        var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
53        var MMredirectURL = window.location;
54    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
55    var MMdoctitle = document.title;
56
57        AC_FL_RunContent(
58                "src", "playerProductInstall",
59                "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
60                "width", "${width}",
61                "height", "${height}",
62                "align", "middle",
63                "id", "${application}",
64                "quality", "high",
65                "bgcolor", "${bgcolor}",
66                "name", "${application}",
67                "allowScriptAccess","sameDomain",
68                "type", "application/x-shockwave-flash",
69                "pluginspage", "http://www.adobe.com/go/getflashplayer"
70        );
71} else if (hasRequestedVersion) {
72        // if we've detected an acceptable version
73        // embed the Flash Content SWF when all tests are passed
74        AC_FL_RunContent(
75                        "src", "${swf}",
76                        "width", "${width}",
77                        "height", "${height}",
78                        "align", "middle",
79                        "id", "${application}",
80                        "quality", "high",
81                        "bgcolor", "${bgcolor}",
82                        "name", "${application}",
83                        "allowScriptAccess","sameDomain",
84                        "type", "application/x-shockwave-flash",
85                        "pluginspage", "http://www.adobe.com/go/getflashplayer",
86                        "FlashVars", "serviceRootUrl=${serviceRootUrl}&isocatSearchUrl=${isocatSearchUrl}&jsessionid=${pageContext.session.id}&userName=${request.remoteUser}"
87                           
88        );
89  } else {  // flash is too old or we can't detect the plugin
90    var alternateContent = 'This content requires the Adobe Flash Player. '
91        + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
92    document.write(alternateContent);  // insert non-flash content
93  }
94// -->
95</script>
96<noscript>
97        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
98                        id="${application}" width="${width}" height="${height}"
99                        codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
100                        <param name="movie" value="${swf}.swf" />
101                        <param name="quality" value="high" />
102                        <param name="bgcolor" value="${bgcolor}" />
103                        <param name="allowScriptAccess" value="sameDomain" />
104                        <embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
105                                width="${width}" height="${height}" name="${application}" align="middle"
106                                play="true"
107                                loop="false"
108                                quality="high"
109                                allowScriptAccess="sameDomain"
110                                type="application/x-shockwave-flash"
111                                pluginspage="http://www.adobe.com/go/getflashplayer"
112                                FlashVars="serviceRootUrl=${serviceRootUrl}&isocatSearchUrl=${isocatSearchUrl}&jsessionid=${pageContext.session.id}&userName=${request.remoteUser}" >
113                        </embed>
114        </object>
115</noscript>
116</div>
117</body>
118</html>
Note: See TracBrowser for help on using the repository browser.