Changes to log view page so that infected files comes under 'site errors'.
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-73 2004-09-17 00:05:28 GMT Penny Leach <[email protected]> better logging for uploads and infected files, as well as changing the log page view slightly so that site errors yields infected files as well Full logs: Revision: moodle--eduforge--1.3.3--patch-73 Archive: [email protected] Creator: Penny Leach <[email protected]> Date: Fri Sep 17 12:05:28 NZST 2004 Standard-date: 2004-09-17 00:05:28 GMT Modified-files: course/lib.php lib/uploadlib.php lib/weblib.php New-patches: [email protected]/moodle--eduforge--1.3.3--patch-73 Summary: better logging for uploads and infected files, as well as changing the log page view slightly so that site errors yields infected files as well Keywords:
This commit is contained in:
+2
-2
@@ -607,7 +607,7 @@ function clam_log_upload($newfilepath,$course=null) {
|
||||
if ($course) {
|
||||
$courseid = $course->id;
|
||||
}
|
||||
add_to_log($courseid,"upload","upload","",$newfilepath);
|
||||
add_to_log($courseid,"upload","upload",$_SERVER['HTTP_REFERER'],$newfilepath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -618,7 +618,7 @@ function clam_log_upload($newfilepath,$course=null) {
|
||||
*/
|
||||
function clam_log_infected($oldfilepath='',$newfilepath='',$userid=0) {
|
||||
|
||||
add_to_log(0,"upload","infected","",$oldfilepath,0,$userid);
|
||||
add_to_log(0,"upload","infected",$_SERVER['HTTP_REFERER'],$oldfilepath,0,$userid);
|
||||
|
||||
$user = get_record('user','id',$userid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user