-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathflash_detect.php
37 lines (27 loc) · 1.55 KB
/
flash_detect.php
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
<p>
This application requires Flash browser plugin.
<script type="text/javascript">
var updateWarning = false;
if(FlashDetect.installed)
{
document.write("Flash version detected: " + FlashDetect.major + "."+ FlashDetect.minor + " ");
if(!FlashDetect.versionAtLeast(11, 2))
{
document.write("Flash was detected but is too old to run this application. Upgrade your Flash plugin to proceed!");
updateWarning = true;
}
}
else
{
document.write("Flash was not detected in your browser: Flash plugin is required to use this application!");
updateWarning = true;
}
if (updateWarning) document.write("<B class=warning>Update to latest flash player: <a href=\"https://get.adobe.com/flashplayer/\" target=\"_blank\">https://get.adobe.com/flashplayer/</a> !</B>");
</script>
</p>
<div id="flashWarning"></div>
<script>
var hasFlash = ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Shockwave Flash"] == "object") || (window.ActiveXObject && (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) != false));
var flashWarn = '<strong>Important: Using the Flash web based interface requires <a rel="nofollow" target="_flash" href="https://get.adobe.com/flashplayer/">latest Flash plugin</a> and <a rel="nofollow" target="_flash" href="https://helpx.adobe.com/flash-player.html">activating plugin in your browser</a>. Flash apps are recommended on PC for best latency and most advanced features.</strong>';
if (!hasFlash) document.getElementById("flashWarning").innerHTML = flashWarn;
</script>