30 Commits

Author SHA1 Message Date
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
stronk7
2aa7d92472 Added and commented some debug lines. 2003-07-29 15:37:38 +00:00
stronk7
9bd651e876 Small typo in course STARTDATE. 2003-07-27 21:27:48 +00:00
moodler
d4f2e3fb55 Backup the new course->visible field 2003-07-21 07:35:58 +00:00
stronk7
e487376a8c Added some flushes to avoid some browsers timeouts
when calculating what to backup (check phase).
2003-07-15 18:10:15 +00:00
stronk7
04ab6cabc6 Some debug info commented 2003-07-07 19:20:52 +00:00
stronk7
d48370a60b Added some flush() to the backup process (in users, questions and logs) 2003-07-07 18:26:11 +00:00
stronk7
fcf74f5a80 Changed the backup output to convert every "\r\n\" and "\r"
(Windows and Mac line-break sequences) to "\n" (Unix line-break
sequence) to be treated apropiately by nl2br function.
Updated to 0.8.1 alpha
2003-07-05 23:14:16 +00:00
stronk7
af9cd9552e Changes in:
- Saving temp data to fs, instead of db
     (mysql limit bug OUT)
   - Modified clean directories (moodle standard delete dir
     function seems to work wrong with large dirs
   - Send info to browser continuosly to avoid timeouts.
   - Increase php execution time limit
   - More checks.
   - Restore into existing course now works fine
   - Create course_dir if it doesn't exist in the final step
     of backup.
2003-06-20 19:42:20 +00:00
stronk7
4f39d4fb3a Changed the log_check_backup function to execute a count_records
instead of selecting everyting (crash when there is a lot of log entries).
2003-06-10 16:40:36 +00:00
stronk7
54b7cd7c60 Changed get_records (every field) in user_check_backup to
get_records (only id). Possible memory shortage when a lot
of users (3999) are retrieved.
2003-06-10 15:42:51 +00:00
stronk7
0aefd39fd4 More debug... 2003-06-10 15:18:48 +00:00
stronk7
e60e65ab5f Some debug 2003-06-10 15:07:12 +00:00
stronk7
fb14b23be5 Little change to avoid iterate when no users are retrieved in
user_check_backup function
2003-06-10 15:02:53 +00:00
stronk7
0535cadae5 Included new "autosubscribe" fiel in users backup 2003-05-25 09:31:17 +00:00
stronk7
47e9035598 In course_modules export the field ADDED too. 2003-05-24 00:23:35 +00:00
stronk7
48cbf566bb XML generation. Included the main course data under a HEADER tag.
Needed for recover.
2003-05-17 15:58:24 +00:00
stronk7
7641819df0 Moved the check_version code to lib.php
Formatted portions of code
2003-05-16 21:51:07 +00:00
stronk7
01a16f7e5e Lib to include all backup particulary functions (came from lib.php), but
desglosed now
2003-05-14 23:24:00 +00:00