fixed a problem with Firefox and bad schema version

This commit is contained in:
bobopinna 2005-05-18 14:57:12 +00:00
parent 7f4e5cce98
commit 23f6c62b62
3 changed files with 11 additions and 6 deletions

View File

@ -413,10 +413,11 @@ function scorm_endElement($parser, $name) {
$manifest = '';
}
if ($name == 'SCHEMAVERSION') {
if (preg_match("/(\d+)\.(\d+)$/",$datacontent,$matches)) {
$version = 'SCORM_'.$matches[1].'.'.$matches[2];
}
//$version = $datacontent;
if (preg_match("/^(1\.2)$|^(CAM )?(1\.3)$/",$datacontent,$matches)) {
$version = 'SCORM_'.$matches[count($matches)-1];
} else {
$version = 'SCORM_1.2';
}
}
}

View File

@ -101,7 +101,11 @@
<html>
<head>
<title>LoadSCO</title>
<meta http-equiv="refresh" content="1;URL=<?php echo $result ?>" />
<script language="javascript" type="text/javascript">
<!--
setTimeout('document.location = "<?php echo $result ?>";',1000);
-->
</script>
</head>
<body>
&nbsp;

View File

@ -142,7 +142,7 @@
text-indent:-4ex;
}
</style>
<script language="Javascript">
<script language="javascript" type="text/javascript">
<!--
function playSCO(scoid) {
if (scoid == 0) {