53 Commits

Author SHA1 Message Date
Simon Coggins
ec2d8ceb88 MDL-35332 lib: Improve security of hashed passwords 2013-02-09 06:47:57 +13:00
Jonathan Harker
b5a52acd9d MDL-16660: Add calendar import.
Adds an extra import section alongside the existing export in the
calendar views. Allows the user to import from either a file or a
URL as a subscription, with an optional polling interval of hourly,
daily, weekly, monthly, or annually. This subscription may be added
to the user, group, global or course calendars. These subscriptions
are tracked in a separate database table, and an extra column added
to the events table to relate them to the subscription. The event
uuid field is also expanded to allow for the RFC-2445 UID property.
Subscriptions are listed on the calendar view page, and can be
added and removed, manually polled, and the polling interval
adjusted. Subscription events are updated on cron.
2012-10-30 17:33:18 +13:00
Marina Glancy
db02d84a40 MDL-34290 remove class cache_file as not used
in fact we have moodle filepool that can work perfectly for caching files, no need to create new class and storage
2012-08-29 11:56:17 +08:00
Tim Hunt
2ec325c252 MDL-29847 question preview: garbage collect old preview data.
This adds cron code which looks for question previews that have not been
touched for more than 24 hours, and deletes them.

We try to delete previews immediately. For example if the user clicks
start again, then we immediately delete their previous preview. However,
we can't do that if they just close the preview window. Hence we need
some cron code to clean up old preview that have got left lying around.

Normally, this code will not have much to do, so it will be very fast,
so we can afford to run it every cron.

This has been implemented in such a way that in future it will be easy
to add other cron code to the question bank.

Sadly, to make this work on MySQL, we require a horrible hack in the
already hacky delete_usage_records_for_mysql function.
2012-08-16 17:02:01 +01:00
Dan Poltawski
850d2db82a MDL-25012 - blogs: introduce a specific 'enabled' config setting
Rather than overloading the $CFG->bloglevel setting which had a
confusing UI in the appearance subsystem.

In order to achieve this we modify take the defaults from the existing
bloglevel setting and set that for $CFG->enableblogs. Note that in order
to prevent a bad default settings from being set we also set
$CFG->bloglevel to a valid 'enabled' setting.
2012-08-06 11:25:22 +08:00
Sam Hemelryk
395b805f97 Merge branch 'MDL-34225' of git://github.com/nebgor/moodle 2012-07-23 14:04:09 +12:00
Aparup Banerjee
7534234322 MDL-34225 course completion : move /lib/completion/* up to /completion 2012-07-10 11:06:41 +08:00
Dan Poltawski
114244ce6c Merge branch 'w27_MDL-34123_m24_newpasslang' of git://github.com/skodak/moodle 2012-07-03 10:39:12 +08:00
Dan Poltawski
6fa25ccd26 Merge branch 'w27_MDL-34120_m24_delpass' of git://github.com/skodak/moodle 2012-07-02 16:48:22 +08:00
Petr Škoda
3cbad151af MDL-34123 use user's lang when sending new emails 2012-06-30 20:46:04 +02:00
Petr Škoda
8205498fa0 MDL-34120 do not try to create new passwords for incorrectly deleted users
There is still some code that ignores delete_user() and instead hacks the user table directly, skip the borked user records for now when sending new passwords.
2012-06-30 08:55:39 +02:00
Andrew Davis
c968c1b787 MDL-25476 messages: switched some notification emails to come from the support contact instead of admin 2012-06-26 11:44:56 +07:00
Eric Merrill
54c2756ca2 MDL-32985 cron: Fixing related problem with setting of lastnotifyfailure
Because of a flaw in the logic, lastnotifyfailure was not set unless
there was a failure. This means that after 1 hour of no failures, the
function would execute every cron cycle, which has a pretty high cost
on large sites.
2012-06-06 12:04:03 -04:00
Eloy Lafuente (stronk7)
aa12ec984c MDL-32985 cron: prevent notices on "new" sites. 2012-06-05 02:14:13 +02:00
Eloy Lafuente (stronk7)
4baa746eae Merge branch 'MDL-32985' of git://github.com/merrill-oakland/moodle 2012-06-05 02:02:12 +02:00
Aparup Banerjee
a91b4aa661 MDL-33318 lib : code style fix 2012-05-24 15:40:06 +08:00
Dan Marsden
eef67fe8c5 MDL-33318 use $CFG->admin in path correctly - thanks to Clarence Prudhoe for report/fix 2012-05-24 14:08:01 +12:00
Dongsheng Cai
6723372514 MDL-28666 Extends repository to support references
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
David Mudrak
fef693c858 MDL-32610 cron based fetch of available updates can be disabled from config.php 2012-05-15 14:32:55 +02:00
Eric Merrill
192a8e13c3 MDL-32985 cron: don't execute notify_login_failures unnecessarily 2012-05-14 11:21:14 -04:00
Eloy Lafuente (stronk7)
14e2704ad4 MDL-29262 backup: new setting to control the ttl of backup logs
Add one new backup setting, moving from the general CFG->loglifetime,
to be able to delete backup logged information often.
2012-04-22 21:23:55 +02:00
Dan Poltawski
098312b149 Merge branch 'wip-mdl-30051' of git://github.com/rajeshtaneja/moodle 2012-04-10 11:05:59 +08:00
David Mudrak
19d11b3b34 MDL-20438 introducing the cron_notifications() method
This method accepts all detected changes in cron-based fetch and picks
those the site admins want to be informed about (based on the maturity
level etc).
2012-03-30 11:05:42 +02:00
Rajesh Taneja
a415ecc21c MDL-30051 cron: login error sql is now cross db 2012-03-30 16:48:31 +08:00
Petr Skoda
e2bb3c9275 MDL-32094 some more E_STRICT fixes 2012-03-18 20:40:20 +01:00
Tim Hunt
c2f5e2ab81 MDL-30635 enable standard cron for all question and quiz plugin types.
* Support for old non-standard cron for quiz reports dropped. (Standard
cron support was added in 2.2

* Cron support added for qbehaviour, qformat and quizacces plugins.

* qtypes were already supported in the standard way.
2012-01-06 18:42:35 +00:00
Petr Skoda
daa8b1ac06 MDL-30948 do not generate new passwords for suspended accounts because they would not get any emails 2012-01-03 16:48:15 +01:00
Petr Skoda
4332cc468c MDL-29670 add more timeout resets 2011-10-25 22:07:04 +02:00
Petr Skoda
50ed196e51 MDL-29670 cron cleanup and minor fixing
Auth and enrol is moved to the top because other plugin types depend on accurate user list and enrolments. Passwords and failed login messages are generated during every cron execution.  Contexts are build properly in each execution. Fixed deleting of unconfirmed users. And minor phpdocs and comments improvements.
2011-10-22 14:31:18 +02:00
Sam Hemelryk
f08d258cd4 Merge branch 'master_MDL-29519' of git://github.com/danmarsden/moodle 2011-09-27 14:09:18 +13:00
Petr Skoda
67a6243ad4 MDL-29509 add cron support for admin tools 2011-09-27 00:39:19 +02:00
Dan Marsden
8cf1862ccc MDL-29519 move plagiarism cron to after event queue 2011-09-26 13:15:15 +13:00
Petr Skoda
f91f3f63a7 MDL-28182 always use full user object when deleting users 2011-07-22 22:46:32 +02:00
Tim Hunt
a2ac234956 MDL-20636 Merge remote-tracking branch 'moodle/master' into upgrade
Conflicts:
	lib/filestorage/file_storage.php
	mod/quiz/attemptlib.php
	mod/quiz/lib.php
	mod/quiz/mod_form.php
	mod/quiz/report/overview/overview_table.php
	mod/quiz/report/overview/report.php
	mod/quiz/report/responses/report.php
	mod/quiz/report/responses/responses_table.php
	mod/quiz/report/statistics/db/install.xml
	mod/quiz/report/statistics/qstats.php
	mod/quiz/report/statistics/report.php
	mod/quiz/report/statistics/statistics_question_table.php
	mod/quiz/report/statistics/statistics_table.php
	mod/quiz/report/statistics/version.php
	mod/quiz/review.php
	mod/quiz/reviewquestion.php
	mod/quiz/startattempt.php
	mod/quiz/styles.css
	mod/quiz/view.php
	question/type/essay/questiontype.php
	question/type/match/backup/moodle2/backup_qtype_match_plugin.class.php
	question/type/match/backup/moodle2/restore_qtype_match_plugin.class.php
	question/type/numerical/display.html
	question/type/numerical/questiontype.php
	question/type/questiontype.php
	question/type/random/questiontype.php
	question/type/shortanswer/questiontype.php
	theme/base/style/question.css
2011-05-11 20:29:49 +01:00
Petr Skoda
bc61aa4085 MDL-26803 add missing forcing of password reset when new password created in cron 2011-03-16 19:59:33 +01:00
Tim Hunt
f255782339 MDL-20636 You can now create a quiz, and edit the settings.
Little else works, but this is just the first step.
2011-02-09 20:18:06 +00:00
sam marshall
cd092eceee cron MDL-25370 Update to use simpler api to get component directory 2010-12-23 10:32:42 +00:00
sam marshall
e4a626b983 cron MDL-25370 Update Petr's changes to fix bug regarding lastcron, add comments/doc 2010-12-21 16:37:22 +00:00
Petr Skoda
b554173562 MDL-25370 general cron support for nearly all plugin types 2010-12-21 15:18:29 +00:00
sam marshall
546380244f cron MDL-25370 Added support for course report cron
- Adds support for course report cron
- Moves existing admin report cron support to end of cron function
- Adds new core API get_plugin_list_with_function

note: default shipping course and admin reports do not use cron
function, this is only to support plugins.
2010-12-13 13:00:44 +00:00
Eloy Lafuente
cbb9e9b8b4 MDL-25310 backup - some minor tasks related to cleaning/old options 2010-11-18 21:34:01 +00:00
Sam Hemelryk
bac233d326 backup MDL-22184 Scheduled backups are now possible again through cron.
AMOS BEGIN
 MOV [move scheduledsetup,core_backup],[automatedsetup,core_backup]
 MOV [scheduledsettings,core_backup],[automatedsettings,core_backup]
 MOV [scheduledstorage,core_backup],[automatedstorage,core_backup]
 MOV [scheduledstoragehelp,core_backup],[automatedstoragehelp,core_backup]
 MOV [scheduledbackupsinactive,core],[automatedbackupsinactive,core_backup]
 MOV [scheduledbackupstatus,core],[automatedbackupstatus,core_backup]
 CPY [schedule,core],[automatedbackupschedule,core_backup]
 MOV [backupschedulehelp,core],[automatedbackupschedulehelp,core_backup]
AMOS END
2010-11-10 06:07:43 +00:00
Andrew Davis
46505ee75e message MDL-24694 removed references to user->emailstop. the column itself will be removed in a later version 2010-11-05 08:04:40 +00:00
Andrew Davis
7868480ab3 message MDL-24879 removed commented out code 2010-10-28 04:00:38 +00:00
Andrew Davis
212badff4d message MDL-24879 added something to cron to remove read notifications 2010-10-28 03:59:40 +00:00
Petr Skoda
41209c1e0f MDL-24751 upgrades may need more memory 2010-10-19 10:17:48 +00:00
Petr Skoda
346c5887b1 MDL-24751 using new memory constants 2010-10-19 10:13:15 +00:00
Petr Skoda
c22473a214 MDL-24751 fixed default memory limit when deciding to use apache_child_terminate(), apache_child_terminate() is now called from one place only 2010-10-19 10:00:29 +00:00
Petr Skoda
4c56c7bf0c MDL-24726 prevent cron execution when upgrade pending 2010-10-18 17:06:44 +00:00
Petr Skoda
9957af6810 MDL-24723 prevent cron execution in CLI maintenance mode 2010-10-18 12:52:25 +00:00