Added clam_log_upload where move_uploaded_file is in quiz/format/coursetestmanager/format.php (validated and scanned before given to function)

These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/[email protected]/moodle--eduforge--1.3.3

Index of arch patches in this commit:

[email protected]/moodle--eduforge--1.3.3--patch-71
    2004-09-16 04:48:07 GMT
    Penny Leach <[email protected]>
    difficult to integrate quiz coursetestmanager format with the upload stuff so added logging as well. files are scanned from import.php before passed to coursetestmanager format to process

Full logs:

Revision: moodle--eduforge--1.3.3--patch-71
Archive: [email protected]
Creator: Penny Leach <[email protected]>
Date: Thu Sep 16 16:48:07 NZST 2004
Standard-date: 2004-09-16 04:48:07 GMT
Modified-files: mod/quiz/format/coursetestmanager/format.php
New-patches: [email protected]/moodle--eduforge--1.3.3--patch-71
Summary: difficult to integrate quiz coursetestmanager format with the upload stuff so added logging as well. files are scanned from import.php before passed to coursetestmanager format to process
Keywords:
This commit is contained in:
mjollnir_
2004-09-16 04:50:21 +00:00
parent 95c603d35d
commit 12e6ee6e8e
+3 -1
View File
@@ -6,7 +6,7 @@
////////////////////////////////////////////////////////////////////
// Based on format.php, included by ../../import.php
require_once($CFG->dirroot.'/lib/uploadlib.php');
class quiz_file_format {
function importpreprocess($category) {
@@ -41,6 +41,7 @@ class quiz_file_format {
$newfile = "$basedir/$cleanfilename";
if (move_uploaded_file($filename, $newfile)) {
chmod($newfile, 0666);
clam_log_upload($newfile,$course);
} else {
notify(get_string("uploadproblem", "", $filename));
}
@@ -95,6 +96,7 @@ class quiz_file_format {
$newfile = "$basedir/$cleanfilename";
if (move_uploaded_file($filename, $newfile)) {
chmod($newfile, 0666);
clam_log_upload($newfile,$course);
} else {
notify(get_string("uploadproblem", "", $filename));
}