toyomoyo
013b90ed92
a few fixes, for MDL-6836, MDL-6835, and MDL-6765
2006-10-05 04:05:07 +00:00
toyomoyo
5e67946d6c
adding support for 1.6->1.7 backups
2006-10-03 08:54:46 +00:00
toyomoyo
89a66e5405
changes in backup/restore for roles. fixed bug related to wrong context in backuplib.php added code to handle addition of new roles in restorelib.php, added code to do role overrides in restore.php new functionalities requires proper handling
2006-09-28 09:15:14 +00:00
toyomoyo
a2a020ea6b
adding support for roles in backups
2006-09-27 08:59:27 +00:00
toyomoyo
1ad590e153
more changes, restoring of role assignments now work in course, mods and blocks instances (less user instance), restoring local overrides do not work
2006-09-26 09:05:44 +00:00
toyomoyo
637644fbd1
fixing a get_record bug (multiple instances)
2006-09-26 04:10:33 +00:00
toyomoyo
65c6fd8b2d
backup changes for roles
2006-09-22 08:56:25 +00:00
toyomoyo
c58adde069
fixing bogus function calls
2006-09-22 01:49:23 +00:00
toyomoyo
ab1e2556ba
code to support roles (roleassignments and roleoverrides) for backup in all 4 roles course, mod, block, userid contexts. not working yet
2006-09-22 01:35:35 +00:00
toyomoyo
01e52ac70a
changes to backups (where the roles info are stored)
2006-09-21 09:09:16 +00:00
toyomoyo
4929302769
adding roles support for backups
2006-09-21 06:57:14 +00:00
toyomoyo
e959a34b48
fixing syntex errors
2006-09-21 02:03:39 +00:00
toyomoyo
a4a877d890
trying to add some role support, not sure things are at the right place yet.
2006-09-21 01:56:59 +00:00
moodler
0e1cc9070b
Fixed a some debugging statements
2006-09-18 13:24:45 +00:00
moodler
67a3fac51f
Added new field 'ajax' to user table, to store AJAX preference
2006-08-28 06:41:05 +00:00
skodak
a2392230a1
fixed some notices in scheduled backup; merged from MOODLE_16_STABLE
2006-08-21 20:40:07 +00:00
skodak
4e060ab972
Bug #6067 - The restore process behaves differently depending on which module contains the absolute links; merged from MOODLE_16_STABLE
2006-07-11 10:01:33 +00:00
stronk7
5dd95d35e5
Due to one potential bug in PHP under Win32 ( http://bugs.php.net/37775 )
...
the [[cntrl]] pcre class was breaking some chars. Changed to a safer
alternative. Bug 5777.
(http://moodle.org/bugs/bug.php?op=show&bugid=5777 )
Merged from MOODLE_16_STABLE
2006-06-10 23:33:49 +00:00
tjhunt
9aafe70227
Fix notice. Merged from MOODLE_16_STABLE.
2006-06-06 10:10:43 +00:00
stronk7
e8b8ab9f7b
course_modules->deleted and user->guid are now out.
...
(they disappeared from DB ages ago)
Merged from MOODLE_16_STABLE
2006-05-23 22:06:58 +00:00
stronk7
23407fb76b
htmlentities() to s()
2006-04-11 15:34:29 +00:00
stronk7
b1a88d0413
Part of Bug 4583. Now backup tables are moodle-style compliant.
...
Also, the 4th parameter used in insert_record() has been erased
to avoid the bug itself. PortgreSQL upgrade not tested!
(http://moodle.org/bugs/bug.php?op=show&bugid=4583 )
2006-01-16 10:23:48 +00:00
mjollnir_
b22008bae0
after discussion with Eloy: Always strip controlchars in xml_tag_safe_content
2006-01-16 09:07:30 +00:00
mjollnir_
a9e1e4c850
Backup xml tags now support attributes and a new function for xml content to be safe utf-8. Eloy can you please review this patch?
2006-01-16 02:37:19 +00:00
mjollnir_
a94baeaf20
Abstracted all the stuff that gets backup prefs from request, and put
...
it into session. This makes it easier to add a new stages
and not have to write hidden fields and such like
2006-01-16 00:39:01 +00:00
mjollnir_
1ecea97679
Granular backup & restore:
...
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
skodak
8fd23ca2e2
fixed sql quoting SC#145; merged from MOODLE_15_STABLE
2005-10-29 21:53:33 +00:00
stronk7
f64376bfc8
Strip control chars from being sent to the XML file.
...
Only tab, newline and return are allowed in XML 1.0.
This feature is controlled by $CFG->backup_strip_controlchars.
Please, test it!
Merged from MOODLE_15_STABLE
2005-09-02 00:03:04 +00:00
mjollnir_
d23d0398fe
Merged from MOODLE_15_STABLE: Escape strings for database. SC # 145
2005-08-26 05:29:34 +00:00
moodler
f2e34253c3
Removing and re-adding currency support in courses
2005-07-22 17:19:52 +00:00
moodler
f5e1319ec3
Merged SC139 from stable
2005-07-12 08:00:51 +00:00
gustav_delius
2e1111c5b1
Towards a Moodle 1.5 quiz backup and restore. Not tested yet.
...
I moved some quiz speicific functions out of backup/backuplib.php into mod/quiz/backuplib.php
2005-05-10 09:37:09 +00:00
moodler
b345a30f35
Added support for trackforums
2005-04-25 18:45:21 +00:00
stronk7
04592aec06
Now event->repeatid is included in backup/restore. Thanks for
...
your support Jon!
Bump to 1.5 beta
2005-04-22 23:49:48 +00:00
stronk7
12b255b9ed
Some table->id fields added to backup of gradebook.
...
I need them in restore (and I always forget it!)
2005-04-21 16:24:26 +00:00
stronk7
e19d817eb3
Now backup of 1.5 gradebooks is working (restore coming soon). Features are:
...
- It's automatic. No setting for it. Does it sound ok?
- Any info related to non-exported modules is skipped.
- Any info related to non-exported users is skipped.
2005-04-19 23:21:45 +00:00
stronk7
80117b519d
Now group images are in backup & restore
2005-03-07 23:40:25 +00:00
moodler
3ac6807ee1
Added backup/restore support for the new fields I added today
2005-03-05 10:31:58 +00:00
defacer
1fa95628f6
Backup and restore for block instances within activities!
...
Made using the new goodies from the new pagelib, some really useful advice
from "Backup Man" Eloy and lots of love.
2005-02-28 04:50:36 +00:00
stronk7
c98cb6bc57
Now quiz_categories' parent and sortoreder is supported in backup.
...
A mechanish to detect all the ancestors and to recover orphaned
categories is now running ar backup time to force backups to be consistent.
2005-02-20 17:19:04 +00:00
stronk7
e8cddb8e6c
Created the fix_orphaned_questions() function.
...
Used before execute the backup of a course to enforce integrity.
Perhaps this function should go to central code and be executed
at upgrade time (and be available in health center too!).
See bug 2380
(http://moodle.org/bugs/bug.php?op=show&bugid=2380 )
2005-02-15 19:51:01 +00:00
stronk7
2205d909ae
Now user->theme, group->theme and course->theme are supported
2005-02-15 18:37:08 +00:00
stronk7
2f77550675
Need IDs to use backup_ids as temporary storage in restore!
2005-02-13 11:44:39 +00:00
stronk7
70641539f3
Now MIM are included in backup (not restore yet). Configurable
...
for scheduled backups and only done in SITE backups. Structure is:
<MESSAGES>
<MESSAGE>
Content of the message with one flag to difference read & unread
</MESSAGE>
<CONTACTS>
<CONTACT>
Content of the contact
</CONTACT>
</CONTACTS>
</MESSAGES>
message_get_participants() should include contact users too!!
2005-02-13 02:59:04 +00:00
stronk7
1d9169d312
Now group members are only included (backup and restore) if
...
we have selected to have users! Thanks to Etienne! Bug 2486
(http://moodle.org/bugs/bug.php?op=show&bugid=2486 )
Merged from MOODLE_14_STABLE
2005-02-04 16:24:12 +00:00
stronk7
572248937e
Now metacourse in supported in manual and scheduled backups. It can be configured
...
in both backups. Please check if the used structure and exported data has sense!
2005-02-04 14:33:51 +00:00
defacer
7542a4e574
Dropping the use of MOODLE_PAGE_COURSE <gasp>!
...
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.
On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
stronk7
8a792ed10f
group->password is now supported
2005-01-30 12:12:06 +00:00
stronk7
57aad2a02a
added support for:
...
- user->policyagreed:
if the destination server is different, reset it
- user_students->enrol and user_teachers->enrol
if not set or the destination server is different, set it to $CFG->enrol
somethings should be modified in the rest of moodle:
- update all the 'manual' entries to 'internal'
- modify the enrol_teacher() to use $CFG->enrol by default
- make every enrol method set this field properly.
- perhaps, mark metadata users with a new value too.
2005-01-30 11:39:12 +00:00
stronk7
ad4f774cd4
THEME is out of this directory.
...
I hope to have done it correctly!
2005-01-28 00:01:20 +00:00