From: Petr Skoda Date: Sun, 1 Nov 2009 10:57:00 +0000 (+0000) Subject: MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trail... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f578af59fcffa6edf5926787341dfea3fe16cc0d;p=moodle.git MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup --- diff --git a/admin/auth_config.php b/admin/auth_config.php index 648757b763..369365bd25 100644 --- a/admin/auth_config.php +++ b/admin/auth_config.php @@ -174,4 +174,4 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts, } } -?> + diff --git a/admin/cron.php b/admin/cron.php index fd14064d02..4f926725e6 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -1,4 +1,4 @@ -"; } -?> + diff --git a/admin/delete.php b/admin/delete.php index 215c766172..36a7afa68b 100644 --- a/admin/delete.php +++ b/admin/delete.php @@ -1,4 +1,4 @@ - + diff --git a/admin/enrol.php b/admin/enrol.php index 4eafca5010..889ef777a5 100644 --- a/admin/enrol.php +++ b/admin/enrol.php @@ -1,4 +1,4 @@ -footer(); -?> + diff --git a/admin/environment.php b/admin/environment.php index ee89bde7c0..d057df449c 100644 --- a/admin/environment.php +++ b/admin/environment.php @@ -1,4 +1,4 @@ -footer(); -?> + diff --git a/admin/filters.php b/admin/filters.php index 3726674bb0..6489ee0b21 100644 --- a/admin/filters.php +++ b/admin/filters.php @@ -1,4 +1,4 @@ - 2>&1 | php -d error_log=/path/to/log thisfile.php + * clamscan -r --infected --no-summary 2>&1 | php -d error_log=/path/to/log thisfile.php * also it's important that the output of clamscan prints the FULL PATH to each infected file, so use absolute paths for area to scan * also it should be run as root, or whatever the webserver runs as so that it has the right permissions in the quarantine dir etc. * php -d error_log=/path/to/log thisfile.php will override the default error log for php cli, which is stderr, so if you want this script to just print stuff out, use php thisfile.php instead. @@ -36,7 +36,7 @@ while(!feof($fd)) { } $action = clam_handle_infected_file($file,$log->userid,true); clam_replace_infected_file($file); - + $user = $DB->get_record("user", array("id"=>$log->userid)); $course = $DB->get_record("course", array("id"=>$log->course)); $subject = get_string('virusfoundsubject','moodle',format_string($site->fullname)); @@ -86,13 +86,13 @@ function notify_admins($user,$subject,$a) { $eventdata->fullmessage = $body; $eventdata->fullmessageformat = FORMAT_PLAIN; $eventdata->fullmessagehtml = ''; - $eventdata->smallmessage = ''; + $eventdata->smallmessage = ''; events_trigger('message_send', $eventdata); } } function notify_admins_unknown($file,$a) { - + global $site; $admins = get_admins(); diff --git a/admin/health.php b/admin/health.php index 5a72796900..8a3b8b32b4 100644 --- a/admin/health.php +++ b/admin/health.php @@ -1,4 +1,4 @@ - + diff --git a/admin/lang.php b/admin/lang.php index e29ed1d6b9..0d642d3ae4 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -1,4 +1,4 @@ - + diff --git a/admin/mailout-debugger.php b/admin/mailout-debugger.php index 855f3b4753..ce7c1918bb 100644 --- a/admin/mailout-debugger.php +++ b/admin/mailout-debugger.php @@ -74,4 +74,4 @@ function mdie($msg='', $errorcode=1) { exit($errorcode); } -?> + diff --git a/admin/oacleanup.php b/admin/oacleanup.php index 8e53ebf8f0..30b5aa1c89 100644 --- a/admin/oacleanup.php +++ b/admin/oacleanup.php @@ -1,4 +1,4 @@ -'; } -?> + diff --git a/admin/process_email.php b/admin/process_email.php index cff7541ddd..c8b63ac9c1 100755 --- a/admin/process_email.php +++ b/admin/process_email.php @@ -1,5 +1,5 @@ #!/usr/bin/php -f - +