Parent Directory
|
Revision Log
Revision 1.4 - (view) (download)
| 1 : | dservos | 1.1 | <?php |
| 2 : | dservos | 1.2 | /////////////////////////////////////////////////////////////////////////// |
| 3 : | // // | ||
| 4 : | // NOTICE OF COPYRIGHT // | ||
| 5 : | // // | ||
| 6 : | // Moodle - Modular Object-Oriented Dynamic Learning Environment // | ||
| 7 : | // http://moodle.org // | ||
| 8 : | // // | ||
| 9 : | // Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // | ||
| 10 : | // // | ||
| 11 : | // This program is free software; you can redistribute it and/or modify // | ||
| 12 : | // it under the terms of the GNU General Public License as published by // | ||
| 13 : | // the Free Software Foundation; either version 2 of the License, or // | ||
| 14 : | // (at your option) any later version. // | ||
| 15 : | // // | ||
| 16 : | // This program is distributed in the hope that it will be useful, // | ||
| 17 : | // but WITHOUT ANY WARRANTY; without even the implied warranty of // | ||
| 18 : | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // | ||
| 19 : | // GNU General Public License for more details: // | ||
| 20 : | // // | ||
| 21 : | // http://www.gnu.org/copyleft/gpl.html // | ||
| 22 : | // // | ||
| 23 : | /////////////////////////////////////////////////////////////////////////// | ||
| 24 : | |||
| 25 : | /** | ||
| 26 : | dservos | 1.3 | * HTML for the visual report. |
| 27 : | dservos | 1.4 | * Based on generated code from flex builder. |
| 28 : | dservos | 1.2 | */ |
| 29 : | dservos | 1.3 | ?> |
| 30 : | dservos | 1.2 | |
| 31 : | dservos | 1.1 | <div style="vertical-align: top; text-align: center;"> |
| 32 : | <script src="AC_OETags.js" language="javascript"></script> | ||
| 33 : | <script language="JavaScript" type="text/javascript"> | ||
| 34 : | <!-- | ||
| 35 : | // ----------------------------------------------------------------------------- | ||
| 36 : | // Major version of Flash required | ||
| 37 : | var requiredMajorVersion = 9; | ||
| 38 : | // Minor version of Flash required | ||
| 39 : | var requiredMinorVersion = 0; | ||
| 40 : | // Minor version of Flash required | ||
| 41 : | var requiredRevision = 28; | ||
| 42 : | // ----------------------------------------------------------------------------- | ||
| 43 : | |||
| 44 : | |||
| 45 : | // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65) | ||
| 46 : | var hasProductInstall = DetectFlashVer(6, 0, 65); | ||
| 47 : | |||
| 48 : | // Version check based upon the values defined in globals | ||
| 49 : | var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); | ||
| 50 : | |||
| 51 : | if ( hasProductInstall && !hasRequestedVersion ) { | ||
| 52 : | // DO NOT MODIFY THE FOLLOWING FOUR LINES | ||
| 53 : | // Location visited after installation is complete if installation is required | ||
| 54 : | var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn"; | ||
| 55 : | var MMredirectURL = window.location; | ||
| 56 : | document.title = document.title.slice(0, 47) + " - Flash Player Installation"; | ||
| 57 : | var MMdoctitle = document.title; | ||
| 58 : | |||
| 59 : | AC_FL_RunContent( | ||
| 60 : | dservos | 1.3 | "flashVars", "<?php echo $flashvarshtml; ?>", |
| 61 : | "framerate", "<?php echo $visual->framerate; ?>", | ||
| 62 : | dservos | 1.1 | "src", "playerProductInstall", |
| 63 : | "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"", | ||
| 64 : | dservos | 1.3 | "width", "<?php echo $visual->width; ?>", |
| 65 : | "height", "<?php echo $visual->height; ?>", | ||
| 66 : | dservos | 1.1 | "align", "middle", |
| 67 : | "id", "flare_visualization", | ||
| 68 : | dservos | 1.3 | "quality", "<?php echo $visual->quality ?>", |
| 69 : | "bgcolor", "#<?php echo $visual->backgroundcolor ?>", | ||
| 70 : | dservos | 1.1 | "name", "flare_visualization", |
| 71 : | "allowScriptAccess","sameDomain", | ||
| 72 : | "type", "application/x-shockwave-flash", | ||
| 73 : | "pluginspage", "http://www.adobe.com/go/getflashplayer" | ||
| 74 : | ); | ||
| 75 : | } else if (hasRequestedVersion) { | ||
| 76 : | // if we've detected an acceptable version | ||
| 77 : | // embed the Flash Content SWF when all tests are passed | ||
| 78 : | AC_FL_RunContent( | ||
| 79 : | dservos | 1.3 | "flashVars", "<?php echo $flashvarshtml; ?>", |
| 80 : | "framerate", "<?php echo $visual->framerate; ?>", | ||
| 81 : | dservos | 1.1 | "src", "flare_visualization", |
| 82 : | dservos | 1.3 | "width", "<?php echo $visual->width; ?>", |
| 83 : | "height", "<?php echo $visual->height; ?>", | ||
| 84 : | dservos | 1.1 | "align", "middle", |
| 85 : | "id", "flare_visualization", | ||
| 86 : | dservos | 1.3 | "quality", "<?php echo $visual->quality ?>", |
| 87 : | "bgcolor", "#<?php echo $visual->backgroundcolor ?>", | ||
| 88 : | dservos | 1.1 | "name", "flare_visualization", |
| 89 : | "allowScriptAccess","sameDomain", | ||
| 90 : | "type", "application/x-shockwave-flash", | ||
| 91 : | "pluginspage", "http://www.adobe.com/go/getflashplayer" | ||
| 92 : | ); | ||
| 93 : | } else { // flash is too old or we can't detect the plugin | ||
| 94 : | var alternateContent = 'Alternate HTML content should be placed here. ' | ||
| 95 : | + 'This content requires the Adobe Flash Player. ' | ||
| 96 : | + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>'; | ||
| 97 : | document.write(alternateContent); // insert non-flash content | ||
| 98 : | } | ||
| 99 : | // --> | ||
| 100 : | </script> | ||
| 101 : | <noscript> | ||
| 102 : | <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" | ||
| 103 : | dservos | 1.3 | id="flare_visualization" width="<?php echo $visual->width; ?>" height="<?php echo $visual->height; ?>" |
| 104 : | dservos | 1.1 | codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> |
| 105 : | dservos | 1.3 | <param name="flashVars" value="<?php echo $flashvarshtml;?>" /> |
| 106 : | dservos | 1.1 | |
| 107 : | <param name="movie" value="flare_visualization.swf" /> | ||
| 108 : | dservos | 1.3 | <param name="quality" value="<?php echo $visual->quality ?>" /> |
| 109 : | <param name="bgcolor" value="#<?php echo $visual->backgroundcolor ?>" /> | ||
| 110 : | dservos | 1.1 | <param name="allowScriptAccess" value="sameDomain" /> |
| 111 : | dservos | 1.3 | <embed src="flare_visualization.swf" quality="high" bgcolor="#<?php echo $visual->backgroundcolor ?>" |
| 112 : | flashVars="<?php echo $flashvarshtml; ?>" | ||
| 113 : | framerate="<?php echo $visual->framerate ?>" | ||
| 114 : | width="<?php echo $visual->width; ?>" height="<?php echo $visual->height; ?>" name="flare_visualization" align="middle" | ||
| 115 : | dservos | 1.1 | play="true" |
| 116 : | loop="false" | ||
| 117 : | dservos | 1.3 | quality="<?php echo $visual->quality ?>" |
| 118 : | dservos | 1.1 | allowScriptAccess="sameDomain" |
| 119 : | type="application/x-shockwave-flash" | ||
| 120 : | pluginspage="http://www.adobe.com/go/getflashplayer"> | ||
| 121 : | </embed> | ||
| 122 : | </object> | ||
| 123 : | </noscript> | ||
| 124 : | </div> |
| Moodle CVS Admin | ViewVC Help |
| Powered by ViewVC 1.0.7 |