250 Commits

Author SHA1 Message Date
stronk7
1923285635 Now stamp and version are fully supported in backup/restore.
The process look for category, stamp and version to calculate
when to create a question or use a existing one.
This avoid duplicates in RANDOM and RANDOMSAMATCH qtypes.
2003-08-23 15:21:58 +00:00
stronk7
a057e13d1f Up to 0.8.9 alpha.
Now multianswer questions are working too.
Too complicated !!
2003-08-23 00:36:08 +00:00
moodler
ae5f8de620 Added some more error messages when restoring 2003-08-22 13:20:06 +00:00
stronk7
6a0e7bafd4 XML support 2003-08-21 22:54:47 +00:00
moodler
e6ea5c0664 Fixed some bad Postgres SQL that I made! :-) 2003-08-20 12:09:15 +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
93e9a4c9cd Some minor changes to restore scales in existing course
(avoid some duplications)
2003-08-18 13:07:02 +00:00
stronk7
6466b6bb56 Forgot to change one line !! :-) 2003-08-18 00:04:38 +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
823e087163 Started work with scales !! 2003-08-17 20:17:41 +00:00
stronk7
35a14ba021 Now editall and timemodified are in
backup/restore process
2003-08-16 11:31:32 +00:00
moodler
63bcc9b55b Use isteacheredit instead of isteacher 2003-08-16 06:37:06 +00:00
stronk7
f43f3f65bc Solved one important bug in RANDOM(4) and RANDOMSAMATCH(6)
question types.
And modified some of the quiz_answers restore system to
allow remapping answers with existing questions.
//Detected by scott dot elliott at mchsi dot com in Bug 84
2003-08-15 11:08:51 +00:00
stronk7
d968b8e61a Included and commented one new debug 2003-08-15 11:03:07 +00:00
moodler
7140a97ae3 Missing string, bug in call to get_string 2003-08-09 12:40:08 +00:00
moodler
6a2d42e6fb Changed function name 2003-08-07 16:04:54 +00:00
moodler
81d3268da1 Remove login link on first install 2003-08-07 06:56:34 +00:00
stronk7
80de201bfc Updated.
Now chat modules are included in backup and restore
2003-08-03 22:48:41 +00:00
stronk7
51de923ed1 Reuse an existing string. 2003-08-03 15:15:23 +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
4398d023a9 Updated:
- Teachers can backup/restore their courses.
- New option "restore to existing, deleting old".
- backupdata dirname harcoded.
- backup and restore buttons in main course page.
2003-08-03 01:05:38 +00:00
stronk7
be2a6fc6ca Teacher restoring and admin restoring finished.
Allow restore into new course (only admins),
      restore into existing course deleting old and
      restore into existing course adding to old
Teachers are limited to "current course" while admins ca
select any course. :-)
2003-08-03 00:42:41 +00:00
stronk7
35ea159433 delete_dir_contents function now allows excluding a dir 2003-08-03 00:40:08 +00:00
stronk7
642ac84855 Added suport to new restoreto options 2003-08-02 23:37:41 +00:00
stronk7
0c6e10b33e Now "backupdir" string is hardcoded in backup process. 2003-08-02 16:13:44 +00:00
stronk7
9e426d54ee Added preliminary support to teachers.
Not working yet.
2003-08-02 16:06:33 +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
stronk7
1692281e40 Minor change to allow continue after upgrade_backup 2003-08-02 10:32:57 +00:00
stronk7
e9346b95b7 backup_release is now saved to config too. It was losed in lastest changes
to update module facility !!
2003-08-01 23:46:49 +00:00
stronk7
d37ca7c7f8 Chanfed to locate the pclzip properly. 2003-08-01 23:36:07 +00:00
moodler
bd38123e98 Completed mods to allow teachers to make backups 2003-08-01 14:42:14 +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
moodler
10dcde409b Further integration of backup into main Moodle.
The database checks/upgrades are now done on the main
admin page like the other modules.

The database files are now standard format .sql and .php files

PostgreSQL support was added - BUT HAS NOT BEEN TESTED YET!!
2003-08-01 13:59:17 +00:00
stronk7
101735cc89 Included fix_category_courses() to
adjust the new category structure
2003-07-31 18:01:45 +00:00
stronk7
f5786441aa Changed to version.php
(to be more consistent with the rest of the modules)
2003-07-31 16:56:40 +00:00
stronk7
2c54aa080b Copied from old backup_version.php
(to be more consistent with the rest of the modules)
2003-07-31 16:55:11 +00:00
stronk7
d538d4008f Changed calls to backup_version.php to version.php
(to be more consistent with the rest of the modules)
2003-07-31 16:54:05 +00:00
stronk7
2b96840769 Variables passed by reference warning is out !! 2003-07-31 16:44:52 +00:00
stronk7
7d40e78c0d Uncommented clean_temp_data. I forgot it
in lastest tests...
2003-07-30 16:29:53 +00:00
stronk7
388052cd9c Solved two importat bugs.
Numerical Questions now working.
Included support to Moodle's language system.
2003-07-29 19:48:06 +00:00
stronk7
a42de97187 Included language support. 2003-07-29 15:38:55 +00:00
stronk7
2aa7d92472 Added and commented some debug lines. 2003-07-29 15:37:38 +00:00
stronk7
67805f89ec Prepared to insert string in langs. Tomorrow. 2003-07-28 19:37:37 +00:00
stronk7
1b42805d61 Added chat status 2003-07-28 19:35:36 +00:00
moodler
49caea35c9 Small changes to the restore "continue" button and some missing strings 2003-07-28 01:38:35 +00:00
stronk7
4498d1a402 Prepared to insert string in langs. Tomorrow. 2003-07-27 21:30:24 +00:00
stronk7
92ffd629b2 Typo in course STARTDATE 2003-07-27 21:29:22 +00:00
stronk7
9bd651e876 Small typo in course STARTDATE. 2003-07-27 21:27:48 +00:00
stronk7
c11c6fed95 //Added some debug (commented in production) 2003-07-27 21:26:51 +00:00
moodler
d4f2e3fb55 Backup the new course->visible field 2003-07-21 07:35:58 +00:00