415 Commits

Author SHA1 Message Date
stronk7
cf40339763 Now, course->summary
section->summary
     user->description
are properly transformed if, in their contents, there was some
file.php call.
See bug 1631
(http://moodle.org/bugs/bug.php?op=show&bugid=1631)

Merged from MOODLE_13_STABLE.
2004-07-10 22:43:31 +00:00
stronk7
68b59d7256 Now only restored wikis (posts and resources) are re-encoded when
restoring to a existing course. Bug 1571.
(http://moodle.org/bugs/bug.php?op=show&bugid=1571)

Merged from MOODLE_13_STABLE
2004-07-08 06:05:34 +00:00
stronk7
dfd0229026 Modified to delete temp files older than 4 hours (previously it was
configured to 48 hours). Force to execute the clean before doing the
backup itself. This should avoid the disk full of temp backup files
issue. See bug 1520.
http://moodle.org/bugs/bug.php?op=show&bugid=1520

Changes merged from MOODLE_13_STABLE.
2004-06-27 22:35:27 +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
4b14ebdc48 Added a new check in selectItemInMenuByName() javascript to apply the
select only to menus by checking element.type == select-one. Thanks to
Antonio Vicent.
Merged from MOODLE_13_STABLE branch.
2004-06-13 18:58:27 +00:00
gustav_delius
6bc502cca7 List of courses is now always ordered according to sortorder, see http://moodle.org/mod/forum/discuss.php?d=7034 2004-05-30 00:33:45 +00:00
stronk7
e41ba0024b Bump to possible release day.
Note: not relevant, but my 2nd Wedding Anniversary!! :-)
2004-05-23 19:28:22 +00:00
stronk7
13cbc82969 Bump. 2004-05-23 10:26:34 +00:00
stronk7
fcd6cf2340 Now "none-users" backups are allowed. See bug 1420.
(http://moodle.org/bugs/bug.php?op=show&bugid=1420)
2004-05-20 18:39:18 +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
1029856e40 Now scheduled bakup checks for required XML functions to work.
Bug 1432 related.
(http://moodle.org/bugs/bug.php?op=show&bugid=1432)
2004-05-20 15:17:39 +00:00
stronk7
30f649342c Bump to 1.3 Final. Ready...
(only bug 1420 ) remains in process...
2004-05-20 08:22:15 +00:00
stronk7
ba484b2108 Now day-names are showed properly always. Bug 1422.
Using gmt functions to avoid TZ displacements...
(http://moodle.org/bugs/bug.php?op=show&bugid=1422)
And BUMP version.
2004-05-19 23:08:03 +00:00
stronk7
35055d3786 Step4 done. :-) 2004-05-16 18:05:02 +00:00
stronk7
c2e684d6d7 One missing "</ul>" tag... 2004-05-15 17:30:30 +00:00
stronk7
c484d58cf8 Now wiki links to activities are decoded to its new location
when restoring courses. If the link belongs to the course, it's
adjusted as internal, else it's modified to link its original
source.
2004-05-14 00:17:29 +00:00
stronk7
c6e02da78f Just to be "aligned" with main Moodle version...:-) 2004-05-13 16:00:48 +00:00
stronk7
5f5fb0c441 Solved bug 1377. Now scheduled backups config will use
CFG->admin instead of hardcoded admin.
(http://moodle.org/bugs/bug.php?op=show&bugid=1377)
2004-05-12 19:12:54 +00:00
stronk7
2a72282163 Added some messages in integrity checks to be more explicit.
Howard Miller suggested it.
2004-05-10 16:02:03 +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
5b76e6fc51 Now every link to forums (from resources and forums) and every link
to resources (from resources and forums) are re-encoded in backup/restore.

I could reduce the code size but for now I prefer to have it this looong
form to clarify what it's doing.

Please, test, test and test...
2004-05-08 18:30:30 +00:00
stronk7
3a238a355a Changed the system to recode links to forums. Now it it detect
that the link doesn't belong to the course being restored, then
the original link is mantained.
With this, the backup/restore should be finished. Now some
tests to check everything !!
2004-05-07 23:40:41 +00:00
stronk7
3c01fbf4ba Now $course->showrecent is out from backup & restore 2004-05-07 22:39:37 +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
b9f2b9bd99 Small typo in las cvs version. Arghhh!! 2004-04-28 22:29:39 +00:00
stronk7
22c8200ff4 If group isn't detected when restoring events, default it to 0 2004-04-27 22:37:01 +00:00
stronk7
70da9e72ce Update it a bit too! 2004-04-27 19:57:18 +00:00
stronk7
d2b5f1e8bf event->format is now in backup & restore. 2004-04-27 19:51:12 +00:00
stronk7
559d33f678 Bump 2004-04-27 16:44:47 +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
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +00:00
moodler
0043ddbb1a decalre $THEME to stop some notices ... 2004-04-17 13:37:54 +00:00
stronk7
df9a165ecc Now, after restoring the course, the restore proccess executes
every MODULE_refresh_events() function to recalculate every
activity event automatically.
2004-04-09 23:40:37 +00:00
stronk7
866eb2ffbd Update a bit. 2004-04-09 21:41:00 +00:00
stronk7
632d6e50ce Incremented memory max to 80MB. To avoid possible pclzip bug...
See bugs 1216 and 1222
2004-04-05 21:37:29 +00:00
stronk7
70441d0f8c Now, all "with/without user data" can be selected from one option. This
should avoid a lot of clicks to Gustav. :-D
Current implementation can  be modified to buttons...if desirable.
2004-04-03 23:52:23 +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
39e7e1abf8 One more day... 2004-03-24 23:27:09 +00:00
stronk7
2147cbda7e preparing for micro-release in a day or two. Bump to 1.2.1 2004-03-22 19:42:46 +00:00
stronk7
1163776529 Bump to 1.2 + :-) 2004-03-21 10:46:05 +00:00
stronk7
75c83282ff Bump to update possible release date. 2004-03-18 22:55:26 +00:00
stronk7
661c23469a Bump to update possible release date. 2004-03-16 17:53:01 +00:00
stronk7
5cc875eb9e Upgrade to new release day 2004-03-14 00:17:59 +00:00
stronk7
5710554f12 After executing all my test courses, now everything seems to be ready.
So I BUMP to 1.2 final now!!  :-)
2004-03-12 08:00:09 +00:00
stronk7
dc47f786f9 Bump. To be in sync with Moodle. 2004-03-11 07:26:38 +00:00