]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed two lost PHP short tags
authorbobopinna <bobopinna>
Mon, 24 May 2004 07:15:40 +0000 (07:15 +0000)
committerbobopinna <bobopinna>
Mon, 24 May 2004 07:15:40 +0000 (07:15 +0000)
mod/scorm/details.php

index 7eb7d64277d9d2b17436c1a553d8337950794dec..6ed8b14f3d3292dd7bc7049eb100e4ec8d062cbc 100755 (executable)
        $coursedir = "$CFG->dataroot/$course->id";
 
        if ($scormdir = make_upload_directory("$course->id/$CFG->moddata/scorm")) {
-        if ($tempdir = scorm_datadir($scormdir, $form->datadir)) {
-            copy ("$coursedir/$form->reference", $tempdir."/".basename($form->reference));
-            if (empty($CFG->unzip)) {    // Use built-in php-based unzip function
-                include_once($CFG->dirroot.'/lib/pclzip/pclzip.lib.php');
-                $archive = new PclZip($tempdir."/".basename($form->reference));
-                if (!$list = $archive->extract($tempdir)) {
-                    error($archive->errorInfo(true));
+            if ($tempdir = scorm_datadir($scormdir, $form->datadir)) {
+                copy ("$coursedir/$form->reference", $tempdir."/".basename($form->reference));
+                if (empty($CFG->unzip)) {    // Use built-in php-based unzip function
+                    include_once($CFG->dirroot.'/lib/pclzip/pclzip.lib.php');
+                    $archive = new PclZip($tempdir."/".basename($form->reference));
+                    if (!$list = $archive->extract($tempdir)) {
+                        error($archive->errorInfo(true));
+                    }
+                } else {
+                    $command = "cd $tempdir; $CFG->unzip -o ".basename($form->reference)." 2>&1";
+                    exec($command);
                 }
+                $result = scorm_validate($tempdir."/imsmanifest.xml");
             } else {
-                $command = "cd $tempdir; $CFG->unzip -o ".basename($form->reference)." 2>&1";
-                exec($command);
+                $result = "packagedir";
             }
-            $result = scorm_validate($tempdir."/imsmanifest.xml");
-        } else {
-            $result = "packagedir";
-        }
        } else {
            $result = "datadir";
        }
            <input type="submit" name=cancel value="<?php print_string("cancel") ?>">
        </center>
         </form>
-<?
+<?php
        } else {
 ?>
        <center>
            <input type="button" value="<?php print_string("continue") ?>" onClick="document.location='<?php echo $CFG->wwwroot ?>/course/view.php?id=<?php echo $course->id ?>';">
         </center>
-<?
+<?php
        }
        print_simple_box_end();
         print_footer($course);