Compare commits

...

1972 Commits

Author SHA1 Message Date
moodler ec6ed8e4cf Final 1.3.5 release 2004-09-09 12:19:16 +00:00
martignoni 8f13c9f544 Merge from HEAD 2004-09-04 14:04:15 +00:00
martignoni 70422f41ae CVg:Merge from HEAD Committing in . 2004-09-04 14:01:23 +00:00
gustav_delius 0db24926f4 added constant SITEID=1 2004-08-29 14:02:13 +00:00
moodler 36f1358f01 Increment version number for module compatibility of 1.4 modules 2004-08-24 14:41:15 +00:00
moodler 5781d6d168 Added some functions from 1.4 to provide some backward compatibility
for modules
2004-08-24 13:25:41 +00:00
martignoni 8ada23b6ea Small change 2004-08-14 19:59:04 +00:00
martignoni ad9820f5e5 More small changes 2004-08-14 19:57:51 +00:00
martignoni 020a08e1b3 New file added to the stable branch 2004-08-14 19:22:51 +00:00
martignoni 5a1792c171 Some fixes 2004-08-14 19:06:01 +00:00
martignoni 7c926f4b87 Some fixes 2004-08-14 17:37:34 +00:00
martignoni b88b9ca54b Translation file added 2004-08-14 16:00:35 +00:00
martignoni e1aaa0f8b4 Title corrected 2004-08-14 15:59:47 +00:00
martignoni 6f89a646a1 Some fixes 2004-08-14 15:57:11 +00:00
martignoni 2db97abe7d Mailto corrected 2004-08-14 14:23:42 +00:00
martignoni 36e8bf03f2 Small fixes 2004-08-14 14:20:48 +00:00
martignoni a2f051acef Small fixes 2004-08-14 13:08:59 +00:00
martignoni 10a5a9ccbe Improvements and fixes 2004-08-14 12:45:55 +00:00
martignoni e4b8b4438a Other small changes 2004-08-14 12:30:23 +00:00
martignoni 1d616e7c39 Small change 2004-08-14 10:41:41 +00:00
martignoni 6f00277957 Update to last informations 2004-08-13 15:44:33 +00:00
martignoni f4b68f993d Replaced 'texte wiki' with 'genre wiki' 2004-08-13 15:42:05 +00:00
martignoni db38bca333 Release notes for 1.3.4 2004-08-13 15:41:01 +00:00
martignoni 745353073a Correct encoding 2004-08-13 15:38:51 +00:00
martignoni 61c6dd88d7 Typos corrected 2004-08-13 15:37:48 +00:00
martignoni 835a2ffeab Updated view of the future 2004-08-13 15:36:08 +00:00
martignoni 44e8171eec Encoding corrected 2004-08-13 15:34:38 +00:00
martignoni 5d78ee6f17 Some small changes 2004-08-13 15:29:35 +00:00
moodler 7e818d35e5 OK, now things are tagged we can move on 2004-08-11 07:06:36 +00:00
moodler 905d19d116 Undoing last change ... 2004-08-11 06:13:36 +00:00
moodler 8291ac75f0 Moving on.... 2004-08-11 06:13:02 +00:00
moodler a0f4f25efc Added a space 2004-08-11 05:15:55 +00:00
moodler f7fdef0bea Release notes for 1.3.4 ... just about to let it go 2004-08-11 05:13:55 +00:00
moodler e6d2d52380 Fixed a regular expression to remove curly brackets 2004-08-11 04:49:35 +00:00
moodler c656a9cf69 Removed some junk 2004-08-11 04:38:30 +00:00
moodler ef9ee89c4a Removed a typo 2004-08-11 04:36:15 +00:00
moodler 90b592bfaa OK, better get this out now 2004-08-11 04:29:32 +00:00
moodler 09754fa2b7 Hiding the error message about block constructors 2004-08-08 05:53:05 +00:00
stronk7 4422bbfb20 Added blocklib.php. Now it seems to work.
(not really sure if this script should exist!!)
Bug 1702
(http://moodle.org/bugs/bug.php?op=show&bugid=1702)

Merged from HEAD
2004-08-07 09:39:41 +00:00
moodler 816b5fe4bf Fixed possible XSS entry point 2004-08-07 02:43:36 +00:00
moodler b315384965 Fixes for some cases where shortanswer responses contain commas 2004-08-02 06:46:07 +00:00
moodler d678b11b8c Changed an error() to a notify() so things can continue as much as possible 2004-07-31 09:33:53 +00:00
stronk7 03eca369af Bump. Ready to 1.3.4!! :-) 2004-07-29 18:08:05 +00:00
stronk7 2ca880899c Now glossary module backups from a 1.4 version can be restored in a 1.3.
Only two combinations aren't 100% compatible:
    - Program resources.
    - Text without format in 1.4 is changed to type 4 (plain text)
Bug 1676
(http://moodle.org/bugs/bug.php?op=show&bugid=1676)
2004-07-29 18:04:54 +00:00
stronk7 3ce0b09497 Now resource module backups from a 1.4 version can be restored in a 1.3.
Only two combinations aren't 100% compatible:
    - Program resources.
    - Text without format in 1.4 is changed to type 4 (plain text)
So resource restore is 99% backwards compatible in 1.3
Bug 1674
(http://moodle.org/bugs/bug.php?op=show&bugid=1674)
2004-07-29 17:54:58 +00:00
stronk7 19ca7ac3b6 Display a notice about going to restore a newer backup file.
Bug 1675
(http://moodle.org/bugs/bug.php?op=show&bugid=1675)
2004-07-29 16:31:00 +00:00
moodler 812a8400fb Aiming for a 1.3.4 soon 2004-07-27 15:57:34 +00:00
moodler 7e406f7840 Fixes a very rare glitch with attempt numbers that I've seen on one
site and could not find the cause for
2004-07-27 09:31:01 +00:00
moodler cc03ed4016 Fixed bad regular expression logic in short answer 2004-07-27 08:29:33 +00:00
moodler b435823477 Fixed two possible XSS problems:
- vbscript tag
  - javascript entities

Thanks to Eamon Costello for finding these!
2004-07-26 06:17:47 +00:00
moodler 4ecd9d91e2 Fixed a typo in POstgreSQL install 2004-07-22 01:12:47 +00:00
moodler 9770e27ece Menu lables are non-seletable 2004-07-21 05:43:24 +00:00
moodler 744950fa72 Forbid restricted users from changing enrolments 2004-07-21 02:07:08 +00:00
stronk7 903c6f92b0 Added one string to moodle.php
To be used in different places.
Bug 1646
(http://moodle.org/bugs/bug.php?op=show&bugid=1646)
2004-07-19 18:15:20 +00:00
stronk7 ecf8f76345 Updated to 1.3.3 2004-07-16 17:07:49 +00:00
moodler 67fc04383e Added missing links to group mode stuff 2004-07-16 17:07:03 +00:00
moodler 2f4cf6638f Notes for 1.3.3 2004-07-16 16:52:23 +00:00
stronk7 1a559cb799 added one string 2004-07-16 16:50:36 +00:00
moodler bfd94e69c5 Updates for Russian from dev branch 2004-07-16 16:49:44 +00:00
moodler af1cb63f72 Updates in Dutch from dev 2004-07-16 16:16:08 +00:00
moodler 9da3e73c1c French updates from development 2004-07-16 16:13:16 +00:00
moodler 3f1919774a Latest translations from dev 2004-07-16 16:10:56 +00:00
moodler 91b08feca8 Typo gah 2004-07-16 16:05:22 +00:00
moodler 761be4c9f0 Added a description about SCORM 2004-07-16 16:02:42 +00:00
moodler 5cae766f70 Latest fixes from Bobo in stable 2004-07-16 15:45:21 +00:00
moodler 0dd066c6c6 Merged update 2004-07-16 15:01:09 +00:00
moodler 71ae822c8a MOre robust handling of the $lang variable 2004-07-16 13:26:46 +00:00
moodler 575eba292a Preparing for release in a couple of hours 2004-07-16 13:15:26 +00:00
moodler 0a2294525c Fixing up last merge problem 2004-07-16 13:13:35 +00:00
moodler 4b685ab2a3 Fixed typo for globalglossary 2004-07-16 13:07:14 +00:00
moodler 00231a7498 Adding latest ADOdb to stable 2004-07-16 12:15:46 +00:00
stronk7 ad6c367583 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)
2004-07-15 22:59:20 +00:00
moodler 7ffa4254e2 Fix for bug 1514 2004-07-15 05:59:59 +00:00
moodler 86fb51fe69 Added $bodytags variable in themes 2004-07-14 06:47:06 +00:00
moodler bc05b1544d Added bodytags parameter for print_header, to help SCORM module insert onload() to pages 2004-07-14 06:41:56 +00:00
moodler e2d3d77173 Fixes from Deen Foxx BUg 1638 2004-07-13 13:53:41 +00:00
moodler 6b63e94a29 Fixed XSS bug #1637 2004-07-13 03:49:20 +00:00
stronk7 350e44bf21 Now, for glossaries using the 'Entry List' format, their
entry->description is viewable with the standard popup window.

Bug 1636
(http://moodle.org/bugs/bug.php?op=show&bugid=1636)
2004-07-12 17:08:45 +00:00
stronk7 f97355847a In 'categories view' (all and only one), now attachements, edit, comment
and delete are working properly. Thanks to frank@nomios.de!!
See bug 1632
(http://moodle.org/bugs/bug.php?op=show&bugid=1632)
2004-07-12 16:33:04 +00:00
stronk7 ee84cd6c76 Updated to 1.3.2 (from trunk) 2004-07-11 23:08:04 +00:00
moodler 14824286cb Small fix to detect_munged_arguments to make Thiagi game shells work.
They have a '..' in the arguments, so we are allowing one of these only.

I wonder if this is Ger's problem too.
2004-07-11 16:01:09 +00:00
stronk7 3f4e0d9d6a 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)
2004-07-10 22:37:45 +00:00
stronk7 2b8fb55a4d Latest changes from Antonio Vergara in HEAD rev. 2004-07-09 15:20:45 +00:00
moodler aa55bb6666 And moving on ... 2004-07-09 09:47:04 +00:00
moodler 90c644a587 Latest release notes for 1.3.2 (in STable) 2004-07-09 08:30:26 +00:00
moodler 30772a2aaf Latest SCORM from development now merged into stable 2004-07-09 05:53:46 +00:00
stronk7 4287e72159 Updated because they are very old (Moodle 1.1.1).
Changes apllied from 1.4 TRUNK.
2004-07-08 21:22:57 +00:00
moodler 79b71ea0cd All current language files have been merged from the main development branch 2004-07-08 15:35:28 +00:00
stronk7 5180efaa90 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)
2004-07-08 05:59:50 +00:00
moodler 1a55aa43a2 Preparing for release today 2004-07-08 01:21:20 +00:00
moodler eb34e77f15 Add require login to be safe (more checks than just isadmin) 2004-07-08 01:16:29 +00:00
stronk7 935ba6ed19 Force to destroy the php session. Without this, some buggy PHP versions
can have problems under certain situations. :-)
2004-07-07 19:28:26 +00:00
moodler ea944efe7f A fix to prevent breaking of lines in multibyte languages 2004-07-07 15:04:52 +00:00
moodler 4f8442c56d Preparing for 1.3.2 release 2004-07-06 01:57:58 +00:00
moodler fe544ceab4 Made forum search form slightly smaller 2004-07-05 05:45:09 +00:00
moodler b65fdd3b54 Allow students to always see editing teachers in their course 2004-07-04 11:08:47 +00:00
moodler 6478428784 FIxes for showing user discussions from groups 2004-07-04 07:38:51 +00:00
moodler 660381d2b0 Fixes for recent activity 2004-07-03 12:56:14 +00:00
moodler 65aede08b6 This fixes some rather serious bugs with how groups are used in group-oriented
forums.

The zero group was used to define both the

   - ungrouped people
   - the posts that all groups should see

The groupid field in the forums is now a signed field and a new value -1 has
been introduced.

   0  --> ungrouped people
   -1 --> the posts that all groups should see

Things are now a lot more intuitive.  Teachers can post to individual
groups or to ALL groups at once.   Recent news display now makes sense etc.
2004-07-03 12:09:34 +00:00
moodler cc1ec30e2d Made assignment submission counting more robust 2004-07-03 10:25:50 +00:00
moodler 5f90f9fad6 Updated to English 2004-07-03 09:16:19 +00:00
moodler 60d17e47a0 FIxed bug 1607 - user sorting 2004-07-02 02:44:34 +00:00
stronk7 94826e8e57 Minor copy/paste bug solved... :-) 2004-07-01 18:56:22 +00:00
stronk7 ae39746289 Some polishing of "TAB" chars in source code done.
Minor changes in glossary export/import to include the displayformat field.
Added a new feature (it was hidden and uncompleted in source code):
Import a glossary file, creating automatically a new glossary activity.
Bug 1606.
http://moodle.org/bugs/bug.php?op=show&bugid=1606
2004-07-01 18:52:44 +00:00
gustav_delius 49fe4f99e1 using fullname() on info page, fixing bug 1596 2004-06-29 21:46:32 +00:00
stronk7 4997042474 Take care of empty aliases in glossary xml files when importing them.
See bug 1599. Thanks to skodak. :-)
http://moodle.org/bugs/bug.php?op=show&bugid=1599
2004-06-28 23:54:00 +00:00
stronk7 1194026729 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
2004-06-27 22:28:19 +00:00
moodler 20761eb71d Some fixes for locales in a very multilibgual site (eg moodle.org) 2004-06-21 12:39:31 +00:00
gustav_delius 734bdb63bf Site option forcelogin is now respected by /mod/forum/search.php, fixing bug 1566 2004-06-14 20:06:15 +00:00
stronk7 e0dd8f3260 Added a new check in selectItemInMenuByName() javascript to apply the
select only to menus by checking element.type == select-one. Thanks to
Antonio Vicent.
2004-06-13 01:07:16 +00:00
gustav_delius 578ba7762e fixed bug 1553 which gave error with empty jump menu 2004-06-09 08:35:47 +00:00
moodler e044b5a536 A glossary marked global can now be unmarked again later 2004-06-07 08:40:39 +00:00
moodler 63f6422df2 Updating release name 2004-06-07 08:37:51 +00:00
moodler 8097f8d7c7 Fixed a bug reported here: http://moodle.org/mod/forum/discuss.php?d=8737
Students now will not see a forum rating menu if "teachers only" has been selected.
2004-06-07 06:12:55 +00:00
moodler ac90c4a264 Fixed problem with mediaplugins filter being too greedy when there
were multiple links in the same line of HTML code.
2004-06-06 14:25:23 +00:00
gustav_delius 345692a64d Fixed bug 1531, section links to invisible sections now greyed out or hidden 2004-06-05 12:03:22 +00:00
gustav_delius 86a8e9070b Fixed bug 1531, section links to invisible sections now greyed out or hidden 2004-06-05 11:56:51 +00:00
moodler 6555eabb0c Latest release notes for 1.3.1 2004-06-04 16:14:20 +00:00
moodler dcc6326eb9 Slip those popular » characters into the navigation bar 2004-06-04 13:15:45 +00:00
moodler e8fb94a3cd Label this as Moodle 1.3.1 2004-06-04 07:55:19 +00:00
moodler 79dd6106dd Removed PHP_SELF ... bug 1522 2004-06-03 14:22:20 +00:00
moodler 031dd5f017 OK, for bug fixes this is a pretty big checkin!! :-/
I finally was able to see the HTML Editor bug in IE/XP that everyone
was talking about, and it's a very serious bug as it makes Moodle 1.3
almost unusable for these people.  :-(  :-(

So, I eventually found out that the problem is that the Javascript that
attaches the editor has troubles when it is embedded within the table                                                   that course/mod.php puts around the mod.html forms in each module.
(Only in IE and only sometimes, mind you).

While testing I also had a good look at a long standing issue which is the
inconsistency of the mod.html forms when using the editor.

So, to fix both I decided to put the HTML editor calls OUTSIDE the mod.html
in the mod.php file.  This means that all modules get the HTML editor by default
on all text areas during activity module setup by default.

I've been running through this for the past few hours and it seems
pretty stable now and a lot more consistent, so I'm checking it in
as big fix towards the Moodle 1.3.1 we have to have.

Unfortunately it also means the API has changed a bit  ... I had to
update all the module dependencies to this exact version (or later).

Please test this "stable" version hard using the standard modules only
and I'll merge these changes over to the trunk in a day or so and update
all known third-party modules.
2004-06-03 13:07:49 +00:00
moodler 507ee65e59 Fix for bug 1070 where HTML editor body was not always being shown. 2004-06-03 08:14:07 +00:00
defacer 56b19c309e Fix for an (apparently old but only recently discovered by me) issue from the
forums where require_once() would fail to do the "once" part unless you use
absolute pathnames.
2004-06-02 08:03:05 +00:00
stronk7 99dac04aeb Solved bug 1491 in all the "linking" filters.
(http://moodle.org/bugs/bug.php?op=show&bugid=1491)
Bugfix 001
2004-05-30 00:28:52 +00:00
gustav_delius 12f18ea1ab A hack to fix bug 1488. html editor needs $course object defined. Should perhaps be solved differently in the long run. 2004-05-29 16:19:32 +00:00
stronk7 1626376373 One simple change to test cvs branching... 2004-05-29 15:19:15 +00:00
moodler 7729acff90 On second thoughts, we must not touch the version date,
so that people can upgrade properly to Moodle 1.4 later.
2004-05-29 14:27:33 +00:00
moodler b35cd9c592 Update version number for stable. No need to merge this obviously 2004-05-29 14:25:39 +00:00
gustav_delius a69a278684 previous fix now also works in weekly format 2004-05-29 09:12:33 +00:00
gustav_delius 61cc70ae45 section links now preserve focused view, see http://moodle.org/mod/forum/discuss.php?d=7648#37555 2004-05-29 08:40:41 +00:00
martignoni 41e2f90f77 Typo corrected 2004-08-03 07:56:12 +00:00
martignoni d97aa00197 Fixed links 2004-08-03 07:55:26 +00:00
martignoni 04bd66f305 Updated info about Markdown format in the general help file 2004-08-03 07:37:04 +00:00
defacer 9c81fc35a9 Fix a couple of notices that I just... noticed :-) 2004-08-03 07:34:03 +00:00
martignoni f3b0ce4535 Replaced 'texte wiki' with 'genre wiki' 2004-08-03 07:27:16 +00:00
martignoni f10bf63275 New help file for enrolment period 2004-08-03 07:06:27 +00:00
martignoni 197b006fe8 New strings for FirstClass auth 2004-08-03 06:56:27 +00:00
moodler 780dd11cfb Single more concise string for login error notification emails 2004-08-03 06:53:04 +00:00
gustav_delius 2f565a77a3 resource module requires recent version 2004-08-03 06:29:10 +00:00
mits 24de049d3a translated one. 2004-08-03 06:20:25 +00:00
mits 871b0ace75 translated some. 2004-08-03 06:12:46 +00:00
moodler 6590ad064b FIxed link 2004-08-03 05:13:25 +00:00
moodler b6268a0eb4 == was not working I think, but === definitely does 2004-08-03 05:11:34 +00:00
moodler 5b1aae0a16 Markdown manual 2004-08-03 05:08:35 +00:00
moodler 5fb46a9cc4 Updated info about Markdown format in the general help file, and also
completed renaming of Wiki format to Wiki-like format.
2004-08-03 05:05:12 +00:00
moodler b4d4e4aac5 helps wiki find global course 2004-08-03 04:08:11 +00:00
moodler 579dcca41e Email function now returns an "emailstop" error if email was blocked 2004-08-03 04:03:01 +00:00
moodler 50a26903e6 Forum mail now logs differently if mail was just blocked (rather than
flagging it as an error)
2004-08-03 04:02:26 +00:00
moodler fd74cb2753 Added links to Languages forum and mail addresses 2004-08-03 03:36:34 +00:00
stronk7 8d8275a5c5 TEMPLATE format for glossaries. It is self-documented, but some
review will be welcome...ciao :-)
2004-08-02 21:53:47 +00:00
stronk7 7749579343 Some changes to the formats plugin detection function
and minor changes to some functions.
2004-08-02 21:44:06 +00:00
stronk7 e58b1d1eda Reload current glossary format from DB, because
the plugin system can changed it automatically.
2004-08-02 21:41:49 +00:00
martignoni 931ee9ad15 New file added 2004-08-02 19:29:07 +00:00
moodler 6da4b2618f The resource types are now always displayed in a standard order
no matter what the language.
2004-08-02 19:11:15 +00:00
moodler 093a4a2437 Fixed link of user name in footer of course page 2004-08-02 19:09:54 +00:00
moodler 1f2eec7b65 Fixes to helpbuttons and popups 2004-08-02 19:09:06 +00:00
moodler f8f4992e14 Fixed some lowercased variables 2004-08-02 19:08:05 +00:00
moodler c7474379dd New strings 2004-08-02 19:05:50 +00:00
moodler fc28e2644c TRANSLATORS!
A number of changes have been made to the help files within
the resource directory.  Please check them!
2004-08-02 19:05:03 +00:00
moodler 9471c2fc06 New help files for resources 2004-08-02 19:01:50 +00:00
martignoni 8c5e02558b Typo corrected 2004-08-02 18:47:49 +00:00
stronk7 b99e90b08d Modified pending formats to be more structured. No visual changes. 2004-08-02 18:22:47 +00:00
moodler 59a3122e2a Added support for .mpg .mpeg and .avi files. 2004-08-02 14:39:05 +00:00
martignoni ab23c3546e Additions to support units for numerical questions,
as well as some terminology for the new features
dataset-dependent questions and calculated questions
2004-08-02 12:36:37 +00:00
moodler 9c674431b9 Some tidy ups in mail formatting 2004-08-02 09:49:20 +00:00
mits 5f8dac7db5 Polish, New translation, Add a new file. 2004-08-02 04:50:22 +00:00
moodler ca8e8a10ca Simpler method of working out when to send digests 2004-08-02 03:00:40 +00:00
kaipe 39fbd5c818 Added support for some PHP style mathematical functions in the correct answer formula for calculated questions
Documentation on the functions can be found at
http://uk.php.net/manual/en/ref.math.php
2004-08-01 22:22:20 +00:00
mits dcf633e5b0 Polished 2004-08-01 21:56:22 +00:00
koenr 2a43d65e35 initial translation by Koen Roggemans 2004-08-01 13:10:32 +00:00
koenr 9c3215690a modification for new features 2004-08-01 12:47:48 +00:00
martignoni 024a8ecfcc Added Translation 2004-08-01 12:39:02 +00:00
martignoni e8fe895215 Small changes 2004-08-01 12:24:19 +00:00
koenr 7e9832808b filling in missing strings... 2004-08-01 12:20:09 +00:00
koenr 1060839405 pollishing translation 2004-08-01 12:18:10 +00:00
martignoni 907a590fc4 Added ISO 3166 code for Palestine - PS 2004-08-01 12:11:25 +00:00
martignoni c11ce91015 Some new strings and some changed ones 2004-08-01 12:10:49 +00:00
mits e6dfb3a75c translated some. 2004-08-01 08:57:48 +00:00
moodler 3831de5237 First pass at a function to empty a course remove_course_userdata()
To be called from course/empty.php
2004-08-01 07:34:39 +00:00
moodler d43730d8ab Fixed some notices, thanks Eloy! 2004-08-01 06:37:12 +00:00
moodler 427c8ccb1a Files starting with a slash are treated as URLs too 2004-08-01 06:36:42 +00:00
moodler 7064e18f45 Fixed a notice in isstudent() 2004-08-01 06:21:59 +00:00
moodler 6fc6e433e4 Added Palestine 2004-08-01 05:06:49 +00:00
moodler 3eb5afd1e1 Added ISO 3166 code for Palestine - PS 2004-08-01 05:06:16 +00:00
stronk7 26983d03b8 Minor changes to make things into formats easier. 2004-08-01 00:17:07 +00:00
stronk7 2ff5bb1cc6 More glossary formats checked and slighty modified... 2004-08-01 00:16:17 +00:00
stronk7 bcf1fc0759 added standard footer 2004-07-31 18:00:44 +00:00
stronk7 64681af1f0 New documentation for translators ... based on Koen's work.
(spanish translation)
2004-07-31 17:55:10 +00:00
moodler 59e3797dcb Fixed heading 2004-07-31 16:04:18 +00:00
stronk7 d653f27820 Small typo 2004-07-31 16:03:57 +00:00
stronk7 ec9169502d Latest en changes added 2004-07-31 15:58:19 +00:00
moodler d2f49be868 New documentation for translators ... based on Koen's work. 2004-07-31 15:37:55 +00:00
moodler 7c04a3e362 Added Torsten 2004-07-31 14:21:26 +00:00
moodler 1e9e22e8e9 Added a new authentication module to connect to a First Class server!
Contributed by Tortsten Anderson <torsten.anderson at skeria.skelleftea.se>
2004-07-31 14:17:50 +00:00
moodler f29667f638 Hide "Unenrol" when we're not in a course 2004-07-31 13:02:06 +00:00
koenr 92fad4c654 pollishing translation 2004-07-31 07:05:23 +00:00
koenr b2919baf55 filling in missing strings... 2004-07-30 22:43:49 +00:00
stronk7 b619008d27 Simple bump. Now 1.3<--->1.4 resource backup & restore is finished...I hope :-) 2004-07-30 20:24:38 +00:00
stronk7 903536cf37 Adjusted the 'frame' option for some mimetypes when restoring 1.3 courses... 2004-07-30 20:23:04 +00:00
stronk7 52552be03d Now course->enrolperiod is supported in backup & restore. 2004-07-30 16:55:38 +00:00
moodler 96d2ed50ad Info about using socket server 2004-07-30 16:16:12 +00:00
moodler d90de21cfc Fixed a typo 2004-07-30 15:48:02 +00:00
stronk7 c031bddd2c Some resourcetypeXXXX has been shortenned to display
things properly in Site & Course pages.
I'll send this to Benito Arias (spanish translator) to inform him...
2004-07-30 15:39:38 +00:00
minkowski 02584ccf37 Thai Language for 1.4dev 2004-07-30 15:38:35 +00:00
moodler 101f83b5f4 New config for socket chat 2004-07-30 15:37:26 +00:00
moodler d434b9aeeb New stuff to support socket mode 2004-07-30 15:36:39 +00:00
moodler 4173d1133c Removing this file 2004-07-30 15:34:59 +00:00
moodler b19cad7fd9 New versions for socket-based chat 2004-07-30 15:33:52 +00:00
moodler 8e7eec609f This version sort of works. Still needs some polishing. 2004-07-30 15:32:36 +00:00
kaipe dee898f184 Additions to support units for numerical questions,
as well as some terminology for the new features
dataset-dependent questions and calculated questions
2004-07-30 14:54:45 +00:00
kaipe 2443a13e75 New generic tools that allow the creation of dataset-dependent questions
as well as the new question type Calculated that uses this generic support.
2004-07-30 14:50:58 +00:00
kaipe 7a82d19324 New feature
Unit support for numerical questions
2004-07-30 14:43:08 +00:00
kaipe 8c5a95facb Database update to support new question type Calculated
as well as units for Calculated and Numerical questions
2004-07-30 14:40:16 +00:00
paca70 c670cbd0a9 More updates, but wiki is still working only partical. 2004-07-30 11:09:47 +00:00
paca70 94a2861bbb Updates 2004-07-30 11:02:00 +00:00
paca70 08f3586975 Fixed uncorrect primary key for postgresql. 2004-07-30 10:42:59 +00:00
paca70 3689f18afe Some updated 2004-07-30 10:16:24 +00:00
moodler 8588f87283 Fixed URL detection 2004-07-30 09:47:41 +00:00
moodler e01c2d047d FIx up some resources that didn't upgrade properly before. :-/ 2004-07-30 07:03:39 +00:00
moodler c3926ee2f1 Added "encrypted code' 2004-07-30 06:41:22 +00:00
moodler 3e1fc10f9a FIxed pixpath usage 2004-07-30 06:34:11 +00:00
moodler cc879d749b Matching English better 2004-07-30 06:12:25 +00:00
moodler 09d6a7f7e9 SOme updates 2004-07-30 04:55:31 +00:00
moodler e7cdcd1892 Added support for Markdown - thanks to David Scotson! 2004-07-30 04:02:58 +00:00
moodler b035834fc5 resource->type is now a varchar 2004-07-30 03:55:27 +00:00
moodler 0b72fbdaa2 Shortened some long lines .. resourcetypefile is still too long ... 2004-07-30 03:27:37 +00:00
moodler e76c420958 Resource Names Autolinking 2004-07-30 02:24:46 +00:00
mits a06f3c5779 Polished. 2004-07-29 22:50:15 +00:00
gustav_delius 609ba03702 adding <th> to allowed tags, fixing bug 1635 2004-07-29 22:46:32 +00:00
gustav_delius 1ca17d43e7 edit link corrected 2004-07-29 22:16:53 +00:00
mits 780966e28e New translation. 2004-07-29 20:47:11 +00:00
moodler f28db22d06 Fixed duplicate in log_display, and improved installation
for non-English users
2004-07-29 18:44:57 +00:00
moodler 2eb68e6f6b Various cleanups of the installation process 2004-07-29 18:01:32 +00:00
stronk7 a6b87f82e9 Display a notice about going to restore a newer backup file.
Bug 1675
(http://moodle.org/bugs/bug.php?op=show&bugid=1675)
Merged from MOODLE_13_STABLE
2004-07-29 16:35:05 +00:00
moodler a404544123 Some new strings and some changed ones 2004-07-29 15:02:49 +00:00
moodler 889308742a Latest tags file 2004-07-29 15:01:28 +00:00
moodler b40bc478d9 Fixed a few notices and extended some functions a little 2004-07-29 14:54:25 +00:00
moodler 7e192c788d Fixed a notice 2004-07-29 14:53:48 +00:00
moodler 76b60bb897 Various fixes, especially related to using timestart and timeend
for new enrolments
2004-07-29 14:52:59 +00:00
moodler 9ddc0efd8e Use enroperiod for new students if it's set 2004-07-29 14:52:07 +00:00
moodler 18763fd41f Added a new course field called enrolperiod that allows a teacher to specify
an enrolment period for new students.
2004-07-29 14:47:05 +00:00
moodler 16293c38e0 *** empty log message *** 2004-07-29 13:12:35 +00:00
moodler 2828ff513e Fixed some notices 2004-07-29 13:12:16 +00:00
moodler 1246ea56bc Set a default value for $CFG->forum_replytouser 2004-07-29 13:10:21 +00:00
moodler ab0cc6d4b4 New strings 2004-07-29 06:16:40 +00:00
moodler 11c6232781 Some cleanups with formatting and so on. 2004-07-29 06:15:54 +00:00
moodler d0a1d0483e Fixed a notice 2004-07-29 03:43:48 +00:00
mits 7fabb0b4d6 Polished. 2004-07-29 01:52:59 +00:00
mits 31c522e71e Polished. 2004-07-29 01:21:42 +00:00
mits 7b912f66ae Polished. 2004-07-28 22:24:05 +00:00
mits 5b9f2306d7 Polished. 2004-07-28 20:51:39 +00:00
mchurch 69c76405d2 Added group support to log viewing functions. 2004-07-28 15:52:51 +00:00
moodler 82b1b994c8 Fixed a notice 2004-07-28 12:01:42 +00:00
moodler 025c6cc0b1 Fixed path problem on home page 2004-07-28 11:58:48 +00:00
moodler 4bdd6ce13b Fixed a notice on site page 2004-07-28 11:57:12 +00:00
moodler dbcd54b784 CLeaned up the code for the little buttons Thanks David Scotson! 2004-07-28 11:52:39 +00:00
paca70 d58157e051 Some updates 2004-07-28 10:52:30 +00:00
paca70 edf693decf Wery quickly tested and untested versions for Postgresql. 2004-07-28 08:51:05 +00:00
martignoni 3a1ec1145c Some new strings to predefined formats in glossary module. 2004-07-28 08:09:38 +00:00
moodler 1aef6fb798 Fixed lots of bodgy little things 2004-07-28 06:56:59 +00:00
moodler 63308949f7 Fixed a notice 2004-07-28 06:55:51 +00:00
moodler 39fc10d79f FIxed some notices 2004-07-28 06:27:10 +00:00
moodler b673e40b87 Fixed some notices ... thanks, Eloy! For some reason my server
isn't displaying these even though it's set up ...
2004-07-28 05:52:18 +00:00
moodler 433ba81ad6 Grr, fixed ID tag syntax 2004-07-28 05:30:55 +00:00
moodler bea52d2c4f Added some ID tags to these files 2004-07-28 05:29:52 +00:00
mits 244f1f6c80 Polished. 2004-07-28 03:47:42 +00:00
stronk7 d735b7ba9c Now new resources are included in backup & restore.
1.4--->1.4 and 1.3--->1.4 conversions are working fine.
Tomorrow I'll try the backwards conversion (1.4--->1.3).
Bug 1674
(http://moodle.org/bugs/bug.php?op=show&bugid=1674)
2004-07-27 23:05:05 +00:00
mits dedec55c5f Polish and New translation. 2004-07-27 22:39:40 +00:00
martignoni 8becabe440 Added string overdue for quiztimer 2004-07-27 17:32:49 +00:00
stronk7 a7aea7c3ac Some new strings to predefined formats in glossary module.
Bug 936
(http://moodle.org/bugs/bug.php?op=show&bugid=936)
2004-07-27 17:22:07 +00:00
stronk7 27e2dea647 Bump to support plugin formats in glossaries.
Bug 936
(http://moodle.org/bugs/bug.php?op=show&bugid=936)
2004-07-27 17:21:23 +00:00
stronk7 a359c29b79 Bulk changes to support plugin-formats in glossaries.
See the TODO.txt to get details about pending tasks.
The db upgrade should work fine (not tested under postgresql).
The plugin architecture is finished too.
See Bug 936.
(http://moodle.org/bugs/bug.php?op=show&bugid=936)
2004-07-27 17:19:47 +00:00
stronk7 eaa9a06849 Removed old glossary formats.
Part of the new formats plugin structure.
See Bug 936
(http://moodle.org/bugs/bug.php?op=show&bugid=936)
2004-07-27 17:13:37 +00:00
gniske 63adb00c22 Added missing strings 2004-07-27 16:17:53 +00:00
moodler 9350263a96 Merged fix from stable 2004-07-27 13:19:12 +00:00
moodler 26997a1f82 Shortanswers are not more robust when * wildcards being used 2004-07-27 13:16:50 +00:00
gustav_delius fe4bc8337d removed non-standard line-endings, see http://moodle.org/mod/forum/discuss.php?d=10369. 2004-07-27 07:42:14 +00:00
julmis 2d767e5dba Added string overdue for quiztimer 2004-07-27 02:09:48 +00:00
julmis 3a088d689c Quiztimer stuff added
- Skip regrading if attempt is overdued
2004-07-27 02:03:19 +00:00
moodler 2e2a63510a Fixed menus for sites with subdirectories bug 1670 2004-07-27 01:43:43 +00:00
mits f3246138bd New translated file added. 2004-07-26 22:52:14 +00:00
julmis d82ead4621 Switch if/else to switch structure
- reducing lines
2004-07-26 18:04:15 +00:00
moodler 720754da9e Fix menu on site page section for new resources 2004-07-26 16:22:45 +00:00
moodler 85e8239eac Fix popups and icons for resources 2004-07-26 16:21:56 +00:00
moodler cb57e6f439 Fixed menus to add resources on main page and social format 2004-07-26 16:05:09 +00:00
moodler 357c0f9f57 FIxes bug 1669 and some defunct resource types 2004-07-26 11:35:05 +00:00
barias da67ed1bc5 ?ltimos cambios incorporados 2004-07-26 08:41:19 +00:00
flipman e97ad228d3 Almost everything. 2004-07-26 07:18:48 +00:00
martignoni 1d0baef33c Encoding corrected for 2 chars 2004-07-26 05:50:29 +00:00
moodler 59f0e22905 Fixed bug 1667 .... require -> require_once 2004-07-26 05:19:17 +00:00
mits de1f7842c5 Polished. 2004-07-26 01:57:57 +00:00
julmis d49616201d Time limit stuff added
- Show overdue time
- Reset grandes when overdue.
2004-07-25 22:17:24 +00:00
mits d74c45698d Polished, new files added. 2004-07-25 21:41:39 +00:00
martignoni 3fad0ce104 Some strings for the new resource stuff 2004-07-25 19:50:00 +00:00
martignoni f5041ac8e3 Fixed some variables for login error logging 2004-07-25 19:38:20 +00:00
martignoni f6d2a3fe2d Some new strings for the chat daemon 2004-07-25 19:17:17 +00:00
martignoni c4d162743a Better translation for 'aliases': 'Termes associ?s' 2004-07-25 18:01:40 +00:00
moodler e9b7bd094d Some new strings for the chat daemon 2004-07-25 15:09:31 +00:00
moodler 2cf6e647c0 Bump 2004-07-25 14:41:33 +00:00
moodler 27106bac92 FIxed some variables for login error logging 2004-07-25 14:39:19 +00:00
moodler d18830fe31 Merged in the new resource structure to TRUNK 2004-07-25 14:32:05 +00:00
moodler 71efdcd835 Merged in changed from defunct resource branch 2004-07-25 14:26:36 +00:00
moodler 960ab433ef Some stubs for later 2004-07-25 14:22:01 +00:00
moodler d846e50acc MERGED in some changes from the defunct resource branch 2004-07-25 14:14:56 +00:00
moodler 2fa3074976 Getting this into so I can sort it out 2004-07-25 14:09:06 +00:00
moodler 553201b541 On login set a variable (used later in print_header) 2004-07-25 14:01:23 +00:00
moodler e0161bff4f Merging in all the resource branch stuff (I know, it's mixed up)
so I can sort out the CVS explosion I had tonight
2004-07-25 14:00:29 +00:00
moodler b5e4a76e20 Some missing files from the last upgrade 2004-07-25 13:50:44 +00:00
moodler 9d3c795c3e Functions for login failures plus some other stuff ... 2004-07-25 13:48:55 +00:00
moodler b4bac9b6b6 New functions for login failure display 2004-07-25 13:47:38 +00:00
moodler a7e0783741 Numsections on site should be zero for people upgrading from 1.3.x -> 1.4 2004-07-25 05:37:03 +00:00
martignoni cd35e7c424 Some tweaks to make it clearer for users to enable/disable email 2004-07-24 21:36:35 +00:00
moodler 39eece7bd1 Send new password mail even if email was disabled 2004-07-24 08:55:29 +00:00
moodler 73ed3dd793 MOre tweaks to make it clearer for users to enable/disable email 2004-07-24 08:53:33 +00:00
moodler dee51de29f Slight improvment to icons for enable/disale email address 2004-07-24 06:37:44 +00:00
moodler fa92b42f60 Use new icons for enable/disable email address on user profile page 2004-07-24 06:25:14 +00:00
moodler 56de1b17c6 New images to enable/disable email 2004-07-24 06:23:20 +00:00
stronk7 ff15865f44 Changed glossary_alias->alias from text to varchar(255).
Not mandatory but...
See Bug 1398
(http://moodle.org/bugs/bug.php?op=show&bugid=1398)
2004-07-23 17:37:21 +00:00
stronk7 27757bee57 User->maildigest supported now. 2004-07-23 17:10:55 +00:00
koenr c7e49bbc46 pollishing by l.vandijck 2004-07-23 11:44:10 +00:00
moodler a0330747f9 Add body color to email .... ?
Reversed PJ's changes .. should to be working OK without them
2004-07-22 14:08:33 +00:00
moodler 431b618c81 file quickreport.php was initially added on branch HEAD. 2004-07-22 11:30:24 +00:00
carlesbellver 74f1999c8f *** empty log message *** 2004-07-22 09:16:54 +00:00
moodler 11c34eeb81 FIxed typo in POstgreSQL install 2004-07-22 01:13:58 +00:00
moodler f825338aef Fixed up a slight typo in this template 2004-07-21 13:28:58 +00:00
moodler 8ba9a36f88 Just to delineate the refactored version 2004-07-21 13:15:15 +00:00
moodler 41ee645c29 Removing some old files 2004-07-21 13:02:53 +00:00
moodler 8966a11131 Quiz refactoring is now merged into the main development code!
I've done some basic testing using existing quizzes trying as
much as I could think of, and it all worked well!

Well done, Henrik!  Great job!

Still, this should be regarded as unstable at least until more
people have had a try.  Please test this thing solidly on new
and old quizzes.
2004-07-21 13:01:08 +00:00
moodler 03fe48e753 Fixes for encoding, Moodle should now be able to OVERRIDE the default charset
that is set by Apache

Fixes for no-caching case, just a little more robust.

Based on patch sent by Ilia Chipitsine - thanks!
2004-07-21 12:16:36 +00:00
defacer 2913fac636 An improvement(?) in forum digest language handling. 2004-07-21 12:01:38 +00:00
moodler 116f68f117 FIxes from Ahtonks 2004-07-21 10:03:47 +00:00
moodler 6e6a64b319 Untested small hack to maybe fix the digest language 2004-07-21 09:42:27 +00:00
moodler f2b9b6ea62 Topic labels in the navmenu are now based on section summary 2004-07-21 06:06:10 +00:00
moodler 3326450b16 Fixed bug 1656 ... labels in menus are non-selectable now 2004-07-21 05:41:58 +00:00
barias f1d2b1ab67 Actualizaci?n de moodle.php 2004-07-20 20:55:49 +00:00
martignoni bbdd52fb2b Added string 'entries' to moodle.php
To be used in different places.
2004-07-20 15:44:21 +00:00
defacer e1c6dde150 This should make individual forum posts in digests be sorted in ascending postid
(and thus, chronological) order. Strange thing is, it looks like being sorted as it is!
2004-07-20 12:39:19 +00:00
gustav_delius 12ad5d08c2 set maxlength for shortname field 2004-07-20 11:07:52 +00:00
stronk7 1b76b56cbc Added support to timelimit, password and subnet in backup & restore. 2004-07-19 20:04:33 +00:00
stronk7 93dc66a6b3 Added one string to moodle.php
To be used in different places.
Bug 1646
(http://moodle.org/bugs/bug.php?op=show&bugid=1646)

Merged from MOODLE_13_STABLE
2004-07-19 18:18:21 +00:00
bobopinna c93971208a Update to moodle 1.4 develop 2004-07-19 15:25:49 +00:00
bobopinna 484f0cad98 Added new grades string and some validation error messages 2004-07-19 15:01:23 +00:00
bobopinna 1baabf2f25 The new domxml validation library (need php domxml ext to work) 2004-07-19 14:56:25 +00:00
bobopinna 1a12b1f1d1 Some bug fixes, added new score view (thanks Matt) and added a new validation procedure 2004-07-19 14:53:43 +00:00
villate 485913f784 First translation into Portuguese 2004-07-19 14:09:26 +00:00
villate fc4bfd47ce Corrected a few double backslashes 2004-07-19 14:07:52 +00:00
moodler c106366ad3 file text.html was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:46 +00:00
moodler 4a317a1fac file resource.class.php was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:46 +00:00
moodler d8fd792c53 file file.html was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:45 +00:00
moodler c1d9e1f000 file reference.html was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:45 +00:00
moodler 65b03e9244 file directory.html was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:45 +00:00
moodler 13d47a686b file html.html was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:45 +00:00
moodler 6190e7422d file common_end.html was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:45 +00:00
moodler 2938600887 file common.html was initially added on branch MOODLE_14_RESOURCE. 2004-07-19 07:38:45 +00:00
mudrd8mz e9ba6c83b1 Initial version of wiki.php
TODO: Still some missing words - I have to look for them in the context
2004-07-18 23:23:00 +00:00
barias 293904b8aa Actualizaci?n de moodle.php 2004-07-18 00:42:50 +00:00
mits b33a883c7e Translated few strings. 2004-07-17 18:53:09 +00:00
koenr ec7b71fb8c upgrading to next release 2004-07-17 06:27:10 +00:00
moodler 32c60ce365 Whoops, forgot to check this in last night. 2004-07-17 04:31:34 +00:00
kaipe 07b3c9f2b3 file randomsamatch.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:34 +00:00
kaipe 88bf015d6f file editquestion.php was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:34 +00:00
kaipe 075fa91dbe file truefalse.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:34 +00:00
kaipe 54b47619fa file shortanswer.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:34 +00:00
kaipe 63c86231b9 file random.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:34 +00:00
kaipe 19f63aadae file numerical.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:33 +00:00
kaipe 8980bf63a2 file multichoice.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:33 +00:00
kaipe 45bab286ba file multianswer.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:33 +00:00
kaipe 234c8f0637 file match.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:33 +00:00
kaipe f36e96a1b7 file description.html was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-16 23:10:33 +00:00
barias 55a7a48409 Latest updates 2004-07-16 19:56:16 +00:00
martignoni 9792e970e5 Links to group help added 2004-07-16 19:17:44 +00:00
martignoni 61deeb07a8 Added 'globalglossary' 2004-07-16 19:14:14 +00:00
martignoni e11c93d5db Update to 1.3.3 2004-07-16 19:12:27 +00:00
stronk7 7b6de35f02 Updated to 1.3.3
Merged from MOODLE_13_STABLE
2004-07-16 17:11:53 +00:00
moodler 76e34cff8e Group mode added ... merged from stable 2004-07-16 17:08:39 +00:00
moodler 31122d2fee Merged stable release notes into dev 2004-07-16 16:53:55 +00:00
stronk7 2456532ec4 Added one string
Merged from MOODLE_13_STABLE
2004-07-16 16:52:55 +00:00
moodler 2df68e46c8 Use NCR for the language name 2004-07-16 16:47:55 +00:00
moodler d529a74c51 Fixed dev version of typo 2004-07-16 16:07:49 +00:00
moodler ee3058faac Merged from stable 2004-07-16 16:03:39 +00:00
moodler 7ae753f747 file mods.html was initially added on branch MOODLE_13_STABLE. 2004-07-16 16:02:42 +00:00
moodler d824409f70 Fixed a missing string for global glossary 2004-07-16 13:08:12 +00:00
moodler 4b39fc04d6 Fixed typo for globalglossary 2004-07-16 13:06:16 +00:00
carlesbellver 3a0ab515b7 *** empty log message *** 2004-07-16 11:31:59 +00:00
martignoni a7d1741265 Small correction 2004-07-16 11:24:15 +00:00
martignoni 5712c98010 Allow view in index of all help pages 2004-07-16 11:20:52 +00:00
martignoni a37a4723f8 Small change 2004-07-16 11:19:37 +00:00
martignoni 53aa387657 Update 2004-07-16 11:02:16 +00:00
martignoni 9ff5541099 Typo corrected 2004-07-16 09:44:22 +00:00
flipman c0d8203382 Files are not checked in Moodle. They have been only translated. 2004-07-16 09:03:18 +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
aredkin 0308deea55 Added a little 2004-07-15 17:53:58 +00:00
mudrd8mz 1103c0b6a8 Changed string['updatethis'] 2004-07-15 14:52:55 +00:00
mudrd8mz 3d9b515254 Czech version of fonts README.txt 2004-07-15 12:27:30 +00:00
mudrd8mz bcd578975e Arial Narrow CE 2004-07-15 12:21:39 +00:00
mudrd8mz 941f73a5da Updated for R1.3.2 2004-07-15 12:18:09 +00:00
moodler 3da92686e8 Added patch for bug 1514 to add prefix onto constraints 2004-07-15 05:57:55 +00:00
mits eeefcab0fb README changed 2004-07-15 05:23:38 +00:00
mits 1adeb8ef00 Polished. 2004-07-15 05:19:41 +00:00
mits 4d32ca4f9a New translation files added. 2004-07-15 04:59:05 +00:00
mits f9198d4762 README changed 2004-07-15 02:30:35 +00:00
martignoni f2931a6127 Correct encoding 2004-07-14 14:13:17 +00:00
martignoni e74b2bdfcb To avoid confusions, use "?v?nement" only in the context of calendars, and NOT for the logs entries 2004-07-14 14:07:47 +00:00
martignoni a498e28e0e Little change for consistency 2004-07-14 12:53:17 +00:00
moodler 63f3cbbd7d Merged $bodytags parameter in headers from STABLE 2004-07-14 06:54:43 +00:00
moodler dca5ac23eb Added styles for site topic on front page 2004-07-14 06:51:13 +00:00
bobopinna 42e824e53c Added a prefix to an alter table command 2004-07-14 06:50:24 +00:00
moodler 46027eecf2 Added Transparency 2004-07-14 03:45:45 +00:00
mits e86e966070 Polish and New translation. 2004-07-13 22:21:08 +00:00
stronk7 6ac3e5877e Fixed ADOdb 2004-07-13 17:17:24 +00:00
aredkin b969b7823f Fully translated for 1.4 dev 2004-07-13 15:15:34 +00:00
moodler 0d1db48ee0 FIxes some course language problems 2004-07-13 14:11:17 +00:00
moodler e1e88c7177 Merged bug 1638 from stable 2004-07-13 13:55:14 +00:00
martignoni 290891c29a Forgotten change 2004-07-13 13:12:06 +00:00
martignoni f14754280b Better translation for "upload": "d?poser" 2004-07-13 12:27:51 +00:00
martignoni 4f98ab6fbd Typo corrected 2004-07-13 12:13:14 +00:00
martignoni e4ee5ea7cd Some improvements 2004-07-13 12:11:23 +00:00
martignoni 762887a593 Replace everywhere "professeur" by "enseignant" 2004-07-13 10:06:36 +00:00
martignoni 806401186f Some changes for guest access 2004-07-13 09:49:15 +00:00
martignoni c359f8afcf Small typo 2004-07-13 09:35:04 +00:00
martignoni 51c0040c87 Small typo (encoding problem) 2004-07-13 08:51:01 +00:00
mits 0516b158c9 New translation. 2004-07-13 06:10:05 +00:00
mits 1c53330f89 Polished, new files added. 2004-07-13 05:31:35 +00:00
moodler 32a4f1f160 Merged XSS bug fix from stable 2004-07-13 03:51:05 +00:00
moodler 2f694dcf18 Fixed ADOdb 2004-07-13 03:15:33 +00:00
moodler 038230082e Latest version of ADOdb. Now compatible with PHP5 2004-07-13 03:13:35 +00:00
mits 77653a9be9 Polished. 2004-07-12 20:40:02 +00:00
koenr 582a8dbef8 upgrading to next release 2004-07-12 19:16:59 +00:00
stronk7 1f63b7c6aa Now, for glossaries using the 'Entry List' format, their
entry->description is viewable with the standard popup window.

Bug 1636
(http://moodle.org/bugs/bug.php?op=show&bugid=1636)

Merged from MOODLE_13_STABLE
2004-07-12 17:11:13 +00:00
stronk7 6e66130338 In 'categories view' (all and only one), now attachements, edit, comment
and delete are working properly. Thanks to frank@nomios.de!!
See bug 1632
(http://moodle.org/bugs/bug.php?op=show&bugid=1632)

Merged from MOODLE_13_STABLE
2004-07-12 16:35:50 +00:00
aredkin d4b57978f4 New updates for 1.4 not full 2004-07-12 12:28:49 +00:00
martignoni 0ee9dd4ab0 Big changes ! 2004-07-12 11:06:55 +00:00
martignoni 7935c2473c New dictionary reference 2004-07-12 10:53:47 +00:00
bobopinna 434983ca45 Fixed some problems in Moodle 1.3.2 2004-07-12 08:14:06 +00:00
mits 5bf3695842 New translation. 2004-07-12 06:17:22 +00:00
mits 5da18fbcd3 Polished, new files added. 2004-07-12 05:13:03 +00:00
mits ec592d0b50 README corrected 2004-07-12 03:22:11 +00:00
stronk7 eb4852fd16 Small typo. 2004-07-11 23:08:19 +00:00
stronk7 f87a3e2069 Updated to 1.3.2 2004-07-11 23:05:11 +00:00
mits ede766e61b Polished 2004-07-11 21:10:44 +00:00
martignoni b50de39f2d Changed everywhere "journaux d'activit?" by much better "historiques" 2004-07-11 18:49:32 +00:00
martignoni d951fb2083 Changed everywhere in glossaries "entr?e" -> "article" 2004-07-11 18:28:49 +00:00
aredkin 9279b338b0 OK 2004-07-11 18:27:09 +00:00
martignoni 6487c00f3b Some fine tuning 2004-07-11 18:00:26 +00:00
martignoni 8d1aaeae1b Small update 2004-07-11 16:34:52 +00:00
martignoni 15868a4e01 Small change 2004-07-11 16:32:24 +00:00
martignoni d8db04e6bd Small modification 2004-07-11 16:31:00 +00:00
aredkin e4c8beb445 OK 2004-07-11 15:00:52 +00:00
aredkin 97332267f4 OK 2004-07-11 11:18:22 +00:00
martignoni 1ed6d274fc Update to README and TERMS 2004-07-11 09:48:19 +00:00
barias b754c931fb Latest updates 2004-07-11 09:38:35 +00:00
minkowski fb17c11024 Thai Language update for Moodle 1.3.2 2004-07-11 06:07:13 +00:00
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
martignoni 8f41f58e63 Latest release notes for 1.3.2 2004-07-10 14:22:52 +00:00
moodler b2b176cf95 Print Costs better on the course info 2004-07-10 12:10:22 +00:00
mits 0297acfce4 New translation. 2004-07-10 03:35:08 +00:00
defacer ef618501bb Fix for bug 1624:
Events that span more than one month now have their duration shown correctly in
each day of all subsequent months. For some reason I didn't quite figure out,
this happened till now only on events that spanned at least THREE months. Whatever...

Also, removed a small unused part of a global statement in view.php.
2004-07-09 13:39:34 +00:00
moodler d1e7c848f4 Information about 1.3.2 2004-07-09 08:27:56 +00:00
anvergara fb638a8049 Some finger errors revised 2004-07-09 08:09:43 +00:00
carlesbellver e29eea402c *** empty log message *** 2004-07-09 07:34:47 +00:00
carlesbellver 826b00c426 *** empty log message *** 2004-07-09 07:04:16 +00:00
moodler 45a6b40db2 FIxed up the Site Topic 2004-07-09 05:33:07 +00:00
mits 7d8962ae24 Polished, new files added. 2004-07-09 05:16:40 +00:00
stronk7 50ff9a5576 Uhm, changed <CR> to <LF> in today's edited filed... 2004-07-08 21:10:56 +00:00
stronk7 be5ebe6663 Completed the release page up to 1.3.1 2004-07-08 21:05:02 +00:00
koenr 4aeb152f24 pollishing translation 2004-07-08 20:32:44 +00:00
koenr a5e525067a initial translation by Koen Roggemans 2004-07-08 20:28:38 +00:00
koenr a70595bd4a filling in missing strings... 2004-07-08 20:05:53 +00:00
koenr a1264e2694 removing English help files from non-English language packs 2004-07-08 19:55:49 +00:00
koenr bc485fd253 Added information for Dutch locale on FreeBSD server (see http://moodle.org/mod/forum/discuss.php?d=9739) Thanks you Joost van Beurden! 2004-07-08 19:00:51 +00:00
koenr 21742c4aed typo 2004-07-08 18:59:35 +00:00
koenr b923d3b864 repairing date bug (see http://moodle.org/mod/forum/discuss.php?d=9739) Thanks you Joost van Beurden! 2004-07-08 18:42:24 +00:00
martignoni b821527271 Missing string for password stuff 2004-07-08 18:29:46 +00:00
mits e50b172d26 New translation. 2004-07-08 17:24:23 +00:00
mits c399e90ff2 Polished. 2004-07-08 16:37:18 +00:00
stronk7 1bd5607467 More documentation files updated to their current en version. 2004-07-08 16:20:08 +00:00
mits afc341e8e4 New translation. 2004-07-08 16:08:51 +00:00
stronk7 837130477c Syncronished to current en version. 2004-07-08 15:17:38 +00:00
martignoni 806bd4b91d New string 'siteinfo' 2004-07-08 15:12:48 +00:00
moodler 13152de482 Fixed a wrinkly prune (cou;dn;t update posts containing quotes) 2004-07-08 14:39:15 +00:00
martignoni a2a18ec3fe New file translated 2004-07-08 14:03:21 +00:00
mits 391ee49632 New translators! 2004-07-08 12:42:11 +00:00
martignoni 7a21945e74 Missing strings added 2004-07-08 09:46:13 +00:00
martignoni a8bfd8afe9 Add info for correcting conflicts 2004-07-08 09:08:49 +00:00
moodler 60d37a2d0f FIxed small bug in password checking 2004-07-08 08:28:50 +00:00
moodler cbf8fb4597 Tidied up attemptpage with password 2004-07-08 08:08:38 +00:00
moodler 3230a30655 Missing string for password stuff 2004-07-08 08:00:03 +00:00
moodler c288e6d6ee Update requirement for address_in_subnet function in moodlelib.php 2004-07-08 07:53:50 +00:00
moodler 0a862fadc0 Bump for address_in_subnet 2004-07-08 07:52:55 +00:00
moodler 47efbb0490 New fucntion to check address is in some subnets
address_in_subnet
2004-07-08 07:52:01 +00:00
moodler 8c467676c2 Two new features for quizzes! (Thanks Shane)
1)  Quizzes can be restricted by subnet

 2)  Quizzes can require a password to be entered before attempts
2004-07-08 07:50:49 +00:00
moodler c08d18981c Minor updates 2004-07-08 07:42:49 +00:00
moodler 87924011a2 Site information 2004-07-08 07:37:19 +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
mits 9dfe93cdfa New translation files added. 2004-07-08 05:52:48 +00:00
moodler 854f7dcec5 Merged require_logins from stable 2004-07-08 01:19:32 +00:00
anvergara a601085568 Added to the help 2004-07-07 22:45:24 +00:00
anvergara 1fdba5f8b5 Upgraded versions of these files and add timerestrict.html to help/choice folder 2004-07-07 22:35:16 +00:00
mits 8627020324 Polished. 2004-07-07 22:08:39 +00:00
mits 1e1137c885 Polished. 2004-07-07 22:03:00 +00:00
martignoni abe01e9882 Added note that cloze questions are not supported. 2004-07-07 21:01:05 +00:00
stronk7 db6b033d3e Force to destroy the php session. Without this, some buggy PHP versions
can have problems under certain situations. :-)
2004-07-07 19:35:28 +00:00
moodler 04fcbbe382 Bump 2004-07-07 18:17:28 +00:00
moodler db585f62e5 Merged editor string fixes 2004-07-07 17:46:59 +00:00
moodler 5b07d99038 Merged in fix for wrapping of multibyte languages 2004-07-07 17:45:42 +00:00
moodler 2862b309eb Merging changes from Moodle 13 Stable 2004-07-07 17:42:53 +00:00
moodler ddc1d46fa1 Merging Stable fixes 2004-07-07 17:33:54 +00:00
moodler d684272958 FIxes for Safari 2004-07-07 17:20:59 +00:00
mits 3204a9e196 Polished. 2004-07-07 15:40:37 +00:00
martignoni 1bece4e4d6 Quiz new options 2004-07-07 15:30:57 +00:00
martignoni ccf0ef7d6c New options added 2004-07-07 15:15:11 +00:00
mits 4a6133fdfa Polished. 2004-07-07 13:24:58 +00:00
moodler 74da954c11 Some new strings for passwords and IP subnets 2004-07-07 12:43:01 +00:00
moodler 0d79946368 New help files 2004-07-07 12:42:24 +00:00
carlesbellver 6a345f53b9 *** empty log message *** 2004-07-07 12:20:10 +00:00
mits ae38304ef5 Polished. 2004-07-07 11:35:40 +00:00
thepurpleblob cbc83a240e Added 'right answer' feedback to true/false questions. 2004-07-07 09:15:33 +00:00
moodler 88c898f590 Added new fields for quiz password and subnet restrictions 2004-07-07 07:47:33 +00:00
moodler 48c836f3b6 New, comprehensive version of Malaysian from
"Mohamad Ghazaly Abdul Rahman" <ghazaly@mmsc.com.my>
2004-07-07 03:25:15 +00:00
koenr e358a2c60d removing English help files from non-English language packs 2004-07-06 21:32:21 +00:00
koenr edf9d85ab4 removing English help files from non-English language packs 2004-07-06 20:30:31 +00:00
koenr 7cf2a0d4ce converted Word to plain HTML 2004-07-06 20:19:42 +00:00
koenr 05111bd3a4 removing English help files from non-English language packs 2004-07-06 19:27:50 +00:00
moodler 77ecf329dc Extra field for cost 2004-07-06 16:01:07 +00:00
moodler 597342b047 Fixes not checked in yet 2004-07-06 16:00:43 +00:00
martignoni 3428de528d Some typos corrected 2004-07-06 15:40:46 +00:00
thepurpleblob a9c3253689 Added stub for exporting Cloze questions - generates 'not supported' message. 2004-07-06 14:29:25 +00:00
thepurpleblob 03d0e48201 Added missing handler for exporting Cloze type questions 2004-07-06 14:28:17 +00:00
thepurpleblob b8e151340c Changed where export file is created to course file area, not category->course file area 2004-07-06 14:27:38 +00:00
mits 6dcd78b528 Translation miskate fixed. 2004-07-06 13:28:36 +00:00
c_schmitz 4124aad14f * Small correction 2004-07-06 12:52:20 +00:00
bobopinna fc274a5f40 *** empty log message *** 2004-07-06 12:45:56 +00:00
c_schmitz d065dc2e51 * Small corrections 2004-07-06 12:39:28 +00:00
moodler 16c4d82a50 When looking for me() try $_SERVER['URL'] (IIS uses it) 2004-07-06 12:34:33 +00:00
moodler fbfd530bf2 Latest Galego from
Sonia ?lvarez L?pez
University of Vigo
?rea de Posgrao Virtual (http://apv.uvigo.es)
2004-07-06 12:27:39 +00:00
koenr e50fe5776b cloze not supported 2004-07-06 10:44:10 +00:00
thepurpleblob 65b9e68320 Fixed some grammatical errors.
Added note that cloze questions are not supported.
2004-07-06 10:35:50 +00:00
koenr d0e5068b54 removing English help files from non-English language packs 2004-07-06 09:08:54 +00:00
villate e87b8fd4b4 Includes pointer to the moodle-pt course page and updates list of contributors 2004-07-06 08:45:00 +00:00
villate a57e80035d Fixes a typo. 2004-07-06 08:34:19 +00:00
villate 7a4f474786 Translation of version 1.4 devel. 2004-06-26 completed 2004-07-06 08:23:06 +00:00
barias f2f9fa6d5c Latest updates 2004-07-06 08:10:41 +00:00
koenr a07b56a56c fixing some image links in the language packs (forgot one to test and submit) 2004-07-06 07:49:48 +00:00
adamtpaw 95f871eb01 Small corrections 2004-07-05 21:30:55 +00:00
martignoni 2227082fd4 New file translated 2004-07-05 15:06:18 +00:00
martignoni 0337e4e646 New files translated 2004-07-05 14:32:32 +00:00
barias 0085ddb340 Latest updates 2004-07-05 14:01:42 +00:00
martignoni 55bd7df89d New file translated 2004-07-05 13:48:59 +00:00
barias d16cbc3147 Latest updates 2004-07-05 12:46:18 +00:00
barias 91f4a8a6d5 Latest updates 2004-07-05 08:27:47 +00:00
martignoni a313853cce Small typo corrected 2004-07-05 05:22:24 +00:00
stronk7 31cf1ffae1 Actualizado a la version en actual. 2004-07-04 23:41:49 +00:00
stronk7 0a520df5b0 Actualizado a la versi?n en actual. 2004-07-04 23:27:45 +00:00
adamtpaw 1862210c70 update to 1.4 dev 2004-07-04 20:22:59 +00:00
barias 1e21e8ac35 Latest updates 2004-07-04 17:01:22 +00:00
mits ea3671bfb4 new translated files added. 2004-07-04 07:03:43 +00:00
koenr 3fe19a83ad fixing some image links in the language packs 2004-07-03 20:14:25 +00:00
martignoni bb2d3f97af Some small modifications for clariry 2004-07-03 19:34:32 +00:00
koenr aaa03b64c0 fixing some image links in the language packs 2004-07-03 19:10:52 +00:00
martignoni c0248d29a3 Small correction 2004-07-03 18:29:20 +00:00
martignoni a82b352f0b New file translated 2004-07-03 18:26:18 +00:00
koenr ed13b3ba9b fixing some image links in the language packs 2004-07-03 18:05:58 +00:00
martignoni 59004196d7 Typos corrected 2004-07-03 12:38:27 +00:00
moodler 08cfe9806c Merged from stable branch 2004-07-03 10:28:47 +00:00
kaipe 85a93d9a33 file icon.gif was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-03 10:11:33 +00:00
kaipe 0ce447d533 file questiontype.php was initially added on branch MOODLE_13_QUIZREFACTOR. 2004-07-03 10:11:33 +00:00
martignoni 82b993d25c Typo corrected 2004-07-03 08:33:29 +00:00
martignoni 667e52297e New help file for Choice timerestriction feature 2004-07-03 08:30:59 +00:00
koenr f59e5e3249 filling in missing strings... 2004-07-02 21:51:54 +00:00
barias ea2f17571e Latest updates 2004-07-02 19:21:05 +00:00
barias 24027ca307 Latest updates 2004-07-02 17:16:57 +00:00
martignoni 8c475ac417 New strings for new arrangement of choice module. 2004-07-02 15:18:35 +00:00
martignoni 66bba2d9f5 site front page can now have a topic section 2004-07-02 15:12:38 +00:00
villate 78893797b4 First translation 2004-07-02 15:11:19 +00:00
villate 0de386fffc Updates for version 1.4devel-20040626 2004-07-02 15:08:23 +00:00
gustav_delius 5fc2f2fdcb site front page can now have a topic section, see http://moodle.org/mod/forum/discuss.php?d=9444#45748 2004-07-02 09:32:17 +00:00
koenr 217a6e1f29 removing unnecessary files 2004-07-02 08:41:05 +00:00
koenr 6aa30986f2 already found a typo 8-. 2004-07-02 08:35:24 +00:00
koenr ec1b456d4f initial translation by Koen Roggemans 2004-07-02 08:28:19 +00:00
defacer d2b12fefd5 Fix for bug 1608:
When editing the language, you can easily switch between the two views with a button.

Also fixes in the HTML generation.
2004-07-02 08:18:47 +00:00
martignoni e3af1b0c0d introduced $CFG->autologinguests 2004-07-02 08:11:00 +00:00
moodler ff7acbfeca Merged recent stable fix for 1607 2004-07-02 02:46:17 +00:00
gustav_delius 8e8d0524af made sure that the guest autologin does not happen when user replies to post 2004-07-01 22:29:04 +00:00
koenr bb141a3f48 initial translation by Koen Roggemans 2004-07-01 21:11:15 +00:00
gustav_delius 2cc72e848f made get_course_users and similar functions work also for the site course 2004-07-01 21:00:07 +00:00
koenr 4cdfd5932d filling in missing strings... 2004-07-01 20:48:22 +00:00
stronk7 73e6ac63d9 Some polishing of "TAB" chars in source code done.
Minor changes in glossary export/import to include the displayformat field.
Added a new feature (it was hidden and uncompleted in source code):
Import a glossary file, creating automatically a new glossary activity.
Bug 1606.
http://moodle.org/bugs/bug.php?op=show&bugid=1606

Merged from MOODLE_13_STABLE
2004-07-01 20:07:43 +00:00
gustav_delius 43a4c024fb removed undefined notices showing on recent activity on site front page when no user logged in 2004-07-01 19:58:34 +00:00
stronk7 f77bdcc636 Added support to timeopen, timeclose, release and allowupdate
in backup and restore procedure.
Added some special checks to mantain backwards compatibility
whith pre-1.4 backup files, because the meaning of some settings
has changed just now. (I've applied the same differences executed
in the upgrade process). :-)
2004-07-01 19:44:55 +00:00
koenr 8791a831f4 initial translation 2004-07-01 19:10:19 +00:00
koenr a10efdfcbc modification for new features 2004-07-01 14:33:54 +00:00
koenr 51bb3f47f2 initial translation of some files + modifies for new features 2004-07-01 14:11:54 +00:00
bobopinna 99b4a25131 added the guest auto login phrase 2004-07-01 13:36:00 +00:00
bobopinna 6b4c13b7b2 Refined time data model parsing and fixed the credit/no-credit model 2004-07-01 13:34:10 +00:00
moodler eeb2d76ee8 Whoops! Fixed one tiny upgrade thing ... this will make choices
with "publish" turned off upgrade predictably
2004-07-01 13:30:50 +00:00
moodler c1f1664dd3 New strings for new arrangement of choice module.
THANKS TO SHANE FOR ALL HIS HELP ON THIS!
2004-07-01 12:53:04 +00:00
moodler fa70124e0e New helps file for Choice timerestriction feature 2004-07-01 12:52:20 +00:00
moodler d30772b256 Added new feature to restrict time for this activity.
Cleaned up logic by adding a separate menu for publishing vs privacy.
2004-07-01 12:52:15 +00:00
gustav_delius 0f14574b85 fixed bug 1550 about broken anchor links 2004-07-01 12:00:46 +00:00
gustav_delius ad6178ea81 fixed bug 1550 about broken anchor links 2004-07-01 10:18:14 +00:00
bobopinna 5f4aacd3a9 Removed a debug alert 2004-07-01 10:17:05 +00:00
bobopinna 6d9c91c72e Updated backup to popup windows. Modified auto-continue feature. Added nav.event data model. Patched a problem with time data model. 2004-07-01 09:54:08 +00:00
moodler f9af7fd020 constant values changed to reflect changes in database 2004-07-01 09:20:51 +00:00
moodler bcb5433d92 upgrading database with new values for the new fields 2004-07-01 09:17:37 +00:00
gustav_delius a5db6f8a49 got rid of some undefined index notices 2004-07-01 08:27:58 +00:00
bobopinna 0d6db23c65 Translated by Paula de Waal 2004-07-01 07:46:09 +00:00
moodler 283009c259 Two new fields added to extend choice capabilities 2004-07-01 07:41:36 +00:00
moodler b9080b73c7 Added two fields for time restrictions on choices 2004-07-01 07:01:26 +00:00
martignoni 40b4c871cf One more typo corrected 2004-06-30 21:00:29 +00:00
martignoni d36618af01 Typos corrected 2004-06-30 20:59:53 +00:00
villate 26d0dfa02e First translation. 2004-06-30 20:21:04 +00:00
villate 23f45a626b Initial translation. 2004-06-30 18:16:31 +00:00
villate 68cabd6dcc Updates and corrections 2004-06-30 16:39:08 +00:00
moodler 36a2d0f508 Pass the current course to the block class when creating it to find the name
of the block.   This allows the class to return different result depending
on the course it is in.
2004-06-30 13:17:59 +00:00
bobopinna 82b815c445 Added default values for popup window when scorm is updated from framed to windowed 2004-06-30 13:17:50 +00:00
moodler a88c8e9107 Show a different string on the site page (instead of Course Summary) 2004-06-30 13:16:48 +00:00
moodler 6236ed990d Pass the whole $course variable to block_print_blocks_admin()
so we have more information.
2004-06-30 13:11:15 +00:00
moodler a2ebe6a55c Logic fix 2004-06-30 12:43:05 +00:00
gustav_delius 9b88d1a07c added editing icon in course summary block 2004-06-30 12:41:05 +00:00
thepurpleblob 6adaf83e66 fixed bug #1556 - implode could be called on non-array data 2004-06-30 12:39:22 +00:00
bobopinna de8595db91 Patched the auto-continue feature 2004-06-30 12:25:12 +00:00
gustav_delius fe6571366c introduced $CFG->autologinguests, see http://moodle.org/mod/forum/discuss.php?d=9161 2004-06-30 12:09:29 +00:00
thepurpleblob 1218d4702e Added remaining question types for export 2004-06-30 10:19:20 +00:00
thepurpleblob 4c2a04ee16 Added 'virtual' method for writequestion 2004-06-30 10:16:14 +00:00
thepurpleblob 008589289a More question types added to support quiz exports 2004-06-30 10:11:21 +00:00
koenr 129a186d16 pollishing translation -> prune 2004-06-30 07:59:57 +00:00
koenr 8095d18acb post -> plaats
new string
2004-06-30 07:51:10 +00:00
koenr 2fd24ec2eb changed links to images 2004-06-30 07:36:23 +00:00
koenr fdbf8eaa4e changed bewerkingsscherm to editor for conscistency 2004-06-30 07:26:01 +00:00
bobopinna ff54e96e36 Translated by Claudio Maggi 2004-06-30 07:08:50 +00:00
gustav_delius 59b7ad8aaa using fullname() on info page, fixing bug 1596 2004-06-29 21:44:24 +00:00
gustav_delius be0bdec88c a hack to fix bug 1598 regarding undefined $CFG->enrol 2004-06-29 21:16:58 +00:00
martignoni 238f4cb2da Some more files added/translated 2004-06-29 19:01:31 +00:00
martignoni 80ead577f3 Files for enrolment added 2004-06-29 18:29:12 +00:00
martignoni 8aa7ea22e2 Added support to the popup window feature 2004-06-29 18:21:46 +00:00
martignoni e9563cfb4f Typo corrected 2004-06-29 18:09:46 +00:00
martignoni d88c27ed4d Two strings added and correct sorting of variables 2004-06-29 18:09:08 +00:00
martignoni 7573628c27 Added additional strings for quiz export 2004-06-29 18:04:53 +00:00
martignoni 368c8716e8 Strings for Paypal enrolments 2004-06-29 17:36:22 +00:00
barias e127c123c7 Latest updates 2004-06-29 17:31:23 +00:00
martignoni d9aeafd299 Updated language about pruned posts 2004-06-29 17:20:20 +00:00
martignoni 9fca95f8fc Typo corrected 2004-06-29 15:10:18 +00:00
thepurpleblob a2db69caf7 Export classes added, not yet complete however 2004-06-29 09:26:51 +00:00
bobopinna 493e870191 Updated to Moodle 1.4 dev (2004062600) 2004-06-29 09:01:47 +00:00
bobopinna a6c2e96480 Modified user score visualization 2004-06-29 08:02:39 +00:00
bobopinna 02f5d4390c Fixed last Explorer popup bug and added user score view 2004-06-29 07:50:07 +00:00
defacer 0d8a590a0b Removed the [[noreply]] string from forum sender names. 2004-06-29 07:01:34 +00:00
moodler 4d35d88bcd Fixed a typo I just made 2004-06-29 03:49:51 +00:00
moodler d078ee9bf4 Slight changes to prunng code (first post now assumes discussion name) 2004-06-29 03:46:17 +00:00
moodler 691f191366 Updated language about pruned posts 2004-06-29 03:38:35 +00:00
stronk7 e1013df8c2 Take care of empty aliases in glossary xml files when importing them.
See bug 1599. Thanks to skodak. :-)
http://moodle.org/bugs/bug.php?op=show&bugid=1599

Merged from MOODLE_13_STABLE.
2004-06-28 23:58:16 +00:00
rkingdon 16b56e5ef8 Dialogues can be started with groups of students. 2004-06-28 19:41:24 +00:00
moodler 4a6cfa32d9 Updated requirements for quiz module 2004-06-28 16:25:14 +00:00
bobopinna b98eebbf93 Fixed some popup window problems (some still fixing) 2004-06-28 11:20:52 +00:00
bobopinna e8e5293820 Translated and revised by Claudio Maggi 2004-06-28 11:18:44 +00:00
carlesbellver 12042525ab *** empty log message *** 2004-06-28 07:54:57 +00:00
moodler 48f1c16523 Ctest from PaulaVS: ---------------------------------------------------------------------- 2004-06-28 07:17:59 +00:00
moodler 6d2c5179d1 New files 2004-06-28 05:35:23 +00:00
moodler 1582dc30af Latest work on pt_br 2004-06-28 05:34:09 +00:00
moodler 1c19e2ca72 Removed unused string 2004-06-28 05:22:18 +00:00
moodler 748a91c7c0 Latest Arabic 2004-06-28 04:52:47 +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
moodler 3e93e0ce43 Prettier icon 2004-06-27 04:20:52 +00:00
moodler 631cba6402 Bug fixes 2004-06-26 15:37:18 +00:00
moodler 70beecd4e7 SOme tweaks to mail 2004-06-26 15:32:19 +00:00
moodler 7634696b69 Removed test data 2004-06-26 15:26:02 +00:00
moodler 184324b456 Very rough dollar icon 2004-06-26 14:41:42 +00:00
moodler 3d970777f4 OK, Paypal is now working. I've been buying access into some test courses. :-)
Still polishing the GUI side of things now.
2004-06-26 14:40:25 +00:00
stronk7 d902b189e0 Added course->cost to backup/restore 2004-06-26 12:36:55 +00:00
barias 6f7a4c2be0 Minor changes in last translation 2004-06-26 11:36:06 +00:00
moodler d23cd6b140 Strings for Paypal enrolments 2004-06-26 09:52:06 +00:00
moodler 146bbb8f2d Some more additions to use the new enrolment architecture. 2004-06-26 09:51:13 +00:00
moodler 04f47a89a1 New paypal plugin ... not quite working yet, but very close.
Just uploading it to another site for polishing off.
2004-06-26 09:50:19 +00:00
moodler 8c5c6133a8 Adding a field "cost" to courses. :-) 2004-06-26 09:09:00 +00:00
miksik 46377840f9 Fixed translation for Rows string 2004-06-25 16:44:41 +00:00
barias 8be2309265 Minor changes in last translation 2004-06-25 09:46:02 +00:00
defacer a402bdcbda Minor fix in forum digests: The digest sender's name was that of the last
poster in it. Now set to the site shortname.
2004-06-25 07:38:44 +00:00
defacer f184e8311f Improved error handling a bit. 2004-06-25 07:01:08 +00:00
moodler ca60b03b34 The login process now uses the current enrolment plugin 2004-06-25 06:30:48 +00:00
moodler 020266d04d Changed some logic ... I think it's the same anyway but this reads easier for me 2004-06-25 06:30:16 +00:00
moodler 04e443258c Hook for enrolment cron jobs 2004-06-25 03:44:29 +00:00
moodler e6012b542e New language files for enrolment plugins 2004-06-25 03:32:41 +00:00
moodler f57d61e2a2 Some new strings for enrolment stuff 2004-06-25 03:32:05 +00:00
moodler 87a7d7031b Enrolment now uses the new enrolment architecture 2004-06-25 03:31:20 +00:00
moodler b8e13a5742 Enrolment architecture version 0.5 !
The internal method (the default) simply replicates Moodle's
existing behaviour and is working fine.

The new flatfile module also works.

There is no admin config interface yet, I'm still implementing
this using templates.
2004-06-25 03:28:12 +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
miksik e704473ef1 From Brno translation community 2004-06-24 17:46:07 +00:00
rkingdon db3e1a89f1 Fix the submission of null entries when using the HTML editor. 2004-06-24 17:11:51 +00:00
mchurch e8f993326c Added a per-wiki option to allow disabling of automatic camel case linking.
If pages have been created using camel case, and this option is activated, those pages remain, but may not be linkable. If the option is disabled, they will be linked again.
2004-06-24 15:56:01 +00:00
martignoni 5388302ae7 Typo corrected 2004-06-24 14:21:08 +00:00
moodler fc7de4a551 Default enrolment mechanism is "internal" 2004-06-24 13:41:25 +00:00
mchurch c4346f440c Removing non-production warning. This is no longer valid. 2004-06-24 13:27:14 +00:00
moodler afb18f5aea Set up Smarty template system in the setup.php 2004-06-24 13:10:47 +00:00
moodler 1854c99cc2 Default 'template' and 'style' 2004-06-24 13:00:51 +00:00
moodler 61451a361a Improvements to add_teacher 2004-06-24 12:51:25 +00:00
moodler dd691b4e8e Help files for ID number 2004-06-24 11:54:11 +00:00
moodler 7f760716ce Course ID number 2004-06-24 11:50:33 +00:00
moodler 146ebe9074 For course idnumber 2004-06-24 11:47:23 +00:00
moodler 838ee71b4b New course field called idnumber ... acts as storage for an external
id number for each course.  Used in external processing of course and
user_students and user_teachers tables.
2004-06-24 11:46:53 +00:00
thepurpleblob 6ad1e0694d Corrected bug where selected category not displayed. 2004-06-24 09:44:14 +00:00
thepurpleblob 9f406c1dc2 Corrected bug where selected category not displayed 2004-06-24 09:36:53 +00:00
thepurpleblob 9441b800d4 Corrected bug where category not selected properly. 2004-06-24 09:35:37 +00:00
moodler faef9f7b8c Added timestart and timeend field to user_teachers table
(in preparation for enrollment architecture)
2004-06-24 08:23:16 +00:00
koenr 13d620fdc5 filling in missing strings... 2004-06-23 22:40:24 +00:00
koenr b533404f87 typo 2004-06-23 22:21:14 +00:00
mits 0c81c11eaf translated some. 2004-06-23 17:58:26 +00:00
moodler a4fbb0b2f1 Show links on group icons in forum posts 2004-06-23 15:31:50 +00:00
rkingdon 352ab98fa0 Dialogue entries now use the HTML editor. 2004-06-23 14:16:30 +00:00
defacer b1bd2cf0c1 Fix for bug 1527:
The New Event button is back in day view. Silly mistake, $USER wasn't taken
from the globals and thus it always thought you weren't logged in.
2004-06-23 09:53:23 +00:00
defacer 1cbcc2c3d0 Fix for bug 1528:
Now the edit icon in day view for course activity events takes you to the
activity update form, and not the view. You can still go to the activity view
by clicking the activity name in the event title.
2004-06-23 09:43:00 +00:00
thepurpleblob 9ad7ce6bca fixed correct category not selected 2004-06-23 09:42:27 +00:00
thepurpleblob eea4477b95 Fixed mistake in category selection - now correctly shows selected category 2004-06-23 09:33:47 +00:00
julmis 684d865a49 Updates to quiztimer
- mark question result to zero if time limit is exceeded
2004-06-22 20:44:59 +00:00
julmis 8718067799 A little fix for $CFG->loginhttps
- set $wwwrot variable earlier.
2004-06-22 18:35:59 +00:00
julmis ab1324e415 $CFG->loginhttps changes, change password and admin user edit. 2004-06-22 18:34:35 +00:00
rkingdon f8f92c3c6f locallib.php added to index.php, it needs one of the functions. 2004-06-22 16:49:32 +00:00
moodler c64a8fe4ac Latest updates from Paula 2004-06-22 14:43:42 +00:00
thepurpleblob 59b264962d Help file for exporting quiz categories. 2004-06-22 12:54:14 +00:00
thepurpleblob 9e4e189f09 Added additional strings for quiz export 2004-06-22 12:50:34 +00:00
thepurpleblob 105d34db95 Editing and adding question controls are now disabled where the user does
not have editing rights. Applies to published categories.
2004-06-22 11:02:37 +00:00
gustav_delius 7636b1194d don't replace smilies in plain text format 2004-06-22 07:38:05 +00:00
rkingdon 6219cb1f07 Lists of names now use case insensitive sort (natcasesort);
Remove email flag setting from follow-up entry page, email is now a global option.
2004-06-21 17:12:41 +00:00
moodler d4bfbe4d18 Commented out duplicates for now pending cut/paste discussion 2004-06-21 14:51:43 +00:00
moodler a2fa19d87c Merged in latest changes from STABLE 2004-06-21 13:07:44 +00:00
moodler 19ebd1557a Minor formatting of timelimit stuff 2004-06-21 12:36:13 +00:00
moodler ea41a457ec Updated docs on time limits 2004-06-21 12:20:30 +00:00
bobopinna 03f3b3b59c Added support to the popup window feature 2004-06-21 11:45:33 +00:00
bobopinna d6efe30ac2 Added some new translations 2004-06-21 11:44:23 +00:00
bobopinna 76d3542313 Added popup window scorm player and its settings 2004-06-21 11:27:52 +00:00
minkowski aea836221e update for moodle 1.3.1 2004-06-21 00:09:33 +00:00
koenr 2145fe22dc typo 2004-06-20 13:04:10 +00:00
julmis 68a7b97074 Fixes for quiztimer.
- Lets make cheating more complicated, more javascript based.
- Mark attempt to zero if time limit is exceeded over 60 seconds
2004-06-20 10:57:27 +00:00
moodler 49ce3d79b4 Fixed Korean encoding 2004-06-20 04:11:16 +00:00
moodler a52682543b No locale possible :-( 2004-06-20 04:08:46 +00:00
moodler 738216be23 Hmm, locale problem with this encoding ... no locale for it 2004-06-20 04:03:22 +00:00
moodler 50e082b7ba Fixed locale 2004-06-20 03:55:53 +00:00
moodler 92da4f38ff FIxed default locale 2004-06-20 03:54:15 +00:00
moodler 8a33e3717d Based on code from Janne - this allows secure logins via https
$CFG->loginhttps

After logging in via https, Moodle returns to a normal http URL


More info:  http://moodle.org/mod/forum/discuss.php?d=8555
2004-06-19 16:13:28 +00:00
martignoni 355089c17c Better translation of subscribe/unsubscribe process 2004-06-19 08:38:19 +00:00
martignoni aea7c07bb9 Small change for search string 2004-06-19 08:12:34 +00:00
martignoni 3d055c7810 Spaces removed 2004-06-19 07:40:54 +00:00
martignoni 98cd30c244 Some typos corrected 2004-06-19 07:15:49 +00:00
rkingdon 9af2f862cf Change to the mail option, now a global option. 2004-06-18 19:01:44 +00:00
rkingdon b506fd43e7 Document change to mail option in Dialogue module 2004-06-18 18:13:06 +00:00
rkingdon bfe7932f0d Split lib.php into lib.php and locallib.php 2004-06-18 15:38:21 +00:00
rkingdon 3f06c90dda Moved back a few functions from locallib.php to lib.php 2004-06-18 14:23:19 +00:00
rkingdon de7200645a Moved a couple of functions back to lib.php from locallib.php 2004-06-18 14:18:02 +00:00
rkingdon c8c6d4e0dc Split lib.php into lib.php and locallib.php;
Minor change: admin listings now in Surname order
2004-06-18 13:55:10 +00:00
thepurpleblob 0e852e2a43 Category dropdown now displays publishing course name + only courses for which the
user has editing rights are displayed
2004-06-18 13:39:07 +00:00
thepurpleblob 212a1906d7 Added isset() to prevent uninitialized field causing notification.
Category dropdown now displays publishing course name + only courses for which the
user has editing rights are displayed
2004-06-18 13:18:13 +00:00
thepurpleblob d8933d4a6d Added isset() to prevent an uninitialized field causing notification.
Category dropdown now displays publishing course + only categories for which the
user has editing rights are displayed.
2004-06-18 13:14:13 +00:00
thepurpleblob 588ecf461a Added isset() to check for uninitialised field causing notifications.
Category dropdown now displays publishing course + only categories for which
the user has editing rights are displayed.
2004-06-18 13:10:18 +00:00
thepurpleblob c4a5033db2 Category dropdown now shows publishing course + only those categories for
which the user has editing rights are displayed
2004-06-18 13:07:20 +00:00
thepurpleblob fe6dd029a5 Category dropdown now shows publishing course. Only those categores that the user
has permission to edit are displayed
2004-06-18 13:03:11 +00:00
thepurpleblob 6c9b8063cf Now only allows user to select categories that they can really edit. 2004-06-18 12:59:48 +00:00
thepurpleblob 2ceec2d6be Added functions to only display categories that the user is actually
allowed to edit. Used in question edit screens
2004-06-18 12:59:06 +00:00
defacer 33bee34c0b Fix for bug #1555:
Now the test for block constructors works under PHP 5.
2004-06-18 12:25:27 +00:00
rkingdon dbda4a92ad Split lib.php into locallib.php and lib.php;
Fixed bug # 1435;
Possibly fixed bug #1489
2004-06-18 09:24:20 +00:00
thepurpleblob c2df1c2ec2 changed define to string assignment to prevent multiple defines notification
in true false questions added initialisation of both true and false feedback
  to kill notification in lib.php when question is stored
2004-06-18 08:41:16 +00:00
adamtpaw 1be0eb6a2b Few new files and corrections
----------------------------------
2004-06-17 20:17:35 +00:00
thepurpleblob ff3cb169af fixed bug where select box for category is shown but changing it doesn't do anything
category selected in previous edit screen now used, and *fixed* category displayed.
Course shortname has been added to category where category is published
2004-06-17 17:31:12 +00:00
thepurpleblob adc8ba57b2 Added function to return category name with course shortname apended
Added functions to read a complete quiz category structure into object
    for development of export functionality - working but partial question
    types at the moment.
2004-06-17 17:29:07 +00:00
thepurpleblob 5ab5d67ddf Fixed failure to check for uninitialized Formatting field
which caused a notifcation in debug mode
2004-06-17 16:47:50 +00:00
thepurpleblob e5a30e6a1a $answers is innitialized to defined QUIZ_MAX_NUMBER_ANSWERS.
Was wrongly left fixed at 6
2004-06-17 16:44:47 +00:00
thepurpleblob c040a9a2ff New file for exporting quizzes 2004-06-17 16:18:21 +00:00
c_schmitz b6a6becb75 *Korrektur lesen, vergleichen mit dem englischen Original und letzte Teile ?bersetzen.Fertig. 2004-06-17 11:23:48 +00:00
c_schmitz 3f502ce7bd *Korrektur lesen, vergleichen mit dem englischen Original und letzte Teile ?bersetzen 2004-06-17 09:40:09 +00:00
moodler b0de1f1eea Latest Swedish! 2004-06-17 09:32:15 +00:00
c_schmitz c32f71619d *Added missing (and translated) file 2004-06-17 09:05:51 +00:00
moodler ee085a154f Adding Shane 2004-06-17 09:03:02 +00:00
defacer 76416b4bac Small fix: removed one notice 2004-06-17 08:21:09 +00:00
rkingdon 8193b23549 Fixed bug #1568. 2004-06-16 19:29:20 +00:00
rkingdon cf0a582231 Extra note about zero grade stops display of Lesson in Grade pages.
----------------------------------------------------------------------
2004-06-16 18:28:18 +00:00
rkingdon a1a218c171 Documenting the * wild card character in Short Answer Questions. 2004-06-16 17:32:01 +00:00
miksik 24197039bd File from Brno translation community 2004-06-16 17:26:13 +00:00
rkingdon 6705518545 Addition of * wild card to Short Answers. 2004-06-16 17:18:08 +00:00
miksik bd253ab5d5 Files from Brno translation community 2004-06-16 17:06:38 +00:00
c_schmitz abdb7a3105 *Updated german translation 2004-06-16 13:17:17 +00:00
c_schmitz d2e022554a *Updated german translation in the lesson module
+Added missing translations
2004-06-16 13:11:15 +00:00
moodler bd718b9ac6 Serbian translation (in UTF8) 2004-06-16 13:07:45 +00:00
carlesbellver bfd08796f0 *** empty log message *** 2004-06-16 11:13:38 +00:00
petcheverry a6910e77fa file readme.txt was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-06-15 12:35:09 +00:00
barias dcbcc98470 Minor changes in last translation 2004-06-15 06:16:30 +00:00
skaldrom 38a72c0936 Added new Headers from the Erfurtwiki-Project 2004-06-14 21:20:38 +00:00
skaldrom 56eb5690a2 Fixed more uninitialized variables (Bug #1557 - EWIKI_NAME already defined) 2004-06-14 20:56:03 +00:00
gustav_delius 77915f7aa7 Site option forcelogin is now respected by /mod/forum/search.php, fixing bug 1566 2004-06-14 20:02:50 +00:00
mits fcf16f866d translated some. 2004-06-14 18:33:11 +00:00
barias 522951b77c Minor changes in last translation 2004-06-14 12:31:38 +00:00
bobopinna 815e2bd1e3 First traslation by Claudio Maggi 2004-06-14 07:59:26 +00:00
bobopinna ecea9050f1 First translation 2004-06-14 07:49:57 +00:00
bobopinna ee0a296092 Translated by Claudio Maggi 2004-06-14 07:48:42 +00:00
bobopinna ac974f6f22 Revised and translated by Claudio Maggi 2004-06-14 07:46:06 +00:00
mchurch c513f599e5 Added options to select or deselect administration flags for students. 2004-06-13 19:41:47 +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
barias e2c197f4a2 Latest updates 2004-06-13 09:35:25 +00:00
koenr c0672818ea typo 2004-06-13 07:38:01 +00:00
koenr 850b9c0b9a typo 2004-06-12 20:49:48 +00:00
koenr 0baf5cb24a typo 2004-06-12 18:46:24 +00:00
martignoni e0d5f5adff Some strings added 2004-06-12 11:53:51 +00:00
skaldrom e450fef546 Fixed Bug #1548 - Empty lines inserted when using HTML Editor 2004-06-11 22:40:18 +00:00
koenr e6f70000ec filling in missing strings... 2004-06-11 22:27:12 +00:00
barias 64f79f3c76 Latest updates 2004-06-10 23:18:34 +00:00
adamtpaw 56b0cf4bfb Few updates v1.3 2004-06-10 22:36:54 +00:00
fiedorow f7e0a0b8e7 Functionality in debug for miscellaneous mimeTeX binaries 2004-06-10 16:47:30 +00:00
skaldrom db0178a3be Warnings eliminated and made a fix for Bug #1557 - EWIKI_NAME already defined 2004-06-10 11:42:08 +00:00
bobopinna 415807c02d Added cmi.core.score.min/max support to API 2004-06-10 10:05:13 +00:00
gustav_delius 4a9df37352 made sure that ungraded modules would not show up in gradebook 2004-06-09 22:50:42 +00:00
gustav_delius 9cb883d53d small bug fix: $USER was not laoded in course admin block 2004-06-09 22:00:51 +00:00
martignoni 893a32463b Attempt for better feminine/masculine forms 2004-06-09 15:11:31 +00:00
flipman 709d36ab88 New 2004-06-09 10:45:09 +00:00
moodler a46d2d768f Estonian from ahtonks@nuke.ee 2004-06-09 09:33:47 +00:00
moodler 5debc7a803 Added PPS (Powerpoint) 2004-06-09 08:58:03 +00:00
gustav_delius 5bff67518f fixed the self-inflicted problem with navmenu on non-module pages. 2004-06-09 08:55:44 +00:00
gustav_delius cb6480373e jump menu now always shows "Jump to", see http://moodle.org/mod/forum/discuss.php?d=8543#41211 2004-06-09 08:46:43 +00:00
gustav_delius 6f9f3b693f fixed bug 1553 which gave error with empty jump menu 2004-06-09 08:36:28 +00:00
barias 089b018eac Latest updates 2004-06-09 08:14:25 +00:00
moodler a56d79cdc8 When sending assignment notifications, update "mailed" flag before trying
to mail them.  This helps prevent multiple mail problems if cron or
smtp has major problems.


http://moodle.org/mod/forum/discuss.php?d=8821
2004-06-09 07:05:16 +00:00
carlesbellver 3ebd4a1621 *** empty log message *** 2004-06-09 06:27:34 +00:00
barias ece98a42bd Latest updates 2004-06-08 21:36:24 +00:00
gustav_delius 5e607236f3 fixed problems with undefined $USER->id in recent activity block when no user logged in. 2004-06-08 21:23:26 +00:00
gustav_delius 266313e8c3 corrected type, bug 1551 2004-06-08 20:48:32 +00:00
fiedorow 49dfcc3b4f Bug fix for Windows systems 2004-06-08 20:36:13 +00:00
skaldrom c26f300f6d Fix for Bug #1543 - wiki requires PHP >= 4.3 2004-06-08 20:24:53 +00:00
skaldrom bc1f9c7349 Better fix for Bug #1530 - Wiki diffs useless when using HTML editor 2004-06-08 20:22:13 +00:00
carlesbellver 269f7a3d82 *** empty log message *** 2004-06-08 15:57:46 +00:00
martignoni 701092a27c Updated to big change from Martin 2004-06-08 15:50:38 +00:00
bobopinna c922aa52f9 Revised and translated by Claudio Maggi 2004-06-08 12:22:29 +00:00
bobopinna 425a45be9c Revised by Claudio Maggi 2004-06-08 12:12:46 +00:00
carlesbellver f17f695ca3 *** empty log message *** 2004-06-08 10:32:41 +00:00
koenr 848c020ab1 typo 2004-06-07 22:16:27 +00:00
moodler 9597d7dcc2 Some quick changes to new forum strings ... more coming 2004-06-07 17:01:00 +00:00
minkowski df38c7bdeb Latest translation for Moodle 1.3.1 by M.Minkowski 2004-06-07 16:03:26 +00:00
minkowski 89ab2daf91 Latest translation for Moodle 1.3.1 by M.Minkowski 2004-06-07 15:58:42 +00:00
bobopinna 96975d4a81 added backup and restore feature 2004-06-07 13:29:40 +00:00
bobopinna dde32eea69 Added backup and restore features 2004-06-07 13:28:59 +00:00
bobopinna 16315dddf0 Added backup and restore 2004-06-07 13:25:15 +00:00
moodler 64762ddc20 Don't cache $strforums because the value could change from user to user 2004-06-07 13:24:02 +00:00
bobopinna 5d8790cb77 Fixed PHP_SELF and patched some other playing problems 2004-06-07 12:16:41 +00:00
julmis 6a2a143adc Language bug fix [#1542] 2004-06-07 11:12:34 +00:00
minkowski 81560b3cdc Latest translation for Moodle 1.3 by M.Minkowski 2004-06-07 09:47:28 +00:00
minkowski 51beec71bb Latest translation for Moodle 1.3 by M.Minkowski 2004-06-07 09:38:24 +00:00
martignoni b87c3e3e0f Little correction 2004-06-07 09:05:23 +00:00
moodler da5754f87c Merged bug fix for global glossary flag from MOODLE_13_STABLE to trunk 2004-06-07 08:43:00 +00:00
bobopinna dbce228d2f Updated to Moodle 1.4 devel 2004-06-07 08:29:01 +00:00
moodler d395046adc Merged bugfix from 1.3.x 2004-06-07 06:18:16 +00:00
minkowski c557fd6cce Latest translation for Moodle 1.3 by M.Minkowski 2004-06-07 05:31:38 +00:00
minkowski bc006c1692 Latest translation for Moodle 1.3 by M.Minkowski 2004-06-07 04:22:26 +00:00
martignoni 5fd1070e96 New translated file added 2004-06-06 21:51:49 +00:00
koenr ad0415bd69 Dutch follow up of this http://moodle.org/mod/forum/discuss.php?d=8712 discussion 2004-06-06 20:14:36 +00:00
martignoni 5de57b5b06 Strings 'configreplytouser' and 'noreply' added 2004-06-06 19:28:32 +00:00
gustav_delius 2cba76377f Made two small changes to make the config.php issue clearer, see http://moodle.org/mod/forum/discuss.php?d=8712 2004-06-06 19:27:56 +00:00
skaldrom 65dea863d4 Changed "Title" to "Name". May close Bug #1540 - name versus title. 2004-06-06 19:02:12 +00:00
martignoni 65ad498c35 Time limit strings and help file added 2004-06-06 18:42:43 +00:00
skaldrom 829e635033 Better Logging 2004-06-06 18:37:54 +00:00
martignoni 9e12b9eccb Using styles for code 2004-06-06 18:24:13 +00:00
skaldrom dd69e424c0 Security-check was wrong. 2004-06-06 17:48:13 +00:00
skaldrom 5beb559572 May fix Bug #1530 - Wiki diffs useless when using HTML editor. 2004-06-06 15:38:25 +00:00
skaldrom 0dc1d62340 Made diff more usable for HTML: may fix Bug #1530 - Wiki diffs useless when using HTML editor 2004-06-06 15:37:18 +00:00
moodler dcc0c13598 Merged bug fix from MOODLE_13_STABLE 2004-06-06 14:28:37 +00:00
moodler 8eb261cfd9 Tweaked config instructions 2004-06-06 13:25:04 +00:00
skaldrom f4f3a68091 Update 2004-06-06 13:12:27 +00:00
skaldrom b6753d519f Export Strings. 2004-06-06 12:55:37 +00:00
gustav_delius 6e506bf902 Fixed bug 1535. Unless $CFG->forum_replytouser is set to 1 AND the user has set maildisplay nonzero, the address $CFG->noreplyaddress is sent instead of the user's address. 2004-06-06 12:49:55 +00:00
minkowski 36d2f48cb6 Latest translation for Moodle 1.3 by M.Minkowski 2004-06-06 12:27:05 +00:00
minkowski 7627d0b94e rename module in Thai and mostly rephrasing 2004-06-06 12:19:44 +00:00
skaldrom a9de02428d Export mechanism and Administration restriction. 2004-06-06 12:07:28 +00:00
minkowski b7d15aa9ab rename module in Thai and mostly rephrasing 2004-06-06 12:06:51 +00:00
minkowski 1d151b661f *** empty log message *** 2004-06-06 10:47:27 +00:00
minkowski 0f84e9207e *** empty log message *** 2004-06-06 09:36:57 +00:00
gustav_delius 81b5c8e354 Fixed bug 1532, backlink now translatable 2004-06-05 15:34:16 +00:00
julmis d65d24b610 Let's use full path for that secure connection fix. 2004-06-05 14:38:24 +00:00
martignoni ec8f6d1576 Update for version 1.3.1 2004-06-05 14:17:03 +00:00
gustav_delius e44497f329 Fixed bug 1531, section links to invisible sections now greyed out or hidden 2004-06-05 12:04:02 +00:00
gustav_delius 319225a714 Fixed bug 1531, section links to invisible sections now greyed out or hidden 2004-06-05 11:57:11 +00:00
moodler a96deb69e2 Added the fix to make editor work better on SSL, as described here:
http://moodle.org/mod/forum/discuss.php?d=8555
2004-06-05 10:38:42 +00:00
koenr 3f30dc983d removing unnecessary files 2004-06-05 10:04:32 +00:00
koenr a1c0727b5d new version 2004-06-05 09:40:07 +00:00
skaldrom f34c100ac1 Stopped ewiki guessing the URL: Some users were kicked back to the homepage after editing. 2004-06-04 20:23:55 +00:00
moodler 56b126a318 Added info for Moodle 1.3.1 2004-06-04 16:28:42 +00:00
mchurch 0606b0d38e Fixed description of naming requirements. 2004-06-04 12:22:47 +00:00
martignoni b1aa4da1dd Email digest feature 2004-06-04 10:52:07 +00:00
martignoni 1d33bd084a Removed useless stuff 2004-06-04 09:58:05 +00:00
moodler 070528fc79 MOdules are dependent on this version of course/mod.php 2004-06-04 07:28:34 +00:00
moodler fc6a0c9fff Re-fixed bug 1488 hack 2004-06-04 07:21:15 +00:00
moodler 15a07d8b33 Allow editor on Wiki summary 2004-06-04 07:04:32 +00:00
moodler 7613890851 BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk

The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point

The biggest changes here are the fixes for HTML editor in all standard modules
2004-06-04 06:17:30 +00:00
moodler 308214e87e Added -kk tags for keywords 2004-06-04 06:04:08 +00:00
moodler 6a652cb671 Fixed a missing tag 2004-06-04 05:18:15 +00:00
moodler 758674a180 Added commandline style 2004-06-04 05:09:01 +00:00
moodler 2a395005b5 More tweaks ... using styles for code 2004-06-04 05:08:37 +00:00
moodler 8bd7636566 Adjusting whitespaces 2004-06-04 03:03:01 +00:00
moodler 2b2070ee42 More polishing 2004-06-04 03:00:40 +00:00
villate 6916dbfe89 Updated for version 1.4beta 2004-06-03 16:50:46 +00:00
moodler bb98bf3313 More fixes 2004-06-03 16:09:07 +00:00
moodler 1b9a033913 Some clean ups 2004-06-03 15:53:14 +00:00
mchurch 089a198517 Changed multiple occurrences of help icon in non-HTML modes, to one
occurrence for all modes.
2004-06-03 13:40:46 +00:00
bobopinna a380c2eef6 Updated to Moodle 1.4 dev 2004-06-03 12:48:57 +00:00
julmis b15f577dad Trying to fix Safari bug (NaN). 2004-06-03 12:45:38 +00:00
mchurch 6f4d8ece46 Changed use of PHP_SELF to $ME. 2004-06-03 12:13:57 +00:00
barias 4c5b180fe7 Latest updates 2004-06-03 08:18:05 +00:00
mchurch 03e0e5f691 Fixed use of '- or -' string to a language file string. Added back lost
initialcontent help file.
2004-06-02 23:14:14 +00:00
barias fb870aca6f Latest updates 2004-06-02 22:48:48 +00:00
barias 3c2bcb02b5 Latest updates 2004-06-02 21:37:40 +00:00
mchurch 012791873c Added 'HowToWiki' help file to view wiki screen. 2004-06-02 21:32:18 +00:00
mchurch 3164a1ab30 Added HowToWiki help file. 2004-06-02 21:29:26 +00:00
koenr 3b5a27226e filling in missing strings... 2004-06-02 21:28:58 +00:00
mchurch 300840a6b0 Added 'HowToWiki' help file and appropriate strings. 2004-06-02 21:28:37 +00:00
koenr 4d1efb421e initial translation by Koen Roggemans 2004-06-02 21:01:10 +00:00
skaldrom f80b073343 Reinserted Sitemap and made a better page-title. 2004-06-02 20:58:25 +00:00
skaldrom 9073c44d29 reimport 2004-06-02 20:35:25 +00:00
mchurch 526efb5517 Removed requirement for a wiki activity's page name to be in CamelCase, per
bug report 1355.
2004-06-02 19:00:55 +00:00
skaldrom bc089c316b Added missing Strings 2004-06-02 18:50:34 +00:00
skaldrom b8309c3152 Reimported german help files 2004-06-02 18:38:53 +00:00
mchurch af13c001f0 Added the string for 'thispageisntlinkedfromanywhereelse'. 2004-06-02 18:23:24 +00:00
moodler 41bfeec2dd Ugh ... it's getting late but this is getting there ... may contain
errors and omissions ...  Please let me know!

Thanks to Eloy for getting the ball rolling on this!
2004-06-02 18:23:02 +00:00
moodler 605d1fce16 CVS Tree diagram ... started by Eloy with editing by me 2004-06-02 18:21:38 +00:00
mchurch 1d20c825c0 Replaced some needed plugins. 2004-06-02 18:17:30 +00:00
julmis f41e824f33 QuizTimer modifications added plus necessary files along. 2004-06-02 18:03:05 +00:00
julmis 2d9b4f4bf5 print_timer_selector function added for QuizTimer 2004-06-02 18:00:12 +00:00
julmis 9cc93eb3a5 Time limit help file added. 2004-06-02 17:59:01 +00:00
julmis 15a51f5b06 Time limit strings added. 2004-06-02 17:57:32 +00:00
moodler 2783162cbd Centralise summary box 2004-06-02 13:21:47 +00:00
moodler 39fcb981b8 Wiki module, copied from contrib/wiki.
I've left out stuff that didn't seem necessary ... including a lot
of the Wiki plugins which were quote large... I'm not sure if this
is currently working ... I'm about to try it out.
2004-06-02 12:45:55 +00:00
moodler fdd1eee7e6 Wiki language file (seems incomplete?) 2004-06-02 12:44:04 +00:00
moodler fd5d3da168 Wiki help files in English (I did some editing for grammar etc) 2004-06-02 12:43:21 +00:00
defacer 7b38bfa6fd More changes to time calculations. Now they are done as indeed the prophet Martin
foresaw that they could be, that is simple and elegant. The previous solution did the
job I guess, but it was based on a naive approach...
2004-06-02 11:21:14 +00:00
barias 49d7f14022 Latest updates 2004-06-02 09:27:45 +00:00
defacer 9d567178e2 Fixed a bug: up till now, day boundaries were calculated modulo 86400, which
is correct only for GMT+0 timezones. Fixed it in upcoming events displays to
separate days as they are in the user's timezone, will continue to pursue this.
2004-06-02 09:15:07 +00:00
defacer 08cebf196e Fix all requires() to use absolute paths (Sun boxes have problems with relative
paths, it seems). Also, login is required to view the calendar of any course
other than the site.
2004-06-02 08:13:26 +00:00
barias c46b74a1c2 Latest updates 2004-06-01 19:11:45 +00:00
moodler bf04f911b9 One character fixes bug 1513 2004-06-01 17:53:39 +00:00
defacer f52f741334 Fix for bug 1503:
Things are now easier for visitors and guests. We should do some regression
testing though: if you are a visitor or a guest and then you login (either
after browsing the site or immediately by typing a Moodle URL in the location
bar, without having a Moodle session at all), do user events always get shown
correctly? Does anything abnormal happen to the courses filter?
2004-06-01 14:12:26 +00:00
defacer df9e0f89e3 Fixes for bug 1485:
Now the site has blocks by default. Also, block panel width is restricted even
if there are no blocks to display.
2004-06-01 13:47:55 +00:00
defacer 10e5d7c19b Corrected another silly mistake: extra comma before closing parenthesis. 2004-06-01 13:02:13 +00:00
defacer 61ddaf3bce Removed useless stuff 2004-06-01 12:02:13 +00:00
defacer 4e60e777a3 As per Gustav's suggestion in bug 1507, changing the default behavior for
blocks to make them available in the site page, too. Also, minor spelling correction.
2004-06-01 10:45:12 +00:00
defacer 9cb8879b6b Minor changes, Martin's fix for bugs 1502, 1184 (duplicated) confirmed. 2004-06-01 10:40:20 +00:00
defacer d658167fb5 Tiny fix for forum_cron() to suppress a warning. 2004-06-01 10:10:25 +00:00
defacer aaf7a9dc9f Email digest feature: Last and most important, the changes to forum_cron() 2004-06-01 10:09:26 +00:00
gustav_delius c293c07a5e Make sure course list block is never empty. 2004-06-01 09:47:28 +00:00
gustav_delius a5dc1376bf Use 'savechanges' on button when editing post. 2004-06-01 08:36:47 +00:00
defacer 57728105f6 Email digest feature: user setting 2004-06-01 07:59:35 +00:00
defacer 5858f3196c Email digest feature: addition of admin setting 2004-06-01 07:51:47 +00:00
andre_bln 14286d9608 new version 2004-31-05
:w
2004-06-01 07:47:25 +00:00
defacer c9114c35e5 Fix for dumb error (extra comma) 2004-06-01 07:45:18 +00:00
defacer 5bb8c192b1 Moving some stuff to forum/db where they belong... (sorry!) 2004-06-01 07:39:27 +00:00
defacer 8d24137466 Email digest feature step 2: Slight additions to datalib queries, fixed warnings in html2text 2004-06-01 07:28:14 +00:00
defacer cc21211e58 Email digest feature step 1: Database schema and upgrade 2004-06-01 07:20:02 +00:00
barias b90fee81c9 Latest updates 2004-06-01 07:03:07 +00:00
moodler b8933ec3c2 Unset $course to avoid language problems 2004-06-01 06:49:11 +00:00
gustav_delius 3705299bf4 changed language string 'savechanges' to 'posttoforum' on post.html 2004-05-31 18:58:42 +00:00
barias 3830afb0bb Latest updates 2004-05-31 13:06:13 +00:00
martignoni 32798c2030 Adding strings for duplication 2004-05-31 08:47:02 +00:00
gustav_delius 0671ba130f used is_internal_auth() to decide if to show "Add new user" link 2004-05-31 08:20:13 +00:00
moodler aba70b6569 Added Smarty 2.6.2 2004-05-31 05:29:11 +00:00
moodler 50e4a15e6e Replace -> with >> in the navigation ... this will be replaced in
the new template scheme for a more dynamic template that you pass
an array to, so this is really just a reminder for later.
2004-05-31 05:21:58 +00:00
moodler c9b05b32fa Some fixes to HTML quoting in calendar popups.
Fixes bug 1502.
2004-05-31 05:11:22 +00:00
moodler 558a1ede02 translated to pt_br by athanazio may-2004 2004-05-31 03:14:05 +00:00
moodler 14eef46494 Undoing Gustav's checkin from yesterday ...
Sorry, Gustav, but all those record_exists calls were too much overhead.

It's better done by a check in the delete page...  this will also
account for the case where a reply has been made since the post
was displayed on screen.
2004-05-31 02:42:26 +00:00
gustav_delius 6c2eeff9b9 language strings for duplicating 2004-05-30 23:28:20 +00:00
gustav_delius d33a2a6f39 It is now possible to duplicate a course module. See http://moodle.org/mod/forum/discuss.php?d=8468 2004-05-30 23:09:21 +00:00
gustav_delius 87f3a895f7 Removed the requirement that the admin has to enter a user desription when creating a new account, see bug 778 2004-05-30 21:55:44 +00:00
martignoni 33f1e54318 Three new strings 2004-05-30 21:22:04 +00:00
martignoni 49cab26709 New file added 2004-05-30 21:16:42 +00:00
gustav_delius aed646106b "Add a new user" link near top of page, see bug 713 2004-05-30 21:12:09 +00:00
gustav_delius f7f2ff6dba Only editing teachers are allowed to unenrol students 2004-05-30 20:54:58 +00:00
gustav_delius 62b8075632 Changed participants list for site couse, see http://moodle.org/mod/forum/discuss.php?d=8455 2004-05-30 18:46:42 +00:00
barias 38b4f58d6c Latest updates 2004-05-30 18:08:39 +00:00
gustav_delius 67f0d7a00a Put mistakenly removed string back 2004-05-30 17:43:50 +00:00
gustav_delius cf84431be0 Can now break off posts into a new discussion, see bug 673 2004-05-30 17:25:26 +00:00
gustav_delius 4c62719001 Delete links on forum post now only show if post has no children 2004-05-30 14:42:04 +00:00
gustav_delius c4f8793ece Fixed relative links in People block so that they work on the site home page. 2004-05-30 11:43:29 +00:00
gustav_delius c4936225c4 Fixed breadcrumbs and some of the many undefined variables notices 2004-05-30 11:24:00 +00:00
gustav_delius 761b1f8469 Fixed relative links in recent activity, see bug 1497 2004-05-30 11:22:06 +00:00
gustav_delius c96a69542a Removed spurious characters from start of file (introduced by myself) 2004-05-30 10:48:11 +00:00
gustav_delius 58bed599f3 Configuration option for block_course_list to determine what admin sees 2004-05-30 09:01:56 +00:00
martignoni a8a4d55b1f Some more improvements 2004-05-30 08:35:42 +00:00
martignoni 717f559251 Trying to improve treatment of feminine/masculine forms 2004-05-30 08:31:19 +00:00
moodler 4588b7d2e5 Undoing Gustav's checkin ... the admin needs to see all courses 2004-05-30 05:52:26 +00:00
gustav_delius fad21b7c7b Also admin now sees only his or her own courses in the "My courses" block. Fixes bug 526 2004-05-30 01:02:39 +00:00
stronk7 2ed07cc70a Solved bug 1491 in all the "linking" filters.
(http://moodle.org/bugs/bug.php?op=show&bugid=1491)
Bugfix 001
2004-05-30 01:00:16 +00:00
gustav_delius 0ae7e6f40e Guest user now has Login link instead of Logout link, see http://moodle.org/mod/forum/post.php?reply=40214 2004-05-30 00:55:48 +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
gustav_delius c589ed7fd8 A hack to fix bug 1488. html editor needs $course object defined. Should perhaps be solved differently in the long run. 2004-05-29 16:24:38 +00:00
gustav_delius f1020d0dd2 section links now preserve focused view, see http://moodle.org/mod/forum/discuss.php?d=7648#37555 2004-05-29 10:40:07 +00:00
gustav_delius e48550e0b8 fixed empty boxes bug reported in http://moodle.org/mod/forum/discuss.php?d=8432 2004-05-29 10:35:57 +00:00
moodler 99a9b2d4c3 External resources where we don't know the type are given the web icon 2004-05-29 06:24:23 +00:00
moodler c39162dc53 Web icon for external resources where we don't know the type 2004-05-29 06:23:49 +00:00
moodler facf75c18c Fixed activity blocks for social format and site format so that they
- display icon properly when moving items

  - display custom icons  (eg on resources)
2004-05-29 06:22:30 +00:00
moodler a844bc045d Postscript files show pdf icn 2004-05-29 05:07:34 +00:00
defacer 22931cf410 Bugfix: blocks with no content at all show up as shadows when editing. 2004-05-28 13:57:09 +00:00
defacer 89adb17442 Merging the changes from 1.4 dev branch (site index blocks + various bugfixes) 2004-05-28 10:53:54 +00:00
defacer 87722d4f2c A couple of new CSS rules to make the course summary block display the same as before. 2004-05-28 10:48:59 +00:00
carlesbellver 07ba070b5c *** empty log message *** 2004-05-28 06:44:26 +00:00
mudrd8mz 18dd5216ff Updated for release 1.3 2004-05-28 01:18:31 +00:00
moodler f57cd38b82 Use forcelogin on site files if it's defined bug 1486 2004-05-28 01:17:37 +00:00
stronk7 6bda940380 Small change to make it a bit more consistent. No significant. 2004-05-27 23:43:08 +00:00
stronk7 f878539f42 Applied some changes to filter (not commited before 1.3 due its proximity).
I think it solves Bug 1487 and makes things a bit clear in this filter...
(http://moodle.org/bugs/bug.php?op=show&bugid=1487)
2004-05-27 23:32:55 +00:00
martignoni dced277fc3 Link to SCH 2004-05-27 15:59:32 +00:00
defacer b88f700492 Fixed a bug: blocks without db functions caused the upgrade process to become stuck. 2004-05-27 14:16:27 +00:00
defacer 1b6734b959 file block_site_main_menu.php was initially added on branch Moodle_14_dev. 2004-05-27 13:47:40 +00:00
bobopinna b624292241 Fixed a time format 2004-05-27 13:19:14 +00:00
bobopinna fc1b266304 Fixed some undefined variable 2004-05-27 12:44:11 +00:00
anvergara 4ad5a495bb Updated versions modifying resource and dialogue 2004-05-27 12:18:29 +00:00
martignoni 8cbac33898 Some tweaks 2004-05-27 11:21:39 +00:00
barias 449d9341ba Latest updates 2004-05-27 08:16:18 +00:00
moodler 520491b633 FIxed line feeds 2004-05-27 05:45:30 +00:00
moodler 798966d8e3 New Flash gif from Chardelle 2004-05-27 04:30:41 +00:00
moodler 51f9729eb0 Fixed missing style 2004-05-27 01:30:30 +00:00
barias 089a1ab754 Latest updates 2004-05-27 00:22:58 +00:00
barias ee13686d51 Latest updates 2004-05-26 22:25:16 +00:00
martignoni 98ebce1ca4 Slight improvements 2004-05-26 21:33:02 +00:00
julmis b95cfe0a8e Bug fix #1465 2004-05-26 18:26:50 +00:00
stronk7 bc706aeb5f Now make_upload_directory() is used, avoiding dependencies to
backup/lib.php. I think that, gradually, I'll can modify the
backup/restore process to use this "core" function everywhere!!
Bug 1467.
(http://moodle.org/bugs/bug.php?op=show&bugid=1467)
2004-05-26 16:12:58 +00:00
moodler 555fd3f912 Some updates 2004-05-26 14:24:13 +00:00
moodler 468c0329e1 Standard locale should be it_IT 2004-05-26 14:23:44 +00:00
moodler 70c8fa117c RSS requires backup/lib.php currently ... Eloy, see bug 1467 :-) 2004-05-26 14:14:43 +00:00
carlesbellver 620e74b3d7 *** empty log message *** 2004-05-26 11:28:13 +00:00
defacer 7bd1677c72 Fix for bug 1462:
Warnings removed.
2004-05-26 11:03:27 +00:00
bobopinna 4520ce72e6 First translation 2004-05-26 08:48:27 +00:00
bobopinna abd896ecb1 Added last minute features of Moodle 1.3 2004-05-26 08:39:36 +00:00
bobopinna a646914388 First traslation 2004-05-26 08:34:14 +00:00
bobopinna cf2a666ca5 Added last features of Moodle 1.3 2004-05-26 08:33:20 +00:00
bobopinna f48e63807c Fixed a typo 2004-05-26 08:07:14 +00:00
barias 0b760a1fa9 Latest updates 2004-05-26 07:43:41 +00:00
koenr 77deae60f0 pollishing translation 2004-05-26 05:49:53 +00:00
barias 54170e6030 Latest updates 2004-05-25 21:04:36 +00:00
gustav_delius cb9a975f95 fixed bug 904 2004-05-25 20:03:45 +00:00
moodler 5ba9f0850f people --> personen 2004-05-25 18:50:40 +00:00
paca70 efc2952731 Updates 2004-05-25 16:39:32 +00:00
carlesbellver f0c40f6f32 *** empty log message *** 2004-05-25 11:48:33 +00:00
martignoni 8dbe94444a Typo corrected 2004-05-25 10:42:36 +00:00
anvergara 6ba3149658 Added to CVS for the first time 2004-05-25 10:33:42 +00:00
defacer 4153708fd9 If a block forgets to set the footer, we won't get a warning in debug mode. 2004-05-25 10:01:41 +00:00
defacer 8147ca0638 Fixing a harmless warning in debug mode. 2004-05-25 09:49:49 +00:00
moodler d50e5edb2e Target on link (so installers don't get distracted) 2004-05-25 09:01:37 +00:00
moodler f5df1e477d Link to GSN 2004-05-25 08:58:42 +00:00
moodler 26184ba69a Fix for bug 1455 from PJ and me 2004-05-25 07:46:11 +00:00
bobopinna 0d07726e6e First translation version by Adriano De Vita e Marinella Ragosta 2004-05-25 07:16:38 +00:00
moodler 707fbef498 Fixed defaulting $SESSION->cal_show_user 2004-05-25 06:36:09 +00:00
moodler af62781bca FIxed defaulting $SESSION->cal_show_user 2004-05-25 06:35:49 +00:00
koenr f84a801af1 typo 2004-05-25 06:02:47 +00:00
martignoni a1a7544cee Some updates 2004-05-25 05:35:47 +00:00
mits b98d0a175c translated some. 2004-05-25 02:31:56 +00:00
moodler b9bab4d4f4 SHouldn;t effect anything, but it seemed to fix bug 1455 - wierd 2004-05-25 02:19:46 +00:00
moodler c3f463caca Filters now work on "month" page! 2004-05-25 02:00:26 +00:00
moodler a3159a7685 OK, this is IT. 2004-05-25 01:51:01 +00:00
mits 3dc778ef6e translated some. 2004-05-24 23:56:48 +00:00
anvergara db3aae5f42 questiontypes.html added to cvs for the first time. 2004-05-24 22:49:48 +00:00
martignoni 096f061e53 Date updated 2004-05-24 21:17:38 +00:00
koenr bf905b360b filling in missing strings... 2004-05-24 21:16:14 +00:00
martignoni 3f72b15446 New file translated 2004-05-24 21:15:36 +00:00
martignoni efc1faa21e Added two configuration variables to the config page: configextendedusernamechars and forceloginforprofiles 2004-05-24 21:14:04 +00:00
stronk7 fc7b0911f2 Changed to single quotes... :-) 2004-05-24 18:14:55 +00:00
stronk7 e8bce1c806 Cambiado a comillas sencillas...:-) 2004-05-24 18:12:59 +00:00
stronk7 f7e7a51a6b Traduccion para el filtro activitynames. Incluido por Eloy para que
salga en la 1.3. en unas horitas...
2004-05-24 18:06:58 +00:00
moodler 19f671d373 Fixed quotes in titles ... well nearly. 2004-05-24 17:58:46 +00:00
stronk7 341d554fdb Avoid linking to labels and to hidden activities... 2004-05-24 17:43:11 +00:00
stronk7 45a1ad99a2 Allow every activity name in texts to be linked to the
original activity.
Bug 1454.
(http://moodle.org/bugs/bug.php?op=show&bugid=1454)
2004-05-24 17:30:56 +00:00
moodler a55cf56f1b Some updates 2004-05-24 17:28:07 +00:00
moodler 0612f40d51 Fixed some short tags ... see bug 1376 2004-05-24 16:18:40 +00:00
bobopinna e991f7a80e First release of old release doc 2004-05-24 15:03:00 +00:00
defacer d56d4e230f Some speed improvements for the calendar month blocks. 2004-05-24 14:45:02 +00:00
defacer 43db620d22 Fixed stupid bug I put in a couple of hours ago. 2004-05-24 14:25:04 +00:00
defacer c3553a553f Small bugfix: when entering the calendar with "on-the-fly" login, the breadcrumbs
now display correctly. Even though there isn't normally any link that allows you
to do this.
2004-05-24 14:20:32 +00:00
koenr 258388f55a initial translation by Hans de Zwart 2004-05-24 13:56:51 +00:00
bobopinna 066cb9ee62 Updated to Moodle 1.3 final release 2004-05-24 13:45:47 +00:00
bobopinna c08e138afb Updated to Moodle 1.3 release 2004-05-24 13:32:45 +00:00
defacer 11b0ffe898 Adding event from day view defaults to that day for event start. 2004-05-24 12:28:38 +00:00
defacer 0d5d9de2ba Fixed a bug just introduced before in the event type selection screen. 2004-05-24 12:23:08 +00:00
defacer eb15f829b6 The filters are back with a vengeance in event.php! Coupled with the breadcrumb
course mirroring, everything works like a charm now! :-)
2004-05-24 12:12:41 +00:00
barias 94ab38a771 Latest updates 2004-05-24 12:08:47 +00:00
defacer 3756ef3d48 The course link in the breadcrumbs now mirrors the active course filter. 2004-05-24 11:40:34 +00:00
defacer 8ccc9d060f The way this was written before, it produced a warning for unregistered extensions. 2004-05-24 11:16:06 +00:00
defacer 2ef75eee2f Fixed a couple of warnings which happened if you accessed a course while
not being logged in, during the redirection to login screen.
2004-05-24 11:10:00 +00:00
defacer 2727648d55 Gotcha! The event time in day view didn't respect the user's time format
preference. Now it does.
2004-05-24 10:54:52 +00:00
defacer fbb56b9db7 Fixed a bug where editing an event did display the "duration in minutes"
stuff, but totally ignored it when submitting changes. Also, fixed one
warning in the "minutes" field.
2004-05-24 10:49:01 +00:00
barias 5e2b88c23b Latest updates 2004-05-24 10:46:42 +00:00
defacer a2e1ee6d92 Bump 2004-05-24 10:38:16 +00:00
defacer c635dcda6c Fix for bug 1451:
Now when moving to a calendar screen (technically, view.php) from a course
block, the course drop down list defaults to that course. The implementation
is OK, but I may change it (there is a faster way).
2004-05-24 10:35:43 +00:00
defacer e9584ca3e2 Fix for bug 1453:
Automatic "Re:" prefixes in forum replies now don't get chained in languages
where the "re:" string has length != 3.
2004-05-24 10:04:59 +00:00
adamtpaw cf800c27a1 First translation of calendar module. 2004-05-24 09:54:13 +00:00
defacer 40448bc24d Removed some notices with uninitialized variables when adding a new event. 2004-05-24 09:52:57 +00:00
defacer 227bc46b51 Preliminary fix for bug 1451 (needs some more work).
Also a couple of notices removed.
2004-05-24 09:20:01 +00:00
moodler cdac797c5d Moodle will look for language files within modules as a last resort.
eg   moodle/mod/somemodule/lang/en/somemodule.php
2004-05-24 09:19:59 +00:00
moodler 205e53357c Tweaks 2004-05-24 09:00:59 +00:00
bobopinna 1e9f32fb6d First translation release 2004-05-24 09:00:18 +00:00
moodler 760bbc7926 Indonesian for Moodle 1.2 2004-05-24 08:51:20 +00:00
bobopinna e3cc5d31fb Added no user data backup 2004-05-24 08:43:29 +00:00
bobopinna 8b8c350ae4 Translated by Andrea Bicciolo 2004-05-24 08:31:19 +00:00
moodler 5ec98a94c3 Latest settings in config-dist.php (removed some) 2004-05-24 07:43:09 +00:00
moodler c72a2ab824 Added two configuration variables to the config page.
configextendedusernamechars

   forceloginforprofiles

These were already in the config-dist.php
2004-05-24 07:39:54 +00:00
moodler a7b44978a3 Changed the default default blocks so that calendar block is not shown
(for CPU issues) and upcoming_events is now shown on the right between
news and recent activity

The default blocks can be overridden by a setting in config.php

   $CFG->defaultblocks


See:  http://moodle.org/mod/forum/discuss.php?d=7784&parent=39296
2004-05-24 07:24:36 +00:00
bobopinna 478ef4492b Fixed two lost PHP short tags 2004-05-24 07:15:40 +00:00
moodler 5e8eb9e2f6 Remove override of fullname order .... not sure why it was there....? 2004-05-24 06:15:22 +00:00
koenr f93956e508 initial translation by Koen Roggemans 2004-05-24 06:14:20 +00:00
koenr a13074149c filling in missing strings... 2004-05-24 06:13:12 +00:00
koenr d70fe20621 adding new resource-type. 2004-05-24 06:12:15 +00:00
moodler cd6469cb4d More aligned calendar controls on courses without groups 2004-05-24 05:13:34 +00:00
moodler 41d30a8e52 Fixes to icons in upcoming events and popups 2004-05-24 03:39:05 +00:00
moodler c535952e9a Tweaks to popups 2004-05-24 02:54:41 +00:00
moodler deb2b89636 Just about there 2004-05-24 02:42:43 +00:00
moodler 8c165fe91a Fix for bug 1449
Hidden events are now never shown.

There is a new parameter in calendar_sql_where which can show them if necessary.
2004-05-24 01:44:48 +00:00
moodler 3cb9ee3949 Fix for bug 1442
- notices
   - course is now properly passed to calendar_filter_controls from block
2004-05-24 01:28:28 +00:00
stronk7 d980b5da22 Now only approved entries are showed in RSS feeds... 2004-05-24 00:10:38 +00:00
barias f05ded416f Latest updates 2004-05-23 22:42:21 +00:00
gustav_delius f81be26aee Fixed bug 1443: In the case of a "Teacher Forum" the "Subscribe everyone to this forum" button now only subscribes teachers. 2004-05-23 20:46:29 +00:00
gustav_delius 52c4ef835a Changed readme text because copying of theme folder is no longer needed as theme is now in main CVS 2004-05-23 20:23:19 +00:00
barias ae86d0286d Latest updates 2004-05-23 19:51:47 +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
gustav_delius 7f21ed0a08 Changed example for dirroot which must not contain capital letters 2004-05-23 18:55:20 +00:00
stronk7 ea596d330b Now integers < 1000 in conceps and aliases are avoided in the filter. Bug 1446.
(http://moodle.org/bugs/bug.php?op=show&bugid=1446)
2004-05-23 18:54:01 +00:00
barias 6e6cf9f2ea Latest updates 2004-05-23 18:24:26 +00:00
stronk7 d1aebae82e Now only integers < 1000 are avoided... Bug 1441
(http://moodle.org/bugs/bug.php?op=show&bugid=1441)
2004-05-23 18:20:50 +00:00
moodler 421b0337b6 Fix to allow ordinary users to edit events. :-) 2004-05-23 16:21:40 +00:00
martignoni 035b8529b0 Small correction 2004-05-23 15:52:58 +00:00
barias ded1d37523 Latest updates 2004-05-23 15:23:37 +00:00
barias ecc8258203 Latest updates 2004-05-23 14:21:37 +00:00
barias c0e4bbac82 Latest updates 2004-05-23 12:10:53 +00:00
barias e58e1e43ed Last updates 2004-05-23 11:59:48 +00:00
paca70 b61107dd34 Corrected some typos 2004-05-23 11:55:43 +00:00
stronk7 bbb9be5c9f Avoid filtering names whose lenght is 2 or less chars.
Bug 1441.
(http://moodle.org/bugs/bug.php?op=show&bugid=1441)
2004-05-23 11:49:58 +00:00
paca70 affee369dc updates 2004-05-23 11:36:21 +00:00
moodler 9958a08cfa Calendar fixes (this was the last thing I wanted to fix for 1.3).
- events are now shown in a consistent way
  - upcoming events and days are calculated with the same function
  - it's now not possible to edit module events directly
  - various tidying up
2004-05-23 11:05:45 +00:00
moodler b1049b0bdd Added styles for full event display 2004-05-23 10:29:46 +00:00
stronk7 13cbc82969 Bump. 2004-05-23 10:26:34 +00:00
moodler 565340c670 Simpler way to update events for a quiz 2004-05-23 10:25:46 +00:00
moodler f96831ee67 Now the same colours as standard 2004-05-23 06:38:48 +00:00
anvergara 82ede06bbe Added to the CVS for the first time 2004-05-22 23:31:29 +00:00
julmis b136a79771 Fixing [Bug 1427] (Better than just uncommenting :-) ) 2004-05-22 17:58:14 +00:00
moodler e60624da41 Remove forcelogin 2004-05-22 17:34:26 +00:00
julmis b7f630f2d2 Fast fix on _closeOnEsc funtion (uncommenting funtion calls) 2004-05-22 17:07:55 +00:00
moodler a18ebcc3c0 Blocks admin to bottom 2004-05-22 09:18:12 +00:00
moodler 9743a982b3 Print Blocks admin down the bottom ... hopefully less
confusion for new teachers just trying to add activities

Also, the new blocks appear there anyway
2004-05-22 09:17:06 +00:00
moodler 0948ab2609 Display README.html as well 2004-05-22 08:53:58 +00:00
moodler 7387fa2620 Improved Standard Logo theme now actually uses the standard logo. ;-)
Replacing the logo is as easy as dropping a logo.jpg in the Moodle
home directory OR in the site files
2004-05-22 08:53:22 +00:00
martignoni 115b815f93 New ressource added: Directory and some tweaks. 2004-05-22 08:46:35 +00:00
moodler f722b73c88 Print a theme README.txt if there is one. 2004-05-22 08:04:10 +00:00
moodler 2367e13d6c LOTS of theme fixes for calendars etc 2004-05-22 07:53:40 +00:00
moodler e71d0740a8 Added some missing icons 2004-05-22 07:32:27 +00:00
moodler 552064d391 Some improvements in display
I'm not finished yet, just checking in to continue on another server
2004-05-22 07:14:49 +00:00
moodler 85431a207f This is a much better version of overlib called overlibmws 2004-05-22 07:13:31 +00:00
moodler c488e669cc Updated standard styles for new calendar popups 2004-05-22 07:03:55 +00:00
moodler 27a353e6f9 Prevent blank entries 2004-05-22 05:13:08 +00:00
moodler 2d88c72afa Better fix for courses menu 2004-05-22 04:32:35 +00:00
moodler ed05bdfa9d Some cleanups for the courses menu 2004-05-22 04:28:36 +00:00
moodler b5b90f269d Removed a warning message 2004-05-22 04:02:02 +00:00
moodler e23ef951fa Fixes for the problem creating directories.
It was just a missing $CFG, but I got rid of scorm_mkdirs to use
the moodlelib equivalent instead
2004-05-22 04:00:34 +00:00
moodler 8a45aa5a95 Added the Directory type 2004-05-22 01:53:03 +00:00
martignoni 8fc9eb4bc3 Removed obsolete string 2004-05-21 23:19:11 +00:00
stronk7 e30a276249 Now paging will mantain the "fullsearch" option.
Bug 1438.
(http://moodle.org/bugs/bug.php?op=show&bugid=1438)
2004-05-21 19:24:23 +00:00
stronk7 e2ba5060d4 Escape "/" char in preg_quote(). Bug 1436.
(http://moodle.org/bugs/bug.php?op=show&bugid=1436)
2004-05-21 18:56:21 +00:00
anvergara c7afb2a834 Added to cvs 2004-05-21 17:23:59 +00:00
anvergara b4b9e5aa2b Translated into 'es' 2004-05-21 16:16:39 +00:00
moodler a5daf57cdc Remember timeaccess settings even after returning from logging as
another person
2004-05-21 15:10:47 +00:00
martignoni 46a6505fd5 New string 'Score' 2004-05-21 14:29:41 +00:00
defacer 515e49edfb Removed obsolete strings 2004-05-21 13:52:32 +00:00
defacer f10f1b7bdc * Removed one obsolete function
* Changed the expired events' color to dimmed
* Added "new event" button in upcoming events screen
* Small improvement (more robust) in redirection from set.php to upcoming events
2004-05-21 13:51:02 +00:00
defacer f5e99d07a0 Removed obsolete class 2004-05-21 13:47:15 +00:00
moodler 5ba21e557e Workshop now supports calendar events for the deadline date 2004-05-21 13:20:36 +00:00
defacer ab9f24ad00 Small fix (added method attribute to form) and some comments for the future 2004-05-21 13:07:11 +00:00
defacer 8792061c55 Modified to use popup_form() instead of custom code 2004-05-21 13:03:59 +00:00
defacer dfad5bde30 Different icons for different event types, shamelessly stolen from moodle.org 2004-05-21 12:28:42 +00:00
defacer 09462fcadc Small polishing change: the "go to calendar" link takes you to the
upcoming events screen.
2004-05-21 12:03:06 +00:00
defacer 4c479acb6c Bump 2004-05-21 11:25:56 +00:00
defacer f434283f4f Bye bye event details view... 2004-05-21 11:24:22 +00:00
defacer 0784eb7ef1 Now we can get a list of the blocks being on display in the course page.
Could be used by one block to detect the existence of another, for example.
2004-05-21 11:06:49 +00:00
defacer c5507e52f4 Small addition for the future: blocks will be able to define their own
HTML attributes.
2004-05-21 10:59:40 +00:00
defacer 34bf3ad4f3 Lots of usability improvements and some bugfixes:
Fixed wrong redirection after changing filters for all calendar screens
Fixed course selection menu to work without javascript
Moved course selection menu to the header, and added it to all screens
All screens now conform to the selected course in the menu
Small improvements in the way guests are handled
2004-05-21 10:54:46 +00:00
moodler 14fcda781a Tiny fix to improve display of date ranges 2004-05-21 05:49:37 +00:00
moodler d8bb005603 Removed referer for site events ($site is not a valid global anyway) 2004-05-21 05:35:54 +00:00
moodler c5163bfdbe Putting in Bobo's latest changes (from the contrib version) 2004-05-21 01:42:17 +00:00
moodler e511b4cff9 New string from Bobo 2004-05-21 01:36:49 +00:00
stronk7 43d2c51413 Avoid one more notice... 2004-05-20 23:07:59 +00:00
stronk7 1c908d9b12 Solved one bug causing category->name to be cleared
when editing them.
2004-05-20 23:04:23 +00:00
martignoni 82433dac1e Updated for release of 1.3 2004-05-20 20:08:31 +00:00
stronk7 165278015e Solve some notice with debug = on.
Thanks to skodak. Bug 1405.
(http://moodle.org/bugs/bug.php?op=show&bugid=1405)
2004-05-20 19:51:23 +00:00
martignoni cdc3de7e12 Some fixes 2004-05-20 19:46:40 +00:00
martignoni 6947952b2f Adding SCORM module translation 2004-05-20 19:37:33 +00:00
martignoni 2783cef1c6 New strings for backup 2004-05-20 19:30:26 +00:00
martignoni 59c776eac1 New string 'eventsfromcourse' 2004-05-20 19:21:36 +00:00
stronk7 e84ce5c8ca Avoid some notices in edit page (debug=on)
:-)
2004-05-20 19:04:42 +00:00
stronk7 e1e108d41d Avoid one notice in course page (debug=on)
:-)
2004-05-20 19:01:42 +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 b4d3bed714 Now in glossary module, preferences->backup_users = 2 (none users) has precedence
over include teacher entries in the backup. Used to support the glossary module
in "none users" backups. See bug 1420.
(http://moodle.org/bugs/bug.php?op=show&bugid=1420)
2004-05-20 18:19:07 +00:00
moodler 43ef6722c7 Tweak to calendar event (full display) column widths 2004-05-20 17:40:11 +00:00
stronk7 a3a1b66d14 Added "includenoneusers" string 2004-05-20 17:39:40 +00:00
moodler a85dba32ba Transparent edges to my SUGGESTED new SCORM icon. 2004-05-20 17:32:59 +00:00
moodler 1b1e79f55c Use the new images in pixpath 2004-05-20 17:30:20 +00:00
moodler 0acd5afd30 Event icons for different types ... CURRENTLY SAME PICTURE 2004-05-20 17:27:25 +00:00
stronk7 520b115d97 Added the backupnoneusersinfo string to inform users about the
consequences of select "None Users". Please, check it!!
2004-05-20 17:18:02 +00:00
moodler 98ca59f6e1 Putting SCORM into maintree CVS, to make it easier to test.
It's getting pretty useful now!
2004-05-20 17:06:19 +00:00
stronk7 64d6c09b7a Now the Admin/Variables and Admin/Backup pages show a
warning if XML support isn't enabled.
Bug 1432
(http://moodle.org/bugs/bug.php?op=show&bugid=1432)
2004-05-20 16:05:29 +00:00
defacer 9a2ba13e51 One more bugfix introduced just now: enabling course events shouldn't
enable site events, too.
2004-05-20 15:36:20 +00:00
defacer f26c1535b6 One new string for the calendar, used in the latest changes. 2004-05-20 15:29:01 +00:00
stronk7 2f29ee130c Now scheduled bakup checks for required XML functions to work.
Bug 1432. Closed now... :-)
(http://moodle.org/bugs/bug.php?op=show&bugid=1432)
2004-05-20 15:19:19 +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
defacer 43c3ffbe22 Major calendar overhaul:
1. Much better and more intuitive handling of filters.
2. Simplified user interface for guests.
3. Feature request implemented: bug #1431
4. A number of significant bugfixes
2004-05-20 15:16:42 +00:00
bobopinna c0d7749124 Last update to Moodle 1.3 Nearly Ready 2004-05-20 12:10:57 +00:00
bobopinna 9d5287f29f First translation 2004-05-20 11:31:54 +00:00
defacer e1ce345e40 Fix for bugs 1423, 1424 (duplicated):
Now hiding/showing course events in the course view works once more.
Ready for a release, it seems....
2004-05-20 10:02:49 +00:00
defacer 250712fd7f Minor modification to the way the course event filter works
(same functionality but more robust now).
2004-05-20 09:58:14 +00:00
moodler 5acb92ac9f Italian translation for SCORM module 2004-05-20 09:55:52 +00:00
moodler 929f4875ab Adding SCORM module 2004-05-20 09:55:01 +00:00
moodler 9a0353c0d4 Shorter vrsions of days 2004-05-20 08:41:49 +00:00
moodler 28d548eb44 Latest updates 2004-05-20 08:24:03 +00:00
stronk7 30f649342c Bump to 1.3 Final. Ready...
(only bug 1420 ) remains in process...
2004-05-20 08:22:15 +00:00
martignoni f951727ebf New string 'attemptsexist' added 2004-05-20 07:58:53 +00:00
martignoni b436485f09 New string for opening quizzes 2004-05-20 07:57:29 +00:00
martignoni dedcd2e973 Added a new string for the new scales.php alternative. 2004-05-20 07:55:05 +00:00
moodler 6b7a10329c Updated for release of 1.3 2004-05-20 05:15:43 +00:00
moodler 4db1fd85e0 Metal theme from A. Chavan 2004-05-20 04:31:01 +00:00
moodler b5305428bb Some fixes for CVS docs 2004-05-20 04:12:13 +00:00
moodler f0fa88f896 Latest tags file 2004-05-20 03:58:06 +00:00
moodler 0186df304d Bump bump de bump, yeah 2004-05-20 03:50:21 +00:00
moodler ae6f861d20 A problem with brackets was reported, but I couldn't duplicate it.
Just in case, I've added an escape for them.
2004-05-20 03:37:57 +00:00
moodler fcc0e250bc Just fixing the footer link on course list blocks 2004-05-20 00:55:11 +00:00
stronk7 3168c823a4 Hi !!
Solved one bug before being posted to the Bugs System. Incredible !!!
(http://moodle.org/mod/forum/discuss.php?d=8089)
:-D
2004-05-19 23:34:51 +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 4b92953150 Patched file. Bug 1425 closed.
(http://moodle.org/bugs/bug.php?op=show&bugid=1425)
2004-05-19 07:12:40 +00:00
moodler 52b201eeb5 Teacher forum never has groups 2004-05-19 06:43:22 +00:00
moodler 6cd48cb119 I've recoded Farsi from Numeric Character References to Windows-1256
(it was never actually UTF!!)
2004-05-19 05:11:47 +00:00
moodler bd76032e1b Fixed the link I just added 2004-05-19 03:52:34 +00:00
moodler 56215ed40f If a quiz has been attempted and the teacher is editing the quiz,
then let them know about the attempts.

bug 321

Thanks, Bernard!
2004-05-19 03:22:21 +00:00
moodler a601728c8d Fix for BUg 320 from Bernard Boucher 2004-05-19 02:53:03 +00:00
stronk7 b66dcd725d Fixed bug avoiding teachers create new scales...
NEED BUG 1425 SOLVED!!
(http://moodle.org/bugs/bug.php?op=show&bugid=1425)
2004-05-18 17:08:41 +00:00
moodler 4b4d25fa36 Suppress some errors in set_time_limit ... (these scripts aren't used yet) 2004-05-18 14:16:34 +00:00
moodler 1bf4c86205 Suppress warnings on set_time_limit 2004-05-18 14:14:47 +00:00
moodler a71bfa1c78 Supress errors on set_time_limit() for servers with safe mode restrictions 2004-05-18 14:12:21 +00:00
moodler d5f286f1aa A fix from boman in bug 1421 that allows the script to be
run from anywhere on the command line in PHP > 4.3.0.

ie:

   php /some/dir/moodle/admin/php.php

   ... now works again
2004-05-18 13:38:58 +00:00
moodler ffdd209ad2 Use fullname() functions for quiz reports 2004-05-18 13:31:37 +00:00
defacer 4e17c6f39e Fix for bug 1416:
Now the module icon is shown before the event name in the mini-month tooltips.
Maybe this would be better with the module name instead, but I don't know.
Comment in the bugtracker if this isn't what we want.
2004-05-18 07:51:46 +00:00
moodler 6be91aab91 Changed some CSS to font tags, so that IE looks more consistent 2004-05-18 07:10:17 +00:00
moodler cb1c64a821 New string for opening quizzes 2004-05-18 04:22:34 +00:00
moodler a796d0b8c3 Don't show the replies column when no replies are allowed - it seems to
upset some people.
2004-05-18 03:15:32 +00:00
moodler d31262021a Minor tweaks I forgot to check in from a long time ago 2004-05-18 03:14:01 +00:00
julmis 5ac539aedb Removing select_color.html 2004-05-17 22:57:08 +00:00
stronk7 9c00263349 Completely rewritten scales interface. It allows to delete unused
scales, edit and move them between custom and standar (only admins).
Editing teacher can modify only custom scales.
Bug 1223.
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
Please, test and decide...
2004-05-17 22:19:23 +00:00
stronk7 8e82f5ac4f Added a new string for the new scales.php alternative. Bug 1223
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
2004-05-17 22:08:42 +00:00
moodler b2a3cd2d24 Quizzes with long periods (longer than 5 days) are now handled
in the calendar as two separate events ... one for open and one for close

bug 1402
2004-05-17 17:04:01 +00:00
moodler 36eb856f04 Delete events when activity is deleted 2004-05-17 16:24:19 +00:00
moodler d6533f314c Strip tags from Resource names before filtering bug 1418 2004-05-17 16:04:05 +00:00
moodler d89c6578a5 Fix resource names properly 2004-05-17 15:36:47 +00:00
moodler 1c3abdb092 SHow event name in upcoming events (not activity name) bug 1415 2004-05-17 14:29:55 +00:00
martignoni 29114b96f2 New string for Resource auto-linking filter 2004-05-17 09:58:29 +00:00
martignoni 4288d6d76b New string 'Edit files' 2004-05-17 09:56:17 +00:00
defacer 65b0e53770 Fix for bug 1194:
Now forum_print_user_discussions does not show discussions in hidden
forums, unless you are an an editing teacher.

** NOISY DIFF WARNING **
I don't know why this happens, but the only changes are in function
forum_print_user_discussions (10 lines or so).
2004-05-17 09:31:06 +00:00
defacer b1bcd540f0 Fix for bug 1323:
When the admin is logged in as a different user, user events are shown
correctly in the calendar.

Also, fixed a very-recently-introduced bug which appears to have escaped
notice so far.
2004-05-17 09:07:05 +00:00
defacer b1295c5e21 Random refinements. 2004-05-17 08:54:23 +00:00
moodler d034765aeb Added a line to disable this function:
HTMLArea.prototype.stripBaseURL

since it seemed to be stripping parts of URLs in some cases (bug 1411)
2004-05-17 08:04:28 +00:00
defacer 4131f3743f Fix for bug 1395:
view.php now does require_login(). Also some minor refinements.
2004-05-17 07:31:54 +00:00
moodler 7708837eff Latest files from Paula for pt_br 2004-05-17 07:10:59 +00:00
paca70 05ba8bd0d9 Postgresql uses smallint instead of tinyint. 2004-05-17 06:52:06 +00:00
koenr fed354f2ba filling in missing strings... 2004-05-17 04:32:34 +00:00
stronk7 35055d3786 Step4 done. :-) 2004-05-16 18:05:02 +00:00
julmis 1665e6c80d Changing link dialog and adding new select color dialog. 2004-05-16 16:09:23 +00:00
moodler 2d33fc00d1 Allow other Google thigns into the site too ... in particular translate.google.com 2004-05-16 14:19:35 +00:00
moodler 6f80940b1e Simpler method for recent activity .... I had problems with the other
Use last access to course if it exists, otherwise two days ...
2004-05-16 10:34:17 +00:00
stronk7 4f006bc149 Added support for CFG->forcelogin in some files. Bug 1396
(http://moodle.org/bugs/bug.php?op=show&bugid=1396)
2004-05-16 10:26:04 +00:00
moodler 8cadd23f98 Some cleaning up of the navigation bars in quizzes 2004-05-16 10:20:26 +00:00
moodler a32c99e288 To prevent notices in unusual situations (empty lang files) bug 1404 2004-05-16 09:28:41 +00:00
moodler 952b728086 New string "edit files" 2004-05-16 09:11:38 +00:00
moodler 891581dbde Add a link across to the Files area 2004-05-16 09:11:17 +00:00
moodler 16a5602cd7 1. Directory Resources now support sub directories
2.  Subdirectories in File Manager now display their total size
2004-05-16 08:52:32 +00:00
moodler d5aacf3e04 Resource auto-linking filter! Developed by Eloy - thanks! (see bug 1389) 2004-05-16 06:41:39 +00:00
moodler b7f3582008 Use overlib feedback on cloze-style questions 2004-05-16 03:14:03 +00:00
stronk7 2127fedda8 Step 2 of Bug 1223 done.
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
2004-05-16 00:36:00 +00:00
stronk7 0f1a97c2fb Step 1 of Bug 1223 done.
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
2004-05-15 23:18:24 +00:00
stronk7 9d05e26118 Now firstname and lastname fields are trimmed before saving them to db.
This should close Bug 1235
(http://moodle.org/bugs/bug.php?op=show&bugid=1235)
2004-05-15 22:18:53 +00:00
stronk7 d9ddff71d7 Change one comment. Simply. Bug 1393
(http://moodle.org/bugs/bug.php?op=show&bugid=1393)
2004-05-15 18:52:12 +00:00
stronk7 e0147c9bc7 Now entry->concept is always printed in FORMAT_MOODLE format, instead
of using the entry->format field. This should close Bug 1298.
(http://moodle.org/bugs/bug.php?op=show&bugid=1298)
2004-05-15 17:34:43 +00:00
stronk7 c2e684d6d7 One missing "</ul>" tag... 2004-05-15 17:30:30 +00:00
stronk7 7856dd5949 Opps. I forgot to commit this files yesterday... :-(
This close Bug 1370
(http://moodle.org/bugs/bug.php?op=show&bugid=1370)
2004-05-15 17:27:50 +00:00
moodler c032f72069 FIxed a recently-introduced bug preventing assignment grading bug 1390 2004-05-15 15:21:29 +00:00
moodler f24a6c878e Bump 2004-05-15 15:12:30 +00:00
moodler 9e51847a18 Slight change to recent activity calculations in RA block.
Upon login, the last access to each course is stored in the USER session
variable.

The earliest date of recent activity now shown is now the earliest of:

   - this last access time
   - the last login time

If this value is older than two days, then just use two days instead.
2004-05-15 14:58:12 +00:00
martignoni 411a96bfed Added string 'notenoughanswers' 2004-05-15 09:16:20 +00:00
martignoni 9cecd5c03b Added 'for group' string 2004-05-15 09:13:10 +00:00
martignoni cb4ceecb2e Added new strings for editor 2004-05-15 09:10:55 +00:00
moodler c9ca1fa5a1 A new option (off by default) will remove restrictions on usernames.
$CFG->extendedusernamechars
2004-05-15 07:30:31 +00:00
moodler db6450c5e4 Added new strings for editor 2004-05-15 03:21:41 +00:00
stronk7 4528ab53dd Added missing Id: cvs tag. Bug 1394
http://moodle.org/bugs/bug.php?op=show&bugid=1394
2004-05-14 19:36:39 +00:00
stronk7 187e22dbe0 Upgraded glossary to 2004051400. The process will launch an
update of entry->concept and alias->alias to trim them.
This should close bug 985 forever...
(http://moodle.org/bugs/bug.php?op=show&bugid=985)
2004-05-14 19:14:57 +00:00
stronk7 b965603072 Now, the entry->concept and alias->alias fields are trimmed
in edit, import, export, backup and restore.
To solve bug 985
(http://moodle.org/bugs/bug.php?op=show&bugid=985)
2004-05-14 18:37:30 +00:00
stronk7 5cca249645 Reverted to revision 1.8 (left join) to continue working in bug 985. 2004-05-14 17:23:42 +00:00
stronk7 26a71d0d05 Changed an "if" a bit... :-) 2004-05-14 17:07:48 +00:00
stronk7 eab0f15aa3 Now, nextexecutiontime is recalculated everytime the form is submitted to
have the time updated in the logs page.
2004-05-14 16:37:45 +00:00
martignoni 5acd402377 Correction of bad translation (connected and separated) 2004-05-14 14:47:38 +00:00
moodler e70bda424b Fixes to prevent users from creating bad quiz questions with not
enough answers in them.

Thanks to Shane Elliott (Ikawhero)
2004-05-14 14:36:32 +00:00
defacer f36e581d60 Fix for bug 1330:
Now when creating a new event you only have to select a group. And you are
always limited to the current course and its groups.
2004-05-14 14:15:24 +00:00
defacer e4bbaab3c3 Half the work done for bug 1330:
Now when creating events you don't select a course, the current course is
selected implicitly.
2004-05-14 13:49:42 +00:00
defacer 8c54cec650 Month view: NOW it's working as I wanted it to. But is that as it should work? 2004-05-14 13:39:29 +00:00
bobopinna 5547284aa4 Translated and reviewed by Claudio Maggi 2004-05-14 13:12:55 +00:00
bobopinna a8f73e5ec8 Translated by Claudio Maggi 2004-05-14 13:04:01 +00:00
defacer 9ff136e503 Behavior change, according to Gustav's remarks on the forums. Events from
courses other than the one you are browsing are not displayed in the month
views or as upcoming events, except only if you explicitly do it in the
full month view. However, if you manually go to a day with such an event and
get a day view, you will see the event. Should I find a way to hide that too?
2004-05-14 12:48:50 +00:00
defacer 1bb9d624c4 Fix for bug 1354:
(REAL fix this time! ;-)

Thanks for the report, Eloy. I now know what I was doing wrong. Because on my
dev site I have the same TZ as the server, sometimes I can make mistakes and
"get away with them". :-/
2004-05-14 07:34:10 +00:00
defacer ef3ae69ebd Martin pointed out that only editing teachers get to see all the groups. 2004-05-14 07:11:48 +00:00
moodler c40aeb21f8 Bigger textarea on site settings 2004-05-14 06:13:46 +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
koenr 69b0786b8f filling in missing strings... 2004-05-13 19:36:06 +00:00
stronk7 00f7f08d6b Now the show=concept|alias
has been decoupled into 2 sql statements to make it works
under every MySQL version.
Hope this close Bug 985 forever...
2004-05-13 19:27:52 +00:00
martignoni 5bc1a9b43c Short names for CIQ were missing 2004-05-13 18:56:24 +00:00
martignoni d0d6b9844b Added some harcoded strings in glossary module 2004-05-13 18:51:13 +00:00
bobopinna 559b772508 Translated by Andrea Bicciolo, Luca Arese, Adriano De Vita and Marinella Lagosta 2004-05-13 16:08:50 +00:00
bobopinna f105bc0077 Updated to Moodle 1.3 devel + 2004-05-13 16:01:08 +00:00
stronk7 c6e02da78f Just to be "aligned" with main Moodle version...:-) 2004-05-13 16:00:48 +00:00
defacer a8ae6b3923 Removed the "hardcoded" method to find the block name, the correct is to ask
the block itself. It was causing errors for blocks with no lang file. Also,
removed some useless commented code.
2004-05-13 12:24:11 +00:00
defacer 6c9584d1e5 Addressing bug 1384:
Now if you are a teacher in a course, you now see ALL group events in that course.
As a result, admins see group events for all courses.

Maybe it needs more work than this, though.
2004-05-13 10:32:12 +00:00
moodler b6b3deb48c Fix for Bug 1383. Added support for the Critical Incident Survey type in the Complete Activity Reports
(Shane Elliott)
2004-05-13 08:57:39 +00:00
moodler 9cc093f199 Fixed bug 1379 .... 2004-05-13 08:50:37 +00:00
moodler 35ebf5c09b Fix for the way question texts were displayed bug 1381 2004-05-13 08:46:25 +00:00
moodler f87fd4ae44 Just to make things clearer 2004-05-13 08:23:06 +00:00
moodler 406764ebeb Short names for CIQ were missing 2004-05-13 08:11:48 +00:00
moodler 58d2472072 Some fixes for confirmation emails on sites with long names
- include a HTML version of the email

   - wrap all text emails at 79 characters now, not 70
     I think quoting of text based emails on 80-character terminals
     would be pretty rare these days
2004-05-13 03:09:47 +00:00
koenr 299e75b10c initial translation by Koen Roggemans 2004-05-12 21:00:25 +00:00
koenr 94ea7d1b25 pollishing translation 2004-05-12 20:59:00 +00:00
stronk7 189bec8895 Bug 1296 solved.
Now duplicate entries are showed in all the lists. Simply I've changed
the fields order in select statements to make entryid (unique) the first.

Not detected negative consequences...ciao :-)
http://moodle.org/bugs/bug.php?op=show&bugid=1296
2004-05-12 20:39:34 +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 8e68d64a2d Added some harcoded strings in glossary module (Bug 1062)
(http://moodle.org/bugs/bug.php?op=show&bugid=1062)
2004-05-12 19:03:42 +00:00
stronk7 465e3ae35d Solved bug 985. Now "show" will work with aliases and with concepts
with and without aliases. Changed the cuery to a left join to
be able to process entries without aliases. This type of operation
should be changed to boolean queries sometime in MySQL 4!!
Test it!!
http://moodle.org/bugs/bug.php?op=show&bugid=985
2004-05-12 18:44:15 +00:00
stronk7 2a2525257f Solved bug 1378. Missing encoding in glossary/print.php
(http://moodle.org/bugs/bug.php?op=show&bugid=1378)
2004-05-12 17:59:07 +00:00
stronk7 3a4b8c823d Changed some incorrect <?= tags to <php p()...
Skodak has found more incorrect tags. See bug 1376
(http://moodle.org/bugs/bug.php?op=show&bugid=1376)
2004-05-12 16:55:48 +00:00
martignoni 591ee236ea Small correction 2004-05-12 16:36:39 +00:00
jungwirr 4358842a68 fixed bug #1380 - string in index.php 2004-05-12 15:35:37 +00:00
defacer bc1728752a Added a colon here, instead of the language strings. 2004-05-12 12:39:59 +00:00
defacer a600911257 English: added CVS $Id$ and moved a semicolon to the event edit form
Greek: added $Id$, and some strings that were missing
2004-05-12 12:28:16 +00:00
koenr 94441f7ecd initial translation by Koen Roggemans 2004-05-12 10:28:39 +00:00
koenr 6d0894afd2 filling in missing strings... 2004-05-12 10:04:42 +00:00
defacer d4950608dd Update, better and simpler handling. 2004-05-12 07:33:06 +00:00
martignoni 1b26bfc4d1 End of small changes 2004-05-12 06:20:13 +00:00
martignoni 3aa3ecdcd6 Small corrections 2004-05-12 06:00:58 +00:00
stronk7 ab892a4fa2 Modified slighty the format_text() function!!
Now, in PLAIN AND WIKI formats, the rebuildnolinktag() function
is called to rebuild:

    &lt;nolink&gt;  to <nolink> again (open and close tags)

This should avoid showing the "<nolink>" word always in this formats!!

Used to solve Bug 1232 and potentially, others...
(http://moodle.org/bugs/bug.php?op=show&bugid=1232)

Please check it because it's really a CORE change!!
2004-05-11 23:17:25 +00:00
stronk7 3eb2f7ecf8 Solved bug 1086.
Please, verify (and close) it. Patch submitted by Petr Skoda. Thanks!
I've modified some lines in formats to avoid some Notices and make
everything display more consistent. Please, test it!!
2004-05-11 22:38:45 +00:00
stronk7 701fff2145 Now, concept and aliases are not linked when
viewing entry itself. This will close bugs 1145 and 1295.
Thanks to Petr Skoda and his patch!
2004-05-11 19:59:17 +00:00
stronk7 d34b9c5f2d Now concepts are not enclosed by paragraph tags. Bug 1298. 2004-05-11 18:06:56 +00:00
stronk7 3483856eb8 Now glossary concepts are not linked (bug 1366).
Patch submitted by Petr Skoda.
2004-05-11 17:31:43 +00:00
defacer 828c4e095a Preparation for Nuke blocks integration, and relaxing of requirements for
block db upgrade scripts. We 're getting to a point where you can really
have a directory with just a single 20-line file for your block and Moodle
will do all the rest. Much like Nuke does now. That is A Good Thing! :-)
2004-05-11 16:08:03 +00:00
moodler c15cea3604 Added some checks for forcelogin on resources 2004-05-11 13:16:20 +00:00
martignoni c57c35533f New release information for Moodle 1.3 Beta (and for 1.2.1, that weren't translated yet) 2004-05-11 12:39:46 +00:00
defacer f765674612 Fix for bug 1365 (supplementary):
Here's the other half of the fix.
2004-05-11 10:36:35 +00:00
moodler 3c801a5df1 Added email2, thanks Howard! bug 1369 2004-05-11 10:33:23 +00:00
martignoni 1976f1ae39 Fixing date/time strings for french usage 2004-05-11 09:59:13 +00:00
martignoni f0855bdf53 New string "Go to calendar" 2004-05-11 09:52:44 +00:00
martignoni 65e6098258 Typos corrected 2004-05-11 09:52:08 +00:00
defacer 00341feafb Fix for bug 1365:
This one was most insidious. Usually we get bugs that have to do with the
user/server timezone interaction, but by now I 've learned to be extra
careful about that. This one, however, only had to do with the server's
timezone and was 100% certain to happen if you are GMT minus something.
Considering that I 'm GMT+2, it went unnoticed. Sorry!
2004-05-11 07:20:44 +00:00
defacer dab9f47075 Fix for bug 1363:
Now clicking on an event time in the "upcoming" block always takes you to the correct date in the calendar.

Martin, you were right. Too much was going on. Once too much! ;-)
2004-05-11 07:01:17 +00:00
koenr 7e52dc4354 small error (bug 1364) 2004-05-11 05:47:55 +00:00
moodler 097ab88510 Small fix for bug 1364 when talking about database support in future 2004-05-11 03:31:20 +00:00
julmis 9b9e3f1037 Removing unnecessary files 2004-05-10 21:36:15 +00:00
julmis 285ce16112 Removing hard coded strings 2004-05-10 21:16:16 +00:00
moodler b6650a256a Borders on mailed posts 2004-05-10 18:26:31 +00:00
stronk7 87299b3133 Solved another notice in glossary config page with glossary_entbypage 2004-05-10 18:24:58 +00:00
moodler e2d4106275 Wasting time with tweaks 2004-05-10 18:14:49 +00:00
moodler 26bba779ff Tweaking the formatting of the footers a bit 2004-05-10 18:12:32 +00:00
stronk7 fce0e06d81 Solved some notices (debug mode) when creating new entries... 2004-05-10 18:10:17 +00:00
moodler 89fa8e4a49 FIxed short tag 2004-05-10 17:47:54 +00:00
moodler e730321594 FIxed some short tags 2004-05-10 17:46:35 +00:00
moodler 7e07c5cced Fixed some short tags (found by Eloy!) 2004-05-10 17:40:10 +00:00
moodler 99ef3747fd Removed short tag 2004-05-10 17:37:33 +00:00
moodler 545e48d00e OK, this is IT for Moodle 1.3 Beta 2004-05-10 17:35:35 +00:00
moodler cb0ac23269 Cleanups 2004-05-10 17:34:40 +00:00
moodler bdbffc969d Removed commas ... sorry, but this date format just looks wierd to me. :-) 2004-05-10 17:27:57 +00:00
moodler 22188ece5e New release information for Moodle 1.3 Beta 2004-05-10 17:19:54 +00:00
moodler e1753dcffe Fixed Yankee ordering of month, day 2004-05-10 17:17:48 +00:00
moodler 4a54f79067 FIxed English order of day, month 2004-05-10 17:17:25 +00:00
moodler d13403fb1b Some tweaks for formatting sideblock footers (esp upcoming events) 2004-05-10 17:09:06 +00:00
moodler 91ba8c9878 MOve hidden sections setting down a bit 2004-05-10 16:29:27 +00:00
defacer acc61dc449 Added small links for the monthly calendar and adding a new event at the
bottom of the block, as discussed in the forums.
2004-05-10 16:29:20 +00:00
moodler c1a1f0a975 Slight correction to 'hiddensections' 2004-05-10 16:28:00 +00:00
moodler 59bb9e22ff Handle resource names with slashes better 2004-05-10 16:10:55 +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 f30541559a Deleted one string. It had a typo and es version was fine!! 2004-05-10 15:55:44 +00:00
moodler 2ef140494c Don't need to bundle a font since the default one in lib/default.ttf works fine
with Greek.
2004-05-10 15:38:59 +00:00
moodler f39b489656 Print footers in side_blocks even when non-list $content is supplied 2004-05-10 15:15:44 +00:00
moodler 56e29ea0f4 Added a CVS version number 2004-05-10 13:27:09 +00:00
moodler 1cbb892849 Time to draw a line in the mud 2004-05-10 13:20:37 +00:00
martignoni f12fc85911 Now glossaries can produce RSS feeds too !! 2004-05-10 12:30:04 +00:00
martignoni b42412bc8f New strings for RSS feeds in glossaries 2004-05-10 12:21:39 +00:00
carlesbellver e93a97e7d8 *** empty log message *** 2004-05-10 11:40:51 +00:00
martignoni 65ceac9b95 Some strings (RSS related) has been moved from forum.php to moodle.php to avoid suplicating them once per module. 2004-05-10 11:09:33 +00:00
defacer f319962d8a Fix for bug 1354:
Eloy discovered that there was too much compensation for the user's timezone
in the monthly view event popups. Removed it and now it's OK.
2004-05-10 08:35: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 7923318e97 Included some missing colons...I forgot. 2004-05-09 23:10:46 +00:00
julmis ccf9102153 Some minor fixes (HTMLArea 3.0RC1) 2004-05-09 23:05:21 +00:00
stronk7 294c52b46c Opps. reordering some lines... 2004-05-09 22:30:56 +00:00
stronk7 87b00f0ee1 Now glossary->rsstype and glossary->rssarticles are in backup & restore.
Added two missing strings too.
2004-05-09 22:27:44 +00:00
stronk7 2dda0bbbc7 Now glossaries can produce RSS feeds too !!
Some strings (RSS related) has been moved from forum.php to moodle.php
to avoid suplicating them once per module.
It seems to work fine, please test...:-)
2004-05-09 22:20:05 +00:00
stronk7 c0f778a269 Added some consistency with the show/hide feature in Moodle.
Now if the course is hidden or the activity is hidden, only
teachers cand download the feed.
2004-05-09 18:59:36 +00:00
stronk7 ca87cbe100 Some improvements in RSS:
- Article's author is showed if present.
- In forum posts feeds, show post->subject instead of discussion->name
- Description contents in every article are passed to format_text() to
  show contents like the rest of Moodle.
2004-05-09 18:34:33 +00:00
moodler edc23b1686 Improvements for editing Unicode 2004-05-09 09:10:29 +00:00
gustav_delius 6ecde2bef3 replaced very old install.html with current version from lang/en/doc. I guess this is duplicated here to make it easier to find for people? 2004-05-08 22:09:46 +00:00
gustav_delius d71cca4bea corrected small type reported in bug 1152 2004-05-08 22:06:33 +00:00
gustav_delius 78d7fa79cf implemented a provisional hack by roger to avoid division by zero reported in bug 1231. 2004-05-08 21:27:33 +00:00
gustav_delius c12007857b removed some undefined variable errors. However there are lots of them in edit.html, see bug 1344 2004-05-08 20:52:53 +00:00
gustav_delius a86ea57ddf category list now sorted when adding entry, thanks to Bernard, bug 1010 2004-05-08 20:47:14 +00:00
martignoni 60bc460972 New name for block 2004-05-08 19:43:16 +00:00
martignoni ac283ca7bc New string for backup/restore 2004-05-08 19:41:54 +00:00
gustav_delius 4bb0a732cc got rid of undefined variables warnings 2004-05-08 18:56:45 +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
julmis 92ff72590c Prefilled textbox added (bug id 1339) 2004-05-08 18:23:18 +00:00
mits 46e1c7fd95 Translated some. 2004-05-08 18:16:44 +00:00
gustav_delius c9e2967077 fixed bug 990 which allowed students to see grades even when they were not supposed to by typing in the URL 2004-05-08 15:56:37 +00:00
gustav_delius c2ce7ea4d8 maxlength set in textfields to avoid exceeding length of database fields 2004-05-08 14:48:02 +00:00
moodler 047ab76eb6 Changed language direction and resorted file 2004-05-08 14:28:31 +00:00
moodler 0b5e8ed7d5 bug 753 2004-05-08 14:02:18 +00:00
defacer 33683b3655 Fix for bug 1334:
Yesterday I was in such a hurry to leave that I forgot to check it in...
Sorry Martin! :-)
2004-05-08 13:35:11 +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 18b13a8370 Added rss needed images for this theme 2004-05-07 18:09:23 +00:00
stronk7 1adf511c7e Included global $THEME to support custom images... 2004-05-07 18:08:54 +00:00
gustav_delius 274e05dbd5 fixed bug 1093 by applying clean_text to $forum->intro 2004-05-07 17:48:02 +00:00
gustav_delius 8644437d66 fixed bug 1037 by improving clean_filename() 2004-05-07 17:07:31 +00:00
moodler cc88e7f105 6 Meg file in a language pack? er, no. :-) 2004-05-07 14:36:22 +00:00
gustav_delius af91aca09c block name is now 'Section links' 2004-05-07 12:36:52 +00:00
defacer 61854a2fff Eloy discovered this little bug hiding under the rug. Even though this code
is not used at all right now, it was wrong and would need to be fixed when
we have calendars for the site front page.

Thanks Eloy! :)
2004-05-07 10:46:34 +00:00
defacer bacafa1ca9 Modified the behavior of upcoming events block to be the same as month block,
even though there is no way to go from it to the detailed month view right now.
2004-05-07 10:42:11 +00:00
defacer 51f8a12f28 Fix for bug 1321:
When clicking the month name from the month view block and go to detailed
month view, only events from the course you where in are shown by default.
2004-05-07 10:39:30 +00:00
defacer bd1195678c Fix for bug 1320:
Upcoming events were not displayed before calendar_session_vars() was called
at least once. The upcoming events block did not do that, because once upon a
time it was displayed below the month view, which was known to do it :)

Solution: calendar_session_vars() is now called directly from lib.php.
2004-05-07 10:15:10 +00:00
martignoni c85afffd71 Added string 'unsubscribeshort' 2004-05-07 10:05:56 +00:00
martignoni af9930e10a Added 'parentlanguage' 2004-05-07 10:02:38 +00:00
martignoni a5552ef859 Added two strings about deleting blocks from admin interface... 2004-05-07 10:00:14 +00:00
martignoni e62f4fc705 Typos corrected 2004-05-07 09:53:32 +00:00
martignoni 38be1c7a73 It is possible to create weekly repeating events 2004-05-07 07:28:54 +00:00
martignoni 8a0878918c New file translated 2004-05-07 07:24:09 +00:00
moodler 49d9b738cf Email from forums is marked as "bulk" to reduce vacation bounces etc 2004-05-07 03:31:01 +00:00
moodler b68dca1934 Moodle mail can set precedence levels for email 2004-05-07 03:29:11 +00:00
moodler a9688f538f Mailer handles precedence header 2004-05-07 03:25:04 +00:00
moodler 06c66f4576 Renamed file 2004-05-07 02:30:24 +00:00
moodler d208d07b7f Renamed "weeks_topics" to "section_links" 2004-05-07 02:27:56 +00:00
stronk7 c9c8984582 Now ORIGINAL_WWWROOT is saved in backup and restored too!! 2004-05-06 23:20:25 +00:00
stronk7 1ea2e64c65 Now links to forums are encoded properly 2004-05-06 22:53:04 +00:00
stronk7 c3ff2d75c6 Added two strings about deleting blocks from admin interface... 2004-05-06 22:41:55 +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
koenr 94701e1f8d pollishing translation 2004-05-06 19:40:21 +00:00
koenr 2a58aab560 initial translation by Koen Roggemans 2004-05-06 19:40:07 +00:00
jungwirr afa120e3c0 fixed bug 1325 - hard-coded string for add multiple rolls 2004-05-06 19:39:42 +00:00
gustav_delius aff97c0b2e a new block providing links to weeks/topics, see http://moodle.org/mod/forum/discuss.php?d=7648 2004-05-06 19:16:46 +00:00
gustav_delius fab178a10b add anchors to week/topics on course homepage 2004-05-06 19:02:25 +00:00
gustav_delius cc539b6aaf Updated CVS info in foreign language docs 2004-05-06 16:37:55 +00:00
gustav_delius f86aaab21c It is possible to create weekly repeating events but it is not yet possible to edit or delete them together. Also it is now possible to specify the duration in minutes as an alternative to specifying the end time and date. 2004-05-06 16:30:12 +00:00
defacer d715f7c4c0 Fix for 3-month pane event filters, now you don't get a "missing required parameter"
error when you click on them. Reported by Ger Tielemans in the forums.
2004-05-06 07:45:10 +00:00
moodler 319b472958 Fix for bug 1312 ... just for robustness in the URLs 2004-05-06 03:11:15 +00:00
jungwirr 68d0db38e8 added help files for most options of the module. Updated and clarified
the main module description help file.
2004-05-05 17:08:38 +00:00
jungwirr 311b524ac2 changed the options settings to be more compliant with the rest of the
modules.
Added help page links for many options.
Changed the style of the add multiple interface to match mod.php
2004-05-05 17:06:56 +00:00
moodler 3120f6f20b Hide users in "hidden" chats from students. bug 1308 2004-05-05 08:19:03 +00:00
moodler 480ec24e52 Latvian translation! 2004-05-05 07:19:09 +00:00
gustav_delius dcd338ffdc Events associated to hidden activities are now invisible in calendar, using new field 'visible' in table 'event' which is updated each time a course module is hidden or unhidden. 2004-05-05 07:07:56 +00:00
carlesbellver b0942cf145 *** empty log message *** 2004-05-05 07:06:18 +00:00
martignoni 9a8247cacc Added string for "Take Attendance" in view.php 2004-05-04 20:38:45 +00:00
jungwirr 88521dee99 fixed a bunch more foreach loops to test for null value on the iterated
collection
2004-05-04 19:13:53 +00:00
jungwirr 2f226580b5 fixed viewall.php to reflect the (unlikely) circumstance where a user is a
student AND a teacher in a course.
2004-05-04 19:05:41 +00:00
jungwirr 018e87bedb Fixed the empty grades for attendance.
Added log_display database records
2004-05-04 17:18:02 +00:00
jungwirr 8fc1384b78 added string for "Take Attendance" in view.php 2004-05-04 16:13:08 +00:00
jungwirr 86eb8c6e0d Added "Take attendance" option that allows a teacher without edit
privileges to modify the appropriate aspects of the roster.
2004-05-04 16:12:15 +00:00
martignoni f54f7a35b0 Added two help files for forum rsstype & rssarticles. 2004-05-04 15:30:52 +00:00
martignoni 0cc5e64ef7 Fixed CVS hosts 2004-05-04 15:22:06 +00:00
martignoni 1a1f9bda82 Addes new translated file 2004-05-04 15:05:15 +00:00
martignoni 6d05983872 More realistic dates 2004-05-04 14:57:11 +00:00
martignoni d33b9f2bfe A new resource type called Directory 2004-05-04 14:50:28 +00:00
martignoni 3c08b668bf Added two missing strings for scheduled backups. 2004-05-04 14:46:38 +00:00
martignoni 4899a25981 'strftimedayshort' modified 2004-05-04 14:44:46 +00:00
martignoni 1d374f3610 Some new strings for RSS 2004-05-04 14:43:00 +00:00
martignoni 32dc30a453 User pictures can now be deleted - interface is improved a little 2004-05-04 14:37:42 +00:00
martignoni ffe8aa5fe0 Changed hiddentopics to hiddensections 2004-05-04 14:36:09 +00:00
martignoni 5389dd473f New strftime string for use by the calendar: Month Year. 2004-05-04 14:34:20 +00:00
bobopinna fa45fbc6c8 Updated by Bobo. 2004-05-04 14:23:22 +00:00
moodler 162c360538 Fixed CVS hosts 2004-05-04 12:24:57 +00:00
andreabix 95eaae26f8 Changed calendar colors to accomplish needs of people with visual deficiencies. 2004-05-04 09:39:09 +00:00
bobopinna 09eaa1926e Traslated by Bobo 2004-05-04 08:48:52 +00:00
bobopinna df41e4108c Updated and translated by Bobo 2004-05-04 08:19:01 +00:00
bobopinna 77ff610fb3 Traslated by Andrea Bicciolo 2004-05-04 06:46:29 +00:00
moodler 8a3cfc4d76 Quick fix for bug 1303 ... but I'll come back to this today 2004-05-04 01:58:20 +00:00
moodler bf5c2e8445 FIxed a logic bug when getting files ... bug 1305 2004-05-04 01:21:17 +00:00
koenr d37b85b38b pollishing translation 2004-05-03 21:33:51 +00:00
koenr 54d06dd823 filling in missing strings... 2004-05-03 21:20:43 +00:00
koenr 6bd9e1b51b initial translation by Koen Roggemans 2004-05-03 21:20:04 +00:00
jungwirr 51383e2cdf fixed another foreach problem in lib.
Added a todo section to the README
2004-05-03 19:59:02 +00:00
stronk7 6b7deae418 Added two help files for forum rsstype & rssarticles.
Please, check them...
2004-05-03 19:50:24 +00:00
stronk7 bbe3c5e391 Added two missing strings for scheduled backups.
Please, check them...
2004-05-03 18:25:30 +00:00
stronk7 c05e7d7e53 Added support for rsstype and rssarticles in forum's
backup & restore.
2004-05-03 18:18:54 +00:00
defacer e70fdac090 L10n fixes and a bug fix... at least I _hope_ they were fixes... 2004-05-03 15:26:55 +00:00
moodler 555b85139f Better protection against Googlers 2004-05-03 15:03:31 +00:00
moodler c81c6d0e34 Document $CFG->forceloginforprofiles 2004-05-03 14:57:11 +00:00
moodler 1ffb5c8989 Forcelogin works on user profiles, and a new setting can now forcelogin
just for these pages even if the site forcelogin is off.

   $CFG->forceloginforprofiles
2004-05-03 14:55:33 +00:00
koenr e5f8351bdf pollishing translation 2004-05-03 14:42:31 +00:00
moodler 2195fb5896 Some new strings for RSS 2004-05-03 14:36:06 +00:00
defacer aa870ca24a Some l10n problems fixed. 2004-05-03 14:07:35 +00:00
moodler 67a2a1d8ce More realistic dates 2004-05-03 12:14:31 +00:00
moodler 4464fcf74a Minor change to table format 2004-05-03 05:36:11 +00:00
moodler c1f86c2afa Removing some security checks that seem to cause trouble 2004-05-03 02:12:45 +00:00
koenr 328f7d2870 removing file 2004-05-03 00:34:32 +00:00
koenr efdb42a174 initial translation by Koen Roggemans 2004-05-03 00:33:24 +00:00
koenr 1b5859b6f1 filling in missing strings... 2004-05-03 00:19:34 +00:00
stronk7 759a8abbad I suppose that now forum needs current version of Moodle
to work (modified cron system...), isn't it?
2004-05-02 23:14:53 +00:00
stronk7 8adcb49f8e First version of RSS System.
Discussion and post forum feeds supported.
Integrated in cron system.
Some strings missing.
Test, test, test...
2004-05-02 23:08:19 +00:00
stronk7 750024e833 Changed hiddentopics to hiddensections in backup and restore 2004-05-02 22:34:13 +00:00
moodler 7e62329aa0 Use the folder icon for Directory resources 2004-05-02 17:18:48 +00:00
paca70 6c3cea8877 Updates 2004-05-02 16:47:21 +00:00
moodler 47bb59fbf2 Indicating dependency 2004-05-02 15:32:21 +00:00
moodler 55fd81779e This is required for directory resources 2004-05-02 15:31:23 +00:00
moodler 593d774fb0 Fix path problem with main directory listing 2004-05-02 15:25:46 +00:00
moodler cd2dea0a8d Added file size and table headings to Directory resource 2004-05-02 15:22:00 +00:00
moodler 7ba54e1b78 A new resource type called Directory ... it simply lists all the
files in a directory to make them available to students.
2004-05-02 15:10:04 +00:00
moodler fb9ec10f46 Some modifications to texts 2004-05-02 02:36:45 +00:00
moodler ff62c65990 Some fixes to headers 2004-05-02 02:25:04 +00:00
moodler 31085e5057 Don't require login to site level glossary entries 2004-05-02 02:13:58 +00:00
stronk7 67591c6706 Small change in navmenu() to hide hiddensections,
aplying latest Martin's changes... Ciao :-)
2004-05-01 23:46:02 +00:00
moodler 396b61f00a Fixed doubling in upcoming events block, I think. 2004-05-01 17:42:32 +00:00
moodler 8ad2936eaa Removed a doubling of event names 2004-05-01 17:37:11 +00:00
moodler 1e1ff33b2e Some interface cleanups ...
- simplified the screens some more (headers etc)

 - preferences are all on one page, and the code was rewritten
   for simplicity and consistency

Changes are not well tested yet but I'm off to bed  :-)
2004-05-01 17:32:37 +00:00
koenr be89c70ced filling in missing strings... 2004-05-01 15:15:55 +00:00
koenr 36b9b5e9e1 typo and missing strings 2004-05-01 15:10:20 +00:00
koenr b4a7544f25 typo 2004-05-01 14:49:59 +00:00
koenr 7b45d97d9d Fixed severe errors in translation, apparantly due to change of meaning of some strings (phases). 2004-05-01 14:46:37 +00:00
moodler ec67cbf237 User pictures can now be deleted - interface is improved a little 2004-05-01 14:34:21 +00:00
moodler 2859efacea Latest version from Benito 2004-05-01 12:34:34 +00:00
moodler d45bd055d7 Parameters fix for files.
This allows

   http://example.com/file.php/1/somefile.swf?a=xxx&b=xxxx

Thanks to Bernard Boucher!
2004-05-01 03:33:10 +00:00
bobopinna a8b1f8623d Updated by Bobo 2004-04-30 16:33:18 +00:00
bobopinna faa5b3fb0c Updated by Bobo 2004-04-30 16:30:14 +00:00
moodler 6cc3e56349 Norwegian Primary School version ie (Grunnskole) from Anders Bjerkholt
anders@skoleveven.no
2004-04-30 15:34:21 +00:00
moodler cf5f5cb0b6 Removed some old crap 2004-04-30 13:33:26 +00:00
moodler 4bd22e0f4e Bug fix for possible XSS situation in Bug 1292 2004-04-30 12:45:55 +00:00
moodler 2c0d657437 Chat now logs "talk" events ... which also updates last access in the course
so chatters appear in the online users block so Tom is happy.  :-)

Seriously though, it's good to have talking events in the log.
2004-04-30 12:40:42 +00:00
moodler db7da819d5 Use $course->hiddensections in topics and weeks 2004-04-30 12:17:49 +00:00
moodler 464fd803fa Sorry, Eloy, my directions were wrong.
I've changed hiddentopics to hiddensections ...
2004-04-30 12:10:46 +00:00
moodler acaad8a283 Added enablerssfeeds 2004-04-30 11:58:57 +00:00
defacer 6e8e8ec685 Fix to display correctly formatted dates in some cases where they were not
being localized as they should. Also, small cosmetic addition of a space between
words in the date representation (I had missed it).
2004-04-30 08:59:04 +00:00
defacer a322925858 New strftime string for use by the calendar: Month Year. 2004-04-30 08:48:39 +00:00
moodler 58259e3217 Can use $CFG->journal_showrecentactivity to hide recent activity for journals 2004-04-30 04:50:41 +00:00
moodler 1aacb5033d Make sure new picture is saved to DB even when form has errors 2004-04-30 04:44:47 +00:00
moodler 806021014b Some fixes to ensure students can't post to hidden forums 2004-04-30 01:54:56 +00:00
defacer 47a2aa48da Fix for bug #1280: the "showrecent" course setting has to go.
Bump, to force db upgrade.
2004-04-29 10:29:48 +00:00
defacer 7a8bcd59e8 Fix for bug #1280: the "showrecent" course setting has to go.
Don't check for this setting anymore.
2004-04-29 10:29:23 +00:00
defacer 9ac503147c Fix for bug #1280: the "showrecent" course setting has to go.
Updated script and editing page.
2004-04-29 10:28:58 +00:00
defacer 10ee08cc65 Fix for bug #1280: the "showrecent" course setting has to go.
The pgsql .php update script needs to be updated, but I 'm not sure about
the pgsql alter table syntax... mysql works, oracle is still under dev, so
no problem there.
2004-04-29 10:28:19 +00:00
defacer 0ef7c97344 Small change to better respect the lang file date settings. Should be objectively
"better" now. See http://moodle.org/mod/forum/discuss.php?d=7450 for the issue.
2004-04-29 07:50:12 +00:00
stronk7 b9f2b9bd99 Small typo in las cvs version. Arghhh!! 2004-04-28 22:29:39 +00:00
martignoni cb95019c45 Strings modified for hidden topics 2004-04-28 18:48:08 +00:00
moodler 5d2ae09da9 A very nice default Unicode font under the GPL licence
http://www.nongnu.org/freefont/
2004-04-28 15:59:25 +00:00
moodler b3fc547b68 Allow a big catch-all Unicode font to be placed in lib/default.ttf
eg ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP
2004-04-28 15:39:32 +00:00
defacer 7a4d9aa83d New FREE Unicode TTF with Greek (and other languages, too). 2004-04-28 15:28:32 +00:00
defacer 89ace59751 Fixed my own stupidities... 2004-04-28 15:21:38 +00:00
defacer df8d70ae6f Dubious legally... so removed. 2004-04-28 15:02:21 +00:00
moodler e226c03b7e SMall fix to make new cached encoding work with course languages 2004-04-28 15:02:14 +00:00
moodler 6ebd2c691b Uses iconv by default to convert texts into UTF-8 to keep GD happier. 2004-04-28 14:18:25 +00:00
koenr cd2d90e3bf filling in missing strings... 2004-04-28 10:55:14 +00:00
koenr f7db7e0c1b initial translation by Koen Roggemans 2004-04-28 10:54:15 +00:00
defacer ef3b39b791 There are serious problems with event.php and mini-calendars, mainly because
we don't have much information about courses at that stage. Started to fix
things up, but there is still work to be done.
2004-04-28 10:20:30 +00:00
defacer 6e245258d2 Changed a few visuals, mainly colors to better distinguish among event types.
It's probably better this way.
2004-04-28 09:46:56 +00:00
carlesbellver ac43f398bf *** empty log message *** 2004-04-28 07:31:14 +00:00
moodler adb590fb76 Added some missing icons 2004-04-28 03:15:31 +00:00
moodler 931d5119f5 Minimum rows can be smaller 2004-04-28 02:57:37 +00:00
moodler d2f308c091 Support for events.
Ouch - I thought I'd checked this in days ago
2004-04-28 02:56:40 +00:00
stronk7 22c8200ff4 If group isn't detected when restoring events, default it to 0 2004-04-27 22:37:01 +00:00
koenr 43719c6c9b filling in missing strings... 2004-04-27 22:29:04 +00:00
koenr 94f14f4d58 initial translation by Koen Roggemans 2004-04-27 22:28:31 +00:00
koenr 506867075c filling in missing strings... 2004-04-27 22:10:37 +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
mudrd8mz 25970a89d6 Fixed names of linked pages according to translated ones 2004-04-27 17:55:48 +00:00
mudrd8mz 993b6f7c0b Just some fixes and adds 2004-04-27 17:49:20 +00:00
mudrd8mz 290eac9db9 Prepared to be finished in several days 2004-04-27 17:47:56 +00:00
mudrd8mz 4f8ace3e23 Daniel Miksik added into the list of authors of this lang pack. 2004-04-27 17:44:14 +00:00
mudrd8mz b6243dff88 Czech documentation package translated by students at www.phil.muni.cz (coordinated by Daniel Miksik) 2004-04-27 17:41:49 +00:00
moodler de52774805 I think it's better for translators to have the whole phrases ...
not all languages will work with the split  sentence
2004-04-27 17:37:06 +00:00
moodler 0b0be145f9 Small sorting fix when getting site users 2004-04-27 17:31:12 +00:00
stronk7 723507f36e Bump because some changes have arrived...:-) 2004-04-27 17:23:45 +00:00
stronk7 19a4030924 As changes to version are comming very often, I save this
now. To be used in rss feeds...
2004-04-27 17:21:02 +00:00
moodler 9cc67480a5 Me being fussy :-) 2004-04-27 17:16:33 +00:00
moodler 9a9ea9bf03 Some rephrasing 2004-04-27 17:15:14 +00:00
martignoni d1971cc88f Now, in topics format, every course can decide about how to display hidden topics (collapsed or invisible) 2004-04-27 17:08:54 +00:00
martignoni e67a34b6f8 Some cleanup 2004-04-27 17:06:34 +00:00
martignoni 017be1ba67 Now, in topics format, every course can decide about how to display hidden topics (collapsed or invisible) 2004-04-27 17:05:12 +00:00
moodler f7d617820c Some changes to event editing. HTML editor now supported, plus some
other reformatting ... more to come.  :o)
2004-04-27 17:01:48 +00:00
ralf-bonn 3fe80ba7a3 *** empty log message *** 2004-04-27 16:48:40 +00:00
stronk7 559d33f678 Bump 2004-04-27 16:44:47 +00:00
moodler cda21d485c Added a format field to the event table 2004-04-27 16:41:16 +00:00
stronk7 86a4eb2bd4 Now, in topics format, every course can decide about how to
display hidden topics (collapsed or invisible)
Version bump.
2004-04-27 16:38: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 eccc37c033 Now, in topics format, every course can decide about how to
display hidden topics (collapsed or invisible)
Now it can be set in every course and it's applicable in topics format
2004-04-27 16:36:01 +00:00
defacer 93c2cbcff1 OpenType Unicode font with Greek support (Arial) plus lang_decode.php so
that we can have graphs with greek legends.
2004-04-27 16:32:50 +00:00
stronk7 5b044cc120 Now, in topics format, every course can decide about how to
display hidden topics (collapsed or invisible)
Some strings and one help file. Please, review it!!
2004-04-27 16:32:29 +00:00
andreabix 5321d59360 Addressed some transparency issues affecting the calendar popup winndow. Corrected the border color of the same popup window. 2004-04-27 16:30:39 +00:00
stronk7 ca189cecf8 Now, in topics format, every course can decide about how to
display hidden topics (collapsed or invisible)
Small change to navmenu() to support it
2004-04-27 16:29:21 +00:00
stronk7 009cc72698 Now, in topics format, every course can decide about how to
display hidden topics (collapsed or invisible)
2004-04-27 16:27:11 +00:00
moodler 4cc5141feb Latest updates 2004-04-27 15:14:09 +00:00
moodler 387a1c1986 New version of Chinese Traditional in UTF8, from jiang@tkvs.ylc.edu.tw 2004-04-27 14:03:15 +00:00
moodler 48151fd02e Whoops, forgot part of the optimisation. 2004-04-27 13:58:54 +00:00
moodler cec0a0fc30 New developmental setting to force UTF for the whole server
Plus, some optimisation on the way encoding is stored (in the session).
2004-04-27 13:57:46 +00:00
moodler 37aaf07463 Change all the lang fields to 10 characters ... to make room for utf
versions.
2004-04-27 13:39:33 +00:00
villate 7e2bd14454 Translated a few new variables in version 1.3 beta 2004-04-27 13:05:20 +00:00
villate 5ff0db6b4f New files in version 1.3 beta 2004-04-27 12:40:13 +00:00
martignoni c04c7c3f57 Small correction 2004-04-27 12:11:30 +00:00
martignoni 1234372bad The "Add" block is now called "Blocks" ... other block admin stuff can go in this block later. 2004-04-27 12:09:56 +00:00
martignoni def8a4beef Strings in language files should always be lower case 2004-04-27 12:00:28 +00:00
villate e0a64b92a6 New variables translated 2004-04-27 11:59:54 +00:00
moodler 4fad7af8e1 Bold teachers 2004-04-27 10:18:11 +00:00
martignoni 60ab709a81 You can now unenrol all students quickly with one button
bug 1238
2004-04-27 09:58:10 +00:00
martignoni 5eae3600a0 Subscriber editing is group-aware.
Groups can be subscribed or unsubscribed with one click.
2004-04-27 09:55:03 +00:00
moodler ce4ec6dc2e Trying some sorting of users 2004-04-27 09:43:46 +00:00
mits 92556ad5e8 translated some. 2004-04-27 09:41:45 +00:00
moodler c598d270de The "Add" block is now called "Blocks" ... other block admin stuff can
go in this block later.
2004-04-27 09:30:44 +00:00
moodler 5bb18f6835 Renamed Czechj to cs 2004-04-27 09:04:32 +00:00
moodler 0b410d78ad Latest tags (getting big!!) 2004-04-27 08:51:54 +00:00
moodler ff2ec3b570 Some changes to the layout to remove blocks etc 2004-04-27 08:49:22 +00:00
moodler 36c34ab6f6 Allow some European characters in the username bug 1249 2004-04-27 08:24:04 +00:00
moodler 5eda8473dc Latest Arabic 2004-04-27 05:13:37 +00:00
moodler be5208a03d Latest changes 2004-04-27 05:11:53 +00:00
koenr 687c5b34d4 pollishing translation 2004-04-26 21:53:09 +00:00
moodler 822ede9244 Update all the modinfo fields to make the resource icons work 2004-04-26 15:45:02 +00:00
moodler 7e1500acd7 WEBLINKs and WEBPAGEs can have icons too 2004-04-26 15:44:25 +00:00
moodler 9d361034ec Much requested: Uploaded resources are now shown using the relevant icon. 2004-04-26 15:31:22 +00:00
fiedorow 7363a0355b Commented out debugging code 2004-04-26 15:20:10 +00:00
moodler bd23e396a4 You can now unenrol all students quickly with one button
bug 1238
2004-04-26 14:16:05 +00:00
moodler c215cee456 Put a submit button at the top too. 2004-04-26 13:39:39 +00:00
moodler 0acd686363 Show no grade on entries without any feedback 2004-04-26 13:35:33 +00:00
defacer 9159b0fed6 Fixed bug reported by John Ryan (http://moodle.org/mod/forum/discuss.php?d=7347)
which caused group events to not display under any circumstances.
2004-04-26 10:44:16 +00:00
moodler 0a1a564e5b Strings in language files should always be lower case 2004-04-26 09:37:12 +00:00
defacer 46fec6a3f9 Well, this is a bug FIX at least! :)
All teachers showed up as having editing rights... corrected now.
2004-04-26 09:31:02 +00:00
defacer ce557a6eac Rollback the previous change: I introduced a bug by mistake! :/
But the system is a bit... strange... shouldn't the "editing mode" flag be
propagated in the session variables or something? It confused me having to
click "Edit" a second time after I 'd just clicked it in the course view.
2004-04-26 09:28:28 +00:00
defacer dfd479fd67 Fixed an unset property warning if you are an editing teacher but no edit
variable is set in the URL.
2004-04-26 09:20:41 +00:00
moodler 95d0820979 Changed the string: 'showsubscribers'
from

    Show subscribers
to

    Show/edit current subscribers


The old string is not invalid, which is why I decided to change the
existing string rather than create a new one
2004-04-26 09:06:56 +00:00
defacer 381b379798 Removed obsolete function from pre-OO days. 2004-04-26 09:03:40 +00:00
moodler 6673d7bdf6 Subscriber editing is group-aware.
Groups can be subscribed or unsubscribed with one click
2004-04-26 08:55:00 +00:00
moodler e5890e7160 file.php now calculates content-length correctly for filtered text and HTML files.
Bug 1240
2004-04-26 03:41:45 +00:00
moodler 3315ee39b1 Fixed a hard-coded string. bug 1269 2004-04-26 03:01:00 +00:00
moodler 426c04370a FIx to help PostgreSQL .... fix from Bruno Vernier Bug 1270 2004-04-26 02:54:55 +00:00
gniske dc7afaa7e1 Added missing files 2004-04-25 22:20:13 +00:00
gniske e96dcc765a Added missing strings 2004-04-25 22:18:21 +00:00
stronk7 ff4c50a9a2 As showing/hiding "Save my answers" button was based in empty($results),
moved $results->attemptbuildsonthelast to $attemptbuildsonthelast.
This was introduced in my latest CVS version, trying to take out
some notices...solved now.
2004-04-25 09:16:19 +00:00
stronk7 c18490b89b Take our some notices... 2004-04-25 08:43:42 +00:00
moodler c23ec730b9 Some fixes to improve editing of rtl languages 2004-04-25 03:54:25 +00:00
moodler 8496c4af27 Calendar support for the Chat module 2004-04-25 03:05:58 +00:00
moodler 36257d39d5 Check attachment variable to prevent warnings 2004-04-25 02:15:48 +00:00
moodler 7969713a4f Added gz 2004-04-25 02:11:48 +00:00
moodler fce9c67b20 Fix for bug 1268 2004-04-25 01:43:20 +00:00
moodler 48bef97ce6 Deleted a bad line to fix bug 1237 2004-04-24 15:45:39 +00:00
moodler 5c87e15a0a Solution for bug 1258 I think ... needs testing 2004-04-24 15:08:57 +00:00
moodler bbb56db78a New functions by Jenny Watt, to make workshops show up on Recent Activity
workshop_get_recent_mod_activity()
 workshop_print_recent_mod_activity()


 Thanks, Jenny!
2004-04-24 12:47:52 +00:00
martignoni 82dbaf5493 French translation added 2004-04-24 12:43:19 +00:00
martignoni 4a0d7d422c Some slight modifications 2004-04-24 12:42:47 +00:00
moodler c69cb506b8 Don't send out notifications for hidden assignments until they are unhidden
Bug 1259
2004-04-24 04:51:56 +00:00
stronk7 9b690d2b48 Now encoding some fields to be non-ASCII aware. Thanks to Petr Skoda.
See bug 1266 (http://moodle.org/bugs/bug.php?op=show&bugid=1266&pos=14).
Applied the same patch to alias too!!
2004-04-24 00:48:57 +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
martignoni 3f00574fc6 Typo corrected 2004-04-23 20:44:51 +00:00
martignoni dc8ebcb9eb Strings for handling the time display format. 2004-04-23 06:45:47 +00:00
moodler cf55faf8e8 Deal with apostrophes better in assignments 2004-04-22 16:30:01 +00:00
stronk7 e91e2b6a36 Now the scheduled_backup needs lib/blocklib.php to be able to
backup & restore blocks configuration. Done!!
2004-04-22 13:49:45 +00:00
carlesbellver d192fce493 *** empty log message *** 2004-04-22 12:00:41 +00:00
carlesbellver 0a9398c167 *** empty log message *** 2004-04-22 11:40:25 +00:00
andreabix 293c959426 Changed group event color to better differentiate Group and Course event 2004-04-22 11:37:02 +00:00
defacer 1b0ebe79b1 Addressing bug 1257:
Changed the handling of time display format; now it's read from the language
file by default, and a new preference has been added to allow each user to
manually specify his preferred time format.
2004-04-22 09:02:23 +00:00
defacer c867774d76 Changed the way the fix for bug 1255 works, while making sure it still works :)
It just didn't feel right to intrusively set object properties from "outside",
and since it's now one variable assignment less, I thought why not... :)
2004-04-22 07:11:55 +00:00
moodler 72957fa54b FIxed a character escpaping problem, recently introduced bug 1250 2004-04-22 06:02:41 +00:00
koenr 701f6a7e38 pollishing translation
Special thanks to Marie Lesy for rereading.
2004-04-21 21:38:55 +00:00
koenr 951ed6e974 typo (mising < can mess things up) 2004-04-21 17:50:54 +00:00
stronk7 acf4fe1773 Solved one issue that caused the show/hide option to fail.
See bug 1255 (http://moodle.org/bugs/bug.php?op=show&bugid=1255)
2004-04-21 16:18:51 +00:00
moodler 2aa3970439 Blank 2004-04-21 12:19:53 +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 5216e2c63c This hasn't sense because get_list_of_plugins() exclude it
using its new parameter.
2004-04-20 17:47:36 +00:00
moodler 0cb77f5adf Fixing a recent change to get_list_of_plugins that was causing
auth/db to be invisible    bug 1245
2004-04-20 15:14:15 +00:00
defacer 95a892257c Corrected a bug that prevented admins from seeing events for ALL site courses
(today's functionality was not complete yet).

Also, minor sorting change to display the course filter sorted by shortname.
2004-04-20 13:00:39 +00:00
defacer 053c98cff9 Fixed a whole bunch of warnings and minor bugs, which all shared a common cause:
The preferences screens weren't handling filter changes correctly.
2004-04-20 12:49:02 +00:00
defacer 562727705f Upgrade with more intelligent CSS rules.
Maybe needs some color changes, but I 'm not really much of an interior decorator... :)
2004-04-20 12:14:57 +00:00
defacer 9087d5e219 Upgrade with more intelligent CSS rules.
This one needed color changes.
2004-04-20 12:03:20 +00:00
defacer ec1a875cbb Upgrade with more intelligent CSS rules.
I tried very hard not to undo any of Andrea's changes. Took a couple of
guesses along the way. Sorry if I guessed wrong!
2004-04-20 11:57:41 +00:00
defacer 65660de888 Upgrade with more intelligent CSS rules.
Maybe needs some color changes, but I 'm not really much of an interior decorator... :)

Coincidentally fixed a typo in the theme: "0" was "o".
2004-04-20 11:41:18 +00:00
defacer 66c785e1a5 Upgrade with more intelligent CSS rules.
Looks like no calendar colors need to be changed from standard.
2004-04-20 11:18:35 +00:00
defacer 496659193f Upgrade with more intelligent CSS rules. 2004-04-20 11:17:31 +00:00
defacer 92668ad2e5 Revision of the calendar tables HTML. Current version outputs a LOT less HTML
(mainly class attributes) but requires ALL themes to update their CSS rules.

Coming up next... can you guess? ;)
2004-04-20 11:14:55 +00:00
defacer 2b7591ccbc Fixed an "unset variable" warning in the filter controls in the upcoming events calendar screen. 2004-04-20 09:27:59 +00:00
defacer 1f695119c5 Admins can now filter events by course and set events for groups and courses
regardless of whether they are course members.
2004-04-20 09:21:30 +00:00
defacer 6c127628a7 Removed some long-dead code and commented out some newly-dead code, now that
we have the blocks system. Making the file parse faster... yum! :)
2004-04-20 08:44:06 +00:00
defacer d7baeddac5 Grand Bugslayer Eloy at work again: Hiding the blocks if they have no content
should mean "if they have no content AND no footer".
2004-04-20 08:38:56 +00:00
defacer 48f508ab94 If group mode is no groups and forced, there is no point in displaying the
group events filter. Just a nice touch, fixed only in course view for now.

Also, minor code rewrite for clarification.
2004-04-20 08:24:37 +00:00
defacer ca319818fc Don't display blocks that have no content at all. I 'm not sure if this
could cause any confusion, but it solves the problem with the admin block
being displayed to guests.

The thought about a "display only to X and Y kinds of users" feature came
to mind, but maybe that would be more confusing than useful.
2004-04-20 07:43:26 +00:00
defacer 82b181f265 Eloy is probably right, the preferred width calculation should be cached. 2004-04-20 07:32:57 +00:00
stronk7 1eb25080df Detected a display bug when looking for possible causes of
bug 1248. Widhts were only calculated in teacher mode and
they were down to 100px in student mode!!
Perhaps we could make some session caching to avoid some
calculations every time the course is displayed. Seems to
work fine now.
Anyway, if I compare the right column width
in my server (with blocks running) against moodle.org (without
blocks), it seems that the right column is narrower in my test server...
2004-04-19 19:24:42 +00:00
ralf-bonn fc4458a244 ?nderungen, damit Bl?cke gleich breit sind 2004-04-19 19:05:26 +00:00
koenr dca2c8298b filling in missing strings... 2004-04-19 19:00:05 +00:00
ralf-bonn f5ea0302d5 ?bersetzung optimiert 2004-04-19 18:15:00 +00:00
mits 38370cec4c New translation. 2004-04-19 18:06:54 +00:00
stronk7 9f336d716d Forgot to include blocks in this page.
Closing bug 1246.
2004-04-19 17:40:57 +00:00
martignoni 0356ba4c6e Strings for first official release of the "Blocks System". 2004-04-19 11:54:37 +00:00
martignoni bb2de3c054 Strings for the first Official release of the "Blocks System". 2004-04-19 11:46:18 +00:00
defacer 6757c3cdc6 Added content "caching", same as all other blocks have. 2004-04-19 09:36:07 +00:00
bobopinna 7cd0cc52b2 Updated by Bobo 2004-04-19 09:28:29 +00:00
bobopinna 68c208043c Update and review by Claudio Maggi 2004-04-19 08:46:19 +00:00
defacer 59d2a75d99 Fixed/added some things so that the instructions are mostly correct. 2004-04-19 07:39:43 +00:00
paca70 a595c0b6ea Files for postgresql 2004-04-19 04:30:55 +00:00
paca70 ce24161b7e First versions for postgressql 2004-04-19 04:15:24 +00:00
stronk7 7ef144842f Forgot this BUMP !! :-) 2004-04-18 23:33:00 +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
koenr e8f1458ce1 typo 2004-04-18 19:38:17 +00:00
koenr b8b10d1d02 filling in missing strings... 2004-04-18 19:22:14 +00:00
moodler 6dc78d860d New translation 2004-04-18 16:53:46 +00:00
moodler 131c2a8509 Latest updates from Benito 2004-04-18 16:53:05 +00:00
moodler cce96a89c2 Added Flash and some cleanups in display 2004-04-18 10:01:44 +00:00
koenr c59b07ece6 filling in missing strings... 2004-04-18 08:26:31 +00:00
koenr e78e763f4c typo 2004-04-18 08:25:38 +00:00
moodler 67905aceda SOme fixes for
- the URL used in recent activity links
  - the display of single entries
2004-04-18 05:54:33 +00:00
moodler 5da09684e2 Better if autostart is off for the filter 2004-04-18 05:15:50 +00:00
moodler 81fcd0f019 Bug fix in get_directory_list() for files named 0 :-) 2004-04-17 14:01:53 +00:00
moodler 0043ddbb1a decalre $THEME to stop some notices ... 2004-04-17 13:37:54 +00:00
martignoni 0f068d1211 New string for LDAP protocol version 2004-04-17 08:13:01 +00:00
moodler 16bc83d693 QUicktime should use "aspect" for best results on different movies 2004-04-17 07:49:54 +00:00
moodler 245f5aaa61 Using scaling when displaying quicktime 2004-04-17 07:32:54 +00:00
moodler a72170fb39 Found the scale paramter for Quicktime 2004-04-17 07:29:41 +00:00
moodler 1b090b2f92 Added support for Quicktime and Media PLayer plugins 2004-04-17 06:59:25 +00:00
moodler b124c95ab4 clean the filenames to make sure there aren't funny characters 2004-04-17 03:30:26 +00:00
moodler 1cd06b9b9c Fixed the text file too 2004-04-17 03:28:29 +00:00
moodler deba41af8c Clean filenames to prevent possible problems with IE 2004-04-17 03:27:27 +00:00
moodler 7001130bac Fixed possible prblems with Excel names bug 1243 2004-04-17 03:24:42 +00:00
adamtpaw be99333b5d New file 2004-04-16 21:56:20 +00:00
adamtpaw 72a951f966 New files 2004-04-16 21:48:24 +00:00
andreabix 8694611593 Html code cleanup 2004-04-16 16:14:55 +00:00
moodler 450c3d39cc Link to teacher forum is now shown in the current langage always 2004-04-16 07:13:10 +00:00
moodler bbf4d8e656 Simplification and improvement of clean_filename, thanks to suggestions
from Martin Langhoff <martin@catalyst.net.nz>
2004-04-16 06:30:01 +00:00
ralf-bonn 105d8f71a4 Fehler in der Anzeige beim Einf?gen von Aktivit?ten beseitigt 2004-04-15 20:44:02 +00:00
moodler d8627a477e Thanks to Dave Lopata <Dave@Lopata.Net>, Moodle now supports LDAP 3 2004-04-15 15:57:32 +00:00
fiedorow 1af376eca4 Fix for bug on Windows and Mac servers while generating quiz reports 2004-04-15 15:41:06 +00:00
moodler 39e1c4158f I think this might solve the mysterious problems with
session garbage collection and timeouts not working.

Note: upgrading to this will KILL all current sessions, so
you will need to log back in.
2004-04-15 14:46:54 +00:00
fiedorow 811cf8919d Allow use of alternate delimiters in csv files 2004-04-14 20:46:39 +00:00
paca70 eb3daafe3f Updates 2004-04-14 18:40:38 +00:00
paca70 e98d89e86e Updates, thanks to Jussi Kurikka. 2004-04-14 18:10:33 +00:00
stronk7 c7f3fdf70c Modified the clean_filename() function to strip parenthesis and slashes.
Not really sure if the method used is 100% correct ot no so, if you can
check it....
Perhpas I should make the stripping in backup process, istead of using this
central function. What do you think?
2004-04-14 18:09:41 +00:00
andreabix 6ef9481d6c Added compatibility with the calendar functions. Added some minor refinements. 2004-04-14 16:31:43 +00:00
defacer 46971293dc 1. Wrong translation of the word "by" in this context
2. Translated $a member variables! God help us! (no wonder eval() complained)
2004-04-14 14:13:22 +00:00
stigbjarne 61b8135261 Cleand up and smaller local file. 2004-04-14 11:32:45 +00:00
moodler 695f71e1bd Fix problem editing category names containing html 2004-04-14 02:41:22 +00:00
martignoni 4742585700 Small typos corrected 2004-04-13 18:38:56 +00:00
martignoni 08985a17a4 Added a new string for use in the upcoming events block. 2004-04-13 18:15:08 +00:00
koenr b6b337950d pollishing translation 2004-04-13 14:58:38 +00:00
koenr ff45c1f62b typo 2004-04-13 14:49:26 +00:00
defacer 00e651d1c1 Added a new string for use in the upcoming events block. 2004-04-13 12:19:33 +00:00
moodler d591b40f51 Bug fixed when determining who can post into a forum when groups are used 2004-04-12 10:12:43 +00:00
moodler 196ca3fe59 Fixed a bad bug where the Recent News block wasn't obeying Groups properly. 2004-04-12 09:57:14 +00:00
martignoni 45f4877043 Added string "refreshingevents". Used in restore. 2004-04-12 09:45:41 +00:00
moodler b656e2a976 Use the fullname function to display name on minmal forum listings 2004-04-12 06:34:44 +00:00
stronk7 1a930732ba Exclude "db" dir when detecting plugins (to be used in blocks
registration). No problems (I think) at all with mod registration.
2004-04-10 23:44:50 +00:00
stronk7 5fef34d7a9 Avoid one warning where $content and $list were empty. 2004-04-10 22:24:23 +00:00
koenr 38371ea9e9 filling in missing string with some help from Eloy 2004-04-10 20:08:44 +00:00
stronk7 c72e41bc77 Added string "refreshingevents". Used in restore. 2004-04-10 00:03:45 +00:00
stronk7 9c48354deb Modified the function. Now it accepts a courseid to restrict the check
to assignments belonging to one exact course. if not specified all
assignments in site are checked (old approach).
This function in used by restore_refresh_events() to recalculate module events.
Perhaps it should become a standard function in NEWMODULE to allow new modules
implement it.
Ciao :-)
2004-04-09 23:55:02 +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
adamtpaw e90ee8637f few updates 2004-04-09 19:18:34 +00:00
martignoni fa9ce73c4f Optional use of the HTML editor and other fixes. 2004-04-09 16:04:35 +00:00
martignoni 8d737b6deb Unset $string['default'] variable fixed. 2004-04-09 16:01:25 +00:00
moodler db3e8b844b Tiny typo 2004-04-09 13:12:36 +00:00
bobopinna 0c6b032cca Update to 1.3develop 2004-04-09 07:50:26 +00:00
bobopinna 3751b01835 Easter cleaning. File not yet translated. Old wrong adding. 2004-04-09 07:07:32 +00:00
bobopinna 2c63a06ce0 Easter cleaning. Not yet translated, old wrong adding. 2004-04-09 06:50:36 +00:00
bobopinna db8daff32b Translated by Claudio Maggi 2004-04-09 06:45:30 +00:00
moodler 149dbaf1b3 Fix for bug 1226 2004-04-09 02:24:02 +00:00
moodler e441aac877 FIxed some quotes 2004-04-08 16:25:53 +00:00
moodler fdff1f63a3 Fixes when displaying lists of users in group mode 2004-04-08 15:12:35 +00:00
moodler 1b1c19fff7 A small fix to show the right users on the view page when groups are being used 2004-04-08 14:35:36 +00:00
moodler 6a5b5a20f4 Ack! Stupid typo fixed - thanks, Bobo! 2004-04-08 14:28:38 +00:00
koenr 4e142f770b Expanded with help for creating new initial content 2004-04-08 09:49:58 +00:00
carlesbellver e8cb0ea4a6 *** empty log message *** 2004-04-08 07:53:11 +00:00
stronk7 464edd6d2e Solved two small typos preventing quiz being deleted properly in
quiz_delete_instance() function:
public----------------------------------->publish
get_record("quiz_attempts")------------->get_records("quiz_attempts")
2004-04-07 23:38:48 +00:00
koenr 5acc5ecb97 typo 2004-04-07 22:18:27 +00:00
koenr cd0f78e7d4 initial translation by Koen Roggemans 2004-04-07 22:16:25 +00:00
koenr 76caa31ef0 move to folder without minus 2004-04-07 20:22:26 +00:00
koenr ebc80c53a0 filling in missing strings (and it works now :-) ) 2004-04-07 20:09:53 +00:00
moodler e6d8258521 A fix to help some misconfigured sites (without DirectoryIndex) 2004-04-07 13:07:38 +00:00
stigbjarne 2ec0b1eff6 Most recent local file Moodle 1.2. 2004-04-07 11:43:09 +00:00
carlesbellver 924adf9a59 *** empty log message *** 2004-04-07 11:41:29 +00:00
koenr 21989b6ebc missing strings 2004-04-07 10:56:36 +00:00
moodler 3606275985 More robust handling when creating glossary export files 2004-04-07 08:33:17 +00:00
koenr 678380e943 missing strings 2004-04-07 06:55:03 +00:00
koenr c5fc7ca339 initial translation by Koen Roggemans.
In my opinion some pages could be left out for the use in Moodle, such as the features, softwarenotes and other, not user related pages
2004-04-07 06:53:30 +00:00
koenr a8042ee627 missing string 2004-04-06 22:49:04 +00:00
anvergara afb04c9432 *** empty log message *** 2004-04-06 22:42:02 +00:00
julmis 3414788e09 Toolbar imageload fix and undo and redo fix. 2004-04-06 21:27:30 +00:00
mits d1823398c4 New translation & Polish 2004-04-06 19:28:38 +00:00
anvergara 5afab44dd6 *** empty log message *** 2004-04-06 16:26:38 +00:00
defacer 73341343a6 Corrected an oversight: the id variable isn't needed on the front page.
(Or so I think... brain's a bit moodled right now... ;)
2004-04-06 14:01:43 +00:00
carlesbellver 6a8bd8087e *** empty log message *** 2004-04-06 12:12:53 +00:00
anvergara 5670698e96 Revised 2004-04-06 11:33:23 +00:00
carlesbellver 22d61b9c1a *** empty log message *** 2004-04-06 10:12:48 +00:00
anvergara 8ee43a1d33 No longer in es_es 2004-04-06 08:30:13 +00:00
julmis 378e453317 Form position and style updates. 2004-04-06 00:43:49 +00:00
stronk7 f895027eeb Fix one SQL... 2004-04-05 22:49:23 +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
moodler cac358352f Just for fun 2004-04-05 16:57:40 +00:00
anvergara 8b88e52d62 No longer available in es_es 2004-04-05 16:37:21 +00:00
anvergara 2d48ad0f8d No longer available in es_es. 2004-04-05 16:25:02 +00:00
fiedorow d442864213 Fixed type in category.php 2004-04-05 16:07:59 +00:00
carlesbellver 9180d5cead *** empty log message *** 2004-04-05 10:49:43 +00:00
martignoni 2aad1eb0d2 Better dates 2004-04-05 06:56:09 +00:00
martignoni 3749b076e1 One new string...to restore. 2004-04-05 06:54:48 +00:00
carlesbellver 591d5168cb *** empty log message *** 2004-04-05 06:17:14 +00:00
fiedorow 9ff5310a08 Bug fix for sort order in category display and allow limit on recursive display of categories and courses 2004-04-05 03:13:10 +00:00
fiedorow 1372c95ada Compatibility update for new mimetex version 2004-04-05 02:46:52 +00:00
fiedorow 23b9d1d209 Security updates for Linux and Windows based on new source from John Forkosh 2004-04-05 02:45:11 +00:00
koenr f69be8f5a8 initial translation for wiki development version 2004-04-04 21:44:36 +00:00
stronk7 b31355aa81 One new string...to restore. 2004-04-04 18:44:35 +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
moodler bdb2f23f70 Started out with a small user interface fix (to use standard functions)
and ended up cleaning up the code quite a bit
2004-04-03 13:04:00 +00:00
moodler d552efcee0 Links to enrolled courses in user profile page now link to the
user profile page in that course.

Makes it easy to see their discussions etc
2004-04-03 07:08:16 +00:00
moodler 9698bf15b9 Some changes to make login a little more robust on some sites that have
multiple addresses
2004-04-03 04:55:35 +00:00
moodler 70fb77128f WHoops, my last checkin had a typo 2004-04-03 04:50:30 +00:00
moodler c7ef02178e Whoah ... bad typo! Fixed bug 1214 - thanks Eloy! 2004-04-03 02:47:11 +00:00
moodler 426b19373d Strip tags in log menus too 2004-04-03 01:32:03 +00:00
mits 8d82cfac82 modified 2004-04-02 18:34:31 +00:00
mits 7716acfe6d New help file & polish 2004-04-02 18:24:19 +00:00
selliott ebb71a34e1 Added support for Multiple Choice Questions with Multiple answers 2004-04-02 17:16:41 +00:00
rkingdon 0f9b19dd91 Correcting field name usemaxgrade in update files. 2004-04-02 16:16:21 +00:00
rkingdon 4c8479f705 Fix bug when the last page of a lesson has no question. 2004-04-02 15:54:07 +00:00
moodler 8bcdebef81 Better dates 2004-04-02 15:48:32 +00:00
moodler a1d72936b1 Strip tags from module names .... sigh 2004-04-02 13:42:20 +00:00
carlesbellver e0d31576fb *** empty log message *** 2004-04-02 12:40:54 +00:00
carlesbellver 1ba5c9e679 *** empty log message *** 2004-04-02 10:40:43 +00:00
bobopinna efcfc0d8f8 Update to Moodle 1.3develop 2004-04-02 09:57:18 +00:00
carlesbellver 689d947e2f *** empty log message *** 2004-04-02 09:34:03 +00:00
martignoni 4aa19d3b01 More lesson version 3 updates 2004-04-02 09:22:10 +00:00
carlesbellver 2d227731cc *** empty log message *** 2004-04-02 06:46:14 +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
koenr b6eddad2c4 bump dutch translation of lesson to be compatible with version 4 2004-04-01 20:05:22 +00:00
mits 91da0e03cd Polish + new translation + new translated files. 2004-04-01 19:06:58 +00:00
mits 46d656ef92 Polished. 2004-04-01 18:29:18 +00:00
rkingdon 45c27c7e4b Optional use of the HTML editor. 2004-04-01 16:56:56 +00:00
rkingdon faf63f9854 Optional use of HTML editor. 2004-04-01 16:48:16 +00:00
moodler ecc8e21b26 Update old events 2004-04-01 15:41:25 +00:00
moodler e6a4906bee Assignment module can now maintain its own events in the calendar. :-) 2004-04-01 15:40:39 +00:00
defacer 2b10fcf5a8 Following Eloy's suggestion and Martin's clarification, the wizard is going
to demonstrate a feat where 10 lines of code turn into 2, and a global var
dependency vanishes at the same time! ;)
2004-04-01 12:51:24 +00:00
defacer f30fe8d063 As per Martin's suggestion:
Added new function: get_user_timezone($timezone = 99) which retrieves
the user's timezone, respecting the $USER->timezone and $CFG->timezone
settings.

Modified all date/time library functions to use this.
2004-04-01 12:27:37 +00:00
defacer f3d142dae4 Fix for the fix: Turns out that next() returns false if an array element's
value is 0 (the php docs speak only about the key... :/). Good thing that my
test user's timezone is set to GMT+0. This should work no matter what.
2004-04-01 11:29:25 +00:00
defacer 556596510a The check for setting event dates before the course start date was written
incorrectly. What was I thinking?
2004-04-01 10:59:46 +00:00
defacer a36166d327 The timezone selection didn't work correctly... if there WAS a $USER->timezone
set but it was set to 99, it didn't check the $CFG->timezone setting.
Fixed now. Fancy implementation, forgive me please! ;)
2004-04-01 10:39:06 +00:00
defacer d8ba183c39 Checking for the $CFG->timezone value as a last resort in the various user
date/time functions didn't work because there was no global $CFG; :O
2004-04-01 10:11:20 +00:00
defacer 516a684ad7 In Eloy's notice-finding spirit, I continue by fixing another notice which
also (damnation! :) caused the HRs not to be displayed as they should.
2004-04-01 09:27:23 +00:00
defacer f80c8e0f52 Eloy's finding: The name and description fields were not initialized when
going into the "new event" form, so they printed warnings INSIDE the fields
with error_reporting(E_ALL). Added initialization as empty strings.

Now I 'm beginning to understand why Martin calls him "Eagle Eyes" :)
2004-04-01 09:08:23 +00:00
defacer 93db786cdc Eloy's finding: If the user is not a teacher or a student anywhere, this
caused an SQL error. It was handled correctly, but why an SQL query at all
if we can optimize it away?

Thanks Eloy! :)
2004-04-01 08:58:29 +00:00
defacer 3696526bf3 Eloy's finding: fixed three 'undeclared variable' notices. Leftovers from
cutting and pasting code, I just deleted them.
2004-04-01 08:52:34 +00:00
defacer efc81294eb Eloy's finding: Unset $string['default'] variable fixed. 2004-04-01 08:45:38 +00:00
carlesbellver 5bb52974d6 *** empty log message *** 2004-04-01 07:46:17 +00:00
moodler 9c8b8eeeb5 Fix for the display of hidden forums to students - bug 1209 2004-04-01 03:45:34 +00:00
moodler 07c270c127 Upgraded to latest version and fixed some undefined variables 2004-04-01 03:16:25 +00:00
moodler 66e5f959e9 Can now handle a $CFG->filelifetime to determine cacheability of files 2004-04-01 02:32:04 +00:00
paca70 c5dfc3be93 Updates, thanks to Jussi Kurikka. 2004-03-31 19:43:08 +00:00
paca70 f33facc30a More updates 2004-03-31 19:25:54 +00:00
paca70 6d94f0cd6c Updates 2004-03-31 19:24:07 +00:00
paca70 392b116c73 Replaced ` with "
CVS: ----------------------------------------------------------------------
2004-03-31 16:00:06 +00:00
carlesbellver 9593fd11ab *** empty log message *** 2004-03-31 15:27:36 +00:00
koenr c805bda56a bump dutch translation of lesson to be compatible with version 3 2004-03-31 11:31:43 +00:00
moodler 1ec2364fa3 Standard favicon 2004-03-31 09:25:20 +00:00
moodler 3c04621957 Standard favicons 2004-03-31 09:24:45 +00:00
moodler 974511397d Improved Favicon matches the logo 2004-03-31 09:11:58 +00:00
moodler 47b307976b Removing a line from stripslashes_safe ... not sure why we were replacing
these double slashes ...
2004-03-31 08:45:11 +00:00
moodler ff8352de94 Some fixes to highlighting ... it is now performed AFTER the format_text.
This means that searches can no longer mess up the TeX formatting.

Also, the concept names are now formatted, allowing multilang, TeX etc
2004-03-31 08:34:41 +00:00
moodler 34aeb9360f Make searching parameters sticky 2004-03-31 08:14:10 +00:00
moodler cc345ff6db Fixed missing argument $ratings 2004-03-31 08:05:52 +00:00
moodler 4da52954df Escape some concept strings that can cause trouble in eregi 2004-03-31 07:46:59 +00:00
defacer ed151929e3 Modified handling of the first day of the week to default to the "firstdayofweek"
language string value, according to Eloy's suggestion. Thanks for the tip! :)
2004-03-31 07:18:32 +00:00
moodler a4b35ba282 Get tough on possible sessioncookies to avoid possible lockout problems
caused by some characters in the cookie name
2004-03-31 04:14:13 +00:00
koenr b1ac0e8200 missing string 2004-03-30 21:39:27 +00:00
koenr 5ec22adafa new pollish. Should be good 2004-03-30 18:34:23 +00:00
mits c0d0fb9a8a Polishe and New translation. 2004-03-30 18:30:02 +00:00
fiedorow 1b71c53e1d Bug fix for incorrect handling of negatives in equations and inequalities 2004-03-30 17:11:56 +00:00
martignoni a388106403 Typos corrected 2004-03-30 09:41:55 +00:00
koenr e9f65c768c translation with already a lot of pollishing thanks to Jean-Pierre Pawlak 2004-03-29 22:33:20 +00:00
moodler 829b0c27a3 Added styles as per Jon's recommended install. Things may change though. 2004-03-29 15:40:15 +00:00
moodler 0d250ac10e Adding calendars by default --- later we need a course option to control
visibility
2004-03-29 15:33:26 +00:00
moodler 3ab966a2c6 Adding calendar string files 2004-03-29 15:30:37 +00:00
moodler 7423f11664 Checking in latest calendar code! Looking great, Jon! 2004-03-29 15:28:15 +00:00
stigbjarne 9757fd9a34 New file. Moodle v.1.2. 2004-03-29 11:50:59 +00:00
stigbjarne 0db0847e2e Improved. Updated to Moodle 1.2. 2004-03-29 11:49:49 +00:00
stigbjarne b51b51dc00 Updated log file 2004-03-29 11:45:58 +00:00
moodler 7626969c9c Fixed Tim's bug with the chat not updating - bug 1151
His chat->intro had 'quotes' in it
2004-03-29 06:02:21 +00:00
fiedorow 30fc04e4e8 replaced js alert by popup 2004-03-28 22:35:49 +00:00
koenr 9998c70788 Initial translation by Koen Roggemans 2004-03-28 10:07:39 +00:00
moodler 09cbeb40a2 An improvemement, I think, in the way Javascript is stripped in clean_text 2004-03-28 06:31:27 +00:00
martignoni dc24657f07 Attachments can now be completely disabled in forums 2004-03-27 22:25:28 +00:00
martignoni 78594891c8 Update to version 3 2004-03-27 22:23:11 +00:00
fiedorow d633b4eb27 Expression image now links to TeX source or debug script 2004-03-27 18:33:30 +00:00
moodler 69e8e9848f Phew, finally finished upgrading all my customers! :-) 2004-03-27 17:58:07 +00:00
moodler 56eb160c8e Attachments can now be completely disabled in forums 2004-03-27 14:32:57 +00:00
mudrd8mz 43872eb159 Arial TTF latin2 font from old 'cz' pack 2004-03-27 13:34:35 +00:00
paca70 c13edeca6a Added default values 2004-03-27 13:08:21 +00:00
rkingdon e2a9adcc57 Version 2 and 3 updates. 2004-03-27 05:01:22 +00:00
rkingdon 9e93d4d03f Version 3 update 2004-03-27 04:15:29 +00:00
rkingdon 44cbe38d7f Version 3 updates 2004-03-27 04:07:37 +00:00
adamtpaw fe79f7d2fe Translation updates for Moodle 1.2 2004-03-26 22:14:26 +00:00
bobopinna 423e19f924 Updated by Roberto "Bobo" Pinna 2004-03-26 15:45:36 +00:00
mits 87d10572a5 New translation 2004-03-26 12:50:33 +00:00
mits 8fbd4d290d Polished. 2004-03-26 12:48:18 +00:00
mits c697a53fb3 Polished. 2004-03-26 12:04:42 +00:00
julmis cfa3f2622e Cleaning up javascript and trying to make code less
memory consuming.
2004-03-26 09:29:44 +00:00
koenr 7f6de0ee70 updated to 1.2.1 2004-03-25 20:05:41 +00:00
martignoni f3c2b2b99c Some typos corrected 2004-03-25 16:32:29 +00:00
moodler 43000582c0 OK, this is IT. 2004-03-25 15:53:08 +00:00
moodler 9564b02393 Added release notes for Moodle 1.2.1 2004-03-25 15:52:43 +00:00
moodler 92be8db8be Fixed just a tiny typo 2004-03-25 15:34:23 +00:00
moodler 1265952149 - Fixed timezone calculations when user isn't present, and
- format_float now defaults to one decimal place
2004-03-25 15:29:40 +00:00
moodler 151ee2bc70 Removed a very odd line ... probably left over from testing or something
bug 1156    Thanks Eloy!
2004-03-25 15:22:51 +00:00
moodler 95e42912a7 Fix to detect the different ANSWER format used for Shortanswers bug 1182 2004-03-25 15:07:14 +00:00
moodler e02bd4a191 After an error on import, come back to this page 2004-03-25 14:55:04 +00:00
moodler 9421aca0cd WebCT import can now deal with escaped colons in the text bug 1182 2004-03-25 14:50:25 +00:00
moodler b4ac9780fe Don't create a warning for missing images. See Bug 1181 2004-03-25 13:53:30 +00:00
martignoni 18e3b74270 Changed french name of "survey" activity to "consultation" to avoid confusion 2004-03-25 12:40:31 +00:00
adamtpaw 4350202847 Few new files 2004-03-25 11:30:57 +00:00
moodler 9d996871bb Use the data_submitted() function to get POST data ... allows checking etc 2004-03-25 08:14:24 +00:00
moodler 8dcd43f3fe Checking in Eloy's Javascript/smiley fixes from bug 1185 Thanks! 2004-03-25 06:31:44 +00:00
moodler 9a11957599 SOme fixes for formatting from Koen in bug 1183 2004-03-25 05:43:36 +00:00
moodler 0eb59ce623 Better handling of single forums when secureforms is on. bug 1189 2004-03-25 05:29:38 +00:00
moodler 7028b23fa3 Updates 2004-03-25 04:05:03 +00:00
stronk7 39e7e1abf8 One more day... 2004-03-24 23:27:09 +00:00
julmis 85334fdc0a Adding missing slash in tr -tag line 258 2004-03-24 23:14:20 +00:00
koenr 65c0f4de09 translated by koen roggemans 2004-03-24 18:41:39 +00:00
koenr 4aa6c61150 final modifications 2004-03-24 17:23:07 +00:00
mits e7e967aef2 Polished. 2004-03-24 17:22:25 +00:00
paca70 33b10c6e6c Updates from Jussi Kurikka 2004-03-24 15:05:01 +00:00
moodler b85806454b Multichoice defaults to a single answer 2004-03-24 14:36:52 +00:00
moodler ead6351e85 OK, this'll do for now. Nothing too serious remains, I think. 2004-03-24 13:03:43 +00:00
moodler d0ec93fbd6 Guests can no longer see email addresses if "show only to course participants"
has been set by that user
2004-03-24 12:23:43 +00:00
andreabix 8a39753a5d Theme update: modified the .autolink class in order to obtain a question mark cursor when mouse hovers the glossary link. 2004-03-24 10:58:26 +00:00
koenr 430360c8b7 hmm, typo 2004-03-24 10:05:21 +00:00
koenr ca433c0170 pollished some ugly and unclear translations, based on various usercomments 2004-03-24 09:56:10 +00:00
koenr f42cd726f1 Updated a verry outdated helpfile 2004-03-24 09:54:57 +00:00
moodler 427fdf6669 Primary admin is now the lowest-numbered entry in user_admins, rather than
the admin with the lowest userid.  This makes it easier to change the
primary admin.
2004-03-24 09:38:47 +00:00
adamtpaw de861fe3cb Few corrections and removing of not translated files. 2004-03-24 08:55:42 +00:00
adamtpaw 6fb4ced553 removing of not translated files. 2004-03-24 08:54:07 +00:00
mits 62302b6481 Polished 2004-03-24 04:06:16 +00:00
stronk7 3241e2c583 Small typo. Now Bug 1179 is closed.
(http://moodle.org/bugs/bug.php?op=show&bugid=1179)
2004-03-24 00:28:38 +00:00
stronk7 dadbd7586b Changed border=1 to border=0. Included in previous version to test a bug. Sorry. 2004-03-23 23:58:09 +00:00
stronk7 340ccd3e8d Small typo. Detected by aroberti. Bug 1178. Closed now. 2004-03-23 23:53:05 +00:00
mits 79e80e982f Polished 2004-03-23 21:35:42 +00:00
martignoni 67259f1cff Fixed some missing backslashes 2004-03-23 16:40:10 +00:00
giro123 68d04a4c33 Pedro Benito 2004-03-23 14:47:27 +00:00
moodler 61b9cd063e Tinkered with this a bit to improve brightness of Play button on
darker screens
2004-03-23 04:13:35 +00:00
koenr df849f0cd5 Initial translation by Evelien Roos 2004-03-22 23:31:22 +00:00
koenr 5c52c13309 ugly translation 2004-03-22 22:47:16 +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
paca70 52248cff83 Updates 2004-03-22 17:02:59 +00:00
moodler 53f689833f Preparing for micro-release in a day or two 2004-03-22 16:48:38 +00:00
moodler 10c6c6063b Even safer implementation of the temporary $USER variable 2004-03-22 16:39:40 +00:00
moodler b346b424d6 Prevent glossary etc from adding links to activity names that are
about to be turned into links (using <nolink> tags)
2004-03-22 16:16:49 +00:00
bobopinna bb978ef02f Translated by Luca Arese 2004-03-22 15:56:38 +00:00
moodler 98bac2d044 Fixed some missing backslashes 2004-03-22 14:49:08 +00:00
moodler e80a8db7e0 Fixed GHEIGHT, GWIDTH typos ... thanks Prince Eloy! 2004-03-22 07:48:38 +00:00
moodler 8575cd3233 Most of the time, don't rely on HTTP_REFERER 2004-03-22 05:59:43 +00:00
moodler 840c178193 Fix from Bernard Boucher for situation when no groups members defined
http://moodle.org/mod/forum/discuss.php?d=6335#29657
2004-03-22 02:57:27 +00:00
moodler 01f2900014 Better checking of admin user stuff 2004-03-22 01:58:40 +00:00
moodler cae86de785 Unset $USER variable 2004-03-22 00:59:24 +00:00
koenr 9bac9e18f9 typo 2004-03-21 21:35:59 +00:00
martignoni 3ede87d978 Small correction 2004-03-21 12:35:55 +00:00
martignoni 709760080f Logs are now fully restored 2004-03-21 11:43:19 +00:00
martignoni bbc4d23fa8 Added 'removelink' and some corrections 2004-03-21 11:40:29 +00:00
stronk7 1163776529 Bump to 1.2 + :-) 2004-03-21 10:46:05 +00:00
paca70 3fa7a026f7 Updates 2004-03-21 10:36:40 +00:00
koenr 2ec96b0538 missing string 2004-03-21 06:34:09 +00:00
moodler 35ed9b2f2b Moving right along 2004-03-21 03:34:34 +00:00
moodler 20439c700b Add idnumber to list of course students 2004-03-21 03:30:27 +00:00
moodler c8d63a00e4 Added 'removelink' 2004-03-21 01:55:01 +00:00
moodler d9ed37f2f4 Logs are restored! 2004-03-21 01:35:13 +00:00
koenr 07e61bb603 initialtranslation by Koen Roggemans 2004-03-20 19:01:42 +00:00
martignoni 4e66ab82c1 Some major cleanups 2004-03-20 19:01:15 +00:00
koenr e52fb99b48 adding missing links 2004-03-20 19:00:28 +00:00
martignoni 057b5f5afa Updates 2004-03-20 18:55:34 +00:00
koenr 4e9bca6d18 and WebCT 2004-03-20 18:51:52 +00:00
martignoni 7845101287 Various fixes 2004-03-20 18:48:58 +00:00
koenr 2e096fa1f9 adding cloze link 2004-03-20 18:47:03 +00:00
koenr d2c84650ab missing string 2004-03-20 18:34:54 +00:00
martignoni 47b9d48544 Added "notavailable" string 2004-03-20 17:14:35 +00:00
mits 5a85115df7 added a new translated help file. 2004-03-20 16:55:16 +00:00
moodler b1847bce93 Slight wording change 2004-03-20 15:57:46 +00:00
moodler 72b7272126 Slight tweaking 2004-03-20 15:23:14 +00:00
2661 changed files with 132481 additions and 61309 deletions
+3 -3
View File
@@ -102,7 +102,7 @@
if ($primaryadmin->id == $admin->id){
print_spacer(10, 9, false);
} else {
echo "<a href=\"{$_SERVER['PHP_SELF']}?remove=$admin->id\"
echo "<a href=\"admin.php?remove=$admin->id\"
title=\"$strremoveadmin\"><img src=\"../pix/t/right.gif\"
border=0></A>";
}
@@ -136,14 +136,14 @@
}
foreach ($users as $user) {
echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
echo "<p align=left><a href=\"admin.php?add=$user->id\"".
"title=\"$straddadmin\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;".fullname($user).", $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action={$_SERVER['PHP_SELF']} method=post>";
echo "<form action=admin.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
+44 -1
View File
@@ -3,6 +3,7 @@
require_once("../config.php");
require_once("../backup/lib.php");
require_once("../backup/backup_scheduled.php");
require_login();
@@ -57,6 +58,42 @@
foreach ($config as $name => $value) {
backup_set_config($name, $value);
}
//And now, we execute schedule_backup_next_execution() for each course in the server to have the next
//execution time updated automatically everytime it's changed.
$status = true;
//get admin
$admin = get_admin();
if (!$admin) {
$status = false;
}
//get backup config
if (! $backup_config = backup_get_config()) {
$status = false;
}
if ($status) {
//get courses
if ($courses = get_records("course")) {
//For each course, we check (insert, update) the backup_course table
//with needed data
foreach ($courses as $course) {
//We check if the course exists in backup_course
$backup_course = get_record("backup_courses","courseid",$course->id);
//If it doesn't exist, create
if (!$backup_course) {
$temp_backup_course->courseid = $course->id;
$newid = insert_record("backup_courses",$temp_backup_course);
//And get it from db
$backup_course = get_record("backup_courses","id",$newid);
}
//Now, calculate next execution of the course
$nextstarttime = schedule_backup_next_execution ($backup_course,$backup_config,time(),$admin->timezone);
//Save it to db
set_field("backup_courses","nextstarttime",$nextstarttime,"courseid",$backup_course->courseid);
}
}
}
if (!$error) {
redirect("$CFG->wwwroot/$CFG->admin/index.php", get_string("changessaved"), 1);
exit;
@@ -82,7 +119,13 @@
echo "<br />";
print_simple_box_start("center", "", "$THEME->cellheading");
include("$CFG->dirroot/backup/config.html");
//Check for required functions...
if(!function_exists('utf8_encode')) {
print_simple_box("<font color=\"red\">You need to add XML support to your PHP installation</font>", "center", "70%", "$THEME->cellheading", "20", "noticebox");
}
include ("$CFG->dirroot/backup/config.html");
print_simple_box_end();
print_footer();
+60
View File
@@ -0,0 +1,60 @@
<?PHP // $Id$
// block.php - allows admin to edit all local configuration variables for a block
require_once('../config.php');
require_once($CFG->libdir.'/blocklib.php');
require_login();
if (!isadmin()) {
error('Only an admin can use this page');
}
if (!$site = get_site()) {
error("Site isn't defined!");
}
require_variable($_REQUEST['block']);
$blockid = intval($_REQUEST['block']);
if(($blockrecord = get_record('blocks', 'id', $blockid)) === false) {
error('This block does not exist');
}
$block = block_instance($blockrecord->name, NULL);
if($block === false) {
error('Problem in instantiating block object');
}
/// If data submitted, then process and store.
if ($config = data_submitted()) {
unset($config['block']); // This will always be set if we have reached this point
$block->handle_config($config);
print_header();
redirect("$CFG->wwwroot/$CFG->admin/blocks.php", get_string("changessaved"), 1);
exit;
}
/// Otherwise print the form.
$stradmin = get_string('administration');
$strconfiguration = get_string('configuration');
$strmanageblocks = get_string('manageblocks');
$strblockname = $block->get_title();
print_header($site->shortname.': '.$strblockname.": $strconfiguration", $site->fullname,
"<a href=\"index.php\">$stradmin</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> ".
"<a href=\"blocks.php\">$strmanageblocks</a> -> ".$strblockname);
print_heading($strblockname);
print_simple_box('<center>'.get_string('configwarning').'</center>', 'center', '50%');
echo '<br />';
$block->print_config();
print_footer();
?>
+172
View File
@@ -0,0 +1,172 @@
<?PHP // $Id$
// Allows the admin to configure blocks (hide/show, delete and configure)
require_once('../config.php');
require_once($CFG->libdir.'/blocklib.php');
optional_variable($_GET['hide']);
optional_variable($_GET['show']);
optional_variable($_GET['delete']);
optional_variable($_GET['confirm'], 0);
$delete = $_GET['delete']; // Dependency remover
require_login();
if (!isadmin()) {
error("Only administrators can use this page!");
}
if (!$site = get_site()) {
error("Site isn't defined!");
}
/// Print headings
$stradministration = get_string('administration');
$strconfiguration = get_string('configuration');
$strmanageblocks = get_string('manageblocks');
$strdelete = get_string('delete');
$strversion = get_string('version');
$strhide = get_string('hide');
$strshow = get_string('show');
$strsettings = get_string('settings');
$strcourses = get_string('courses');
$strname = get_string('name');
print_header("$site->shortname: $strmanageblocks", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $strmanageblocks");
print_heading($strmanageblocks);
/// If data submitted, then process and store.
if (!empty($_GET['hide'])) {
if (!$block = get_record('blocks', 'id', $_GET['hide'])) {
error("Block doesn't exist!");
}
set_field('blocks', 'visible', '0', 'id', $block->id); // Hide block
}
if (!empty($_GET['show'])) {
if (!$block = get_record('blocks', 'id', $_GET['show'])) {
error("Block doesn't exist!");
}
set_field('blocks', 'visible', '1', 'id', $block->id); // Show block
}
if (!empty($delete)) {
if (!$block = get_record('blocks', 'id', $delete)) {
error("Block doesn't exist!");
}
$blockobject = block_instance($block->name, $site);
$strblockname = $blockobject->get_title();
if (!$_GET['confirm']) {
notice_yesno(get_string('blockdeleteconfirm', '', $strblockname),
'blocks.php?delete='.$block->id.'&amp;confirm=1',
'blocks.php');
print_footer();
exit;
} else {
// Delete block
if (!delete_records('blocks', 'id', $block->id)) {
notify("Error occurred while deleting the $strblockname record from blocks table");
}
blocks_update_every_block_by_id($block->id, 'delete'); // Delete blocks in all courses by id
// Then the tables themselves
if ($tables = $db->Metatables()) {
$prefix = $CFG->prefix.$block->name;
foreach ($tables as $table) {
if (strpos($table, $prefix) === 0) {
if (!execute_sql("DROP TABLE $table", false)) {
notify("ERROR: while trying to drop table $table");
}
}
}
}
$a->block = $strblockname;
$a->directory = $CFG->dirroot.'/blocks/'.$block->name;
notice(get_string('blockdeletefiles', '', $a), 'blocks.php');
}
}
/// Main display starts here
/// Get and sort the existing blocks
if (!$blocks = get_records('blocks')) {
error('No blocks found!'); // Should never happen
}
foreach ($blocks as $block) {
if(($blockobject = block_instance($block->name, NULL)) === false) {
// Failed to load
continue;
}
$blockbyname[$blockobject->get_title()] = $block->id;
$blockobjects[$block->id] = $blockobject;
}
ksort($blockbyname);
/// Print the table of all blocks
if (empty($THEME->custompix)) {
$pixpath = '../pix';
// [pj] This is not used anywhere, but I'm leaving it in for the future
//$modpixpath = '../mod';
} else {
$pixpath = '../theme/'.$CFG->theme.'/pix';
// [pj] This is not used anywhere, but I'm leaving it in for the future
//$modpixpath = '../theme/'.$CFG->theme.'/pix/mod';
}
$table->head = array ($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strdelete, $strsettings);
$table->align = array ('LEFT', 'RIGHT', 'LEFT', 'CENTER', 'CENTER', 'CENTER');
$table->wrap = array ("NOWRAP", "", "", "", "","");
$table->size = array ("100%", "10", "10", "10", "10","12");
$table->width = "100";
foreach ($blockbyname as $blockname => $blockid) {
// [pj] This is not used anywhere, but I'm leaving it in for the future
//$icon = "<img src=\"$modpixpath/$block->name/icon.gif\" hspace=10 height=16 width=16 border=0>";
$blockobject = $blockobjects[$blockid];
$delete = '<a href="blocks.php?delete='.$blockid.'">'.$strdelete.'</a>';
$settings = ''; // By default, no configuration
if($blockobject->has_config()) {
$settings = '<a href="block.php?block='.$blockid.'">'.$strsettings.'</a>';
}
$count = blocks_get_courses_using_block_by_id($blockid);
$class = ''; // Nothing fancy, by default
if ($blocks[$blockid]->visible) {
$visible = '<a href="blocks.php?hide='.$blockid.'" title="'.$strhide.'">'.
'<img src="'.$pixpath.'/i/hide.gif" style="height: 16px; width: 16px;" /></a>';
} else {
$visible = '<a href="blocks.php?show='.$blockid.'" title="'.$strshow.'">'.
'<img src="'.$pixpath.'/i/show.gif" style="height: 16px; width: 16px;" /></a>';
$class = ' class="dimmed_text"'; // Leading space required!
}
$table->data[] = array ('<p'.$class.'>'.$blockobject->get_title().'</p>', $count, $blockobject->get_version(), $visible, $delete, $settings);
}
echo '<p>';
print_table($table);
echo '</p>';
print_footer();
?>
+52
View File
@@ -404,6 +404,21 @@
<?php print_string("configfullnamedisplay") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>extendedusernamechars:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "extendedusernamechars", $config->extendedusernamechars, "", "", "");
?>
</td>
<td>
<?php print_string("configextendedusernamechars") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>forcelogin:</td>
<td>
@@ -419,6 +434,21 @@
<?php print_string("configforcelogin") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>forceloginforprofiles:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
$options[1] = get_string('yes');
choose_from_menu ($options, "forceloginforprofiles", $config->forceloginforprofiles, "", "", "");
?>
</td>
<td>
<?php print_string("configforceloginforprofiles") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>opentogoogle:</td>
<td>
@@ -435,6 +465,28 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>enablerssfeeds:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "enablerssfeeds", $config->enablerssfeeds, "", "", "");
?>
</td>
<td>
<?php
print_string("configenablerssfeeds");
//Check for required functions...
if(!function_exists('utf8_encode')) {
echo "<font color=\"red\"> You need to add XML support to your PHP installation.</font>";
}
?>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
+1 -1
View File
@@ -28,7 +28,7 @@
print_header();
foreach ($config as $name => $value) {
if ($name == "sessioncookie") {
$value = clean_filename($value);
$value = eregi_replace("[^a-zA-Z]", "", $value);
}
unset($conf);
$conf->name = $name;
+2
View File
@@ -32,6 +32,8 @@
get_string("adminhelplanguage"));
$table->data[] = array("<b><a href=\"modules.php\">".get_string("managemodules")."</a></b>",
get_string("adminhelpmanagemodules"));
$table->data[] = array("<b><a href=\"blocks.php\">".get_string("manageblocks")."</a></b>",
get_string("adminhelpmanageblocks"));
$table->data[] = array("<b><a href=\"filters.php\">".get_string("managefilters")."</a></b>",
get_string("adminhelpmanagefilters"));
if (!isset($CFG->disablescheduledbackups)) {
+3 -3
View File
@@ -95,7 +95,7 @@
foreach ($creators as $creator) {
$creatorarray[] = $creator->id;
echo "<p align=right>".fullname($creator, true).", $creator->email &nbsp;&nbsp; ";
echo "<a href=\"{$_SERVER['PHP_SELF']}?remove=$creator->id\"
echo "<a href=\"creators.php?remove=$creator->id\"
title=\"$strremovecreator\"><img src=\"../pix/t/right.gif\"
border=0></a>";
echo "</p>";
@@ -128,14 +128,14 @@
foreach ($users as $user) {
$fullname = fullname($user, TRUE);
echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
echo "<p align=left><a href=\"creators.php?add=$user->id\"".
"title=\"$straddcreator\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;$fullname, $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action={$_SERVER['PHP_SELF']} method=post>";
echo "<form action=creators.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
+37 -3
View File
@@ -14,10 +14,24 @@
$FULLME = "cron";
$starttime = microtime();
/// The current directory in PHP version 4.3.0 and above isn't necessarily the
/// directory of the script when run from the command line. The require_once()
/// would fail, so we'll have to chdir()
if (!isset($_SERVER['REMOTE_ADDR']) && isset($_SERVER['argv'][0])) {
chdir(dirname($_SERVER['argv'][0]));
}
require_once("../config.php");
$USER = get_admin();
if (!$alreadyadmin = isadmin()) {
unset($_SESSION['USER']);
unset($USER);
unset($_SESSION['SESSION']);
unset($SESSION);
$USER = get_admin(); /// Temporarily, to provide environment for this script
}
echo "<pre>\n";
@@ -112,14 +126,16 @@
if (!isset($CFG->disablescheduledbackups)) { // Defined in config.php
//Execute backup's cron
//Perhaps a long time and memory could help in large sites
set_time_limit(0);
@set_time_limit(0);
ini_set("memory_limit","56M");
if (file_exists("$CFG->dirroot/backup/backup_scheduled.php") and
file_exists("$CFG->dirroot/backup/backuplib.php") and
file_exists("$CFG->dirroot/backup/lib.php")) {
file_exists("$CFG->dirroot/backup/lib.php") and
file_exists("$CFG->libdir/blocklib.php")) {
include_once("$CFG->dirroot/backup/backup_scheduled.php");
include_once("$CFG->dirroot/backup/backuplib.php");
include_once("$CFG->dirroot/backup/lib.php");
require_once ("$CFG->libdir/blocklib.php");
echo "Running backups if required...\n";
flush();
@@ -131,6 +147,24 @@
}
}
if (!empty($CFG->enablerssfeeds)) { //Defined in admin/variables page
if (file_exists("$CFG->dirroot/rss/rsslib.php")) {
include_once("$CFG->dirroot/rss/rsslib.php");
echo "Running rssfeeds if required...\n";
flush();
if ( ! cron_rss_feeds()) {
echo "Something went wrong while generating rssfeeds!!!\n";
} else {
echo "Rssfeeds finished\n";
}
}
}
//Unset session variables and destroy it
@session_unset();
@session_destroy();
echo "Cron script completed correctly\n";
$difftime = microtime_diff($starttime, microtime());
+3 -2
View File
@@ -10,6 +10,7 @@
optional_variable($up);
optional_variable($down);
require_login();
if (!isadmin()) {
error("Only administrators can use this page!");
@@ -51,8 +52,8 @@
$plugins = get_list_of_plugins($filterlocation);
foreach ($plugins as $key => $plugin) {
if (is_readable("$CFG->dirroot/$filterlocation/$plugin/filter.php")) {
$name = get_string("filtername", $plugin);
if ($name == "[[filtername]]") {
$name = trim(get_string("filtername", $plugin));
if (empty($name) or $name == "[[filtername]]") {
$name = $plugin;
}
$allfilters["$filterlocation/$plugin"] = $name;
+14 -14
View File
@@ -18,11 +18,11 @@
die;
}
/// Check some PHP server settings
$documentationlink = "please read the <A HREF=\"../doc/?frame=install.html&sub=webserver\">install documentation</A>";
if (ini_get_bool('session.auto_start')) {
error("The PHP server variable 'session.auto_start' should be Off - $documentationlink");
}
@@ -36,15 +36,6 @@
}
/// Check that sessions are supported
if (!is_readable(ini_get('session.save_path')) and !ini_get_bool('safe_mode')) {
$sessionpath = ini_get('session.save_path');
notify("Warning: It appears your server does not support sessions (session.save_path = '$sessionpath')");
}
/// Check that config.php has been edited
if ($CFG->wwwroot == "http://example.com/moodle") {
@@ -77,7 +68,7 @@
/// Turn off time limits, sometimes upgrades can be slow.
set_time_limit(0);
@set_time_limit(0);
/// Check if the main tables have been installed yet or not.
@@ -203,11 +194,16 @@
/// Upgrade backup/restore system if necessary
require_once("$CFG->dirroot/backup/lib.php");
upgrade_backup_db("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Upgrade blocks system if necessary
require_once("$CFG->dirroot/lib/blocklib.php");
upgrade_blocks_db("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Check all blocks and load (or upgrade them if necessary)
upgrade_blocks_plugins("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Find and check all modules and load them up or upgrade them if necessary
if (!$mods = get_list_of_plugins("mod") ) {
@@ -295,7 +291,7 @@
print_heading($module->name);
$updated_modules = true;
$db->debug = true;
set_time_limit(0); // To allow slow databases to complete the long SQL
@set_time_limit(0); // To allow slow databases to complete the long SQL
if (modify_database("$fullmod/db/$CFG->dbtype.sql")) {
$db->debug = false;
if ($module->id = insert_record("modules", $module)) {
@@ -346,6 +342,8 @@
}
/// Check for valid admin user
require_login();
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
@@ -381,6 +379,8 @@
get_string("adminhelplanguage")."</font><br />";
$configdata .= "<font size=+1>&nbsp;</font><a href=\"modules.php\">".get_string("managemodules")."</a> - <font size=1>".
get_string("adminhelpmanagemodules")."</font><br />";
$configdata .= "<font size=+1>&nbsp;</font><a href=\"blocks.php\">".get_string("manageblocks")."</a> - <font size=1>".
get_string("adminhelpmanageblocks")."</font><br />";
$configdata .= "<font size=+1>&nbsp;</font><a href=\"filters.php\">".get_string("managefilters")."</a> - <font size=1>".
get_string("adminhelpmanagefilters")."</font><br />";
if (!isset($CFG->disablescheduledbackups)) {
+12 -13
View File
@@ -205,25 +205,24 @@
$envalue = str_replace("%%","%",$envalue);
$envalue = str_replace("\\","",$envalue); // Delete all slashes
echo "<tr>";
echo "<td width=20% bgcolor=\"$THEME->cellheading\" nowrap valign=top>$key</td>";
echo "<td width=40% bgcolor=\"$THEME->cellheading\" valign=top>$envalue</td>";
echo "\n\n<tr>";
echo "<td dir=ltr lang=en width=20% bgcolor=\"$THEME->cellheading\" nowrap valign=top>$key</td>\n";
echo "<td dir=ltr lang=en width=40% bgcolor=\"$THEME->cellheading\" valign=top>$envalue</td>\n";
$value = $string[$key];
$value = str_replace("\r","",$value); // Bad character caused by Windows
$value = str_replace("\n\n\n\n\n\n","\n",$value); // Collapse runs of blank lines
$value = str_replace("\n\n\n\n\n","\n",$value);
$value = str_replace("\n\n\n\n","\n",$value);
$value = str_replace("\n\n\n","\n",$value);
$value = str_replace("\n\n\n","\n",$value);
$value = preg_replace("/\n{3,}/", "\n\n", $value); // Collapse runs of blank lines
$value = trim($value, "\n"); // Delete leading/trailing lines
$value = str_replace("\\","",$value); // Delete all slashes
$value = str_replace("%%","%",$value);
$value = htmlspecialchars($value);
$value = str_replace("<","&lt;",$value);
$value = str_replace(">","&gt;",$value);
$value = str_replace('"',"&quot;",$value);
$cellcolour = $value ? $THEME->cellcontent: $THEME->highlight;
if ($editable) {
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>";
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>\n";
if (isset($string[$key])) {
$valuelen = strlen($value);
} else {
@@ -232,17 +231,17 @@
$cols=50;
if (strstr($value, "\r") or strstr($value, "\n") or $valuelen > $cols) {
$rows = ceil($valuelen / $cols);
echo "<textarea name=\"string-$key\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
echo "<textarea name=\"string-$key\" cols=\"$cols\" rows=\"$rows\">$value</textarea>\n";
} else {
if ($valuelen) {
$cols = $valuelen + 2;
}
echo "<input type=\"text\" name=\"string-$key\" value=\"$value\" size=\"$cols\"></td>";
}
echo "</TD>";
echo "</TD>\n";
} else {
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>$value</td>";
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>$value</td>\n";
}
}
if ($editable) {
+2
View File
@@ -9,6 +9,8 @@
optional_variable($delete);
optional_variable($confirm);
require_login();
if (!isadmin()) {
error("Only administrators can use this page!");
}
+1 -1
View File
@@ -27,7 +27,7 @@
<br />
</font>
</td>
<td><?php print_textarea($usehtmleditor, 10, 50, 600, 400, "summary", $form->summary); ?></td>
<td><?php print_textarea($usehtmleditor, 20, 50, 600, 400, "summary", $form->summary); ?></td>
</tr>
<tr valign=top>
<td align=right><P><?php print_string("frontpageformat") ?>:</td>
+1
View File
@@ -3,6 +3,7 @@
require_once("../config.php");
if ($site = get_site()) {
require_login();
if (!isadmin()) {
error("You need to be admin to edit this page");
}
+1 -1
View File
@@ -20,7 +20,7 @@
/// Turn off time limits, sometimes upgrades can be slow.
set_time_limit(0);
@set_time_limit(0);
/// Print header
+17 -4
View File
@@ -30,6 +30,18 @@
$struploadusers = get_string("uploadusers");
$straddnewuser = get_string("importuser");
$csv_encode = '/\&\#44/';
if (isset($CFG->CSV_DELIMITER)) {
$csv_delimiter = '\\' . $CFG->CSV_DELIMITER;
$csv_delimiter2 = $CFG->CSV_DELIMITER;
if (isset($CFG->CSV_ENCODE)) {
$csv_encode = '/\&\#' . $CFG->CSV_ENCODE . '/';
}
} else {
$csv_delimiter = "\,";
$csv_delimiter2 = ",";
}
/// Print the header
@@ -88,7 +100,7 @@
"group5" =>1);
// --- get header (field names) ---
$header = split("\,", fgets($fp,1024));
$header = split($csv_delimiter, fgets($fp,1024));
// check for valid field names
foreach ($header as $i => $h) {
$h = trim($h); $header[$i] = $h; // remove whitespace
@@ -111,11 +123,12 @@
foreach ($optionalDefaults as $key => $value) {
$user->$key = addslashes($adminuser->$key);
}
//Note: commas within a field should be encoded as &#44
$line = split("\,", fgets($fp,1024));
//Note: commas within a field should be encoded as &#44 (for comma separated csv files)
//Note: semicolon within a field should be encoded as &#59 (for semicolon separated csv files)
$line = split($csv_delimiter, fgets($fp,1024));
foreach ($line as $key => $value) {
//decode encoded commas
$record[$header[$key]] = preg_replace('/\&\#44/',',',trim($value));
$record[$header[$key]] = preg_replace($csv_encode,$csv_delimiter2,trim($value));
}
if ($record[$header[0]]) {
// add a new user to the database
+3 -3
View File
@@ -181,11 +181,11 @@
$columndir = "ASC";
}
} else {
$columndir = $dir == "asc" ? "desc":"asc";
$columndir = $dir == "ASC" ? "DESC":"ASC";
if ($column == "lastaccess") {
$columnicon = $dir == "asc" ? "up":"down";
$columnicon = $dir == "ASC" ? "up":"down";
} else {
$columnicon = $dir == "asc" ? "down":"up";
$columnicon = $dir == "ASC" ? "down":"up";
}
$columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" />";
+18
View File
@@ -17,6 +17,9 @@
if (!isset($config->ldap_bind_pw)) {
$config->ldap_bind_pw = "";
}
if (empty($config->ldap_version)) {
$config->ldap_version = "2";
}
?>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_host_url:</TD>
@@ -29,6 +32,21 @@
</TD>
</TR>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_version:</TD>
<TD>
<?php
$versions[2] = "2";
$versions[3] = "3";
choose_from_menu($versions, "ldap_version", $config->ldap_version, "");
if (isset($err["ldap_version"])) formerr($err["ldap_version"]);
?>
</TD>
<TD>
<?php print_string("auth_ldap_version","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_contexts:</TD>
<TD>
+4
View File
@@ -221,6 +221,10 @@ function auth_ldap_connect(){
$result = ldap_connect($CFG->ldap_host_url);
if ($result) {
if (!empty($CFG->ldap_version)) {
ldap_set_option($result, LDAP_OPT_PROTOCOL_VERSION, $CFG->ldap_version);
}
return $result;
} else {
+16 -3
View File
@@ -116,17 +116,19 @@ Backup Details:
- Browse backup files........................................DONE
- Download backup files......................................DONE
- Delete backup files........................................DONE
- Program scheduled backups..................................IN PROGRESS
- Program scheduled backups..................................DONE
- Build a configuration inteface..........................DONE
- Create the script.......................................DONE
- Integrate it in cron....................................DONE
- View logs...............................................IN PROGRESS
- View logs...............................................DONE
- Send email..............................................DONE
- Select manually the desired activities to backup...........NOT EXISTS
- Modify the backup frontend..............................NOT EXISTS
- Modify the backup of course_sections and course_modules.NOT EXISTS
- Modify every module backuplib to work properly..........NOT EXISTS
- Encode every possible internal link........................DONE
- Links to forums.........................................DONE
- Links to resources......................................DONE
Restore Details:
===============
- Delete old entries at restore start........................DONE
@@ -243,6 +245,17 @@ Restore Details:
- From database...........................................DONE
- From filesystem.........................................DONE
- Upload backup files........................................DONE
- Decode every possible internal link........................DONE
- Links to forums.........................................DONE
- From forums (post->message)..........................DONE
- From forums (forum->intro)...........................DONE
- From resources (resource->summary)...................DONE
- From resources (resource->alltext)...................DONE
- Links to resources......................................DONE
- From forums (post->message)..........................DONE
- From forums (forum->intro)...........................DONE
- From resources (resource->summary)...................DONE
- From resources (resource->alltext)...................DONE
========== ========== ========== =========== =========== =========== ===
+2 -1
View File
@@ -6,6 +6,7 @@
require_once ("../config.php");
require_once ("lib.php");
require_once ("backuplib.php");
require_once ("$CFG->libdir/blocklib.php");
optional_variable($id); // course id
optional_variable($cancel);
@@ -87,7 +88,7 @@
//Adjust some php variables to the execution of this script
ini_set("max_execution_time","3000");
ini_set("memory_limit","56M");
ini_set("memory_limit","80M");
//Call the form, depending the step we are
if (!$launch) {
+27
View File
@@ -132,6 +132,32 @@
//Now print the To Do list
echo "<tr>";
echo "<td colspan=\"2\" align=\"center\"><P><B>";
//Here we check if backup_users = None. Then, we switch off every module
//user info, user_files, logs and exercises and workshop backups. A Warning is showed to
//inform the user.
if ($backup_users == 2) {
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$var = "backup_user_info_".$modname;
if (isset($$var)) {
$$var = 0;
}
$var = "backup_".$modname;
if (isset($$var)) {
if ($modname == "exercise" || $modname == "workshop") {
$$var = 0;
}
}
}
$backup_user_files = 0;
$backup_logs = 0;
}
print_simple_box("<font color=\"red\">".get_string("backupnoneusersinfo")."</font>","center", "70%", "$THEME->cellheading", "20", "noticebox");
echo "<hr noshade size=\"1\">";
}
echo get_string("backupdetails").":";
echo "</td></tr>";
@@ -180,6 +206,7 @@
echo "<td colspan=\"2\"><P><B>";
$user_options[0] = get_string("includeallusers");
$user_options[1] = get_string("includecourseusers");
$user_options[2] = get_string("includenoneusers");
echo "<li>".$user_options[$backup_users]."<P>";
//Add as hidden name
echo "<input type=\"hidden\" name=\"backup_users\" value=\"".$backup_users."\">";
+1 -2
View File
@@ -14,7 +14,6 @@
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
@@ -110,7 +109,7 @@
echo "</td><td>";
$user_options[0] = get_string("all");
$user_options[1] = get_string("course");
//$user_options[2] = get_string("needed");-->NOT IMPLEMENTED
$user_options[2] = get_string("none");
choose_from_menu($user_options, "backup_users", $backup_users, "");
echo "</td></tr>";
+19 -2
View File
@@ -11,6 +11,12 @@ function schedule_backup_cron() {
$emailpending = false;
//Check for required functions...
if(!function_exists('utf8_encode')) {
echo " ERROR: You need to add XML support to your PHP installation!\n";
return true;
}
//Get now
$now = time();
@@ -462,18 +468,26 @@ function schedule_backup_course_execute($preferences,$starttime = 0) {
$preferences->backup_version = $CFG->backup_version;
$preferences->backup_release = $CFG->backup_release;
//Some parts of the backup doesn't know about $preferences, so we
//put a copy of it inside that CFG (always global) to be able to
//use it. Then, when needed I search for preferences inside CFG
//Used to avoid some problems in full_tag() when preferences isn't
//set globally (i.e. in scheduled backups)
$CFG->backup_preferences = $preferences;
//Check for temp and backup and backup_unique_code directory
//Create them as needed
schedule_backup_log($starttime,$preferences->backup_course," checking temp structures");
$status = check_and_create_backup_dir($preferences->backup_unique_code);
//Empty dir
//Empty backup dir
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," cleaning old data");
schedule_backup_log($starttime,$preferences->backup_course," cleaning current dir");
$status = clear_backup_dir($preferences->backup_unique_code);
}
//Delete old_entries from backup tables
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," cleaning old data");
$status = backup_delete_old_data();
}
@@ -612,6 +626,9 @@ function schedule_backup_course_execute($preferences,$starttime = 0) {
$status = clean_temp_data ($preferences);
}
//Unset CFG->backup_preferences only needed in scheduled backups
unset ($CFG->backup_preferences);
return $status;
}
+133 -65
View File
@@ -33,79 +33,84 @@
function user_check_backup($course,$backup_unique_code,$backup_users) {
//$backup_users=0-->all
// 1-->course (needed + enrolled)
// 2-->none
global $CFG;
global $db;
$count_users = 0;
//If we've selected none, simply return 0
if ($backup_users == 0 or $backup_users == 1) {
//Calculate needed users (calling every xxxx_get_participants function + scales users)
$needed_users = backup_get_needed_users($course);
//Calculate needed users (calling every xxxx_get_participants function + scales users)
$needed_users = backup_get_needed_users($course);
//Calculate enrolled users (students + teachers)
$enrolled_users = backup_get_enrolled_users($course);
//Calculate enrolled users (students + teachers)
$enrolled_users = backup_get_enrolled_users($course);
//Calculate all users (every record in users table)
$all_users = backup_get_all_users();
//Calculate all users (every record in users table)
$all_users = backup_get_all_users();
//Calculate course users (needed + enrolled)
//First, needed
$course_users = $needed_users;
//Calculate course users (needed + enrolled)
//First, needed
$course_users = $needed_users;
//Now, enrolled
if ($enrolled_users) {
foreach ($enrolled_users as $enrolled_user) {
$course_users[$enrolled_user->id]->id = $enrolled_user->id;
//Now, enrolled
if ($enrolled_users) {
foreach ($enrolled_users as $enrolled_user) {
$course_users[$enrolled_user->id]->id = $enrolled_user->id;
}
}
}
//Now, depending of parameters, create $backupable_users
if ($backup_users == 0) {
$backupable_users = $all_users;
} else {
$backupable_users = $course_users;
//Now, depending of parameters, create $backupable_users
if ($backup_users == 0) {
$backupable_users = $all_users;
} else {
$backupable_users = $course_users;
}
//If we have backupable users
if ($backupable_users) {
//Iterate over users putting their roles
foreach ($backupable_users as $backupable_user) {
$backupable_user->info = "";
//Is Admin in tables (not is_admin()) !!
if (record_exists("user_admins","userid",$backupable_user->id)) {
$backupable_user->info .= "admin";
}
//Is Course Creator in tables (not is_coursecreator()) !!
if (record_exists("user_coursecreators","userid",$backupable_user->id)) {
$backupable_user->info .= "coursecreator";
}
//Is Teacher in tables (not is_teacher()) !!
if (record_exists("user_teachers","course",$course,"userid",$backupable_user->id)) {
$backupable_user->info .= "teacher";
}
//Is Student in tables (not is_student()) !!
if (record_exists("user_students","course",$course,"userid",$backupable_user->id)) {
$backupable_user->info .= "student";
}
//Is needed user (exists in needed_users)
if (isset($needed_users[$backupable_user->id])) {
$backupable_user->info .= "needed";
}
//Now create the backup_id record
$backupids_rec->backup_code = $backup_unique_code;
$backupids_rec->table_name = "user";
$backupids_rec->old_id = $backupable_user->id;
$backupids_rec->info = $backupable_user->info;
//Insert the record id. backup_users decide it.
//When all users
$status = insert_record("backup_ids",$backupids_rec,false,"backup_code");
$count_users++;
}
//Do some output
backup_flush(30);
}
}
//If we have backupable users
if ($backupable_users) {
//Iterate over users putting their roles
foreach ($backupable_users as $backupable_user) {
$backupable_user->info = "";
//Is Admin in tables (not is_admin()) !!
if (record_exists("user_admins","userid",$backupable_user->id)) {
$backupable_user->info .= "admin";
}
//Is Course Creator in tables (not is_coursecreator()) !!
if (record_exists("user_coursecreators","userid",$backupable_user->id)) {
$backupable_user->info .= "coursecreator";
}
//Is Teacher in tables (not is_teacher()) !!
if (record_exists("user_teachers","course",$course,"userid",$backupable_user->id)) {
$backupable_user->info .= "teacher";
}
//Is Student in tables (not is_student()) !!
if (record_exists("user_students","course",$course,"userid",$backupable_user->id)) {
$backupable_user->info .= "student";
}
//Is needed user (exists in needed_users)
if (isset($needed_users[$backupable_user->id])) {
$backupable_user->info .= "needed";
}
//Now create the backup_id record
$backupids_rec->backup_code = $backup_unique_code;
$backupids_rec->table_name = "user";
$backupids_rec->old_id = $backupable_user->id;
$backupids_rec->info = $backupable_user->info;
//Insert the record id. backup_users decide it.
//When all users
$status = insert_record("backup_ids",$backupids_rec,false,"backup_code");
$count_users++;
}
//Do some output
backup_flush(30);
}
//Prepare Info
//Gets the user data
$info[0][0] = get_string("users");
@@ -123,7 +128,7 @@
function backup_get_needed_users ($courseid) {
global $CFG;
global $CFG, $THEME;
$result = false;
@@ -426,6 +431,8 @@
//Return the start tag, the contents and the end tag
function full_tag($tag,$level=0,$endline=true,$content,$to_utf=true) {
//Here we encode absolute links
$content = backup_encode_absolute_links($content);
$st = start_tag($tag,$level,$endline);
$co="";
if ($to_utf) {
@@ -455,6 +462,8 @@
fwrite ($bf,full_tag("BACKUP_RELEASE",2,false,$preferences->backup_release));
//The date
fwrite ($bf,full_tag("DATE",2,false,$preferences->backup_unique_code));
//The original site wwwroot
fwrite ($bf,full_tag("ORIGINAL_WWWROOT",2,false,$CFG->wwwroot));
//Te includes tag
fwrite ($bf,start_tag("DETAILS",2,true));
//Now, go to mod element of preferences to print its status
@@ -480,8 +489,10 @@
//The user in backup
if ($preferences->backup_users == 1) {
fwrite ($bf,full_tag("USERS",3,false,"course"));
} else {
} else if ($preferences->backup_users == 0) {
fwrite ($bf,full_tag("USERS",3,false,"all"));
} else {
fwrite ($bf,full_tag("USERS",3,false,"none"));
}
//The logs in backup
if ($preferences->backup_logs == 1) {
@@ -549,6 +560,7 @@
fwrite ($bf,full_tag("SUMMARY",3,false,$course->summary));
fwrite ($bf,full_tag("FORMAT",3,false,$course->format));
fwrite ($bf,full_tag("SHOWGRADES",3,false,$course->showgrades));
fwrite ($bf,full_tag("BLOCKINFO",3,false,blocks_get_block_names($course->blockinfo)));
fwrite ($bf,full_tag("NEWSITEMS",3,false,$course->newsitems));
fwrite ($bf,full_tag("TEACHER",3,false,$course->teacher));
fwrite ($bf,full_tag("TEACHERS",3,false,$course->teachers));
@@ -557,7 +569,7 @@
fwrite ($bf,full_tag("GUEST",3,false,$course->guest));
fwrite ($bf,full_tag("STARTDATE",3,false,$course->startdate));
fwrite ($bf,full_tag("NUMSECTIONS",3,false,$course->numsections));
fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent));
//fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent)); INFO: This is out in 1.3
fwrite ($bf,full_tag("MAXBYTES",3,false,$course->maxbytes));
fwrite ($bf,full_tag("SHOWREPORTS",3,false,$course->showreports));
fwrite ($bf,full_tag("GROUPMODE",3,false,$course->groupmode));
@@ -565,6 +577,7 @@
fwrite ($bf,full_tag("LANG",3,false,$course->lang));
fwrite ($bf,full_tag("MARKER",3,false,$course->marker));
fwrite ($bf,full_tag("VISIBLE",3,false,$course->visible));
fwrite ($bf,full_tag("HIDDENSECTIONS",3,false,$course->hiddensections));
fwrite ($bf,full_tag("TIMECREATED",3,false,$course->timecreated));
$status = fwrite ($bf,full_tag("TIMEMODIFIED",3,false,$course->timemodified));
//Print header end
@@ -935,13 +948,23 @@
$scales = get_records_sql("SELECT id, courseid, userid, name, scale, description, timemodified
FROM {$CFG->prefix}scale
WHERE courseid = '0' or courseid = $preferences->backup_course");
//Pring scales header
//Copy only used scales to $backupscales. They will be in backup (unused no). See Bug 1223.
$backupscales = array();
if ($scales) {
foreach ($scales as $scale) {
if (course_scale_used($preferences->backup_course, $scale->id)) {
$backupscales[] = $scale;
}
}
}
//Pring scales header
if ($backupscales) {
//Pring scales header
fwrite ($bf,start_tag("SCALES",2,true));
//Iterate
foreach ($scales as $scale) {
foreach ($backupscales as $scale) {
//Begin scale tag
fwrite ($bf,start_tag("SCALE",3,true));
//Output scale tag
@@ -986,11 +1009,13 @@
fwrite ($bf,full_tag("ID",4,false,$event->id));
fwrite ($bf,full_tag("NAME",4,false,$event->name));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$event->description));
fwrite ($bf,full_tag("FORMAT",4,false,$event->format));
fwrite ($bf,full_tag("GROUPID",4,false,$event->groupid));
fwrite ($bf,full_tag("USERID",4,false,$event->userid));
fwrite ($bf,full_tag("EVENTTYPE",4,false,$event->eventtype));
fwrite ($bf,full_tag("TIMESTART",4,false,$event->timestart));
fwrite ($bf,full_tag("TIMEDURATION",4,false,$event->timeduration));
fwrite ($bf,full_tag("VISIBLE",4,false,$event->visible));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$event->timemodified));
//End event tag
fwrite ($bf,end_tag("EVENT",3,true));
@@ -1107,6 +1132,49 @@
}
//This function encode things to make backup multi-site fully functional
//It does this conversions:
// - $CFG->wwwroot/file.php/courseid ------------------> $@FILEPHP@$ (slasharguments links)
// - $CFG->wwwroot/file.php?file=/courseid ------------> $@FILEPHP@$ (non-slasharguments links)
// - Every module xxxx_encode_content_links() is executed too
//
function backup_encode_absolute_links($content) {
global $CFG,$preferences;
//Check if preferences is ok. If it isn't set, we are
//in a scheduled_backup to we are able to get a copy
//from CFG->backup_preferences
if (!isset($preferences)) {
$mypreferences = $CFG->backup_preferences;
} else {
//We are in manual backups so global preferences must exist!!
$mypreferences = $preferences;
}
//First, we check for every call to file.php inside the course
$search = array($CFG->wwwroot.'/file.php/'.$mypreferences->backup_course,
$CFG->wwwroot.'/file.php?file=/'.$mypreferences->backup_course);
$replace = array('$@FILEPHP@$','$@FILEPHP@$');
$result = str_replace($search,$replace,$content);
foreach ($mypreferences->mods as $name => $info) {
//Check if the xxxx_encode_content_links exists
$function_name = $name."_encode_content_links";
if (function_exists($function_name)) {
$result = $function_name($result,$mypreferences);
}
}
if ($result != $content && $CFG->debug>7) { //Debug
echo "<br><hr>".$content."<br>changed to<br>".$result."<hr><br>"; //Debug
} //Debug
return $result;
}
//This function copies all the needed files under the "users" directory to the "user_files"
//directory under temp/backup
function backup_copy_user_files ($preferences) {
+3 -3
View File
@@ -163,13 +163,13 @@
if (!isset($firstdayofweek) || $firstdayofweek != 1) {
$firstdayofweek = 0;
}
//Now create the timestamp of a well-know sunday (02/25/2001, my 31th birthday (stronk7) !!)
$onesunday = make_timestamp(2001,2,25);
//Now create the GMT timestamp of a well-know sunday (02/25/2001, my 31th birthday (stronk7) !!)
$onesunday = gmmktime(0,0,0,2,25,2001);
$i = 0;
$day_names = "";
$check_names = "";
while ($i<7) {
$day_names[] = strftime("%A",$onesunday + (($firstdayofweek+$i)*86400));
$day_names[] = gmstrftime("%A",$onesunday + (($firstdayofweek+$i)*86400));
//Calculate standard day of week (0=Sunday......6=Saturday)
//to store info in that exact order in DB
$stddayofweek = ($i+$firstdayofweek) % 7;
+6 -6
View File
@@ -25,15 +25,15 @@
}
//Delete old data in backup tables (if exists)
//Two days seems to be apropiate
//Four hours seem to be appropiate now that backup is stable
function backup_delete_old_data() {
global $CFG;
//Change this if you want !!
$days = 2;
$hours = 4;
//End change this
$seconds = $days * 24 * 60 * 60;
$seconds = $hours * 60 * 60;
$delete_from = time()-$seconds;
//Now delete from tables
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_ids
@@ -339,7 +339,7 @@
$db->debug = false;
if (set_config("backup_version", $backup_version) and set_config("backup_release", $backup_release)) {
notify(get_string("databasesuccess"), "green");
notify(get_string("databaseupgradebackups", "", $backup_release));
notify(get_string("databaseupgradebackups", "", $backup_version));
print_continue($continueto);
exit;
} else {
@@ -362,7 +362,7 @@
$db->debug=false;
if (set_config("backup_version", $backup_version) and set_config("backup_release", $backup_release)) {
notify(get_string("databasesuccess"), "green");
notify(get_string("databaseupgradebackups", "", $backup_release));
notify(get_string("databaseupgradebackups", "", $backup_version));
print_continue($continueto);
exit;
} else {
@@ -481,7 +481,7 @@
//This function is used to add slashes and decode from UTF-8
//It's used intensivelly when restoring modules and saving them in db
function backup_todb ($data) {
return addslashes(utf8_decode($data));
return restore_decode_absolute_links(addslashes(utf8_decode($data)));
}
//This function is used to check that every necessary function to
+6 -6
View File
@@ -37,9 +37,9 @@
//Lastlog view
if (!$courseid) {
print_header("$site->shortname: $strconfiguration: $strbackup", $site->fullname,
"<a href=\"../admin/index.php\">$stradmin</a> -> ".
"<a href=\"../admin/configure.php\">$strconfiguration</a> -> ".
"<a href=\"../admin/backup.php\">$strbackup</a> -> ".
"<a href=\"../$CFG->admin/index.php\">$stradmin</a> -> ".
"<a href=\"../$CFG->admin/configure.php\">$strconfiguration</a> -> ".
"<a href=\"../$CFG->admin/backup.php\">$strbackup</a> -> ".
$strlogs);
print_heading($backuploglaststatus);
@@ -81,9 +81,9 @@
//Detailed View !!
} else {
print_header("$site->shortname: $strconfiguration: $strbackup", $site->fullname,
"<a href=\"../admin/index.php\">$stradmin</a> -> ".
"<a href=\"../admin/configure.php\">$strconfiguration</a> -> ".
"<a href=\"../admin/backup.php\">$strbackup</a> -> ".
"<a href=\"../$CFG->admin/index.php\">$stradmin</a> -> ".
"<a href=\"../$CFG->admin/configure.php\">$strconfiguration</a> -> ".
"<a href=\"../$CFG->admin/backup.php\">$strbackup</a> -> ".
"<a href=\"log.php\">$strlogs</a> -> ".
$strbackupdetails);
+2 -1
View File
@@ -9,6 +9,7 @@
require_once ("../course/lib.php");
require_once ("lib.php");
require_once ("restorelib.php");
require_once("$CFG->libdir/blocklib.php");
//Optional
optional_variable($id);
@@ -94,7 +95,7 @@
//Adjust some php variables to the execution of this script
ini_set("max_execution_time","3000");
ini_set("memory_limit","56M");
ini_set("memory_limit","80M");
//Call the form, depending the step we are
if (!$launch) {
+20
View File
@@ -10,6 +10,10 @@
$restore = $SESSION->restore;
}
//Add info->original_wwwroot to $restore to be able to use it in all the restore process
//(mainly when decoding internal links)
$restore->original_wwwroot = $info->original_wwwroot;
//Check login
require_login();
@@ -267,6 +271,22 @@
}
}
//Now, if all is OK, adjust activity events
if ($status) {
echo "<li>".get_string("refreshingevents");
if (!$status = restore_refresh_events($restore)) {
notify("Could not refresh events for activities!");
}
}
//Now, if all is OK, adjust inter-activity links
if ($status) {
echo "<li>".get_string("decodinginternallinks");
if (!$status = restore_decode_content_links($restore)) {
notify("Could not refresh events for activities!");
}
}
//Now if all is OK, update:
// - course modinfo field
// - categories table
+40 -8
View File
@@ -98,7 +98,22 @@
?>
<form name="form" method="post" action="<?php echo $ME ?>">
<SCRIPT LANGUAGE="JavaScript">
<!--
function selectItemInMenuByName(formId, menuName, selectIndex ) {
myForm = document.getElementById(formId)
for (i=0,n=myForm.elements.length;i<n;i++) {
myLen = menuName.length;
myName = myForm.elements[i].name;
myType = myForm.elements[i].type;
if (myName.substring(0,myLen) == menuName && myType == "select-one")
myForm.elements[i].options[selectIndex].selected = true;
}
}
-->
</script>
<form name="form1" id="form1" method="post" action="<?php echo $ME ?>">
<table cellpadding=5>
<?php
@@ -123,6 +138,17 @@
echo "<tr><td colspan=\"2\"><hr noshade size=\"1\"></td></tr>";
//Now, check modules and info and show posibilities
if ($allmods = get_records("modules") ) {
//Print option to select/deselect every "with user info" popup. For Gustav, lol, Eloy :-)
echo "<tr>";
echo "<td colspan=\"2\" align=\"right\"><font size=\"-1\">";
echo get_string("userdata").":";
echo "<a href=\"javascript:void(0);\" onclick=\"selectItemInMenuByName('form1', 'restore_user_info_', '1');\">".
get_string("all")."</a>/";
echo "<a href=\"javascript:void(0);\" onclick=\"selectItemInMenuByName('form1', 'restore_user_info_', '0');\">".
get_string("none")."</a>";
echo "</font></td>";
echo "</tr>";
echo "<tr><td colspan=\"2\"><hr noshade size=\"1\"></td></tr>";
foreach ($allmods as $mod) {
$modname = $mod->name;
$modrestore = $modname."_restore_mods";
@@ -178,14 +204,20 @@
echo "<td align=\"right\"><P><B>";
echo get_string("users").":";
echo "</td><td>";
//If all users are in the backup file
if ($info->backup_users == "all") {
$user_options[0] = get_string("all");
//If some user is present in the backup file
if ($info->backup_users == "all" or $info->backup_users == "course") {
//If all users are in the backup file
if ($info->backup_users == "all") {
$user_options[0] = get_string("all");
}
$user_options[1] = get_string("course");
$user_options[2] = get_string("none");
choose_from_menu($user_options, "restore_users", $restore_users, "");
} else {
echo get_string("none");
echo "<input type=\"hidden\" name=\"restore_users\" value=\"2\">";
}
$user_options[1] = get_string("course");
$user_options[2] = get_string("none");
//$user_options[2] = get_string("needed");-->NOT IMPLEMENTED
choose_from_menu($user_options, "restore_users", $restore_users, "");
echo "</td></tr>";
//Now print the Logs tr
+20 -4
View File
@@ -52,10 +52,10 @@
$backup_unique_code = time();
//Now check and create the backup dir (if it doesn't exist)
echo "<li>".get_string("creatingtemporarystructures");
$status = check_and_create_backup_dir($backup_unique_code);
//Empty dir
if ($status) {
echo "<li>".get_string("creatingtemporarystructures");
$status = clear_backup_dir($backup_unique_code);
}
@@ -68,20 +68,26 @@
//Now copy he zip file to dataroot/temp/backup/backup_unique_code
if ($status) {
echo "<li>".get_string("copyingzipfile");
$status = backup_copy_file($file,$CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file));
if (! $status = backup_copy_file($file,$CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file))) {
notify("Error copying backup file. Invalid name or bad perms.");
}
}
//Now unzip the file
if ($status) {
echo "<li>".get_string("unzippingbackup");
$status = restore_unzip ($CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file));
if (! $status = restore_unzip ($CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file))) {
notify("Error unzipping backup file. Invalid zip file.");
}
}
//Now check for the moodle.xml file
if ($status) {
$xml_file = $CFG->dataroot."/temp/backup/".$backup_unique_code."/moodle.xml";
echo "<li>".get_string("checkingbackup");
$status = restore_check_moodle_file ($xml_file);
if (! $status = restore_check_moodle_file ($xml_file)) {
notify("Error checking backup file. Invalid or corrupted.");
}
}
$info = "";
@@ -103,6 +109,16 @@
echo "</tr></td>";
echo "</table>";
//We compare Moodle's versions
if ($CFG->version < $info->backup_moodle_version && $status) {
$message->serverversion = $CFG->version;
$message->serverrelease = $CFG->release;
$message->backupversion = $info->backup_moodle_version;
$message->backuprelease = $info->backup_moodle_release;
print_simple_box(get_string('noticenewerbackup','',$message), "center", "70%", "$THEME->cellheading2", "20", "noticebox");
}
//Now we print in other table, the backup and the course it contains info
if ($info and $course_header and $status) {
//First, the course info
+273 -9
View File
@@ -52,6 +52,207 @@
return $status;
}
//This function iterates over all modules in backup file, searching for a
//MODNAME_refresh_events() to execute. Perhaps it should ve moved to central Moodle...
function restore_refresh_events($restore) {
global $CFG;
$status = true;
//Take all modules in backup
$modules = $restore->mods;
//Iterate
foreach($modules as $name => $module) {
//Only if the module is being restored
if ($module->restore == 1) {
//Include module library
include_once("$CFG->dirroot/mod/$name/lib.php");
//If module_refresh_events exists
$function_name = $name."_refresh_events";
if (function_exists($function_name)) {
$status = $function_name($restore->course_id);
}
}
}
return $status;
}
//This function makes all the necessary calls to xxxx_decode_content_links_caller()
//function in each module, passing them the desired contents to be decoded
//from backup format to destination site/course in order to mantain inter-activities
//working in the backup/restore process
function restore_decode_content_links($restore) {
global $CFG;
$status = true;
echo "<ul>";
foreach ($restore->mods as $name => $info) {
//If the module is being restored
if ($info->restore == 1) {
//Check if the xxxx_decode_content_links_caller exists
$function_name = $name."_decode_content_links_caller";
if (function_exists($function_name)) {
echo "<li>".get_string ("to")." ".get_string("modulenameplural",$name);
$status = $function_name($restore);
}
}
}
//Now I'm going to decode to their new location all the links in wiki texts
//having the syntax " modulename:moduleid".
echo "<li>wiki";
$status = restore_decode_wiki_texts($restore);
echo "</ul>";
return $status;
}
//This function search for some wiki texts in differenct parts of Moodle to
//decode them to their new ids.
function restore_decode_wiki_texts($restore) {
global $CFG;
$status = true;
echo "<ul>";
if (file_exists("$CFG->dirroot/mod/resource/lib.php")) {
include_once("$CFG->dirroot/mod/resource/lib.php");
}
$formatwiki = FORMAT_WIKI;
$typewiki = WIKITEXT;
//FORUM: Decode every POST (message) in the course
//Check we are restoring forums
if ($restore->mods['forum']->restore == 1) {
echo "<li>".get_string("from")." ".get_string("modulenameplural","forum");
//Get all course posts being restored
if ($posts = get_records_sql ("SELECT p.id, p.message
FROM {$CFG->prefix}forum_posts p,
{$CFG->prefix}forum_discussions d,
{$CFG->prefix}backup_ids b
WHERE d.course = $restore->course_id AND
p.discussion = d.id AND
p.format = $formatwiki AND
b.backup_code = $restore->backup_unique_code AND
b.table_name = 'forum_posts' AND
b.new_id = p.id")) {
//Iterate over each post->message
$i = 0; //Counter to send some output to the browser to avoid timeouts
foreach ($posts as $post) {
//Increment counter
$i++;
$content = $post->message;
//Decode it
$result = restore_decode_wiki_content($content,$restore);
if ($result != $content) {
//Update record
$post->message = addslashes($result);
$status = update_record("forum_posts",$post);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
}
backup_flush(300);
}
}
}
}
//RESOURCE: Decode every RESOURCE (alltext) in the coure
//Check we are restoring resources
if ($restore->mods['resource']->restore == 1) {
echo "<li>".get_string("from")." ".get_string("modulenameplural","resource");
//Get all course resources of type=8 WIKITEXT being restored
if ($resources = get_records_sql ("SELECT r.id, r.alltext
FROM {$CFG->prefix}resource r,
{$CFG->prefix}backup_ids b
WHERE r.course = $restore->course_id AND
r.type = $typewiki AND
b.backup_code = $restore->backup_unique_code AND
b.table_name = 'resource' AND
b.new_id = r.id")) {
//Iterate over each resource->alltext
$i = 0; //Counter to send some output to the browser to avoid timeouts
foreach ($resources as $resource) {
//Increment counter
$i++;
$content = $resource->alltext;
//Decode it
$result = restore_decode_wiki_content($content,$restore);
if ($result != $content) {
//Update record
$resource->alltext = addslashes($result);
$status = update_record("resource",$resource);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
}
backup_flush(300);
}
}
}
}
echo "</ul>";
return $status;
}
//This function receives a wiki text in the restore process and
//return it with every link to modules " modulename:moduleid"
//converted if possible. See the space before modulename!!
function restore_decode_wiki_content($content,$restore) {
global $CFG;
$result = $content;
$searchstring='/ ([a-zA-Z]+):([0-9]+)\(([^)]+)\)/';
//We look for it
preg_match_all($searchstring,$content,$foundset);
//If found, then we are going to look for its new id (in backup tables)
if ($foundset[0]) {
//print_object($foundset); //Debug
//Iterate over foundset[2]. They are the old_ids
foreach($foundset[2] as $old_id) {
//We get the needed variables here (course id)
$rec = backup_getid($restore->backup_unique_code,"course_modules",$old_id);
//Personalize the searchstring
$searchstring='/ ([a-zA-Z]+):'.$old_id.'\(([^)]+)\)/';
//If it is a link to this course, update the link to its new location
if($rec->new_id) {
//Now replace it
$result= preg_replace($searchstring,' $1:'.$rec->new_id.'($2)',$result);
} else {
//It's a foreign link so redirect it to its original URL
$result= preg_replace($searchstring,$restore->original_wwwroot.'/mod/$1/view.php?id='.$old_id.'($2)',$result);
}
}
}
return $result;
}
//This function read the xml file and store it data from the info zone in an object
function restore_read_xml_info ($xml_file) {
@@ -335,9 +536,10 @@
$course->password = addslashes($course_header->course_password);
$course->fullname = addslashes($course_header->course_fullname);
$course->shortname = addslashes($course_header->course_shortname);
$course->summary = addslashes($course_header->course_summary);
$course->summary = restore_decode_absolute_links(addslashes($course_header->course_summary));
$course->format = addslashes($course_header->course_format);
$course->showgrades = addslashes($course_header->course_showgrades);
$course->blockinfo = addslashes($course_header->blockinfo);
$course->newsitems = addslashes($course_header->course_newsitems);
$course->teacher = addslashes($course_header->course_teacher);
$course->teachers = addslashes($course_header->course_teachers);
@@ -346,7 +548,7 @@
$course->guest = addslashes($course_header->course_guest);
$course->startdate = addslashes($course_header->course_startdate);
$course->numsections = addslashes($course_header->course_numsections);
$course->showrecent = addslashes($course_header->course_showrecent);
//$course->showrecent = addslashes($course_header->course_showrecent); INFO: This is out in 1.3
$course->maxbytes = addslashes($course_header->course_maxbytes);
$course->showreports = addslashes($course_header->course_showreports);
$course->groupmode = addslashes($course_header->course_groupmode);
@@ -354,8 +556,23 @@
$course->lang = addslashes($course_header->course_lang);
$course->marker = addslashes($course_header->course_marker);
$course->visible = addslashes($course_header->course_visible);
$course->hiddensections = addslashes($course_header->course_hiddensections);
$course->timecreated = addslashes($course_header->course_timecreated);
$course->timemodified = addslashes($course_header->course_timemodified);
//Adjust blockinfo field.
//If the info doesn't exist in backup, we create defaults, else we recode it
//to current site blocks.
if (!$course->blockinfo) {
//Create blockinfo default content
if ($course->format == "social") {
$course->blockinfo = blocks_get_default_blocks (NULL,"participants,search_forums,calendar_month,calendar_upcoming,social_activities,recent_activity,admin,course_list");
} else {
//For topics and weeks formats (default built in the function)
$course->blockinfo = blocks_get_default_blocks();
}
} else {
$course->blockinfo = blocks_get_block_ids($course->blockinfo);
}
//Now insert the record
$newid = insert_record("course",$course);
if ($newid) {
@@ -397,7 +614,7 @@
$sequence = "";
$section->course = $restore->course_id;
$section->section = $sect->number;
$section->summary = addslashes($sect->summary);
$section->summary = restore_decode_absolute_links(addslashes($sect->summary));
$section->visible = $sect->visible;
$section->sequence = "";
//Now calculate the section's newid
@@ -587,7 +804,7 @@
$user->address = addslashes($user->address);
$user->city = addslashes($user->city);
$user->url = addslashes($user->url);
$user->description = addslashes($user->description);
$user->description = restore_decode_absolute_links(addslashes($user->description));
//We are going to create the user
//The structure is exactly as we need
$newid = insert_record ("user",$user);
@@ -979,6 +1196,7 @@
//Now build the EVENT record structure
$eve->name = backup_todb($info['EVENT']['#']['NAME']['0']['#']);
$eve->description = backup_todb($info['EVENT']['#']['DESCRIPTION']['0']['#']);
$eve->format = backup_todb($info['EVENT']['#']['FORMAT']['0']['#']);
$eve->courseid = $restore->course_id;
$eve->groupid = backup_todb($info['EVENT']['#']['GROUPID']['0']['#']);
$eve->userid = backup_todb($info['EVENT']['#']['USERID']['0']['#']);
@@ -987,12 +1205,12 @@
$eve->eventtype = backup_todb($info['EVENT']['#']['EVENTTYPE']['0']['#']);
$eve->timestart = backup_todb($info['EVENT']['#']['TIMESTART']['0']['#']);
$eve->timeduration = backup_todb($info['EVENT']['#']['TIMEDURATION']['0']['#']);
$eve->visible = backup_todb($info['EVENT']['#']['VISIBLE']['0']['#']);
$eve->timemodified = backup_todb($info['EVENT']['#']['TIMEMODIFIED']['0']['#']);
//Now search if that event exists (by description and timestart field) in
//restore->course_id course
$eve_db = get_record("event","courseid",$restore->course_id,"description",$eve->description,"timestart",$eve->timestart);
$eve_db = get_record("event","courseid",$eve->courseid,"description",$eve->description,"timestart",$eve->timestart);
//If it doesn't exist, create
if (!$eve_db) {
$create_event = true;
@@ -1012,6 +1230,9 @@
$group = backup_getid($restore->backup_unique_code,"group",$eve->groupid);
if ($group) {
$eve->groupid = $group->new_id;
} else {
//Assign it to group 0
$eve->groupid = 0;
}
//The structure is equal to the db, so insert the event
@@ -1034,6 +1255,40 @@
return $status;
}
//This function decode things to make restore multi-site fully functional
//It does this conversions:
// - $@FILEPHP@$ ---|------------> $CFG->wwwroot/file.php/courseid (slasharguments on)
// |------------> $CFG->wwwroot/file.php?file=/courseid (slasharguments off)
//
//Note: Inter-activities linking is being implemented as a final
//step in the restore execution, because we need to have it
//finished to know all the oldid, newid equivaleces
function restore_decode_absolute_links($content) {
global $CFG,$restore;
//Now decode wwwroot and file.php calls
$search = array ("$@FILEPHP@$");
//Check for the status of the slasharguments config variable
$slash = $CFG->slasharguments;
//Build the replace string as needed
if ($slash == 1) {
$replace = array ($CFG->wwwroot."/file.php/".$restore->course_id);
} else {
$replace = array ($CFG->wwwroot."/file.php?file=/".$restore->course_id);
}
$result = str_replace($search,$replace,$content);
if ($result != $content && $CFG->debug>7) { //Debug
echo "<br><hr>".$content."<br>changed to<br>".$result."<hr><br>"; //Debug
} //Debug
return $result;
}
//This function restores the userfiles from the temp (user_files) directory to the
//dataroot/users directory
function restore_user_files($restore) {
@@ -1849,6 +2104,9 @@
case "DATE":
$this->info->backup_date = $this->getContents();
break;
case "ORIGINAL_WWWROOT":
$this->info->original_wwwroot = $this->getContents();
break;
}
}
if ($this->tree[3] == "DETAILS") {
@@ -1928,6 +2186,9 @@
case "SHOWGRADES":
$this->info->course_showgrades = $this->getContents();
break;
case "BLOCKINFO":
$this->info->blockinfo = $this->getContents();
break;
case "NEWSITEMS":
$this->info->course_newsitems = $this->getContents();
break;
@@ -1952,9 +2213,9 @@
case "NUMSECTIONS":
$this->info->course_numsections = $this->getContents();
break;
case "SHOWRECENT":
$this->info->course_showrecent = $this->getContents();
break;
//case "SHOWRECENT": INFO: This is out in 1.3
// $this->info->course_showrecent = $this->getContents();
// break;
case "MAXBYTES":
$this->info->course_maxbytes = $this->getContents();
break;
@@ -1976,6 +2237,9 @@
case "VISIBLE":
$this->info->course_visible = $this->getContents();
break;
case "HIDDENSECTIONS":
$this->info->course_hiddensections = $this->getContents();
break;
case "TIMECREATED":
$this->info->course_timecreated = $this->getContents();
break;
+2 -1
View File
@@ -1,8 +1,9 @@
<?php
<?PHP //$Id$
require_once ("../config.php");
require_once ("backup_scheduled.php");
require_once ("lib.php");
require_once ("backuplib.php");
require_once ("$CFG->libdir/blocklib.php");
require_login();
+2 -2
View File
@@ -5,6 +5,6 @@
// database (backup_version) to determine whether upgrades should
// be performed (see db/backup_*.php)
$backup_version = 2004032000; // The current version is a date (YYYYMMDDXX)
$backup_version = 2004052404; // The current version is a date (YYYYMMDDXX)
$backup_release = "1.2"; // User-friendly version number
$backup_release = "1.3.4"; // User-friendly version number
+53
View File
@@ -0,0 +1,53 @@
-------------------------------------------------------------------------------
CREATING NEW BLOCKS
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
WARNING - PRELIMINARY DOCUMENTATION
This is designed to point new block developers in the right direction. At times
it may NOT be fully up-to-date with the source, or it may even contain some
tiny bit of misinformation that has slipped our notice. If you encounter such a
case, please:
1. Use the existing block code as reference
2. Come to the moodle.org forums and tell the world! :) We 'll help you!
-------------------------------------------------------------------------------
You have to derive a class that extends MoodleBlock.
The derived class MUST:
* Implement a constructor that:
1. Sets $this->content_type (BLOCK_TYPE_LIST or BLOCK_TYPE_TEXT)
3. Sets $this->title
4. Sets $this->version
5. Sets $this->course equal to its only argument
The derived class MAY:
* Declare that the block has a configuration interface.
To do so:
1. Define a method has_config() {return true;}
2. Define a method print_config() that prints whatever
configuration interface you want to have.
3. Define a method handle_config($data) that does what
is needed. $data comes straight from data_submitted().
* Limit the course formats it can be displayed in.
To do so:
1. Define a method applicable_formats() which returns a bitwise
OR of one or more COURSE_FORMAT_XXX defined constants. These
are defined in lib/blocklib.php.
* Select a "preferred" width which the course format will try to honor.
To do so:
1. Define a method preferred_width() which returns an integer.
This is the block's preferred width in pixels.
* Declare that the block is going to hide its header. This will result
in a more lightweight appearance. Ideal for announcements/notices.
To do so:
1. Define a method hide_header() {return true;}
@@ -0,0 +1,39 @@
<?PHP //$Id$
class CourseBlock_activity_modules extends MoodleBlock {
function CourseBlock_activity_modules($course) {
$this->title = get_string('activities');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004041000;
}
function get_content() {
global $USER, $CFG;
// This is really NOT pretty, but let's do it simple for now...
global $modnamesused, $modnamesplural;
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = '';
if ($modnamesused) {
foreach ($modnamesused as $modname => $modfullname) {
if ($modname != 'label') {
$this->content->items[] = '<a href="../mod/'.$modname.'/index.php?id='.$this->course->id.'">'.$modnamesplural[$modname].'</a>';
$this->content->icons[] = '<img src="'.$CFG->modpixpath.'/'.$modname.'/icon.gif" height="16" width="16" alt="">';
}
}
}
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function activity_modules_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function activity_modules_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
+110
View File
@@ -0,0 +1,110 @@
<?PHP //$Id$
class CourseBlock_admin extends MoodleBlock {
function CourseBlock_admin($course) {
$this->title = get_string('administration');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004041000;
}
function get_content() {
global $USER, $CFG, $THEME;
require_once($CFG->dirroot.'/mod/forum/lib.php');
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = '';
if (isguest()) {
return $this->content;
}
if (isteacher($this->course->id)) {
$isteacheredit = isteacheredit($this->course->id);
if ($isteacheredit) {
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/edit.gif" height="16" width="16" alt="">';
if (isediting($this->course->id)) {
$this->content->items[]='<a href="view.php?id='.$this->course->id.'&amp;edit=off">'.get_string('turneditingoff').'</a>';
} else {
$this->content->items[]='<a href="view.php?id='.$this->course->id.'&amp;edit=on">'.get_string('turneditingon').'</a>';
}
$this->content->items[]='<a href="edit.php?id='.$this->course->id.'">'.get_string('settings').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/settings.gif" height="16" width="16" alt="">';
if (iscreator() or !empty($CFG->teacherassignteachers)) {
if (!$this->course->teachers) {
$this->course->teachers = get_string('defaultcourseteachers');
}
$this->content->items[]='<a href="teacher.php?id='.$this->course->id.'">'.$this->course->teachers.'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="">';
}
if (!$this->course->students) {
$this->course->students = get_string('defaultcoursestudents');
}
$this->content->items[]='<a href="student.php?id='.$this->course->id.'">'.$this->course->students.'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="">';
$this->content->items[]='<a href="'.$CFG->wwwroot.'/backup/backup.php?id='.$this->course->id.'">'.get_string('backup').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/backup.gif" height="16" width="16" alt="">';
$this->content->items[]='<a href="'.$CFG->wwwroot.'/files/index.php?id='.$this->course->id.'&amp;wdir=/backupdata">'.get_string('restore').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/restore.gif" height="16" width="16" alt="">';
$this->content->items[]='<a href="scales.php?id='.$this->course->id.'">'.get_string('scales').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/scales.gif" height="16" width="16" alt="">';
}
$this->content->items[]='<a href="grades.php?id='.$this->course->id.'">'.get_string('grades').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/grades.gif" height="16" width="16" alt="">';
$this->content->items[]='<a href="log.php?id='.$this->course->id.'">'.get_string('logs').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/log.gif" height="16" width="16" alt="">';
if ($isteacheredit) {
$this->content->items[]='<a href="'.$CFG->wwwroot.'/files/index.php?id='.$this->course->id.'">'.get_string('files').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/files.gif" height="16" width="16" alt="">';
}
$this->content->items[]='<a href="'.$CFG->wwwroot.'/doc/view.php?id='.$this->course->id.'&amp;file=teacher.html">'.get_string('help').'...</a>';
$this->content->icons[]='<img src="'.$CFG->modpixpath.'/resource/icon.gif" height="16" width="16" alt="">';
if ($teacherforum = forum_get_course_forum($this->course->id, 'teacher')) {
$this->content->items[]='<a href="'.$CFG->wwwroot.'/mod/forum/view.php?f='.$teacherforum->id.'">'.get_string('nameteacher', 'forum').'</a>';
$this->content->icons[]='<img src="'.$CFG->modpixpath.'/forum/icon.gif" height="16" width="16" alt="">';
}
} else if (!isguest()) { // Students menu
if ($this->course->showgrades) {
$this->content->items[]='<a href="grade.php?id='.$this->course->id.'">'.get_string('grades').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/grades.gif" height="16" width="16" alt="">';
}
if ($this->course->showreports) {
$this->content->items[]='<a href="user.php?id='.$this->course->id.'&amp;user='.$USER->id.'">'.get_string('activityreport').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/report.gif" height="16" width="16" alt="">';
}
if (is_internal_auth()) {
$this->content->items[]='<a href="'.$CFG->wwwroot.'/login/change_password.php?id='.$this->course->id.'">'.get_string('changepassword').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="">';
} else if ($CFG->changepassword) {
$this->content->items[]='<a href="'.$CFG->changepassword.'">'.get_string('changepassword').'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="">';
}
if ($CFG->allowunenroll) {
$this->content->items[]='<a href="unenrol.php?id='.$this->course->id.'">'.get_string('unenrolme', '', $this->course->shortname).'...</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="">';
}
}
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function admin_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function admin_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
@@ -0,0 +1,63 @@
<?PHP //$Id$
class CourseBlock_calendar_month extends MoodleBlock {
function CourseBlock_calendar_month($course) {
$this->title = get_string('calendar', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004052400;
}
function get_content() {
global $USER, $CFG, $SESSION;
optional_variable($_GET['cal_m']);
optional_variable($_GET['cal_y']);
require_once($CFG->dirroot.'/calendar/lib.php');
if ($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
if ($this->course === NULL) {
// Overrides: use no course at all
$courseshown = false;
$filtercourse = array();
} else {
$courseshown = $this->course->id;
$filtercourse = array($courseshown => 1);
}
// We 'll need this later
calendar_set_referring_course($courseshown);
// Be VERY careful with the format for default courses arguments!
// Correct formatting is [courseid] => 1 to be concise with moodlelib.php functions.
calendar_set_filters($courses, $group, $user, $filtercourse, $filtercourse);
if ($courseshown == 1) {
// For the front page
$this->content->text .= calendar_overlib_html();
$this->content->text .= calendar_top_controls('frontpage', array('m' => $_GET['cal_m'], 'y' => $_GET['cal_y']));
$this->content->text .= calendar_get_mini($courses, $group, $user, $_GET['cal_m'], $_GET['cal_y']);
// No filters for now
} else {
// For any other course
$this->content->text .= calendar_overlib_html();
$this->content->text .= calendar_top_controls('course', array('id' => $courseshown, 'm' => $_GET['cal_m'], 'y' => $_GET['cal_y']));
$this->content->text .= calendar_get_mini($courses, $group, $user, $_GET['cal_m'], $_GET['cal_y']);
$this->content->text .= calendar_filter_controls('course', '', $this->course);
}
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function calendar_month_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function calendar_month_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
@@ -0,0 +1,55 @@
<?PHP //$Id$
class CourseBlock_calendar_upcoming extends MoodleBlock {
function CourseBlock_calendar_upcoming ($course) {
$this->title = get_string('upcomingevents', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004052400;
}
function get_content() {
global $USER, $CFG, $SESSION;
optional_variable($_GET['cal_m']);
optional_variable($_GET['cal_y']);
require_once($CFG->dirroot.'/calendar/lib.php');
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '<br /><a href="'.$CFG->wwwroot.'/calendar/view.php?view=upcoming&amp;course='.$this->course->id.'">'.get_string('gotocalendar', 'calendar').'</a>...';
$this->content->footer .= '<br /><a href="'.$CFG->wwwroot.'/calendar/event.php?action=new">'.get_string('newevent', 'calendar').'</a>...';
if($this->course === NULL) {
// Overrides: use no course at all
$courseshown = false;
$filtercourse = array();
}
else {
$courseshown = $this->course->id;
$filtercourse = array($courseshown => 1);
}
// We 'll need this later
calendar_set_referring_course($courseshown);
// Be VERY careful with the format for default courses arguments!
// Correct formatting is [courseid] => 1 to be concise with moodlelib.php functions.
calendar_set_filters($courses, $group, $user, $filtercourse, $filtercourse, false);
$this->content->text = calendar_get_sideblock_upcoming($courses, $group, $user, get_user_preferences('calendar_lookahead', CALENDAR_UPCOMING_DAYS), get_user_preferences('calendar_maxevents', CALENDAR_UPCOMING_MAXEVENTS));
if(empty($this->content->text)) {
$this->content->text = '<div style="font-size: 0.8em; text-align: center;">'.get_string('noupcomingevents', 'calendar').'</div>';
}
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function calendar_upcoming_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function calendar_upcoming_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
+82
View File
@@ -0,0 +1,82 @@
<?PHP //$Id$
class CourseBlock_course_list extends MoodleBlock {
function CourseBlock_course_list ($course) {
$this->title = get_string('mycourses');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004041800;
}
function get_content() {
global $THEME, $CFG, $USER;
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = '';
if (empty($THEME->custompix)) {
$icon = "<img src=\"$CFG->wwwroot/pix/i/course.gif\"".
" height=\"16\" width=\"16\" alt=\"".get_string("course")."\">";
} else {
$icon = "<img src=\"$CFG->wwwroot/theme/$CFG->theme/pix/i/course.gif\"".
" height=\"16\" width=\"16\" alt=\"".get_string("course")."\">";
}
if (isset($USER->id) and !isadmin()) { // Just print My Courses
if ($courses = get_my_courses($USER->id)) {
foreach ($courses as $course) {
if (!$course->category) {
continue;
}
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
$this->content->items[]="<a $linkcss title=\"$course->shortname\" ".
"href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
$this->content->icons[]=$icon;
}
$this->title = get_string('mycourses');
$this->content->footer = "<p><a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
return $this->content;
}
}
$categories = get_categories("0"); // Parent = 0 ie top-level categories only
if ($categories) { //Check we have categories
if (count($categories) > 1) { // Just print top level category links
foreach ($categories as $category) {
$linkcss = $category->visible ? "" : " class=\"dimmed\" ";
$this->content->items[]="<a $linkcss href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a>";
$this->content->icons[]=$icon;
}
$this->content->footer = "<p><a href=\"$CFG->wwwroot/course/\">".get_string("searchcourses")."</a>...";
$this->title = get_string('categories');
} else { // Just print course names of single category
$category = array_shift($categories);
$courses = get_courses($category->id);
if ($courses) {
foreach ($courses as $course) {
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
$this->content->items[]="<a $linkcss title=\"$course->shortname\" ".
"href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
$this->content->icons[]=$icon;
}
$this->content->footer = "<p><a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
} else {
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = get_string('nocoursesyet');
}
$this->title = get_string('courses');
}
}
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function course_list_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function course_list_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
@@ -0,0 +1,29 @@
<?PHP //$Id$
class CourseBlock_course_summary extends MoodleBlock {
function CourseBlock_course_summary ($course) {
$this->title = get_string('blockname','block_course_summary');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004041400;
}
function get_content() {
global $USER, $CFG;
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
$this->content->text = format_text($this->course->summary, FORMAT_HTML);
return $this->content;
}
function hide_header() {return true;}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function course_summary_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function course_summary_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
+43
View File
@@ -0,0 +1,43 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function blocks_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}blocks` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(40) NOT NULL default '',
`version` int(10) NOT NULL default '0',
`cron` int(10) unsigned NOT NULL default '0',
`lastcron` int(10) unsigned NOT NULL default '0',
`visible` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`id`)
)
COMMENT = 'To register and update all the available blocks'");
}
//Finally, return result
return $result;
}
?>
+15
View File
@@ -0,0 +1,15 @@
# $Id$
#
# Table structure for table `blocks`
#
CREATE TABLE `prefix_blocks` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(40) NOT NULL default '',
`version` int(10) NOT NULL default '0',
`cron` int(10) unsigned NOT NULL default '0',
`lastcron` int(10) unsigned NOT NULL default '0',
`visible` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
# --------------------------------------------------------
+45
View File
@@ -0,0 +1,45 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function blocks_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = execute_sql("
CREATE TABLE {$CFG->prefix}blocks
(
id SERIAL8 PRIMARY KEY,
name varchar(40) NOT NULL default '',
version INT8 NOT NULL default '0',
cron INT8 NOT NULL default '0',
lastcron INT8 NOT NULL default '0',
visible int NOT NULL default '1'
)
") ;
}
//Finally, return result
return $result;
}
?>
+14
View File
@@ -0,0 +1,14 @@
# $Id$
#
# Table structure for table blocks
#
CREATE TABLE prefix_blocks (
id SERIAL8 PRIMARY KEY,
name varchar(40) NOT NULL default '',
version INT8 NOT NULL default '0',
cron INT8 NOT NULL default '0',
lastcron INT8 NOT NULL default '0',
visible int NOT NULL default '1'
) ;
# --------------------------------------------------------
+268
View File
@@ -0,0 +1,268 @@
<?php // $Id$
define('BLOCK_TYPE_LIST', 1);
define('BLOCK_TYPE_TEXT', 2);
define('BLOCK_TYPE_NUKE', 3);
class MoodleBlock {
var $str;
var $title = NULL;
var $course = NULL;
var $content_type = NULL;
var $content = NULL;
var $edit_controls = NULL;
var $version = NULL;
function name() {
// Returns the block name, as present in the class name,
// the database, the block directory, etc etc.
static $myname;
if($myname === NULL) {
$myname = strtolower(get_class($this));
$myname = substr($myname, strpos($myname, '_') + 1);
}
return $myname;
}
function get_content() {
// This should be implemented by the derived class.
return NULL;
}
function get_title() {
// Intentionally doesn't check if a title is set, for _test_self()
return $this->title;
}
function get_content_type() {
// Intentionally doesn't check if a content_type is set, for _test_self()
return $this->content_type;
}
function get_version() {
// Intentionally doesn't check if a version is set, for _test_self()
return $this->version;
}
function get_header() {
// Intentionally doesn't check if a header is set, for _test_self()
return $this->header;
}
function refresh_content() {
// Nothing special here, depends on content()
$this->content = NULL;
return $this->get_content();
}
function print_block() {
// Wrap the title in a floating DIV, in case we have edit controls to display
// These controls will always be wrapped on a right-floating DIV
$title = '<div style="float: left;">'.$this->title.'</div>';
if($this->edit_controls !== NULL) {
$title .= $this->edit_controls;
}
$this->get_content();
if(!isset($this->content->footer)) {
$this->content->footer = '';
}
switch($this->content_type) {
case BLOCK_TYPE_NUKE:
case BLOCK_TYPE_TEXT:
if(empty($this->content->text) && empty($this->content->footer)) {
break;
}
if ($this->edit_controls !== NULL || !$this->hide_header()) {
print_side_block($title, $this->content->text, NULL, NULL, $this->content->footer);
} else {
print_side_block(NULL, $this->content->text, NULL, NULL, $this->content->footer);
}
break;
case BLOCK_TYPE_LIST:
if(empty($this->content->items) && empty($this->content->footer)) {
break;
}
if ($this->edit_controls !== NULL || !$this->hide_header()) {
print_side_block($title, '', $this->content->items, $this->content->icons, $this->content->footer);
} else {
print_side_block(NULL, '', $this->content->items, $this->content->icons, $this->content->footer);
}
break;
}
}
function print_shadow() {
$title = '<div style="float: left;">'.$this->title.'</div>';
if($this->edit_controls !== NULL) {
$title .= $this->edit_controls;
}
print_side_block($title, '&nbsp;', NULL, NULL, '');
}
function add_edit_controls($options, $blockid) {
global $CFG, $THEME;
// The block may be disabled
$blockid = intval($blockid);
$enabled = $blockid > 0;
$blockid = abs($blockid);
if (!isset($this->str)) {
$this->str->delete = get_string('delete');
$this->str->moveup = get_string('moveup');
$this->str->movedown = get_string('movedown');
$this->str->moveright = get_string('moveright');
$this->str->moveleft = get_string('moveleft');
$this->str->hide = get_string('hide');
$this->str->show = get_string('show');
}
$path = $CFG->wwwroot.'/course';
if (empty($THEME->custompix)) {
$pixpath = $path.'/../pix';
} else {
$pixpath = $path.'/../theme/'.$CFG->theme.'/pix';
}
$movebuttons = '<div style="float: right;">';
if($enabled) {
$icon = '/t/hide.gif';
$title = $this->str->hide;
}
else {
$icon = '/t/show.gif';
$title = $this->str->show;
}
$movebuttons .= '<a style="margin-right: 10px;" title="'.$title.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=toggle&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.$icon.'" /></a>';
$movebuttons .= '<a style="margin-right: 10px;" title="'.$this->str->delete.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=delete&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/delete.gif" /></a>';
if ($options & BLOCK_MOVE_LEFT) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->moveleft.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveside&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/left.gif" /></a>';
}
if ($options & BLOCK_MOVE_UP) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->moveup.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveup&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/up.gif" /></a>';
}
if ($options & BLOCK_MOVE_DOWN) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->movedown.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=movedown&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/down.gif" /></a>';
}
if ($options & BLOCK_MOVE_RIGHT) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->moveright.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveside&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/right.gif" /></a>';
}
$movebuttons .= '</div>';
$this->edit_controls = $movebuttons;
}
function _self_test() {
// Tests if this block has been implemented correctly.
// Also, $errors isn't used right now
$errors = array();
$correct = true;
if($this->get_title() === NULL) {
$errors[] = 'title_not_set';
$correct = false;
}
if(!in_array($this->get_content_type(), array(BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT, BLOCK_TYPE_NUKE))) {
$errors[] = 'invalid_content_type';
$correct = false;
}
if($this->get_content() === NULL) {
$errors[] = 'content_not_set';
$correct = false;
}
if($this->get_version() === NULL) {
$errors[] = 'version_not_set';
$correct = false;
}
$allformats = COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS | COURSE_FORMAT_SOCIAL;
if(!($this->applicable_formats() & $allformats)) {
$errors[] = 'no_course_formats';
$correct = false;
}
$width = $this->preferred_width();
if(!is_int($width) || $width <= 0) {
$errors[] = 'invalid_width';
$correct = false;
}
return $correct;
}
function has_config() {
return false;
}
function print_config() {
// This does nothing, it's here to prevent errors from
// derived classes if they implement has_config() but not print_config()
}
function handle_config() {
// This does nothing, it's here to prevent errors from
// derived classes if they implement has_config() but not handle_config()
}
function applicable_formats() {
// Default case: the block can be used in all course types
return COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS | COURSE_FORMAT_SOCIAL;
}
function preferred_width() {
// Default case: the block wants to be 180 pixels wide
return 180;
}
function hide_header() {
//Default, false--> the header is showed
return false;
}
function html_attributes() {
// Default case: we want no extra attributes
return false;
}
}
class MoodleBlock_Nuke extends MoodleBlock {
function get_content() {
if($this->content !== NULL) {
return $this->content;
}
global $CFG;
$this->content = &New stdClass;
// This whole thing begs to be written for PHP >= 4.3.0 using glob();
$dir = $CFG->dirroot.'/blocks/'.$this->name().'/nuke/';
if($dh = @opendir($dir)) {
while (($file = readdir($dh)) !== false) {
$regs = array();
if(ereg('^block\-(.*)\.php$', $file, $regs)) {
// Found it! Let's prepare the environment...
$oldvals = array();
if(isset($GLOBALS['admin'])) {
$oldvals['admin'] = $GLOBALS['admin'];
}
$GLOBALS['admin'] = isteacher($this->course->id);
@include($dir.$file);
foreach($oldvals as $key => $val) {
$GLOBALS[$key] = $val;
}
// We should have $content set now
if(!isset($content)) {
return NULL;
}
return $this->content->text = $content;
}
}
}
// If we reached here, we couldn't find the nuke block for some reason
return $this->content->text = get_string('blockmissingnuke');
}
}
?>
+38
View File
@@ -0,0 +1,38 @@
<?PHP //$Id$
class CourseBlock_news_items extends MoodleBlock {
function CourseBlock_news_items ($course) {
$this->title = get_string('latestnews');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004041200;
}
function get_content() {
global $CFG;
if($this->content !== NULL) {
return $this->content;
}
require_once($CFG->dirroot.'/course/lib.php');
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
if ($this->course->newsitems) {
$news = forum_get_course_forum($this->course->id, 'news');
// Slightly hacky way to do it but...
ob_start();
echo '<font size="-2">';
forum_print_latest_discussions($news->id, $this->course->newsitems, "minimal", "", get_current_group($this->course->id));
echo '</font>';
$this->content->text = ob_get_contents();
ob_end_clean();
}
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function news_items_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function news_items_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+138
View File
@@ -0,0 +1,138 @@
<?PHP //$Id$
class CourseBlock_online_users extends MoodleBlock {
function CourseBlock_online_users ($course) {
$this->title = get_string('blockname','block_online_users');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004041800;
}
function has_config() {return true;}
function print_config() {
global $CFG, $THEME;
print_simple_box_start('center', '', $THEME->cellheading);
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
print_simple_box_end();
return true;
}
function handle_config($config) {
foreach ($config as $name => $value) {
set_config($name, $value);
}
return true;
}
function get_content() {
global $USER, $CFG;
$timetoshowusers = 300; //Seconds default
if (isset($CFG->block_online_users_timetosee)) {
$timetoshowusers = $CFG->block_online_users_timetosee * 60;
}
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
//Calculate if we are in separate groups
$isseparategroups = ($this->course->groupmode == SEPARATEGROUPS and $this->course->groupmodeforce and
!isteacheredit($this->course->id));
//Get the user current group
$currentgroup = $isseparategroups ? get_current_group($this->course->id) : NULL;
$groupmembers = "";
$select = "";
//Add this to the SQL to show only group users
if ($currentgroup !== NULL) {
$groupmembers = ", {$CFG->prefix}groups_members gm ";
$select .= " AND u.id = gm.userid AND gm.groupid = '$currentgroup'";
}
$timefrom = time()-$timetoshowusers;
$students = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, s.timeaccess
FROM {$CFG->prefix}user u,
{$CFG->prefix}user_students s
$groupmembers
WHERE u.id = s.userid and
s.course = {$this->course->id} and
s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC");
$teachers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, s.timeaccess
FROM {$CFG->prefix}user u,
{$CFG->prefix}user_teachers s
$groupmembers
WHERE u.id = s.userid and
s.course = {$this->course->id} and
s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC");
if ($teachers || $students) {
if ($students) {
foreach ($students as $student) {
$student->fullname = fullname($student);
$users[$student->id] = $student;
}
}
if ($teachers) {
foreach ($teachers as $teacher) {
$teacher->fullname = '<b>'.fullname($teacher).'</b>';
$users[$teacher->id] = $teacher;
}
}
} else {
$users = null;
}
//Calculate minutes
$minutes = floor($timetoshowusers/60);
$this->content->text = "<font size=\"-2\"><div align=center>(".get_string("periodnminutes","block_online_users",$minutes).")</div></font>";
//Now, we have in users, the list of users to show
//Because they are online
if ($users !== null) {
foreach ($users as $user) {
$this->content->text .= '<div style="text-align: left; font-size: 0.75em; padding-top: 5px;">';
$timeago = format_time(time() - $user->timeaccess);
if ($user->picture==0) {
$this->content->text .= '<img src="'.$CFG->pixpath.'/i/user.gif" style="height: 16px; width=16px; vertical-align: middle;" alt=""> ';
} else {
if ($CFG->slasharguments) {
$imgtag = '<img src="'.$CFG->wwwroot.'/user/pix.php/'.$user->id.'/f2.jpg" style="height: 16px; width=16px; vertical-align: middle;" alt=""> ';
} else {
$imgtag = '<img src="'.$CFG->wwwroot.'/user/pix.php?file=/'.$user->id.'/f2.jpg" style="height: 16px; width=16px; vertical-align: middle;" alt=""> ';
}
$this->content->text .= $imgtag;
}
$this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$this->course->id.'" title="'.$timeago.'">'.$user->fullname.'</a></div>';
}
/*
$table->align = array("right","left");
$table->cellpadding = 1;
$table->cellspacing = 1;
$table->data[] = array("<img src=\"$CFG->pixpath/i/user.gif\" height=16 width=16 alt=\"\">",$user->fullname);
}
// Slightly hacky way to do it but...
ob_start();
print_table($table);
//$this->content->text .= "<br>".ob_get_contents();
ob_end_clean();
*/
} else {
$this->content->text .= "<font size=\"-1\"><p align=center>".get_string("none")."</p></font>";
}
return $this->content;
}
}
?>
+24
View File
@@ -0,0 +1,24 @@
<form method="post" action="block.php">
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right"><p>block_online_users_timetosee:</td>
<td>
<input name="block" type="hidden" value="<?php echo intval($_REQUEST['block']); ?>" />
<input name="block_online_users_timetosee" type="text" size="5" value="<?php if(isset($CFG->block_online_users_timetosee)) {
p($CFG->block_online_users_timetosee);
} else {
p(5);
} ?>" />
</td>
<td>
<?php print_string("configtimetosee", "block_online_users") ?>
</td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
</tr>
</table>
</form>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function online_users_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function online_users_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
@@ -0,0 +1,54 @@
<?PHP //$Id$
class CourseBlock_participants extends MoodleBlock {
function CourseBlock_participants ($course) {
$this->title = get_string('people');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004041800;
}
function get_content() {
global $USER, $CFG;
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = '';
$strgroups = get_string('groups');
$strgroupmy = get_string('groupmy');
$this->content->items[]='<a title="'.get_string('listofallpeople').'" href="../user/index.php?id='.$this->course->id.'">'.get_string('participants').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="">';
if ($this->course->groupmode or !$this->course->groupmodeforce) {
if ($this->course->groupmode == VISIBLEGROUPS or isteacheredit($this->course->id)) {
$this->content->items[]='<a title="'.$strgroups.'" href="groups.php?id='.$this->course->id.'">'.$strgroups.'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/group.gif" height="16" width="16" alt="">';
} else if ($this->course->groupmode == SEPARATEGROUPS and $this->course->groupmodeforce) {
// Show nothing
} else if ($currentgroup = get_current_group($this->course->id)) {
$this->content->items[]='<a title="'.$strgroupmy.'" href="group.php?id='.$this->course->id.'">'.$strgroupmy.'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/group.gif" height="16" width="16" alt="">';
}
}
$fullname = fullname($USER, true);
$editmyprofile = '<a title="'.$fullname.'" href="../user/edit.php?id='.$USER->id.'&amp;course='.$this->course->id.'">'.get_string('editmyprofile').'</a>';
if ($USER->description) {
$this->content->items[]= $editmyprofile;
} else {
$this->content->items[]= $editmyprofile." <blink>*</blink>";
}
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="">';
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function participants_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function participants_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
@@ -0,0 +1,31 @@
<?PHP //$Id$
class CourseBlock_recent_activity extends MoodleBlock {
function CourseBlock_recent_activity ($course) {
$this->title = get_string('recentactivity');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004042900;
}
function get_content() {
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
// Slightly hacky way to do it but...
ob_start();
print_recent_activity($this->course);
$this->content->text = ob_get_contents();
ob_end_clean();
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function recent_activity_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function recent_activity_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
@@ -0,0 +1,31 @@
<?PHP //$Id$
class CourseBlock_search_forums extends MoodleBlock {
function CourseBlock_search_forums ($course) {
$this->title = get_string('search', 'forum');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004041000;
}
function get_content() {
global $USER, $CFG, $SESSION;
optional_variable($_GET['cal_m']);
optional_variable($_GET['cal_y']);
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
$form = forum_print_search_form($this->course, '', true);
$this->content->text = '<div align="center">'.$form.'</div>';
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function search_forums_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
View File
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to PostgreSQL
function search_forums_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}
@@ -0,0 +1,83 @@
<?PHP //$Id$
class CourseBlock_section_links extends MoodleBlock {
function CourseBlock_section_links ($course) {
if ($course->format == 'topics') {
$this->title = get_string('topics', 'block_section_links');
}
else if ($course->format == 'weeks') {
$this->title = get_string('weeks', 'block_section_links');
}
else {
$this->title = get_string('blockname', 'block_section_links');
}
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004052800;
}
function applicable_formats() {
return (COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS);
}
function get_content() {
global $CFG, $USER;
$highlight = 0;
if($this->content !== NULL) {
return $this->content;
}
if ($this->course->format == 'weeks') {
$highlight = ceil((time()-$this->course->startdate)/604800);
$linktext = get_string('jumptocurrentweek', 'block_section_links');
$sectionname = 'week';
}
else if ($this->course->format == 'topics') {
$highlight = $this->course->marker;
$linktext = get_string('jumptocurrenttopic', 'block_section_links');
$sectionname = 'topic';
}
$inc = 1;
if ($this->course->numsections > 22) {
$inc = 2;
}
if ($this->course->numsections > 40) {
$inc = 5;
}
$courseid = $this->course->id;
if ($display = get_field('course_display', 'display', 'course', $courseid, 'userid', $USER->id)) {
$link = "$CFG->wwwroot/course/view.php?id=$courseid&amp;$sectionname=";
} else {
$link = '#';
}
$text = '<font size=-1>';
for ($i = $inc; $i <= $this->course->numsections; $i += $inc) {
$isvisible = get_field('course_sections', 'visible', 'course', $this->course->id, 'section', $i);
if (!$isvisible and !isteacher($this->course->id)) {
continue;
}
$style = ($isvisible) ? '' : ' class="dimmed"';
if ($i == $highlight) {
$text .= "<a href=\"$link$i\"$style><b>$i</b></a> ";
} else {
$text .= "<a href=\"$link$i\"$style>$i</a> ";
}
}
if ($highlight) {
$isvisible = get_field('course_sections', 'visible', 'course', $this->course->id, 'section', $highlight);
if ($isvisible or isteacher($this->course->id)) {
$style = ($isvisible) ? '' : ' class="dimmed"';
$text .= "<br><a href=\"$link$highlight\"$style>$linktext</a>";
}
}
$this->content = New stdClass;
$this->content->footer = '';
$this->content->text = $text;
return $this->content;
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// blocks system.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older installtion to the current version.
//
// If there's something it cannot do itself, it
// will tell you what you need to do.
//
// Versions are defined by backup_version.php
//
// This file is tailored to MySQL
function section_links_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2004050500 and $result) {
$result = true; //Nothing to do
}
//Finally, return result
return $result;
}

Some files were not shown because too many files have changed in this diff Show More