Merge branch 'MDL-39472-master' of git://github.com/sammarshallou/moodle
authorDan Poltawski <dan@moodle.com>
Wed, 12 Jun 2013 05:56:39 +0000 (13:56 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 12 Jun 2013 05:56:39 +0000 (13:56 +0800)
1228 files changed:
admin/cli/fix_deleted_users.php [new file with mode: 0644]
admin/cli/install.php
admin/cli/install_database.php
admin/cli/upgrade.php
admin/cron.php
admin/index.php
admin/mnet/peer_forms.php
admin/mnet/profilefields_form.php
admin/mnet/services_form.php
admin/registration/forms.php
admin/registration/register.php
admin/registration/renderer.php
admin/renderer.php
admin/settings/security.php
admin/tests/behat/behat_admin.php
admin/tests/behat/display_short_names.feature
admin/tests/behat/filter_users.feature
admin/tests/behat/upload_users.feature
admin/tool/assignmentupgrade/version.php
admin/tool/behat/cli/util.php
admin/tool/behat/tests/behat/basic_actions.feature
admin/tool/behat/tests/behat/data_generators.feature
admin/tool/behat/tests/behat/edit_permissions.feature
admin/tool/behat/tests/behat/list_steps.feature
admin/tool/behat/tests/behat/manipulate_forms.feature
admin/tool/behat/tests/behat/nasty_strings.feature
admin/tool/behat/tests/behat/test_environment.feature
admin/tool/behat/version.php
admin/tool/capability/version.php
admin/tool/customlang/db/upgrade.php
admin/tool/customlang/renderer.php
admin/tool/customlang/version.php
admin/tool/dbtransfer/version.php
admin/tool/generator/version.php
admin/tool/health/version.php
admin/tool/innodb/version.php
admin/tool/installaddon/classes/installer.php
admin/tool/installaddon/classes/pluginfo_client.php
admin/tool/installaddon/deploy.php
admin/tool/installaddon/lang/en/tool_installaddon.php
admin/tool/installaddon/tests/installer_test.php
admin/tool/installaddon/version.php
admin/tool/langimport/version.php
admin/tool/multilangupgrade/version.php
admin/tool/phpunit/cli/util.php
admin/tool/phpunit/version.php
admin/tool/profiling/version.php
admin/tool/qeupgradehelper/version.php
admin/tool/replace/version.php
admin/tool/spamcleaner/version.php
admin/tool/timezoneimport/version.php
admin/tool/unsuproles/version.php
admin/tool/uploaduser/index.php
admin/tool/uploaduser/version.php
admin/tool/xmldb/version.php
admin/webservice/protocols.php
auth/cas/auth.php
auth/cas/cli/sync_users.php
auth/cas/db/upgrade.php [new file with mode: 0644]
auth/cas/lang/en/auth_cas.php
auth/cas/version.php
auth/db/version.php
auth/email/auth.php
auth/email/lang/en/auth_email.php
auth/email/version.php
auth/fc/auth.php
auth/fc/lang/en/auth_fc.php
auth/fc/version.php
auth/imap/auth.php
auth/imap/lang/en/auth_imap.php
auth/imap/version.php
auth/ldap/auth.php
auth/ldap/cli/sync_users.php
auth/ldap/db/upgrade.php [new file with mode: 0644]
auth/ldap/lang/en/auth_ldap.php
auth/ldap/version.php
auth/manual/auth.php
auth/manual/db/upgrade.php
auth/manual/lang/en/auth_manual.php
auth/manual/version.php
auth/mnet/auth.php
auth/mnet/db/mnet.php
auth/mnet/db/upgrade.php
auth/mnet/jump.php
auth/mnet/land.php
auth/mnet/lang/en/auth_mnet.php
auth/mnet/version.php
auth/nntp/auth.php
auth/nntp/lang/en/auth_nntp.php
auth/nntp/version.php
auth/nologin/auth.php
auth/nologin/lang/en/auth_nologin.php
auth/nologin/version.php
auth/none/auth.php
auth/none/lang/en/auth_none.php
auth/none/version.php
auth/pam/auth.php
auth/pam/lang/en/auth_pam.php
auth/pam/version.php
auth/pop3/auth.php
auth/pop3/lang/en/auth_pop3.php
auth/pop3/version.php
auth/radius/auth.php
auth/radius/lang/en/auth_radius.php
auth/radius/version.php
auth/shibboleth/auth.php
auth/shibboleth/lang/en/auth_shibboleth.php
auth/shibboleth/version.php
auth/tests/behat/behat_auth.php
auth/tests/behat/login.feature
auth/webservice/auth.php
auth/webservice/lang/en/auth_webservice.php
auth/webservice/version.php
backup/backup.class.php
backup/moodle2/backup_stepslib.php
backup/moodle2/restore_course_task.class.php
backup/moodle2/restore_final_task.class.php
backup/moodle2/restore_root_task.class.php
backup/moodle2/restore_stepslib.php
backup/util/dbops/restore_dbops.class.php
backup/util/ui/tests/behat/backup_courses.feature
backup/util/ui/tests/behat/behat_backup.php
backup/util/ui/tests/behat/duplicate_activities.feature
backup/util/ui/tests/behat/import_course.feature
backup/util/ui/tests/behat/restore_moodle2_courses.feature
badges/award.php
badges/backpack.js
badges/criteria.php
badges/criteria/award_criteria_course.php
badges/criteria/award_criteria_courseset.php
badges/criteria_form.php
badges/criteria_settings.php
badges/edit.php
badges/index.php
badges/lib/backpacklib.php
badges/mybackpack.php
badges/newbadge.php
badges/overview.php
badges/recipients.php
badges/renderer.php
badges/tests/behat/add_badge.feature
badges/tests/behat/award_badge.feature
badges/view.php
blocks/activity_modules/version.php
blocks/admin_bookmarks/version.php
blocks/badges/block_badges.php
blocks/badges/lang/en/block_badges.php
blocks/badges/version.php
blocks/blog_menu/version.php
blocks/blog_recent/version.php
blocks/blog_tags/version.php
blocks/calendar_month/version.php
blocks/calendar_upcoming/version.php
blocks/comments/tests/behat/add_comment.feature
blocks/comments/tests/behat/behat_block_comments.php
blocks/comments/tests/behat/delete_comment.feature
blocks/comments/version.php
blocks/community/db/upgrade.php
blocks/community/version.php
blocks/completionstatus/db/upgrade.php
blocks/completionstatus/version.php
blocks/course_list/version.php
blocks/course_overview/renderer.php
blocks/course_overview/version.php
blocks/course_summary/db/upgrade.php
blocks/course_summary/version.php
blocks/feedback/version.php
blocks/glossary_random/lang/en/block_glossary_random.php
blocks/glossary_random/version.php
blocks/html/db/upgrade.php
blocks/html/version.php
blocks/login/version.php
blocks/mentees/lang/en/block_mentees.php
blocks/mentees/version.php
blocks/messages/version.php
blocks/mnet_hosts/version.php
blocks/myprofile/version.php
blocks/navigation/db/upgrade.php
blocks/navigation/version.php
blocks/news_items/lang/en/block_news_items.php
blocks/news_items/version.php
blocks/online_users/lang/en/block_online_users.php
blocks/online_users/version.php
blocks/participants/version.php
blocks/private_files/version.php
blocks/quiz_results/version.php
blocks/recent_activity/version.php
blocks/rss_client/version.php
blocks/search_forums/version.php
blocks/section_links/db/upgrade.php
blocks/section_links/version.php
blocks/selfcompletion/db/upgrade.php
blocks/selfcompletion/version.php
blocks/settings/db/upgrade.php
blocks/settings/version.php
blocks/site_main_menu/version.php
blocks/social_activities/version.php
blocks/tag_flickr/version.php
blocks/tag_youtube/version.php
blocks/tags/version.php
blocks/tests/behat/add_blocks.feature
blocks/tests/behat/configure_block_throughout_site.feature
blocks/tests/behat/restrict_available_blocks.feature
blog/index.php
blog/lib.php
blog/tests/behat/comment.feature
cache/README.md
cache/admin.php
cache/classes/config.php
cache/classes/definition.php
cache/classes/helper.php
cache/disabledlib.php
cache/forms.php
cache/locallib.php
cache/renderer.php
cache/stores/file/addinstanceform.php
cache/stores/file/lib.php
cache/stores/file/version.php
cache/stores/memcache/addinstanceform.php
cache/stores/memcache/lang/en/cachestore_memcache.php
cache/stores/memcache/lib.php
cache/stores/memcache/version.php
cache/stores/memcached/lib.php
cache/stores/memcached/version.php
cache/stores/mongodb/addinstanceform.php
cache/stores/mongodb/lang/en/cachestore_mongodb.php
cache/stores/mongodb/version.php
cache/stores/session/lib.php
cache/stores/session/version.php
cache/stores/static/lib.php
cache/stores/static/version.php
cache/tests/cache_test.php
cache/tests/fixtures/lib.php
cache/tests/locallib_test.php
calendar/renderer.php
cohort/externallib.php [new file with mode: 0644]
cohort/index.php
cohort/tests/behat/add_cohort.feature
cohort/tests/behat/behat_cohort.php
cohort/tests/behat/upload_cohort_users.feature
cohort/tests/externallib_test.php [new file with mode: 0644]
completion/criteria/completion_criteria_date.php
completion/criteria/completion_criteria_duration.php
completion/criteria/completion_criteria_grade.php
completion/criteria/completion_criteria_unenrol.php
completion/tests/behat/behat_completion.php
completion/tests/behat/enable_manual_complete_mark.feature
completion/tests/behat/restrict_section_availability.feature
composer.json
config-dist.php
course/completion.php
course/completion_form.php
course/edit_form.php
course/editsection_form.php
course/externallib.php
course/format/lib.php
course/format/renderer.php
course/format/scorm/version.php
course/format/social/format.php
course/format/social/version.php
course/format/topics/lib.php
course/format/topics/renderer.php
course/format/topics/version.php
course/format/weeks/lib.php
course/format/weeks/version.php
course/lib.php
course/manage.php
course/modlib.php
course/moodleform_mod.php
course/renderer.php
course/request_form.php
course/resources.php
course/tests/behat/activities_group_icons.feature
course/tests/behat/activities_indentation.feature
course/tests/behat/activities_visibility_icons.feature
course/tests/behat/add_activities.feature
course/tests/behat/behat_course.php
course/tests/behat/course_controls.feature [new file with mode: 0644]
course/tests/behat/edit_settings.feature
course/tests/behat/force_group_mode.feature
course/tests/behat/max_number_sections.feature
course/tests/behat/move_activities.feature [new file with mode: 0644]
course/tests/behat/move_sections.feature [new file with mode: 0644]
course/tests/behat/paged_course_navigation.feature
course/tests/behat/rename_roles.feature
course/tests/behat/restrict_available_activities.feature
course/tests/behat/section_highlighting.feature
course/tests/behat/section_visibility.feature
course/tests/courselib_test.php
course/tests/externallib_test.php
course/view.php
course/yui/toolboxes/toolboxes.js
enrol/ajax.php
enrol/authorize/authorizenet.class.php
enrol/authorize/db/upgrade.php
enrol/authorize/enrol_form.php
enrol/authorize/import_form.php
enrol/authorize/index.php
enrol/authorize/lang/en/enrol_authorize.php
enrol/authorize/localfuncs.php
enrol/authorize/locallib.php
enrol/authorize/uploadcsv.php
enrol/authorize/version.php
enrol/bulkchange.php
enrol/bulkchange_forms.php
enrol/category/locallib.php
enrol/category/version.php
enrol/cohort/lang/en/enrol_cohort.php
enrol/cohort/lib.php
enrol/cohort/locallib.php
enrol/cohort/version.php
enrol/database/db/upgrade.php
enrol/database/version.php
enrol/flatfile/db/upgrade.php
enrol/flatfile/lib.php
enrol/flatfile/version.php
enrol/guest/addinstance.php
enrol/guest/db/upgrade.php
enrol/guest/lang/en/enrol_guest.php
enrol/guest/lib.php
enrol/guest/locallib.php
enrol/guest/settings.php
enrol/guest/tests/behat/guest_access.feature
enrol/guest/version.php
enrol/imsenterprise/db/install.php
enrol/imsenterprise/db/upgrade.php
enrol/imsenterprise/lang/en/enrol_imsenterprise.php
enrol/imsenterprise/lib.php
enrol/imsenterprise/locallib.php
enrol/imsenterprise/settings.php
enrol/imsenterprise/version.php
enrol/index.php
enrol/instances.php
enrol/ldap/cli/sync.php
enrol/ldap/db/install.php
enrol/ldap/lang/en/enrol_ldap.php
enrol/ldap/lib.php
enrol/ldap/settings.php
enrol/ldap/settingslib.php
enrol/ldap/version.php
enrol/locallib.php
enrol/manual/ajax.php
enrol/manual/db/services.php
enrol/manual/db/upgrade.php
enrol/manual/lib.php
enrol/manual/settings.php
enrol/manual/tests/lib_test.php
enrol/manual/version.php
enrol/meta/addinstance.php
enrol/meta/addinstance_form.php
enrol/meta/cli/sync.php
enrol/meta/db/install.php
enrol/meta/db/uninstall.php
enrol/meta/lang/en/enrol_meta.php
enrol/meta/lib.php
enrol/meta/locallib.php
enrol/meta/settings.php
enrol/meta/version.php
enrol/mnet/addinstance.php
enrol/mnet/addinstance_form.php
enrol/mnet/db/mnet.php
enrol/mnet/db/upgrade.php
enrol/mnet/enrol.php
enrol/mnet/lang/en/enrol_mnet.php
enrol/mnet/lib.php
enrol/mnet/settings.php
enrol/mnet/version.php
enrol/otherusers.php
enrol/paypal/db/upgrade.php
enrol/paypal/edit.php
enrol/paypal/edit_form.php
enrol/paypal/enrol.html
enrol/paypal/ipn.php
enrol/paypal/lang/en/enrol_paypal.php
enrol/paypal/lib.php
enrol/paypal/pix/icon.png [new file with mode: 0644]
enrol/paypal/pix/icon.svg [new file with mode: 0644]
enrol/paypal/return.php
enrol/paypal/settings.php
enrol/paypal/unenrolself.php
enrol/paypal/version.php
enrol/renderer.php
enrol/self/db/upgrade.php
enrol/self/lib.php
enrol/self/tests/behat/self_enrolment.feature
enrol/self/version.php
enrol/tests/enrollib_test.php
enrol/unenroluser.php
enrol/upgrade.txt
enrol/users.php
enrol/users_forms.php
files/coursefilesedit_form.php
filter/activitynames/filter.php
filter/activitynames/version.php
filter/algebra/version.php
filter/censor/version.php
filter/data/version.php
filter/emailprotect/version.php
filter/emoticon/version.php
filter/glossary/version.php
filter/mediaplugin/db/upgrade.php
filter/mediaplugin/version.php
filter/multilang/version.php
filter/tex/db/upgrade.php
filter/tex/version.php
filter/tidy/version.php
filter/urltolink/filter.php
filter/urltolink/tests/filter_test.php
filter/urltolink/version.php
grade/edit/tree/calculation.php
grade/edit/tree/category_form.php
grade/edit/tree/grade.php
grade/edit/tree/item_form.php
grade/edit/tree/outcomeitem_form.php
grade/export/grade_export_form.php
grade/export/lib.php
grade/export/ods/index.php
grade/export/ods/version.php
grade/export/txt/index.php
grade/export/txt/version.php
grade/export/xls/index.php
grade/export/xls/version.php
grade/export/xml/index.php
grade/export/xml/version.php
grade/grading/form/guide/lib.php
grade/grading/form/guide/version.php
grade/grading/form/rubric/db/upgrade.php
grade/grading/form/rubric/lang/en/gradingform_rubric.php
grade/grading/form/rubric/lib.php
grade/grading/form/rubric/version.php
grade/import/csv/index.php
grade/import/csv/version.php
grade/import/grade_import_form.php
grade/import/xml/grade_import_form.php
grade/import/xml/version.php
grade/lib.php
grade/report/grader/ajax_callbacks.php
grade/report/grader/lib.php
grade/report/grader/version.php
grade/report/lib.php
grade/report/outcomes/version.php
grade/report/overview/lib.php
grade/report/overview/version.php
grade/report/upgrade.txt [new file with mode: 0644]
grade/report/user/lib.php
grade/report/user/version.php
grade/tests/reportlib_test.php
group/tests/behat/auto_creation.feature
group/tests/behat/create_groups.feature
group/tests/behat/id_uniqueness.feature
index.php
install.php
install/lang/bn/error.php [new file with mode: 0644]
install/lang/bn/install.php
install/lang/ca_valencia/error.php
install/lang/ca_valencia/install.php
install/lang/ca_valencia/langconfig.php
install/lang/cy/admin.php
install/lang/cy/error.php
install/lang/cy/install.php
install/lang/dz/admin.php [new file with mode: 0644]
install/lang/dz/error.php [new file with mode: 0644]
install/lang/dz/install.php [new file with mode: 0644]
install/lang/dz/langconfig.php [new file with mode: 0644]
install/lang/dz/moodle.php [new file with mode: 0644]
install/lang/en/error.php
install/lang/en_kids/langconfig.php
install/lang/es_mx/error.php
install/lang/eu/install.php
install/lang/fa/error.php [new file with mode: 0644]
install/lang/fj/admin.php [new file with mode: 0644]
install/lang/fj/moodle.php [new file with mode: 0644]
install/lang/fr/error.php
install/lang/ga/moodle.php [new file with mode: 0644]
install/lang/gd/moodle.php [new file with mode: 0644]
install/lang/gl/admin.php
install/lang/gl/error.php
install/lang/gl/install.php
install/lang/gl/langconfig.php
install/lang/ha/langconfig.php [new file with mode: 0644]
install/lang/he/moodle.php
install/lang/is/admin.php
install/lang/it/error.php
install/lang/it/install.php
install/lang/ja/error.php
install/lang/ja_kids/langconfig.php
install/lang/ka/admin.php
install/lang/ka/moodle.php
install/lang/kl/langconfig.php
install/lang/ko/install.php
install/lang/lb/admin.php [new file with mode: 0644]
install/lang/lb/langconfig.php [new file with mode: 0644]
install/lang/lt_uni/moodle.php
install/lang/my/langconfig.php [new file with mode: 0644]
install/lang/so/admin.php
install/lang/sr_cr/error.php
install/lang/sr_cr/langconfig.php
install/lang/sr_lt/error.php
install/lang/sr_lt/langconfig.php
install/lang/te/admin.php
install/lang/te/error.php [new file with mode: 0644]
install/lang/te/install.php [new file with mode: 0644]
install/lang/te/langconfig.php
install/lang/tg/admin.php [new file with mode: 0644]
install/lang/tg/error.php [new file with mode: 0644]
install/lang/tg/install.php [new file with mode: 0644]
install/lang/tg/langconfig.php
install/lang/tg/moodle.php [new file with mode: 0644]
install/lang/tt/langconfig.php
install/lang/uk/admin.php [new file with mode: 0644]
install/lang/vi/error.php [new file with mode: 0644]
install/lang/wo/langconfig.php
install/lang/zh_tw/admin.php
install/lang/zh_tw/langconfig.php
install/stringnames.txt
lang/en/admin.php
lang/en/backup.php
lang/en/badges.php
lang/en/cache.php
lang/en/completion.php
lang/en/condition.php
lang/en/error.php
lang/en/grades.php
lang/en/group.php
lang/en/hub.php
lang/en/moodle.php
lang/en/plugin.php
lang/en/repository.php
lib/accesslib.php
lib/adminlib.php
lib/badgeslib.php
lib/behat/behat_base.php
lib/behat/behat_files.php
lib/behat/classes/behat_command.php
lib/behat/classes/util.php
lib/behat/form_field/behat_form_field.php
lib/behat/form_field/behat_form_select.php
lib/behat/lib.php
lib/blocklib.php
lib/cacert.pem [new file with mode: 0644]
lib/cacert.txt [new file with mode: 0644]
lib/completionlib.php
lib/conditionlib.php
lib/coursecatlib.php
lib/csslib.php
lib/datalib.php
lib/db/caches.php
lib/db/services.php
lib/db/upgrade.php
lib/deprecatedlib.php
lib/dml/moodle_database.php
lib/dml/mssql_native_moodle_database.php
lib/dml/oci_native_moodle_database.php
lib/dml/sqlite3_pdo_moodle_database.php
lib/dml/sqlsrv_native_moodle_database.php
lib/dml/tests/dml_test.php
lib/editor/textarea/version.php
lib/editor/tinymce/db/upgrade.php
lib/editor/tinymce/plugins/ctrlhelp/version.php
lib/editor/tinymce/plugins/dragmath/version.php
lib/editor/tinymce/plugins/moodleemoticon/version.php
lib/editor/tinymce/plugins/moodleimage/version.php
lib/editor/tinymce/plugins/moodlemedia/version.php
lib/editor/tinymce/plugins/moodlenolink/version.php
lib/editor/tinymce/plugins/spellchecker/db/upgrade.php
lib/editor/tinymce/plugins/spellchecker/version.php
lib/editor/tinymce/styles.css
lib/editor/tinymce/tests/behat/edit_available_icons.feature
lib/editor/tinymce/version.php
lib/editor/tinymce/yui/build/moodle-editor_tinymce-collapse/moodle-editor_tinymce-collapse-debug.js
lib/editor/tinymce/yui/build/moodle-editor_tinymce-collapse/moodle-editor_tinymce-collapse-min.js
lib/editor/tinymce/yui/build/moodle-editor_tinymce-collapse/moodle-editor_tinymce-collapse.js
lib/editor/tinymce/yui/src/collapse/js/collapse.js
lib/enrollib.php
lib/externallib.php
lib/filelib.php
lib/filestorage/file_storage.php
lib/filestorage/stored_file.php
lib/filterlib.php
lib/form/dateselector.php
lib/form/datetimeselector.php
lib/form/editor.php
lib/form/hidden.php
lib/form/select.php
lib/form/yui/dateselector/dateselector.js
lib/formslib.php
lib/grade/grade_item.php
lib/grade/tests/grade_item_test.php
lib/gradelib.php
lib/installlib.php
lib/jslib.php
lib/licenselib.php
lib/moodlelib.php
lib/navigationlib.php
lib/outputcomponents.php
lib/outputlib.php
lib/outputrenderers.php
lib/outputrequirementslib.php
lib/pagelib.php
lib/pluginlib.php
lib/portfolio/exporter.php
lib/rsslib.php
lib/sessionlib.php
lib/setup.php
lib/testing/generator/block_generator.php
lib/testing/generator/component_generator_base.php
lib/testing/generator/data_generator.php
lib/testing/generator/lib.php
lib/testing/generator/module_generator.php
lib/testing/generator/repository_generator.php [new file with mode: 0644]
lib/tests/accesslib_test.php
lib/tests/behat/behat_data_generators.php
lib/tests/behat/behat_forms.php
lib/tests/behat/behat_general.php
lib/tests/behat/behat_hooks.php
lib/tests/behat/behat_navigation.php
lib/tests/behat/behat_permissions.php
lib/tests/completionlib_advanced_test.php [new file with mode: 0644]
lib/tests/completionlib_test.php
lib/tests/conditionlib_test.php
lib/tests/coursecatlib_test.php
lib/tests/datalib_test.php
lib/tests/environment_test.php [new file with mode: 0644]
lib/tests/formslib_test.php
lib/tests/moodlelib_test.php
lib/tests/navigationlib_test.php
lib/tests/textlib_test.php
lib/tests/weblib_test.php
lib/textlib.class.php
lib/upgrade.txt
lib/upgradelib.php
lib/weblib.php
lib/yui/build/moodle-core-blocks/moodle-core-blocks-debug.js
lib/yui/build/moodle-core-blocks/moodle-core-blocks-min.js
lib/yui/build/moodle-core-blocks/moodle-core-blocks.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-debug.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip-min.js
lib/yui/build/moodle-core-tooltip/moodle-core-tooltip.js
lib/yui/dragdrop/dragdrop.js
lib/yui/src/blocks/build.json
lib/yui/src/blocks/js/blockregion.js [new file with mode: 0644]
lib/yui/src/blocks/js/blocks.js
lib/yui/src/blocks/js/manager.js [new file with mode: 0644]
lib/yui/src/tooltip/js/tooltip.js
lib/yuilib/3.9.1/build/io-xdr/io.swf
lib/yuilib/3.9.1/build/uploader-deprecated/assets/uploader.swf
lib/yuilib/3.9.1/build/uploader/assets/flashuploader.swf
login/index.php
login/signup.php
mdeploy.php
message/output/email/db/upgrade.php
message/output/email/version.php
message/output/jabber/db/upgrade.php
message/output/jabber/message_output_jabber.php
message/output/jabber/version.php
message/output/popup/db/upgrade.php
message/output/popup/version.php
message/tests/behat/block_users.feature
message/tests/behat/manage_contacts.feature
message/tests/behat/search_history.feature
mnet/service/enrol/version.php
mod/assign/backup/moodle2/backup_assign_stepslib.php
mod/assign/backup/moodle2/restore_assign_stepslib.php
mod/assign/batchsetallocatedmarkerform.php [new file with mode: 0644]
mod/assign/batchsetmarkingworkflowstateform.php [new file with mode: 0644]
mod/assign/db/access.php
mod/assign/db/install.xml
mod/assign/db/log.php
mod/assign/db/upgrade.php
mod/assign/feedback/comments/db/upgrade.php
mod/assign/feedback/comments/version.php
mod/assign/feedback/file/db/upgrade.php
mod/assign/feedback/file/version.php
mod/assign/feedback/offline/version.php
mod/assign/gradingbatchoperationsform.php
mod/assign/gradingoptionsform.php
mod/assign/gradingtable.php
mod/assign/lang/en/assign.php
mod/assign/lib.php
mod/assign/locallib.php
mod/assign/mod_form.php
mod/assign/module.js
mod/assign/renderer.php
mod/assign/settings.php
mod/assign/submission/comments/db/upgrade.php
mod/assign/submission/comments/version.php
mod/assign/submission/file/db/upgrade.php
mod/assign/submission/file/settings.php
mod/assign/submission/file/version.php
mod/assign/submission/onlinetext/db/upgrade.php
mod/assign/submission/onlinetext/version.php
mod/assign/tests/behat/file_submission.feature
mod/assign/tests/behat/group_submission.feature
mod/assign/tests/behat/online_submissions.feature
mod/assign/tests/behat/prevent_submission_changes.feature
mod/assign/tests/generator/lib.php
mod/assign/tests/locallib_test.php
mod/assign/upgradelib.php
mod/assign/version.php
mod/assignment/db/upgrade.php
mod/assignment/lang/en/assignment.php
mod/assignment/lib.php
mod/assignment/mod_form.php
mod/assignment/settings.php
mod/assignment/type/offline/version.php
mod/assignment/type/online/version.php
mod/assignment/type/upload/version.php
mod/assignment/type/uploadsingle/version.php
mod/assignment/version.php
mod/book/db/upgrade.php
mod/book/mod_form.php
mod/book/tool/exportimscp/version.php
mod/book/tool/importhtml/version.php
mod/book/tool/print/version.php
mod/book/version.php
mod/chat/db/upgrade.php
mod/chat/gui_basic/index.php
mod/chat/gui_header_js/chatinput.php
mod/chat/gui_header_js/users.php
mod/chat/gui_sockets/chatinput.php
mod/chat/lang/en/chat.php
mod/chat/mod_form.php
mod/chat/version.php
mod/choice/db/upgrade.php
mod/choice/mod_form.php
mod/choice/tests/behat/add_choice.feature
mod/choice/tests/behat/publish_results.feature
mod/choice/tests/behat/publish_results_anonymously.feature
mod/choice/version.php
mod/data/db/upgrade.php
mod/data/edit.php
mod/data/export.php
mod/data/field.php
mod/data/field/checkbox/version.php
mod/data/field/date/version.php
mod/data/field/file/mod.html
mod/data/field/file/version.php
mod/data/field/latlong/version.php
mod/data/field/menu/version.php
mod/data/field/multimenu/version.php
mod/data/field/number/version.php
mod/data/field/picture/mod.html
mod/data/field/picture/version.php
mod/data/field/radiobutton/version.php
mod/data/field/text/version.php
mod/data/field/textarea/version.php
mod/data/field/url/version.php
mod/data/lib.php
mod/data/mod_form.php
mod/data/preset.php
mod/data/preset/imagegallery/version.php
mod/data/templates.php
mod/data/version.php
mod/data/view.php
mod/feedback/db/upgrade.php
mod/feedback/edit_form.php
mod/feedback/item/feedback_item_form_class.php
mod/feedback/item/numeric/numeric_form.php
mod/feedback/lang/en/feedback.php
mod/feedback/lib.php
mod/feedback/mapcourse.php
mod/feedback/mod_form.php
mod/feedback/version.php
mod/feedback/view.php
mod/folder/db/upgrade.php
mod/folder/edit.php
mod/folder/mod_form.php
mod/folder/version.php
mod/forum/db/upgrade.php
mod/forum/lang/en/forum.php
mod/forum/lib.php
mod/forum/mod_form.php
mod/forum/post.php
mod/forum/post_form.php
mod/forum/settings.php
mod/forum/tests/behat/add_forum.feature
mod/forum/tests/behat/completion_condition_number_discussions.feature
mod/forum/tests/behat/discussion_display.feature
mod/forum/tests/behat/edit_post_student.feature
mod/forum/tests/behat/edit_post_teacher.feature
mod/forum/tests/behat/single_forum_discussion.feature
mod/forum/tests/behat/track_read_posts.feature
mod/forum/version.php
mod/glossary/db/upgrade.php
mod/glossary/mod_form.php
mod/glossary/tests/behat/entries_always_editable.feature
mod/glossary/tests/behat/prevent_duplicate_entries.feature
mod/glossary/tests/behat/print_friendly_version.feature
mod/glossary/tests/behat/search_entries.feature
mod/glossary/version.php
mod/imscp/db/upgrade.php
mod/imscp/locallib.php
mod/imscp/mod_form.php
mod/imscp/version.php
mod/label/db/upgrade.php
mod/label/tests/generator/lib.php [new file with mode: 0644]
mod/label/tests/generator_test.php [new file with mode: 0644]
mod/label/version.php
mod/lesson/db/upgrade.php
mod/lesson/lang/en/lesson.php
mod/lesson/locallib.php
mod/lesson/mod_form.php
mod/lesson/pagetypes/matching.php
mod/lesson/pagetypes/multichoice.php
mod/lesson/tests/behat/date_availability.feature
mod/lesson/tests/behat/lesson_navigation.feature
mod/lesson/tests/behat/password_protection.feature
mod/lesson/tests/behat/time_limit.feature
mod/lesson/version.php
mod/lti/db/upgrade.php
mod/lti/lang/en/lti.php
mod/lti/locallib.php
mod/lti/mod_form.php
mod/lti/settings.php
mod/lti/version.php
mod/page/db/upgrade.php
mod/page/lang/en/page.php
mod/page/mod_form.php
mod/page/version.php
mod/quiz/accessrule/delaybetweenattempts/version.php
mod/quiz/accessrule/ipaddress/version.php
mod/quiz/accessrule/numattempts/version.php
mod/quiz/accessrule/openclosedate/version.php
mod/quiz/accessrule/password/version.php
mod/quiz/accessrule/safebrowser/version.php
mod/quiz/accessrule/securewindow/version.php
mod/quiz/accessrule/timelimit/version.php
mod/quiz/attemptlib.php
mod/quiz/db/upgrade.php
mod/quiz/lang/en/quiz.php
mod/quiz/locallib.php
mod/quiz/mod_form.php
mod/quiz/module.js
mod/quiz/report/grading/version.php
mod/quiz/report/overview/db/upgrade.php
mod/quiz/report/overview/report.php
mod/quiz/report/overview/version.php
mod/quiz/report/responses/version.php
mod/quiz/report/statistics/db/upgrade.php
mod/quiz/report/statistics/version.php
mod/quiz/settings.php
mod/quiz/startattempt.php
mod/quiz/version.php
mod/resource/db/upgrade.php
mod/resource/lang/en/resource.php
mod/resource/mod_form.php
mod/resource/settings.php
mod/resource/version.php
mod/scorm/datamodels/scorm_12.js.php
mod/scorm/db/upgrade.php
mod/scorm/lang/en/scorm.php
mod/scorm/mod_form.php
mod/scorm/module.js
mod/scorm/report/basic/lang/en/scormreport_basic.php
mod/scorm/report/basic/version.php
mod/scorm/report/graphs/version.php
mod/scorm/report/interactions/lang/en/scormreport_interactions.php
mod/scorm/report/interactions/version.php
mod/scorm/report/reportlib.php
mod/scorm/settings.php
mod/scorm/styles.css
mod/scorm/version.php
mod/survey/db/upgrade.php
mod/survey/tests/behat/survey_types.feature
mod/survey/version.php
mod/url/db/upgrade.php
mod/url/lang/en/url.php
mod/url/mod_form.php
mod/url/settings.php
mod/url/version.php
mod/wiki/create_form.php
mod/wiki/db/upgrade.php
mod/wiki/lang/en/wiki.php
mod/wiki/mod_form.php
mod/wiki/tests/behat/collaborative_individual.feature
mod/wiki/tests/behat/page_history.feature
mod/wiki/tests/behat/preview_page.feature
mod/wiki/tests/behat/wiki_formats.feature
mod/wiki/version.php
mod/workshop/allocation/manual/version.php
mod/workshop/allocation/random/version.php
mod/workshop/allocation/scheduled/version.php
mod/workshop/db/upgrade.php
mod/workshop/eval/best/version.php
mod/workshop/form/accumulative/db/upgrade.php
mod/workshop/form/accumulative/version.php
mod/workshop/form/comments/db/upgrade.php
mod/workshop/form/comments/version.php
mod/workshop/form/numerrors/db/upgrade.php
mod/workshop/form/numerrors/version.php
mod/workshop/form/rubric/db/upgrade.php
mod/workshop/form/rubric/version.php
mod/workshop/mod_form.php
mod/workshop/renderer.php
mod/workshop/settings.php
mod/workshop/version.php
notes/delete.php
notes/edit_form.php
pix/i/badge.png
pix/i/badge.svg
pix/t/award.png
pix/t/award.svg
pix/t/lock.png
pix/t/lock.svg
pix/t/unlocked.png
pix/t/unlocked.svg
portfolio/boxnet/lib.php
portfolio/boxnet/version.php
portfolio/download/version.php
portfolio/flickr/lib.php
portfolio/flickr/version.php
portfolio/googledocs/db/upgrade.php
portfolio/googledocs/lib.php
portfolio/googledocs/version.php
portfolio/mahara/version.php
portfolio/picasa/db/upgrade.php
portfolio/picasa/lib.php
portfolio/picasa/version.php
question/behaviour/adaptive/behaviour.php
question/behaviour/adaptive/tests/walkthrough_test.php
question/behaviour/adaptive/version.php
question/behaviour/adaptivenopenalty/version.php
question/behaviour/behaviourbase.php
question/behaviour/deferredcbm/version.php
question/behaviour/deferredfeedback/version.php
question/behaviour/immediatecbm/version.php
question/behaviour/immediatefeedback/version.php
question/behaviour/informationitem/version.php
question/behaviour/interactive/version.php
question/behaviour/interactivecountback/version.php
question/behaviour/manualgraded/behaviour.php
question/behaviour/manualgraded/db/install.php [new file with mode: 0644]
question/behaviour/manualgraded/db/upgrade.php [new file with mode: 0644]
question/behaviour/manualgraded/version.php
question/behaviour/missing/version.php
question/behaviour/upgrade.txt
question/engine/bank.php
question/engine/datalib.php
question/engine/lib.php
question/engine/tests/helpers.php
question/format/aiken/version.php
question/format/blackboard_six/version.php
question/format/examview/version.php
question/format/gift/version.php
question/format/learnwise/version.php
question/format/missingword/version.php
question/format/multianswer/version.php
question/format/webct/version.php
question/format/xhtml/version.php
question/format/xml/format.php
question/format/xml/version.php
question/tests/behat/behat_question.php
question/tests/behat/edit_questions.feature
question/tests/behat/preview_question.feature
question/tests/behat/sort_questions.feature
question/type/calculated/datasetitems_form.php
question/type/calculated/db/upgrade.php
question/type/calculated/edit_calculated_form.php
question/type/calculated/version.php
question/type/calculatedmulti/version.php
question/type/calculatedsimple/version.php
question/type/description/version.php
question/type/essay/db/upgrade.php
question/type/essay/version.php
question/type/match/db/upgrade.php
question/type/match/edit_match_form.php
question/type/match/version.php
question/type/missingtype/version.php
question/type/multianswer/db/upgrade.php
question/type/multianswer/version.php
question/type/multichoice/db/upgrade.php
question/type/multichoice/question.php
question/type/multichoice/renderer.php
question/type/multichoice/styles.css
question/type/multichoice/tests/question_multi_test.php [new file with mode: 0644]
question/type/multichoice/tests/question_single_test.php [moved from question/type/multichoice/tests/question_test.php with 56% similarity]
question/type/multichoice/version.php
question/type/numerical/db/upgrade.php
question/type/numerical/edit_numerical_form.php
question/type/numerical/version.php
question/type/questionbase.php
question/type/questiontypebase.php
question/type/random/version.php
question/type/randomsamatch/version.php
question/type/shortanswer/db/upgrade.php
question/type/shortanswer/version.php
question/type/truefalse/version.php
report/backups/version.php
report/completion/version.php
report/configlog/version.php
report/courseoverview/version.php
report/log/graph.php
report/log/version.php
report/loglive/version.php
report/outline/version.php
report/participation/version.php
report/performance/version.php
report/progress/index.php
report/progress/lib.php
report/progress/textrotate.js
report/progress/version.php
report/questioninstances/version.php
report/security/version.php
report/stats/version.php
repository/alfresco/tests/generator/lib.php [new file with mode: 0644]
repository/alfresco/version.php
repository/boxnet/lang/en/repository_boxnet.php
repository/boxnet/tests/generator/lib.php [new file with mode: 0644]
repository/boxnet/version.php
repository/coursefiles/tests/generator/lib.php [new file with mode: 0644]
repository/coursefiles/version.php
repository/draftfiles_ajax.php
repository/draftfiles_manager.php
repository/dropbox/db/upgrade.php
repository/dropbox/tests/generator/lib.php [new file with mode: 0644]
repository/dropbox/version.php
repository/equella/tests/generator/lib.php [new file with mode: 0644]
repository/equella/version.php
repository/filepicker.js
repository/filesystem/tests/generator/lib.php [new file with mode: 0644]
repository/filesystem/version.php
repository/flickr/tests/generator/lib.php [new file with mode: 0644]
repository/flickr/version.php
repository/flickr_public/tests/generator/lib.php [new file with mode: 0644]
repository/flickr_public/version.php
repository/googledocs/db/upgrade.php
repository/googledocs/tests/generator/lib.php [new file with mode: 0644]
repository/googledocs/version.php
repository/lib.php
repository/local/tests/generator/lib.php [new file with mode: 0644]
repository/local/version.php
repository/manage_instances.php
repository/merlot/tests/generator/lib.php [new file with mode: 0644]
repository/merlot/version.php
repository/picasa/db/upgrade.php
repository/picasa/tests/generator/lib.php [new file with mode: 0644]
repository/picasa/version.php
repository/recent/tests/behat/add_recent.feature
repository/recent/tests/generator/lib.php [new file with mode: 0644]
repository/recent/version.php
repository/s3/tests/generator/lib.php [new file with mode: 0644]
repository/s3/version.php
repository/tests/behat/behat_filepicker.php
repository/tests/behat/cancel_add_file.feature
repository/tests/behat/create_folders.feature
repository/tests/behat/delete_files.feature
repository/tests/behat/zip_and_unzip.feature
repository/tests/generator_test.php [new file with mode: 0644]
repository/tests/repository_test.php
repository/upload/lib.php
repository/upload/tests/behat/upload_file.feature
repository/upload/tests/generator/lib.php [new file with mode: 0644]
repository/upload/version.php
repository/url/tests/generator/lib.php [new file with mode: 0644]
repository/url/version.php
repository/user/tests/generator/lib.php [new file with mode: 0644]
repository/user/version.php
repository/webdav/tests/generator/lib.php [new file with mode: 0644]
repository/webdav/version.php
repository/wikimedia/tests/generator/lib.php [new file with mode: 0644]
repository/wikimedia/version.php
repository/youtube/tests/generator/lib.php [new file with mode: 0644]
repository/youtube/version.php
tag/edit_form.php
theme/afterburner/db/upgrade.php
theme/afterburner/style/afterburner_styles.css
theme/afterburner/version.php
theme/anomaly/config.php
theme/anomaly/style/general.css
theme/anomaly/version.php
theme/arialist/config.php
theme/arialist/lang/en/theme_arialist.php
theme/arialist/style/core.css
theme/arialist/version.php
theme/base/config.php
theme/base/style/admin.css
theme/base/style/core.css
theme/base/style/course.css
theme/base/style/filemanager.css
theme/base/style/question.css
theme/base/version.php
theme/binarius/config.php
theme/binarius/lang/en/theme_binarius.php
theme/binarius/version.php
theme/bootstrapbase/config.php
theme/bootstrapbase/layout/columns1.php [new file with mode: 0644]
theme/bootstrapbase/layout/columns2.php [new file with mode: 0644]
theme/bootstrapbase/layout/columns3.php [new file with mode: 0644]
theme/bootstrapbase/layout/embedded.php [new file with mode: 0644]
theme/bootstrapbase/layout/general.php [deleted file]
theme/bootstrapbase/layout/secure.php [new file with mode: 0644]
theme/bootstrapbase/less/README
theme/bootstrapbase/less/editor.less
theme/bootstrapbase/less/moodle.less
theme/bootstrapbase/less/moodle/admin.less
theme/bootstrapbase/less/moodle/buttons.less
theme/bootstrapbase/less/moodle/calendar.less
theme/bootstrapbase/less/moodle/core.less
theme/bootstrapbase/less/moodle/course.less
theme/bootstrapbase/less/moodle/debug.less
theme/bootstrapbase/less/moodle/expendable.less
theme/bootstrapbase/less/moodle/filemanager.less
theme/bootstrapbase/less/moodle/forms.less
theme/bootstrapbase/less/moodle/modules.less
theme/bootstrapbase/less/moodle/question.less
theme/bootstrapbase/less/moodle/reports.less [new file with mode: 0644]
theme/bootstrapbase/less/moodle/responsive.less
theme/bootstrapbase/less/moodle/tabs.less [deleted file]
theme/bootstrapbase/less/moodle/undo.less
theme/bootstrapbase/renderers.php
theme/bootstrapbase/renderers/core_renderer.php [moved from theme/bootstrapbase/renderers/core.php with 68% similarity]
theme/bootstrapbase/style/editor.css
theme/bootstrapbase/style/moodle.css
theme/bootstrapbase/version.php
theme/boxxie/config.php
theme/boxxie/lang/en/theme_boxxie.php
theme/boxxie/style/core.css
theme/boxxie/version.php
theme/brick/config.php
theme/brick/lang/en/theme_brick.php
theme/brick/style/core.css
theme/brick/version.php
theme/canvas/config.php
theme/canvas/style/core.css
theme/canvas/style/course.css
theme/canvas/style/mods.css
theme/canvas/version.php
theme/clean/config.php
theme/clean/layout/columns1.php [new file with mode: 0644]
theme/clean/layout/columns2.php [new file with mode: 0644]
theme/clean/layout/columns3.php [new file with mode: 0644]
theme/clean/layout/embedded.php [new file with mode: 0644]
theme/clean/layout/general.php [deleted file]
theme/clean/layout/secure.php [new file with mode: 0644]
theme/clean/lib.php
theme/clean/settings.php
theme/clean/style/custom.css
theme/clean/version.php
theme/formal_white/config.php
theme/formal_white/db/install.php
theme/formal_white/db/upgrade.php
theme/formal_white/lang/en/theme_formal_white.php
theme/formal_white/layout/frontpage.php
theme/formal_white/layout/general.php
theme/formal_white/layout/report.php
theme/formal_white/lib.php
theme/formal_white/settings.php
theme/formal_white/style/block.css
theme/formal_white/style/course.css
theme/formal_white/version.php
theme/formfactor/config.php
theme/formfactor/lang/en/theme_formfactor.php
theme/formfactor/style/course.css
theme/formfactor/version.php
theme/fusion/config.php
theme/fusion/lang/en/theme_fusion.php
theme/fusion/style/core.css
theme/fusion/version.php
theme/image.php
theme/index.php
theme/jquery.php
theme/leatherbound/config.php
theme/leatherbound/lang/en/theme_leatherbound.php
theme/leatherbound/version.php
theme/magazine/style/core.css
theme/magazine/version.php
theme/mymobile/config.php
theme/mymobile/lang/en/theme_mymobile.php
theme/mymobile/layout/embedded.php
theme/mymobile/layout/general.php
theme/mymobile/lib.php
theme/mymobile/renderers.php
theme/mymobile/settings.php
theme/mymobile/style/core.css
theme/mymobile/version.php
theme/nimble/config.php
theme/nimble/lang/en/theme_nimble.php
theme/nimble/version.php
theme/nonzero/config.php
theme/nonzero/lang/en/theme_nonzero.php
theme/nonzero/lib.php
theme/nonzero/settings.php
theme/nonzero/version.php
theme/overlay/config.php
theme/overlay/lang/en/theme_overlay.php
theme/overlay/version.php
theme/serenity/version.php
theme/sky_high/config.php
theme/sky_high/pix/footer-rtl.jpg [deleted file]
theme/sky_high/pix/footer-rtl.png [new file with mode: 0644]
theme/sky_high/pix/footer.png
theme/sky_high/style/admin.css
theme/sky_high/style/pagelayout.css
theme/sky_high/style/report.css
theme/sky_high/version.php
theme/splash/style/core.css
theme/splash/version.php
theme/standard/config.php
theme/standard/style/course.css
theme/standard/style/modules.css
theme/standard/version.php
theme/standardold/config.php
theme/standardold/version.php
theme/styles.php
theme/styles_debug.php
theme/switchdevice.php
theme/upgrade.txt
theme/yui_combo.php
theme/yui_image.php
user/editlib.php
user/filters/cohort.php
user/filters/courserole.php
user/filters/date.php
user/filters/profilefield.php
user/filters/text.php
user/profile/field/checkbox/version.php
user/profile/field/datetime/version.php
user/profile/field/menu/version.php
user/profile/field/text/version.php
user/profile/field/textarea/version.php
user/selector/module.js
version.php
webservice/amf/version.php
webservice/lib.php
webservice/renderer.php
webservice/rest/version.php
webservice/soap/version.php
webservice/xmlrpc/version.php

diff --git a/admin/cli/fix_deleted_users.php b/admin/cli/fix_deleted_users.php
new file mode 100644 (file)
index 0000000..d2a8950
--- /dev/null
@@ -0,0 +1,91 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * This script fixed incorrectly deleted users.
+ *
+ * @package    core
+ * @subpackage cli
+ * @copyright  2013 Petr Skoda (http://skodak.org)
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+define('CLI_SCRIPT', true);
+
+require(__DIR__.'/../../config.php');
+require_once($CFG->libdir.'/clilib.php');
+
+
+// Now get cli options.
+list($options, $unrecognized) = cli_get_params(array('help'=>false),
+    array('h'=>'help'));
+
+if ($unrecognized) {
+    $unrecognized = implode("\n  ", $unrecognized);
+    cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
+}
+
+if ($options['help']) {
+    $help =
+        "Fix incorrectly deleted users.
+
+        This scripts detects users that are marked as deleted instead
+        of calling delete_user().
+
+        Deleted users do not have original username, idnumber or email,
+        we must also delete all roles, enrolments, group memberships, etc.
+
+        Please note this script does not delete any public information
+        such as forum posts.
+
+        Options:
+        -h, --help            Print out this help
+
+        Example:
+        \$sudo -u www-data /usr/bin/php admin/cli/fix_deleted_users.php
+        ";
+
+    echo $help;
+    die;
+}
+
+cli_heading('Looking for sloppy user deletes');
+
+// Look for sloppy deleted users where somebody only flipped the deleted flag.
+$sql = "SELECT *
+          FROM {user}
+         WHERE deleted = 1 AND email LIKE '%@%' AND username NOT LIKE '%@%'";
+$rs = $DB->get_recordset_sql($sql);
+foreach ($rs as $user) {
+    echo "Redeleting user $user->id: $user->username ($user->email)\n";
+    delete_user($user);
+}
+
+cli_heading('Deleting all leftovers');
+
+$DB->set_field('user', 'idnumber', '', array('deleted'=>1));
+
+$DB->delete_records_select('role_assignments', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('cohort_members', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('groups_members', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('user_enrolments', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('user_preferences', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('user_info_data', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('user_lastaccess', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('external_tokens', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+$DB->delete_records_select('external_services_users', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
+
+exit(0);
index 35db018..a84d556 100644 (file)
@@ -127,7 +127,7 @@ if (function_exists('date_default_timezone_set') and function_exists('date_defau
 /** Used by library scripts to check they are being called by Moodle */
 define('MOODLE_INTERNAL', true);
 
-// Disables caching.. just in case.
+// Disables all caching.
 define('CACHE_DISABLE_ALL', true);
 
 // Check that PHP is of a sufficient version
@@ -149,6 +149,7 @@ $CFG->httpswwwroot         = $CFG->wwwroot;
 $CFG->docroot              = 'http://docs.moodle.org';
 $CFG->running_installer    = true;
 $CFG->early_install_lang   = true;
+$CFG->ostype               = (stristr(PHP_OS, 'win') && !stristr(PHP_OS, 'darwin')) ? 'WINDOWS' : 'UNIX';
 
 $parts = explode('/', str_replace('\\', '/', dirname(dirname(__FILE__))));
 $CFG->admin                = array_pop($parts);
index 27a38aa..dfc7a42 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 define('CLI_SCRIPT', true);
+define('CACHE_DISABLE_ALL', true);
 
 // extra execution prevention - we can not just require config.php here
 if (isset($_SERVER['REMOTE_ADDR'])) {
index 72a03f0..ca6ef6a 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 define('CLI_SCRIPT', true);
+define('CACHE_DISABLE_ALL', true);
 
 require(dirname(dirname(dirname(__FILE__))).'/config.php');
 require_once($CFG->libdir.'/adminlib.php');       // various admin-only functions
@@ -150,6 +151,12 @@ if ($interactive) {
 }
 
 if ($version > $CFG->version) {
+    // We purge all of MUC's caches here.
+    // Caches are disabled for upgrade by CACHE_DISABLE_ALL so we must set the first arg to true.
+    // This ensures a real config object is loaded and the stores will be purged.
+    // This is the only way we can purge custom caches such as memcache or APC.
+    // Note: all other calls to caches will still used the disabled API.
+    cache_helper::purge_all(true);
     upgrade_core($version, true);
 }
 set_config('release', $release);
index cce8ae3..e411545 100644 (file)
@@ -72,24 +72,10 @@ if (!empty($CFG->cronremotepassword)) {
 }
 
 // send mime type and encoding
-if (check_browser_version('MSIE')) {
-    //ugly IE hack to work around downloading instead of viewing
-    @header('Content-Type: text/html; charset=utf-8');
-    echo "<xmp>"; //<pre> is not good enough for us here
-} else {
-    //send proper plaintext header
-    @header('Content-Type: text/plain; charset=utf-8');
-}
+@header('Content-Type: text/plain; charset=utf-8');
 
 // we do not want html markup in emulated CLI
 @ini_set('html_errors', 'off');
 
 // execute the cron
 cron_run();
-
-// finish the IE hack
-if (check_browser_version('MSIE')) {
-    echo "</xmp>";
-}
-
-
index 9c1a913..c54e838 100644 (file)
@@ -47,6 +47,13 @@ if (!function_exists('iconv')) {
 
 define('NO_OUTPUT_BUFFERING', true);
 
+if (empty($_GET['cache']) and empty($_POST['cache'])) {
+    // Prevent caching at all cost when visiting this page directly,
+    // we redirect to self once we known no upgrades are necessary.
+    // Note: $_GET and $_POST are used here intentionally because our param cleaning is not loaded yet.
+    define('CACHE_DISABLE_ALL', true);
+}
+
 require('../config.php');
 require_once($CFG->libdir.'/adminlib.php');    // various admin-only functions
 require_once($CFG->libdir.'/upgradelib.php');  // general upgrade/install related functions
@@ -60,21 +67,28 @@ $showallplugins = optional_param('showallplugins', 0, PARAM_BOOL);
 $agreelicense   = optional_param('agreelicense', 0, PARAM_BOOL);
 $fetchupdates   = optional_param('fetchupdates', 0, PARAM_BOOL);
 $newaddonreq    = optional_param('installaddonrequest', null, PARAM_RAW);
+$cache          = optional_param('cache', 0, PARAM_BOOL);
 
-// Check some PHP server settings
-
-if (is_null($newaddonreq)) {
-    $PAGE->set_url('/admin/index.php');
-} else {
+// Set up PAGE.
+$url = new moodle_url('/admin/index.php');
+if (!is_null($newaddonreq)) {
     // We need to set the eventual add-on installation request in the $PAGE's URL
     // so that it is stored in $SESSION->wantsurl and the admin is redirected
     // correctly once they are logged-in.
-    $PAGE->set_url('/admin/index.php', array('installaddonrequest' => $newaddonreq));
+    $url->param('installaddonrequest', $newaddonreq);
 }
+if ($cache) {
+    $url->param('cache', $cache);
+}
+$PAGE->set_url($url);
+unset($url);
+
 $PAGE->set_pagelayout('admin'); // Set a default pagelayout
 
 $documentationlink = '<a href="http://docs.moodle.org/en/Installation">Installation docs</a>';
 
+// Check some PHP server settings
+
 if (ini_get_bool('session.auto_start')