68 Commits

Author SHA1 Message Date
gustav_delius
7ef0797dea some fixes for XHTML compliance 2004-09-12 01:34:24 +00:00
stronk7
6faaf9a6c9 Now user->guid is in backup & restore
Merged some pending changes from STABLE too.
2004-09-05 10:19:03 +00:00
stronk7
0083049b21 Now user->auth is in backup & restore
Bug 1789
(http://moodle.org/bugs/bug.php?op=show&bugid=1789)

Merged from MOODLE_14_STABLE
2004-08-28 10:26:06 +00:00
stronk7
52552be03d Now course->enrolperiod is supported in backup & restore. 2004-07-30 16:55:38 +00:00
stronk7
27757bee57 User->maildigest supported now. 2004-07-23 17:10:55 +00:00
stronk7
baadcd6560 Ooops!! I thought I had sent this to CVS some days ago.
Now both type of links (slasharguments on and off) are
detected in the backup process. And the restore process
take care of the slasharguments seting in destination
and translate all the links to the correct format.
I think it's really a nice addition, ;-)
Ready to 1.3.3 bump!!!
Bug 1634
(http://moodle.org/bugs/bug.php?op=show&bugid=1634)

Merged from MOODLE_13_STABLE
2004-07-15 23:04:22 +00:00
stronk7
d902b189e0 Added course->cost to backup/restore 2004-06-26 12:36:55 +00:00
stronk7
e0f8b50da7 Added support for timestart and timeend (user_teachers table) and
idnumber (course table). :-)
2004-06-24 22:41:00 +00:00
stronk7
fa96ad2f97 New feature implemented allowing none-user course backups.
See bug 1420.
(http://moodle.org/bugs/bug.php?op=show&bugid=1420)
2004-05-20 18:36:59 +00:00
stronk7
35055d3786 Step4 done. :-) 2004-05-16 18:05:02 +00:00
stronk7
646c20b5ff Solved a small bug in scheduled backups when encoding links!!
I've tested it against 10 courses (manual and scheduled) and
everything seems to work fine. In some days I'll test it againt
some BIG course (if moodle.org is updated to this version).
Dump version to 1.3 beta (as I think everything is finished now).

:-)
2004-05-09 23:15:56 +00:00
stronk7
c9c8984582 Now ORIGINAL_WWWROOT is saved in backup and restored too!! 2004-05-06 23:20:25 +00:00
stronk7
4c49c802d0 Some minor changes about the system to encode file.php calls included.
Solve an important issue about scheduled backups not working properly
    when encoding links...
Added support for event->visible in backup & restore.

TODO: Add wwwroot to backup/restore to use it when decoding.
      Change the system to encode forum calls.
2004-05-06 22:17:45 +00:00
stronk7
750024e833 Changed hiddentopics to hiddensections in backup and restore 2004-05-02 22:34:13 +00:00
stronk7
d2b5f1e8bf event->format is now in backup & restore. 2004-04-27 19:51:12 +00:00
stronk7
87808d0a01 Now, in topics format, every course can decide about how to
display hidden topics (collapsed or invisible)
Added support for course->hiddentopics in backup & restore
2004-04-27 16:37:53 +00:00
stronk7
56eea82e08 First version of inter-activities mantained in backup/restore.
All the conversion to some pseudo-codes are done at backup time.
In the restore process, every link is decoded to new ids.
For now, this is supported:
- In backup:
  -all links to forums are encoded.
- In restore:
  - all links to forums are decoded.
      - from forums (post->message).
      - from resources (resource->alltext).
The process requires a backup made with the same version (because it
has to be properly encoded at backup time). Old backups will work
without conversions at all.
Only tested with some little courses.
It would be perfect to have some "big" course to test it.
Please, test and feedback, ciao :-)
2004-04-24 00:40:45 +00:00
stronk7
229f852a8a Now blockinfo is fully supported in backup & restore. For old backups
(without blockinfo field, default blocks are applied). Every block
visibility is mantained in the process.
Bump versions a bit (2004042100) :-)
2004-04-20 23:28:46 +00:00
moodler
0043ddbb1a decalre $THEME to stop some notices ... 2004-04-17 13:37:54 +00:00
stronk7
01f50e060e First attempt to encode/decode some absolute path parts
in the backup/restore process in order to have every call to file.php
working in destination courses. Specially useful to contents created
with th HTML editor because it uses this type of URLs to images, smiles...

NOTE: This make 1.3 backups not restorable in 1.2 systems !!
2004-04-01 23:31:56 +00:00
stronk7
cd44fdcb82 Some important changes:
- Now course events are supported in backup & restore.
        - in manual backups
        - in scheduled backups
    - Fixed important bug when restoring groups.
    - Added support to the "user change password" action
      (with some changes done in login/change_password.php)

Please, test it !!!!
2004-02-21 01:30:22 +00:00
moodler
8199e3f09a New user field called "emailstop" ... to stop emails.
I had to do it ... this is driving me nuts with some people
on moodle.org
2004-02-20 09:02:27 +00:00
moodler
3c0561cfe7 New field in the groups table to "hidepicture" from being displayed
in locations like forums etc.

Backups done too, Eloy.  :-)
2004-02-15 07:29:55 +00:00
stronk7
3a4b33c3b9 Now course->lang is in backup & restore. 2004-02-09 22:24:34 +00:00
stronk7
9055368540 Ooops !! Copy/paste typo. :-) 2004-02-08 19:37:43 +00:00
stronk7
63349eb15c log->cmid is included in backup (not processed in restore yet!!) 2004-02-08 19:36:42 +00:00
stronk7
41fd7fe497 Now user_preferences are fully supported in backup & restore. 2004-02-08 19:27:23 +00:00
stronk7
29856bcba0 Now everything seems to work fine with the new insert_record() function.
Please, test :-)
2004-01-30 19:04:07 +00:00
moodler
ece42d55fc FIxed tiniest bug when trying to backup groups in courses that have none 2004-01-26 17:46:19 +00:00
stronk7
a4de843e15 Groups are now included in backup too. I start working in restore now. 2004-01-25 19:26:24 +00:00
stronk7
e695cd3f36 Now groupmode in course_modules is supported too. 2004-01-22 20:27:17 +00:00
stronk7
568d750b41 Now groupmode and groupmodeforce (course table) are in backup and restore too. 2004-01-05 00:57:23 +00:00
stronk7
78d4084cf1 Take out another notice in backup. 2003-12-01 21:39:11 +00:00
stronk7
37afa39a5e Added support in copy_zip_to_course_dir() to save course
backup file in a custom directory (via $preferences->backup_destination).
Needed in scheduled backups.
2003-12-01 20:25:50 +00:00
moodler
3f125001bc New feature: Allow students to see their own activity reports.
This is a course setting.  By default it is off.  When on, there
is a new link in the course admin menu for students, and they can
browse the same report that teachers see.

The report icon is temporary.
2003-10-31 05:57:30 +00:00
stronk7
dabf73b44a timeaccess (students and teachers) included in backup/restore. :-) 2003-10-27 17:23:43 +00:00
stronk7
4119844902 Now scales users are in backup too. See bug 824.
Closing it in some hours.
2003-10-08 07:35:53 +00:00
moodler
8c02baf617 If there aren't any users, don't do anything. 2003-10-07 14:00:09 +00:00
stronk7
6ecc3ea8d3 Now course->maxbytes is supported in backup/restore. 2003-10-07 11:58:56 +00:00
stronk7
0611af101d Now, "needed" users are included in backup/restore when
"course users" are selected.  This uses the xxxx_get_participants()
function in every module.
This solves an issue about info in modules belonging to
unenrolled users (Bug #692 closed).
Mantain compatibility with old backups (1.1 and 1.1.1).
Updated version to "1.2 development".
Included support to "label" module (by Martin)
2003-09-14 21:43:34 +00:00
moodler
aac94fd0cc New field on course_modules called "indent" ... this is an integer
that tells us how far to indent the activity when it is displayed.

This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc

Backup/restore is updated as well.

There is also a bit more robustness in course/mod.php
2003-09-14 16:31:33 +00:00
stronk7
300ae26c2d Ooops I commited some debug source code in previous
versions. Going back. Sorry.
2003-08-23 17:40:27 +00:00
stronk7
41923e7511 Solved one problem when copying empty directories. 2003-08-23 17:33:34 +00:00
moodler
fff79722e5 A new course field called "showgrades" which allows the teacher to
turn the display of the grade book on and off.
2003-08-20 07:32:24 +00:00
stronk7
42f1ff47b4 Scales are now supported in backup/restore.
Updated version to 0.8.8 alpha. Please test.
2003-08-18 00:00:22 +00:00
stronk7
35a14ba021 Now editall and timemodified are in
backup/restore process
2003-08-16 11:31:32 +00:00
stronk7
d968b8e61a Included and commented one new debug 2003-08-15 11:03:07 +00:00
stronk7
fa383df984 Solved bug. Now user files are checked againt users to backup.
Before this every thir under users was in backup.
2003-08-03 09:39:27 +00:00
stronk7
8f7ab28112 Now "backupdir" string is hardcoded in backup process.
Backup of logs in chunks is included, but the limit
clause doesn't seem to work. I'll test it later.
2003-08-02 16:03:00 +00:00
moodler
9c1ae5ae32 Removed $moodle_home and $mods_home references.
Also removed direct references to $backup_version and $backup_release

backup.php now accepts teachers of their own course
2003-08-01 14:34:11 +00:00