Commit Graph

147 Commits

Author SHA1 Message Date
stronk7 c54c59e7d8 Added missing join condition. Credit goes to Colin Chambers. MDL-16385 ; backported from HEAD 2008-09-08 14:29:01 +00:00
stronk7 e9b129a6a4 MDL-14072 - Backported from HEAD. Prevent NULLs, empties and numbers to be processed by:
- backup_encode_absolute_links() at backup
- restore_decode_absolute_links() at restore
2008-04-18 16:59:47 +00:00
stronk7 9ebd5c666d Ensure only target groups_members are added to backup. MDL-12453 ; backported from HEAD 2008-03-09 17:33:17 +00:00
stronk7 3efca70fda General cleanup of backup users. Part of MDL-10721 2008-01-25 00:37:58 +00:00
stronk7 3dcb2cda36 role_assignments are only exported for target users. MDL-13115 2008-01-24 18:44:11 +00:00
stronk7 726f2a45dc There was a mistake in the dir being created. It must be
the backup temp area one. MDL-11912
2007-11-02 13:01:02 +00:00
nicolasconnault a6ec1e9dd0 MDL-11912 Creating 1000's layer directory first, then userid directory: no need for recursion 2007-11-01 08:45:22 +00:00
nicolasconnault 1994116184 MDL-11912 Removed recursive param 2007-10-31 15:20:34 +00:00
nicolasconnault 3751aaf098 MDL-8605 Backup and restore implemented, and using remove_dir instead of rmdir, which doesn't support deleting non-empty directories 2007-10-12 20:26:44 +00:00
stronk7 ca133f6ec3 Adding some course->xxxx missing fields to backup & restore. MDL-10444 2007-07-16 20:16:24 +00:00
stronk7 e2dfe8bfca Skipping some thousands of require_once() calls because PHP5
is really slow (and heavy) with them. MDL-8700

Merged from MOODLE_17_STABLE
2007-03-02 09:41:22 +00:00
nfreear fb6c31f207 Fixes bug MDL-8059 "... won't restore - error A required parameter (id) was missing" (merged from HEAD). 2007-02-16 15:55:34 +00:00
nfreear d8aa3550bb Fixes bug MDL-8057, "Backup/restore code not considered in new groups code" 2007-01-20 09:28:26 +00:00
martinlanghoff c0543ba1f7 mnet: backup_general_info() now indicates whether it includes MNET_REMOTEUSERS 2007-01-16 02:52:51 +00:00
martinlanghoff 54359be4c9 mnet: backup_user_info() is faster, and it store mnethosturl for foreign users
Several changes to backup_user_info() rolled up here

 - The main JOIN happens in SQL instead of PHP
 - We now also join with mnet_host to get the wwwroot
 - As part of the join, all the variables appear in $user -- $user_data is gone
 - If the mnethostid is non-local we include MNETHOSTURL for that user

With this, backup_user_info() should be significantly faster for large
sets of users, though I haven't benchmarked it.
2007-01-16 02:27:36 +00:00
stronk7 a5855a89bf Avoiding some itarations. MDL-7902. Thanks Samuli!
Merged from MOODLE_17_STABLE
2007-01-14 12:11:33 +00:00
skodak 7150226896 MDL-7861 xhtml strict fixes - fixed all <br> in our code 2007-01-04 23:38:17 +00:00
Martin Langhoff f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
sam_marshall ae628043a0 MDL-7401 Course format database/backup/lang/stylesheet/capability support 2006-12-11 15:47:23 +00:00
skodak 810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
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