Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Upgrading Script To Transfer From WebCT To Moodle.

Development:Upgrading Script To Transfer From WebCT To Moodle

From MoodleDocs
Revision as of 16:42, 30 October 2006 by Pierre Pichet (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description of the code modifications done initially most as a day-to-day work reports.

index.php

The initial course name (i.e. CHI2300_1) is used in the quizDB so it should be stored during this first step. It is added as a input type ="hidden" and stored in global $data

echo "\n

  • <form action='./'>$nxtfile
    Import this file using course code " . "<input type='text' name='crscode' maxlength='15' value='".htmlspecialchars(preg_replace('/^(.*?)_COURSE.*$/', "$1", $nxtfile))."'/>" . "<input type='hidden' name='initialcrscode' maxlength='15' value='".htmlspecialchars(preg_replace('/^(.*?)_COURSE.*$/', "$1", $nxtfile))."'/>" . "<input type='hidden' name='zipfile' value='".htmlspecialchars($nxtfile)."'/>" . "<input type='hidden' name='action' value='process'/>"