Compare commits

..

7597 Commits

Author SHA1 Message Date
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
moodler d1290a7db9 OK, well, this is pretty much it. 2004-03-20 15:04:21 +00:00
moodler 5eada3cef3 Kiled whitespace 2004-03-20 15:03:14 +00:00
moodler 3f459f966f Updates 2004-03-20 15:01:27 +00:00
moodler 78b41e5cb3 A few more fixes 2004-03-20 14:56:46 +00:00
moodler 4951cb3743 SOme major cleanups :-) 2004-03-20 14:48:35 +00:00
moodler 86fc8f85a5 SOme fixes 2004-03-20 13:52:44 +00:00
moodler d79666a916 Various fixes 2004-03-20 13:47:41 +00:00
moodler 9ef4f2323d Fix up some old Beta sites that may have lessons 2004-03-20 13:16:04 +00:00
moodler e0d4440f1c Fleshed out WebCT dox a bit 2004-03-20 12:47:52 +00:00
moodler 65c56bbf53 Added references to WebCT format 2004-03-20 12:40:58 +00:00
moodler b7db889494 Added link to Cloze 2004-03-20 12:35:59 +00:00
moodler 7d06579ea2 Bump! 2004-03-20 12:25:05 +00:00
moodler 92c26858ed FIxed some holes with hidden categories bug 1093 2004-03-20 12:21:08 +00:00
moodler e8d768968e Make sure backup page is hidden from sub menu too 2004-03-20 09:50:52 +00:00
moodler ba163fa231 Cleaner pages when there are no responses yet 2004-03-20 09:39:17 +00:00
moodler ee02c13d91 Table columns retain current search parameters 2004-03-20 07:03:46 +00:00
moodler 488acd1be9 Some fixes to the functions for fetching users (some of it is backing
out Scott's changes, sorry Scott!) and some fixes to the interface
for the admin user page.
2004-03-20 06:58:52 +00:00
moodler 1579586ced Some blank index.html files to prevent browsing 2004-03-20 04:10:26 +00:00
moodler 6670a7f214 Dummy index to prevent browsing 2004-03-20 04:08:19 +00:00
moodler 36ec6afea6 Added a small security check 2004-03-20 04:04:15 +00:00
koenr 4dfdf6bc6b typo 2004-03-19 19:39:44 +00:00
julmis d5a55d2388 Styles enabled on table-operations dialogs 2004-03-19 19:09:35 +00:00
moodler d396ba798f Multianswer cloze questions now show feedback (you need to hover
your mouse over the answers)
2004-03-19 14:51:29 +00:00
moodler 5f8505882e To avoid some unpleasant stuff with filters etc, I made slight changes
to separate the printing of the summary text from the edit button ...

Might need some testing because people have adjusted old texts to
work the old way ...   if anyone complains I'll put it back ...
2004-03-19 08:18:13 +00:00
moodler f31bc4d3e6 Latest version for Moodle 1.2 from wim 2004-03-19 06:30:20 +00:00
selliott 5a4aa257c1 On second thought, let's display the lastaccess in the lastaccess column of admin/user.php ;) 2004-03-19 04:39:20 +00:00
selliott 6c2ae454a5 Modified to be more consistent with user/index.php for paging, sorting and searching 2004-03-19 04:29:00 +00:00
selliott 73fc8c1af7 Added search parameter to get_course_students.
Modified get_course_students and count_course_students to handle a request for course 0 (will get all users, even if they are in no other course).
Changes done to for admin/user.php, should be compatible with all previous function calls.
2004-03-19 04:26:35 +00:00
moodler ae20afd889 Fixed some bad text 2004-03-19 03:41:11 +00:00
stronk7 75c83282ff Bump to update possible release date. 2004-03-18 22:55:26 +00:00
koenr 86a59aa1f0 typo 2004-03-18 21:22:32 +00:00
mits c3996b3fd2 Polished some. New translation & files added. 2004-03-18 19:10:06 +00:00
martignoni 0dfd208184 Small correction 2004-03-18 10:06:26 +00:00
paca70 598be1325b Updates from Jussi Kurikka 2004-03-17 14:59:01 +00:00
mits ff9f2f955a polished. 2004-03-17 03:49:51 +00:00
julmis 1e77b7122e table-operations file that seems to only working... 2004-03-16 23:22:50 +00:00
julmis 825c4c8878 makefile.xml 2004-03-16 23:21:47 +00:00
julmis 63830e903d Fixing typos :-( sorry!!! 2004-03-16 23:00:45 +00:00
koenr 3a78c4785f filling in missing strings 2004-03-16 21:49:11 +00:00
julmis 723ee6a111 Removelink feature added 2004-03-16 21:40:42 +00:00
julmis bc1e9d4590 Updates 2004-03-16 21:39:57 +00:00
julmis a9c48ae08d Removelink image 2004-03-16 21:39:18 +00:00
julmis bf5f1e7676 TableOperations enabled on fullscreen mode, finally :-) 2004-03-16 21:21:21 +00:00
mits a50d60d69d one help file translated 2004-03-16 18:47:34 +00:00
stronk7 661c23469a Bump to update possible release date. 2004-03-16 17:53:01 +00:00
moodler fc8bc7e516 Fixed some newly-introduced bugs caused by recent function name change 2004-03-16 14:02:30 +00:00
moodler 9fa8271283 Fixes for displaying numbers of assignment submissions when
groups are active
2004-03-16 13:54:29 +00:00
martignoni b3f2aad71c Update to deleteunconfirmed feature 2004-03-16 13:26:48 +00:00
moodler d0e258b55b Updaed 2004-03-16 12:19:23 +00:00
moodler 6c61fd041e Whoops! Just realised I never fully finished the deleteunconfirmed
feature!   All done now.
2004-03-16 10:59:42 +00:00
moodler a4557331c9 Some security fixes with directory listing 2004-03-16 07:20:00 +00:00
moodler f038d9a313 Fixed bug with empty string 2004-03-16 07:11:14 +00:00
koenr 89dfb4c1f3 initial translation by koen roggemans 2004-03-15 20:59:04 +00:00
moodler a384809295 Handle '+' signs in short answers 2004-03-15 14:41:19 +00:00
moodler 34e934a97b Don't allow links within forum post subjects when filtering them 2004-03-15 05:23:19 +00:00
stronk7 13ae718937 Avoid one undefined THEME little problem in html_header() 2004-03-14 23:05:04 +00:00
mits 0dafd031df new translation. 2004-03-14 22:51:55 +00:00
paca70 d28e480a7b Typos, oh no typos again! 2004-03-14 21:09:09 +00:00
paca70 69a8774592 Added link to translation site 2004-03-14 17:55:04 +00:00
villate 6e7b4b6f04 Portuguese translation of the English version from Sep 9 2003 2004-03-14 14:18:34 +00:00
villate fca6318ce0 Completed the translation for version 1.2 2004-03-14 14:00:11 +00:00
paca70 601ae6c095 Updates 2004-03-14 09:15:55 +00:00
paca70 c77ce11179 Added default values 2004-03-14 08:59:25 +00:00
stronk7 54be24ecec Avoid login as himself to teachers. One missing USER
variable was the cause ;-)
2004-03-14 02:17:26 +00:00
stronk7 e47543451e Avoid some division by 9 warnings when showing anonymously
and no answers have been introduced.
2004-03-14 01:22:28 +00:00
stronk7 2e89715bc2 Small typo causing some warnings. $theme ----> $THEME 2004-03-14 01:18:54 +00:00
stronk7 5cc875eb9e Upgrade to new release day 2004-03-14 00:17:59 +00:00
martignoni e2612ab906 Suppression of "work in progress" warning 2004-03-13 19:39:39 +00:00
koenr adb0158041 found a shorter word: now it fits the frame :-) 2004-03-13 19:37:44 +00:00
martignoni a2a9f74092 Tweaks to dates 2004-03-13 19:32:29 +00:00
martignoni 68bd12a490 Option to control whether uploaded files are parsed by filters. 2004-03-13 19:29:08 +00:00
martignoni 44da444d07 Additional String, couple of minor changes. 2004-03-13 19:25:55 +00:00
martignoni 6fbfecd5e4 Missing string added. 2004-03-13 19:22:19 +00:00
martignoni 8803bbe759 Updated help file for shortanswers explaining the wildcards 2004-03-13 19:19:44 +00:00
martignoni 80c115f579 Forgotten help file translated 2004-03-13 19:04:21 +00:00
martignoni 522ed87231 Update to 1.2 final. French is ready for release. Youpi ! 2004-03-13 18:55:09 +00:00
martignoni 52cf604332 Update to 'en' version 1.264 2004-03-13 18:51:06 +00:00
ralf-bonn 831fbe1465 Neue Felder eingearbeitet 2004-03-13 18:22:27 +00:00
moodler 19a2731137 Bumping it up 2004-03-13 17:10:53 +00:00
koenr 0be5186369 missing string 2004-03-13 16:15:17 +00:00
moodler d5a2ccadb9 New function journal_count_entries() and more accurate counting of
journal entries for different grouping scenarios
2004-03-13 16:15:02 +00:00
moodler 06b1db82d2 Decalre some globals so debugging works better 2004-03-13 16:04:52 +00:00
moodler 38ff09a83a New string for groups 2004-03-13 15:30:42 +00:00
moodler b1d530d202 Cleanups for bug 1117 2004-03-13 15:22:33 +00:00
moodler 4e3a60929c Finally fixed those annoying 'loginas' links on the main user listing 2004-03-13 14:34:32 +00:00
moodler 6f5a792f1d Grades page now supports groups 2004-03-13 14:26:09 +00:00
moodler 60b025d1cc Function name change ... hope it doesn't break any third-party code,
sorry if it does!

  get_users_in_group --->  get_group_users

... to be more consistent with other functions

Also a new function:  get_group_students()
2004-03-13 14:25:27 +00:00
moodler a12f686b62 Function name change ... hope it doesn't break any third-party code,
sorry if it does!

  get_users_in_group --->  get_group_users

  ... more consistent with other functions
2004-03-13 14:24:34 +00:00
moodler fcc69042e9 The menu when moving discussions now has section markers 2004-03-13 13:56:29 +00:00
moodler ca1388dac7 Non-editing teachers shouldn't be able to assign students 2004-03-13 13:43:06 +00:00
moodler dd050b3320 Non-editing teachers should not be able to assign students 2004-03-13 13:42:21 +00:00
moodler 6d18d87382 Too many bugs, not enough time! 2004-03-13 13:36:41 +00:00
moodler a30f997e4c Some fixes for display of survey reports 2004-03-13 13:33:20 +00:00
moodler 5151ae66e3 Full paths when including pclzip bug 1139 2004-03-13 12:08:28 +00:00
moodler bd83d0a3a8 OK that should fix the access problem, as well as a bug with organising the data 2004-03-13 12:01:28 +00:00
moodler 5b5f2971f1 Some fixes to counting, still need to fix some access issues 2004-03-13 11:26:29 +00:00
koenr 0d677409d7 forgot to review it: fixed some typo's 2004-03-13 11:00:21 +00:00
moodler a0a4a3c964 Some fixes. :-} 2004-03-13 10:56:38 +00:00
koenr 3e0d46ec36 initial translation by Koen Roggemans 2004-03-13 10:51:57 +00:00
mits 9a91764210 Added Paul Shew's translation. 2004-03-13 10:41:56 +00:00
moodler ecc8403ea2 OK, so the forums listing is revamped with different logic and it should now
correctly show the number of discussions for separate forums.

I'm checking this in so I can do testing on various servers.
2004-03-13 10:41:07 +00:00
moodler 9bf45e0036 Add a count of the number of activites using a particular module 2004-03-13 10:40:01 +00:00
mits 364525e7ec polished. 2004-03-13 10:23:17 +00:00
mits 9086aae9d4 polished & translated some. 2004-03-13 10:00:10 +00:00
koenr 7edcf6a1dc filling in missing strings 2004-03-13 09:58:17 +00:00
koenr 2de4073e85 added help about the use of the * in shortanswer 2004-03-13 09:50:52 +00:00
mits 87da71438e translated some. 2004-03-13 09:26:14 +00:00
mits b73854ed9a Polished. 2004-03-13 09:07:08 +00:00
andersbe d489165285 All the strings in the php-files are translated as of 2004-03-12
php-files for standard modules as well for development modules like Calendar and HotPot. Some help-files are still missing e g for Lesson Module.

Alla str?ngar i php-filerna  ?r ?versatta t o m 2004-03-12
php-filer till standardmoduler liksom utvecklingsmoduler som Calendar och HotPot. N?gra hj?lpfiler saknas fortfarande t ex till Lesson modulen..
2004-03-13 08:36:15 +00:00
moodler 6b4c1848e8 OK, now I'm just wasting time. :-) Hand-tweaked some pixels 2004-03-13 08:23:34 +00:00
moodler 8c9474844b I shouldn't have sharpened the black border as well ... fixed. 2004-03-13 08:19:34 +00:00
moodler 44dc1d3a6d Slightly sharper edges on the small logo 2004-03-13 08:16:59 +00:00
moodler ba2cde498d WHen showing just course categories, then the title of the section
is now "Course categories" rather than "Available courses"
2004-03-13 00:53:17 +00:00
julmis 95c1bce09e Sections, create folder and fileupload enabled also on link dialog. 2004-03-13 00:14:54 +00:00
martignoni 3e3e3fe8da End of translation of Module lesson 2004-03-12 16:43:52 +00:00
rkingdon 4a2b560257 Missing string added. 2004-03-12 16:34:45 +00:00
moodler 4dcb35aa47 Updated help file for shortanswers explaining the wildcards 2004-03-12 15:54:14 +00:00
rkingdon b41bec3429 Couple of small changes. 2004-03-12 15:37:03 +00:00
rkingdon ae913cbd01 Missing help file added. 2004-03-12 15:36:03 +00:00
rkingdon 046e5a0509 Additional String, couple of minor changes. 2004-03-12 15:34:13 +00:00
rkingdon f3162d71a2 Fixed Bug 1132. 2004-03-12 15:32:41 +00:00
rkingdon d4966ef24a Fixed Bug #1083. 2004-03-12 15:31:04 +00:00
rkingdon b082b2c641 Fixed Bugs #1059 and #1061. 2004-03-12 15:28:52 +00:00
rkingdon 2f39268b3d Fixed Bug 1060: Error inserting second entry from the same input page.
Fixed bug #865.
2004-03-12 15:25:13 +00:00
moodler bded7f70b5 Get coursemodule so the groups checking works correctly 2004-03-12 13:29:33 +00:00
moodler 8c0f49667f In shortanswers you can now use \* (ie slash asterisk) to mean a real asterisk
Normally the asterisk is a wildcard
2004-03-12 13:03:51 +00:00
moodler 191ad6873c Latest ADOdb version (thanks Eloy) 2004-03-12 12:14:34 +00:00
carlesbellver 1d79bf7b37 *** empty log message *** 2004-03-12 11:25:14 +00:00
stronk7 5710554f12 After executing all my test courses, now everything seems to be ready.
So I BUMP to 1.2 final now!!  :-)
2004-03-12 08:00:09 +00:00
martignoni 2d3541895e Initial bit of translation 2004-03-12 07:53:38 +00:00
moodler 1e55ed2610 More details 2004-03-12 07:34:14 +00:00
moodler aebaf90462 Changed default value for DB persistence 2004-03-12 07:30:34 +00:00
moodler 68ddf8bc47 Make sure forcelogin is applied to forums at site level 2004-03-12 01:54:10 +00:00
stronk7 977070f9e8 Undo one line inserted by error in my previous commit
with one change I was trying some time ago...sorry :-(
But now all should be correct.
2004-03-11 23:50:05 +00:00
stronk7 da0fe63f91 Fixed some wrong call to pclzip.lib.php. See:
http://moodle.org/bugs/bug.php?op=show&bugid=1138
2004-03-11 23:47:18 +00:00
mits e1fc83a0ee Translated some. 2004-03-11 20:01:13 +00:00
martignoni f3684fd8c5 More help files translated 2004-03-11 19:14:18 +00:00
martignoni 95b5a227e5 Complete translation 2004-03-11 18:08:06 +00:00
selliott b934e7a342 Fixed to hide hidden activities from normal users and to display dimmed for teachers / admins.
Also fixed an off by 1 error when displaying topics.
2004-03-11 14:07:56 +00:00
moodler b643af5900 Y not? 2004-03-11 11:13:04 +00:00
carlesbellver b10f6e7388 *** empty log message *** 2004-03-11 08:38:43 +00:00
julmis 6e4c0f6164 Some fixes of students dialog's placement on the screen
and a little fix for event handling
2004-03-11 08:21:55 +00:00
stronk7 dc47f786f9 Bump. To be in sync with Moodle. 2004-03-11 07:26:38 +00:00
koenr 59678118dd filling in missing strings 2004-03-11 07:08:13 +00:00
moodler 4a6f5ff250 So I don't forget 2004-03-11 02:17:54 +00:00
moodler de0c05a02c Bump 2004-03-11 02:15:57 +00:00
moodler 3cf4ab978b Added an option on the filters page to control whether uploaded
files are parsed by filters.    bug 1128
2004-03-11 02:14:15 +00:00
ralf-bonn d64f6001e6 Neue Felder eingearbeitet und Verbesserungen 2004-03-10 20:19:03 +00:00
koenr 4c4a240b43 changed filter to search 2004-03-10 18:23:43 +00:00
stronk7 39564db029 Solved bug 1123 and two more bugs when restoring
users and scales. Solved !!. Bump.
2004-03-10 17:12:00 +00:00
stronk7 1a6c02faba Detected 2 bugs when restoring users and scales about
recoding the id field !!
2004-03-10 17:10:26 +00:00
stronk7 063a889557 Now user_files are restored if the user existed previously but he
doesn't have a dir under the users dir.
See bug 1123 (http://moodle.org/bugs/bug.php?op=show&bugid=1123)
2004-03-10 16:15:42 +00:00
villate 0c92a8656a Portuguese translation of the original of Dec 30, 2003 2004-03-10 15:49:50 +00:00
villate 2830fb92cb Portuguese translation of the original from Oct 31, 2003. 2004-03-10 15:27:18 +00:00
villate 51417807ab Portuguese translation of the original from Oct 6, 2003. 2004-03-10 15:14:42 +00:00
villate e9560e3f4f Initial Portuguese translation. 2004-03-10 15:03:23 +00:00
villate 54b75c2aab First translation into Portuguese 2004-03-10 14:44:51 +00:00
villate 5a8118b839 Updated the date. 2004-03-10 14:29:41 +00:00
villate 3cbec41b70 Updates for 1.2 2004-03-10 14:29:05 +00:00
moodler 84bbca5355 When unenrolling a student from ALL courses, delete group memberships 2004-03-10 13:45:23 +00:00
villate 17050991cd Upgrades for 1.2 2004-03-10 13:40:21 +00:00
moodler 9c08ad13de Hide hidden activities from students on Recent Activity page 2004-03-10 13:38:08 +00:00
moodler 9b8a519291 Avoiding the use of the word "filter" on the Recent Activity page as
it might be confusing ... search will do.
2004-03-10 13:35:12 +00:00
moodler adb979a227 FIxing year on Copyright 2004-03-10 13:33:08 +00:00
villate d2b75ad62b Uses "lingua" instead of "idioma" 2004-03-10 13:30:07 +00:00
moodler f1b9a9e388 Adjusted date 2004-03-10 13:27:25 +00:00
moodler 351aac92eb Tweaks to dates etc 2004-03-10 13:26:33 +00:00
moodler abc3b857a2 Fixed some copyrights 2004-03-10 13:23:00 +00:00
moodler c6b456f66d Fixed some years 2004-03-10 13:21:12 +00:00
villate 4aa5717177 Updates for 1.2 2004-03-10 12:22:15 +00:00
villate f5a3da93f8 Proofreading by FEUP colleagues. 2004-03-10 11:57:55 +00:00
villate 19c0e4bc61 Contributions by Manuel Padilha. 2004-03-10 11:43:55 +00:00
villate 108055e37c Contributions by Guida Querido and some typos corrected. 2004-03-10 11:37:03 +00:00
moodler 99674db811 If $CFG->loglifetime is active then use it make the log graphing nicer.
bug 1120
2004-03-10 11:29:35 +00:00
moodler a69ffecd9c Format intro on attempts as well. 2004-03-10 09:49:31 +00:00
moodler 9a5c745d92 Properly format Quiz text (filters etc) 2004-03-10 09:45:33 +00:00
stronk7 57946b6d47 Take out the "working on it" string when restoring logs 2004-03-10 08:35:48 +00:00
moodler d928d9085d Latest versions from http://moodle.org/course/view.php?id=27 2004-03-10 08:28:28 +00:00
moodler 2eef791f9c Make sure $CFG->debug is defined before using it 2004-03-10 07:59:32 +00:00
moodler dd506ec8e5 Removing a notice 2004-03-10 07:20:42 +00:00
moodler 82d0993215 Include now uses absolute path, not relative. Solved problem
on one Sun installation.
2004-03-10 07:13:57 +00:00
moodler 52a88a8726 More rubustness 2004-03-10 03:45:44 +00:00
moodler 589af000f2 New dependency 2004-03-10 02:21:54 +00:00
moodler db46e49c9d Use break_up_long_words 2004-03-10 02:19:34 +00:00
moodler 4a5644e51a New generic function to break up long words 2004-03-10 02:19:17 +00:00
koenr a3dac57f5c missing strings (the last ones for 1.2??) 2004-03-10 00:12:08 +00:00
anvergara 1fed52248e empty files removed 2004-03-09 23:25:48 +00:00
stronk7 dd780a3b4c Now, in SEPARATE groups courses, a user cannot access to the info about users
in other groups.

Please check !!
2004-03-09 23:07:35 +00:00
stronk7 bdad9dbae8 Added the group icon to cordoroyblue theme. 2004-03-09 22:37:57 +00:00
selliott 8516afd507 Added logic to allow confirmation of unconfirmed users. 2004-03-09 21:43:09 +00:00
selliott 31f9f60576 Added user confirmation language. 2004-03-09 21:38:09 +00:00
selliott 3beaa4b6a3 Added some user confirmation language. 2004-03-09 21:35:41 +00:00
selliott ea5d48ee8d Modified function get_users_listing to:
1. also return confirmed field from user table and
2. include users in dataset who have not confirmed
(Used to display unconfirmed users in admin/user.php)
2004-03-09 21:12:54 +00:00
stronk7 75c591dbb9 Leeson icon for cordoroyblue
(the standard one)
2004-03-09 16:32:24 +00:00
moodler 9c7fee6c21 Lots of error checking now on most database functions ... if debugging
is turned on then you get notifications printed in the web page.

Good for catching bad SQL.

Thanks to Howard Miller for the boot up the bum!  :-)
2004-03-09 16:32:24 +00:00
moodler 940fca1a36 Fixed a little bug when glossary filter called from front page or
anywhere else a course is not defined
2004-03-09 16:30:36 +00:00
moodler 15ba837b5b Don't enter loop with no data ... bug 1053 2004-03-09 15:39:55 +00:00
moodler 4855286e27 Use DISTINCT instead of GROUP BY in get_site_users 2004-03-09 15:35:07 +00:00
moodler 3a954ad47f Fix for PostgreSQL and user searching Thanks Ulrik! bug 1101 2004-03-09 12:46:03 +00:00
moodler dcf9cea2a1 Don't check the login for the site-level course 2004-03-09 12:40:30 +00:00
moodler 13d7ed45db No doubling up on get_site_users() bug 1110 2004-03-09 12:18:52 +00:00
stronk7 f49306f136 Bump... :-) 2004-03-09 11:38:10 +00:00
stronk7 097015895c When restoring to existing course, the list of
available courses was previously ordered by sortorder.
Now it's ordered by fullname. See bug 1108.
(http://moodle.org/bugs/bug.php?op=show&bugid=1108)
2004-03-09 11:35:14 +00:00
bobopinna 4c65dd7fb2 Updated to Moodle 1.2 Beta + 2004-03-09 11:02:01 +00:00
bobopinna 4634e6f53b Update to 1.2 Beta + release 2004-03-09 10:59:25 +00:00
moodler b20ee40745 POssible fix for bug 1109 2004-03-09 08:41:57 +00:00
moodler 39f34785c8 Removing the random assignation button for now ... needs work.
Bug 1107
2004-03-09 06:47:23 +00:00
moodler b7a3d3b24c Filter text files as well 2004-03-09 06:44:27 +00:00
moodler cb4287ea70 Reverting previous fix, since it's now done across the board by file.php 2004-03-09 06:28:31 +00:00
moodler f05070115c If the uploaded file is HTML, then put it through the filters 2004-03-09 06:28:01 +00:00
moodler e359234d0f Fix for bug 1106
When resource_filterexternalpages are turned on then uploaded HTML
files are also now filtered properly.
2004-03-09 06:20:11 +00:00
moodler a9f80673b6 SHortanswer field just a bit bigger 2004-03-09 05:56:43 +00:00
moodler a8d909c77b Fix case of printing shortanswers with quotes in them 2004-03-09 05:51:16 +00:00
ralf-bonn f17eb3e5bd Neue Felder eingearbeitet und Verbesserungen 2004-03-08 19:22:46 +00:00
giro123 6a49664032 *** empty log message *** 2004-03-08 19:17:15 +00:00
giro123 a09e5d42d5 Updated 2004-03-08 19:16:29 +00:00
moodler 898f04d9cf Allow cloze questions to contain quotes 2004-03-08 13:09:42 +00:00
anvergara c550cf2bd4 Revised someallowguest string 2004-03-07 23:14:03 +00:00
anvergara 80b3028ac0 Upgraded to 1.2 beta 2004-03-07 23:00:04 +00:00
julmis 9174b41dc6 removing resizeTo -functions from dialogs 2004-03-07 14:40:39 +00:00
julmis f662e56130 fixes for gecko based browsers dialogs behavior (jumpyness) 2004-03-07 14:39:43 +00:00
moodler b4443d8f34 Whoops 2004-03-07 14:15:53 +00:00
moodler 4bf586673f Err, this is better 2004-03-07 14:14:27 +00:00
moodler 7277e30684 Update Czech users and courses to use new language pack 2004-03-07 14:10:11 +00:00
moodler 3b395d7acb CZ is being renamed (back) to CS. :-/ 2004-03-07 14:00:43 +00:00
julmis dad2182e95 Javascript cleanups 2004-03-07 08:20:05 +00:00
julmis e7bc78936e Add Cleanup word HTML button and enabling Cut/Copy/Paste -buttons
on gecko based browsers
2004-03-07 07:03:05 +00:00
julmis 7996c056f5 Some cleanups :-) 2004-03-07 07:01:49 +00:00
moodler 86fb5ed596 Use emailstop 2004-03-07 06:32:36 +00:00
moodler c3862e8fda Use emailstop ;-) 2004-03-07 06:32:22 +00:00
julmis b88e650dff WordClean button 2004-03-07 05:40:52 +00:00
moodler 5d67c62017 Latest version ADOdb 4.20 2004-03-07 02:33:26 +00:00
moodler 20daa09bae Bump 2004-03-07 01:46:54 +00:00
moodler 58abc13554 Removed troublesome code - don't think it was helping much 2004-03-07 01:41:55 +00:00
moodler 5d93e4a421 Latest updates for 1.2 2004-03-06 12:17:42 +00:00
fiedorow a4668b510b mimeTeX buffer overrun vulnerability fixed for Windows and Linux 2004-03-06 11:58:07 +00:00
moodler 62b7ad7bf5 Slightly bigger input box for short answers
http://moodle.org/mod/forum/discuss.php?d=5909
2004-03-06 09:51:52 +00:00
moodler 6780cb4a2b Latest from Jean! 2004-03-06 03:34:42 +00:00
martignoni a0db7a3dba Some strings corrected 2004-03-05 18:39:23 +00:00
adamtpaw 85d9f6a4ff New files and updates Moodle v1.2 2004-03-05 14:08:00 +00:00
adamtpaw 44cd348070 New file 2004-03-05 13:44:27 +00:00
adamtpaw cff6690486 Few updates Moodle v 1.2 2004-03-05 13:40:53 +00:00
moodler 1b899e00a2 Small bump to fix a particular site 2004-03-05 13:38:41 +00:00
martignoni 645ac738f3 Typos corrected (Thanks JF Nadeau) 2004-03-05 08:07:44 +00:00
moodler 623799eb26 Just some cleanup formatting 2004-03-05 06:35:56 +00:00
koenr fd23d4f550 Changed classificaties to beoordeling
Changed the translated Connected and Separate Knowing back to the English terms (as in the helpfiles)
2004-03-04 20:14:01 +00:00
martignoni 7b9de57b1c Help files for module lesson translated (Thanks JF Nadeau) 2004-03-04 16:12:54 +00:00
andersbe 3733b47cdd All the strings in the php-files are translated as of 2004-02-27
Some help-files are still missing

Alla str?ngar i php-filerna  ?r ?versatta t o m 2004-02-27
N?gra hj?lpfiler saknas fortfarande.
2004-03-03 18:33:32 +00:00
gustav_delius 6ff27f32af fixed a typo in the URL produced by the group menu on forum/view.php 2004-03-02 22:11:48 +00:00
giro123 f7fcac8686 Updated 2004-03-02 18:18:30 +00:00
giro123 9ce83538eb Facundo Ortiz 2004-03-02 17:28:42 +00:00
giro123 d91fc81766 1.2 2004-03-02 17:09:20 +00:00
giro123 0d3b6f3c4e Pedro Benito 2004-03-02 17:02:05 +00:00
paca70 7e99e2655c Updates, thanks to Jussi Kurikka 2004-03-02 14:26:11 +00:00
julmis e418c553a6 Focus fix for gecko based browser dialogs 2004-03-01 23:59:11 +00:00
julmis f77b6706ac Image size fix if url is written manually 2004-03-01 23:56:17 +00:00
moodler c6c43ae9de $CFG->deleteunconfirmed can be used to specify the time period
within which a user must confirm by email  (default is still 7 days)
2004-03-01 22:53:58 +00:00
martignoni f8b2bb32ab Typos corrected 2004-03-01 19:44:33 +00:00
giro123 b3d8eda1cf Mauricio Latorre 2004-03-01 17:39:48 +00:00
koenr 469e3afdc6 Review of the Dutch translation: a lot of corrected typo's, bad translations, ugly sentences etc 2004-02-29 22:30:06 +00:00
martignoni f9be9b8047 Modification for the new WYSIWYG editor 2004-02-29 19:54:05 +00:00
martignoni 056b4085f9 More help files translated (Thanks Jean-Fran?ois Nadeau) 2004-02-29 19:25:53 +00:00
fiedorow ea3cf78190 Remove nolink tags in glossaries 2004-02-29 14:26:57 +00:00
martignoni ea512d90b6 Improvements to front page strings 2004-02-29 13:20:10 +00:00
martignoni 972686287a Suppression of translation note 2004-02-29 12:55:54 +00:00
martignoni 74adc85bb4 Better HTML formatting 2004-02-29 12:52:49 +00:00
martignoni 2a9d1fc844 Translation terminated 2004-02-29 12:51:21 +00:00
martignoni 61703d4e21 'plus anciennes' -> 'ant?rieures' 2004-02-29 11:40:47 +00:00
martignoni a528d23fc2 Translation improvements ('Afficher ...') 2004-02-29 11:38:52 +00:00
martignoni 3a473e0b61 More translation 2004-02-29 10:24:30 +00:00
martignoni 5f2a848914 More translated 2004-02-28 21:20:04 +00:00
koenr 6cfb7b8b3e final review (hopefully)
absentie -> aanwezigheid / aanwezigheden
2004-02-28 21:12:04 +00:00
martignoni 70dadbc7e7 Bulk assignment to groups 2004-02-28 19:15:06 +00:00
martignoni 8e1c2e2994 'La classe' -> 'Personnes' 2004-02-28 18:59:31 +00:00
martignoni 5e576418df Fix with backup update string 2004-02-28 16:59:57 +00:00
martignoni 0dcd9cdeb0 Change '\$' to single $, and some tweeks 2004-02-28 16:27:24 +00:00
martignoni aad15755dc First translation 2004-02-28 13:42:15 +00:00
koenr 588d3bb84b initial translation by Koen Roggemans.
All files form lesson translated (at the moment)
2004-02-28 11:56:24 +00:00
martignoni d7e22e4751 'Modifier le profil' -> 'Modifier mon profil' 2004-02-28 11:05:12 +00:00
martignoni ac30207d3f Change 'searchforums' string to something shorter 2004-02-28 10:20:48 +00:00
koenr e4669bcf10 special characters alinea inserted 2004-02-28 09:54:14 +00:00
koenr df56fd6837 Flash cards issue 2004-02-28 08:54:06 +00:00
koenr 80492e6072 initial translation by Koen Roggemans 2004-02-28 08:53:26 +00:00
adamtpaw 1e466f029a New versions for Moodle 1.2 2004-02-27 20:25:29 +00:00
koenr e30089c248 flash cards issue 2004-02-27 13:23:25 +00:00
koenr 42655a6ace typo 2004-02-27 13:22:31 +00:00
thetrinity 208fb2d327 minor clarification. 2004-02-27 12:02:41 +00:00
thetrinity 337b9e6fbc Changed Special Characters section: new code for escaping control characters with backslash. 2004-02-27 09:07:36 +00:00
thetrinity 8ec4b43554 Added code for escaping control characters with backslash. 2004-02-27 09:03:30 +00:00
koenr c253550a40 initial translation by Koen Roggemans 2004-02-27 08:28:54 +00:00
koenr 252b2fe126 typo 2004-02-27 07:54:19 +00:00
koenr dbc11edaae filling in missing strings 2004-02-27 07:49:08 +00:00
martignoni cda9f2b312 Correction of 'weeklyoutline' and 'topicoutline' 2004-02-26 22:05:21 +00:00
rkingdon c4f17346dd Corrected typo. 2004-02-26 17:19:00 +00:00
rkingdon 394c97c88b Support for extra question types added; Flash Card style lessons now an
option.
2004-02-26 16:54:47 +00:00
rkingdon a78e874f6b Help help for second release 2004-02-26 16:43:28 +00:00
rkingdon 1192a9ef6f String to support Mulitple Question types 2004-02-26 16:36:43 +00:00
martignoni 003c204214 Improve translation of terms related to logging 2004-02-26 10:12:34 +00:00
mits 4f682a063f polished & added some help files. 2004-02-26 03:28:12 +00:00
fiedorow aecc779ee7 Bug fix: is_executable not available in Windows PHP 4.x 2004-02-26 03:25:20 +00:00
koenr 026d711e26 initial translation by Koen Roggemans 2004-02-25 22:33:59 +00:00
martignoni db763c3810 New strings added 2004-02-25 21:08:37 +00:00
gniske dc648d41da Adding missing strings
Made som few corrections in existing translation
2004-02-25 00:40:34 +00:00
koenr 65b14fbe73 filling in missing strings at Moodle Speed 2004-02-24 22:16:27 +00:00
koenr acd4298d68 first translationattempt: please comment 2004-02-24 22:13:34 +00:00
koenr ddca860a84 missing group support added 2004-02-24 22:12:26 +00:00
koenr 820c1b0ecc missing string 2004-02-24 22:11:14 +00:00
fiedorow 3e2ac6a050 Bug fix: don't allow users to be inserted in several groups 2004-02-24 22:09:43 +00:00
fiedorow 499d1a4020 Bulk assignment to groups 2004-02-24 20:15:26 +00:00
stronk7 cc14c8bd42 Added backuplogdetailed string 2004-02-24 17:31:48 +00:00
stronk7 c95ca8f034 Now the detailed view is available for each course. Enjoy. 2004-02-24 17:31:26 +00:00
martignoni 7b7317232a Some tweeking 2004-02-24 16:04:54 +00:00
stronk7 89e399dcda Now message->groupid is supported in backup & restore. 2004-02-24 15:45:01 +00:00
stronk7 7a9e8dae46 Preliminary support of backup_logs included.
It doesn't show info yet but I need to commit it now
(traveling next two hours) :-)
2004-02-24 13:46:12 +00:00
stronk7 e39a04d573 First attempt to view scheduled backup logs.
Currently it shows laststatus only.
Detailed view comming this afternoon.
====
Note: As you have released 1.2beta and this is a new little functionality,
   please, let me know if I must "delete" it from CVS before 1.2 (although
   I think that we are on time to add this...)
2004-02-24 13:18:22 +00:00
martignoni 740f08cb01 Beginning translation of latest release notes 2004-02-24 13:14:00 +00:00
martignoni 32fe5d5443 File renamed to 'releaseold.html' 2004-02-24 13:09:46 +00:00
moodler d77b492283 Latest tags 2004-02-24 09:18:34 +00:00
moodler e5effc413f Fixed a typo 2004-02-24 08:45:58 +00:00
mits c837e4a577 translated few help files. 2004-02-24 08:20:41 +00:00
moodler e553bdecf7 Changed the logic around so that any binary called "mimetex" is used
in preference to any other pre-installed binary.

This makes me happier about the FAT binary, because a leaner binary
can be installed without interfering with CVS etc.
2004-02-24 08:04:49 +00:00
moodler 98d4782e8a Match backup version to main version 2004-02-24 07:51:10 +00:00
moodler eed6ad1d15 I'll be packaging this up in the next few hours 2004-02-24 07:50:18 +00:00
koenr ba7644c64d missing string 2004-02-24 07:37:32 +00:00
mits 862e37cd53 translated some. 2004-02-24 07:26:39 +00:00
moodler b46792fe1e Some fixes for delete groups sessions 2004-02-24 07:21:52 +00:00
moodler 4b6d8dd545 Better notice for people not in a group who are trying to see a
SEPARATE activity.
2004-02-24 07:12:56 +00:00
moodler a43b24985f Moving headings 2004-02-24 07:00:13 +00:00
moodler e9a551b341 Tidy up the menu a bit 2004-02-24 06:43:13 +00:00
moodler 743a92ff49 Slightly more correct terminology on groups menu 2004-02-24 06:38:26 +00:00
moodler 84a2fdd706 Preliminary support for groups in Chat.
It's not well tested yet - I'm hoping to do some testing on moodle.org
with some real people and get this refined enough for the Beta release
later today.
2004-02-24 06:35:57 +00:00
moodler 4c17698e77 Bump 2004-02-24 03:12:29 +00:00
moodler 0b2bff196e Fixed up some $a variables which were a$ 2004-02-24 02:57:30 +00:00
moodler 55d2bbbb4b More information 2004-02-24 02:49:13 +00:00
giro123 cde82169a7 *** empty log message *** 2004-02-23 23:53:57 +00:00
koenr f30823dedd missing strings 2004-02-23 23:23:23 +00:00
selliott 3819ed3115 Fixed incorrect display of time 2004-02-23 21:17:03 +00:00
selliott 1e23ed0aa4 Fixed url to activities 2004-02-23 20:41:54 +00:00
martignoni 0186d7e0e1 New file translated 2004-02-23 20:13:21 +00:00
martignoni 96225787c5 Update to last changes 2004-02-23 19:39:36 +00:00
moodler 602bde06e7 Added .3gp type 2004-02-23 19:10:00 +00:00
fiedorow e072c85e65 Displays file permissions for mimetex and uses md5_file if available 2004-02-23 18:48:55 +00:00
moodler 0f87cb1d09 1. Recent activity reports now activated!
2. Some cleanup of the reports, using boxes
2004-02-23 18:05:59 +00:00
giro123 6c90bfcc79 Ricardo Dalton 2004-02-23 17:57:00 +00:00
giro123 1e1df0b493 Facundo Ortiz 2004-02-23 17:42:24 +00:00
giro123 e7bb1c8e4f *** empty log message *** 2004-02-23 17:05:08 +00:00
giro123 ffe58bd967 *** empty log message *** 2004-02-23 17:04:28 +00:00
giro123 a92624488f Benito Arias 2004-02-23 17:03:32 +00:00
moodler 2842d324c8 FIxed title of Window 2004-02-23 16:13:12 +00:00
julmis 4a9d4e041f Dialog update for students view
Original smaller dialogs for students.
2004-02-23 15:33:32 +00:00
julmis ead61cb9d0 Insert link dialog for students.
Original smaller dialog for students instead of that
larger one that teachers are allowed to use.
2004-02-23 15:32:28 +00:00
julmis 0e60d11cdc Insert image dialog for students.
Original smaller dialog for students instead of that lager
one that teachers are allowed to use.
2004-02-23 15:31:24 +00:00
stronk7 7754a0df58 Added the firstdayofweek string (0-Sunday, 1-Monday,....6-Saturday).
Needed because this info isn't in locales. This can be used in
a lot of places showing weekly info (backup_scheduled, calendar...)
2004-02-23 12:03:39 +00:00
julmis 15153dc088 Filebrowser off for students :-) at the moment... 2004-02-23 11:05:36 +00:00
martignoni 145292a6e5 Forgotten semi-colon added at end of line 156. Thanks to Koen Roggemans. 2004-02-23 06:41:09 +00:00
moodler 6077ffdb23 Removing old string 2004-02-23 04:31:49 +00:00
moodler 198d132f90 Eloy's white-background version! 2004-02-23 03:06:37 +00:00
koenr 00310294be corrected some typo's and malformed sentences 2004-02-22 23:20:48 +00:00
stronk7 fb2c01fbb3 Solved two bugs when restoring and groups or events exists in destination
course.
2004-02-22 22:22:58 +00:00
koenr 63d383336f initial translation by Koen Roggemans 2004-02-22 21:59:23 +00:00
koenr 036f1b884a missing strings 2004-02-22 21:55:49 +00:00
ralf-bonn 08ace0d68f Neue Felder und Verbesserungen im Anmeldebildschirm 2004-02-22 21:46:49 +00:00
ralf-bonn 43f843d34f Erst?bersetzung 2004-02-22 21:20:41 +00:00
ralf-bonn 086dd78f11 Neue Felder ?bersetzt 2004-02-22 21:19:58 +00:00
martignoni b1025d7d86 More tweeks and corrected typos 2004-02-22 20:05:05 +00:00
stronk7 626daa72f7 Added to strings about backup & restore of events. 2004-02-22 19:43:26 +00:00
stronk7 63a3695bfa Now every all the logs are restored.
Please, test it !!
2004-02-22 19:22:05 +00:00
stronk7 8dad6a690f Opps, returning to version 1.3 (before I put two lines in CVS
by mistake). I'll inform Ray about that needed actions and let him
to decide. Sorry :-(
2004-02-22 19:19:02 +00:00
stronk7 c6c8272ae7 Now lesson logs are restored too!! 2004-02-22 19:11:09 +00:00
stronk7 e8ba6e6028 Some minor changes because the:
/mod/lesson/view.php?id=XXX&action=navigation&pageid=ZZZZZ
was not working fine.
I'm not really sure if the modifications I've done (basically removing
POST['pageid'] use has other implications.
So, Ray, if you can check it....
Ciao :-)
2004-02-22 19:10:23 +00:00
stronk7 6e773096a5 Added the lesson_get_participants() function
to properly detect all the needed users with data
in the activity in order to be able to backup them.
2004-02-22 18:15:45 +00:00
martignoni a1a163cef1 Update to new strings 2004-02-22 17:15:18 +00:00
moodler af648ddfec Taking the edges off a bit ... this might be a waste of time ... 2004-02-22 13:56:16 +00:00
moodler 2d8b2369c5 Trying a new logo on the home page ... hope it doesn't clash too much
with themes ...
2004-02-22 13:47:56 +00:00
fiedorow 8d311b2d48 Now ++ argument is optional 2004-02-22 13:12:05 +00:00
moodler 995f9f86e9 Fixes for IE 2004-02-22 12:41:50 +00:00
moodler c6c93ee66e Consistent capitals 2004-02-22 12:40:33 +00:00
moodler 7d4a57f648 Little fix 2004-02-22 12:38:45 +00:00
stronk7 744d723c2c Now forum logs are restored. 2004-02-22 12:34:07 +00:00
moodler a4dda51f43 Another fix for recent testers only I think 2004-02-22 12:27:52 +00:00
moodler d1fd642688 WHoops, forgot a bit 2004-02-22 12:24:39 +00:00
moodler 828aeff2d6 A proper GUI for filters :-)
Still needs work, but it works fine now.

Later I want to add config pages for each filter, like modules have.
2004-02-22 12:17:27 +00:00
moodler 677d1679fa Some new strings, including filter names 2004-02-22 12:14:37 +00:00
stronk7 b17333be71 In the delete discussion action, as the discussion no longer exists,
point the url to view the forum instead of the discussion.
2004-02-22 11:50:09 +00:00
stronk7 96d6fc8f14 Solved small bug in delete discussion action, where the
info field was storing the post->id rather of the discussion->id field
2004-02-22 11:40:44 +00:00
stronk7 454e72f7d4 Added the forum->id into the info field
for the "view subscribers" action. To make
this action easily recovereable and to show
forum name when displaying logs.
2004-02-22 11:25:09 +00:00
moodler 522e2249c6 More robustness when dealing with links that may have HTML tags
within the link.
2004-02-22 02:51:42 +00:00
julmis ce668c6531 Minor fix for $imagepath. 2004-02-22 00:49:13 +00:00
moodler 08df81a8e6 Renamed dynalink.php to filter.php for consistency with other filters 2004-02-22 00:20:14 +00:00
fiedorow ddea4cf070 Fix for case when $CFG->dirroot contains spaces, especially for Windows 2004-02-21 23:34:09 +00:00
willcast c9128b637b - Dealing with incompatibilities related to posgresql. 2004-02-21 13:21:35 +00:00
willcast a5e48d968d - Fixing come incompatilities with PostgreSQL.
THANKS TO ULRIK PETERSON!
2004-02-21 13:05:38 +00:00
martignoni 7a1cb2c12a Some more typos corrected 2004-02-21 10:48:37 +00:00
martignoni b1ffbf3e0e 'Mettre ? jour' -> 'Modifier' 2004-02-21 10:23:08 +00:00
martignoni e14d405263 Some typos corrected 2004-02-21 10:19:41 +00:00
thetrinity bf3c01535e GIFT: Proofreading and minor changes. Cleaned up HTML and dded Special-Characters section to formatgift.html 2004-02-21 09:20:34 +00:00
moodler a87491c1d0 Many updates from Janne.
I've done a basic review and fixed a few things, but there will need
to be a lot more testing and cleanup over this weekend.
2004-02-21 05:49:31 +00:00
moodler e081f299f5 Renamed a variable to fix display when different languages are mixed together 2004-02-21 03:26:04 +00:00
willcast 6c884b58c9 - Linking global categories from within courses now works. 2004-02-21 02:48:53 +00:00
stronk7 ceafd825e2 Take out all he notices in this form, it had a lot !! 2004-02-21 01:53:12 +00:00
stronk7 cd44fdcb82 Some important changes:
- Now course events are supported in backup & restore.
        - in manual backups
        - in scheduled backups
    - Fixed important bug when restoring groups.
    - Added support to the "user change password" action
      (with some changes done in login/change_password.php)

Please, test it !!!!
2004-02-21 01:30:22 +00:00
stronk7 526234384c Modified the log of the "change password" action to encode the userid in the
info field, instead of the courseid. To be consistent with another user
actions (view...). I suppose that this is the propper way.
2004-02-21 01:24:07 +00:00
willcast 27f2c52057 - Linking global categories from within courses now works. 2004-02-21 01:16:03 +00:00
fiedorow f20e195fa4 Better way to eliminate superfluous parentheses in fractions 2004-02-21 01:11:00 +00:00
selliott ba90d6d0d4 Added strings for course/recent.php and course/lib.php 2004-02-20 22:25:00 +00:00
selliott 9743bb84b9 Added some strings for course/recent.php and course/lib.php 2004-02-20 22:19:59 +00:00
selliott f5ffb87d24 Cleaned up some string literals 2004-02-20 22:16:28 +00:00
selliott ffeca1205c Added logic in function assignment_get_recent_mod_activity for groups 2004-02-20 22:03:57 +00:00
selliott 90708fc1f3 Added logic in function forum_get_recent_mod_activity for groups 2004-02-20 21:52:56 +00:00
selliott 6a0c9cf8a3 Added logic in function quiz_get_recent_mod_activity for groups 2004-02-20 21:47:55 +00:00
selliott 587510bec5 changes to function print_recent_selector_form for normal/advanced filters in course/recent.php 2004-02-20 21:38:42 +00:00
selliott 08e2111bf8 Added logic for a normal view and advanced view for the filter 2004-02-20 21:34:21 +00:00
stronk7 5d31e5af40 Updated a bit. 2004-02-20 20:10:14 +00:00
stronk7 77885194e3 Bump to 1.2 alpha (to be synchronized) :-) 2004-02-20 20:08:14 +00:00
fiedorow e86a754bab Yip's additions for Greek letters and bug fixes 2004-02-20 19:24:36 +00:00
fiedorow 6361d22faf Statically linked mimetex.linux; bug fix for texdebug.php 2004-02-20 19:20:01 +00:00
moodler 97375ca98e Bumping it up a notch 2004-02-20 16:10:54 +00:00
moodler a9ccbf60bf Groups support on Surveys. Phew. 2004-02-20 16:03:05 +00:00
villate 74c82136ba Some of the new variables translated. 2004-02-20 15:39:53 +00:00
moodler 5875b7d611 Undoing recent changes ... should be in a separate file 2004-02-20 14:16:07 +00:00
moodler 1e03c552e3 Reverting a bad bug recently introduced by Petri which meant
Moodle couldn't create any new directories ...   :-(
2004-02-20 14:12:49 +00:00
moodler f96f80db5c Include "Courses" in heading as generic title 2004-02-20 12:59:12 +00:00
moodler c0b85daf7b Clean up of terminology course categories and courses 2004-02-20 12:56:17 +00:00
moodler 352d94cf37 Change course sideblock title depending on contents 2004-02-20 12:43:20 +00:00
moodler 4101e996e1 Make Quicktime movies loop by default 2004-02-20 11:58:44 +00:00
moodler 111980c772 Email enable/disable strings 2004-02-20 11:47:08 +00:00
moodler cadb96f29e GUI to allow disabling of user email addresses (from user profile) 2004-02-20 10:27:24 +00:00
bobopinna 2073bdf9ba *** empty log message *** 2004-02-20 09:56:03 +00:00
moodler 8199e3f09a New user field called "emailstop" ... to stop emails.
I had to do it ... this is driving me nuts with some people
on moodle.org
2004-02-20 09:02:27 +00:00
moodler 017b4cab3e Making the link title look a bit nicer for long strings with spaces etc 2004-02-20 04:14:24 +00:00
moodler 6b0a2ff4a5 Add some feedback and instructions for other platforms 2004-02-20 03:31:02 +00:00
moodler 13112aaa35 Added default platform 2004-02-20 03:12:01 +00:00
moodler 6e1ee58e3f Added the default platform back again. :-) 2004-02-20 03:00:44 +00:00
moodler 59c7115177 FIxed bug with forced languages by moving string definitions 2004-02-20 02:29:30 +00:00
moodler d879ed9100 Latest updates for Chinese Simplified! 2004-02-20 02:20:17 +00:00
fiedorow 1ed0ba1d77 Improved debugging of mimetex 2004-02-20 01:44:31 +00:00
koenr 03cd979250 missing strings 2004-02-19 21:39:12 +00:00
fiedorow 65a275f404 Now strips outermost parentheses in denominators 2004-02-19 21:27:16 +00:00
paca70 d956341c66 Fixed INT4 SERIAL 2004-02-19 19:07:04 +00:00
moodler e8da8d7004 Format answers in multiple choice questions 2004-02-19 18:14:19 +00:00
fiedorow 9cc1730595 Added debugger for TeX filter 2004-02-19 18:05:01 +00:00
fiedorow 9b361d24b3 Added debugger for algebra filter 2004-02-19 18:03:41 +00:00
moodler 2ab76925a2 Cleaned up group menus 2004-02-19 17:57:22 +00:00
moodler eb6147a8bb For the group functions, a group 0 means everyone 2004-02-19 17:56:52 +00:00
moodler 1d9fc41755 Groups menu now includes "All groups"
Titles have tags stripped
2004-02-19 17:56:05 +00:00
moodler 8e4c9ef7b1 Don't bug out when sort not specified 2004-02-19 17:54:32 +00:00
moodler b14875e4a4 New error message 2004-02-19 17:52:31 +00:00
giro123 5eac36be7d Benito Arias 2004-02-19 17:45:00 +00:00
moodler a63d7730d0 Add string for "All groups" 2004-02-19 17:09:43 +00:00
mits 9f182b1046 translated few. 2004-02-19 15:42:04 +00:00
moodler 004f8037f4 Fixed missing log_displays - thanks Eloy! 2004-02-19 13:28:31 +00:00
moodler 899e041895 Fixed missing Label logs - thanks Eloy! 2004-02-19 13:25:25 +00:00
paca70 94b9a1ca02 First changes for creating help-translation system.
http://site/files/index.php?fi=lang
shows now selected language "lang" files.
2004-02-19 10:13:07 +00:00
paca70 7279163ff2 Removed signed/unsigned definations (Thanks to Ulrik Petersen to pointing this out) 2004-02-19 09:54:33 +00:00
paca70 b92d1a68a5 First versions for postgres7. 2004-02-19 09:03:34 +00:00
moodler a740ff66d9 Don't show editing icons when questions can't be edited! 2004-02-19 07:53:09 +00:00
moodler f668898c3f Add logging for password changes 2004-02-19 02:09:37 +00:00
stronk7 c9ec4c5557 Bump. More modules support logs-restore. 2004-02-19 00:06:19 +00:00
giro123 4b9633290d *** empty log message *** 2004-02-18 22:53:38 +00:00
stronk7 7399316518 Now journal logs are restored too :-) 2004-02-18 22:30:35 +00:00
stronk7 93766dbd6a Now glossary logs are restored too !! :-) 2004-02-18 22:29:50 +00:00
giro123 dc06435513 Facundo Ortiz 2004-02-18 22:25:37 +00:00
stronk7 d3acd64d59 Little bug storing wrong comment->id in the info field
when performing the "delete comment" action. Now it works fine. :-)
2004-02-18 21:50:33 +00:00
giro123 2816154cd6 *** empty log message *** 2004-02-18 21:38:10 +00:00
giro123 89b264c794 Facundo Ortiz 2004-02-18 21:25:17 +00:00
stronk7 fabf55e684 Added the cmid field to some add_to_log() calls. To use it when
restoring logs. Now I think that everything is ready !! :-)
2004-02-18 20:52:44 +00:00
stronk7 f43c695e1e Added cmid to some add_to_log() function calls.
Needed to be able to restore logs properly. :-)
2004-02-18 20:02:33 +00:00
ralf-bonn 5bb661c215 Einige aktuelle Verbesserungen 2004-02-18 16:50:14 +00:00
mits 4a4d7c5ff4 step by step 2004-02-18 16:17:38 +00:00
moodler 448acc2a51 Default to just using "mimetex" binary. This makes it easier
to drop in unusual binaries and have them work
2004-02-18 16:02:09 +00:00
moodler c6e86280f2 Latest translation ... submitted here: http://moodle.org/mod/forum/discuss.php?d=5414 2004-02-18 13:14:33 +00:00
moodler ac1c2b0719 Removing old English stuff 2004-02-18 13:08:42 +00:00
rkingdon c7901feb99 Fixed restart bug - continue now handle through POST not GET. 2004-02-18 12:12:12 +00:00
moodler dbb4919258 Better error checking when trying to show an incomplete attempt 2004-02-18 08:40:58 +00:00
moodler d6021c77f6 FIxed a silly typo! 2004-02-18 05:48:31 +00:00
moodler 7758d00f97 New "secret" variable 2004-02-18 03:31:45 +00:00
moodler b8be40ce52 Variable $CFG->admineditalways will enable admin editing all the time 2004-02-18 03:30:05 +00:00
moodler a0beda7a7a Format quiz feedback 2004-02-18 03:07:50 +00:00
moodler a99008f6e1 Restore logs consistently 2004-02-18 02:28:47 +00:00
moodler 71ca2a2a05 Changed log URLs for attempts ... the old one worked too but this is
better for consistency.

Not much gets past Eloy "Eagle Eyes" Lafuente!
2004-02-18 02:24:29 +00:00
fiedorow 5794f89813 Support for absolute value added 2004-02-17 19:06:22 +00:00
fiedorow 0c7aca91e9 mimetex.darwin updated; tex previewer added 2004-02-17 19:03:30 +00:00
stronk7 10672458f9 Now "attempt", "submit" and "review" actions
use the q=xxx&attempt=yyyy syntax instead of
        id=xxxx&attempt=yyyy (not working old one)
It's necessary to change the "review" add_to_log() call
to use this sintax. It uses the old (nor working) one.
I wait to Martin to do this, because I've sent one email about this.
For info, the line to correct is number 57 in review.php from:
add_to_log($course->id, "quiz", "review", "review.php?id=$cm->id&attempt=$attempt->id", "$quiz->id", "$cm->id");
to:
add_to_log($course->id, "quiz", "review", "review.php?q=$quiz->id&attempt=$attempt->id", "$quiz->id", "$cm->id");
Ciao :-)
2004-02-17 17:27:27 +00:00
giro123 4c918350d6 *** empty log message *** 2004-02-17 16:34:12 +00:00
stronk7 40c287b095 Added support for "choose" and "choose again" action logs. :-) 2004-02-17 16:19:58 +00:00
moodler abcc3a17b9 Fixed up some logging 2004-02-17 14:39:15 +00:00
moodler 249bdbe3cf Don't allow signup page to work unless necessary 2004-02-17 14:11:19 +00:00
mits c15ed23f52 translated few strings. 2004-02-17 12:27:54 +00:00
moodler 4899c66789 FIxed up logging when viewing submissions (database truncation in logs)
Thanks Eloy!
2004-02-17 12:25:01 +00:00
moodler f8f63ecdd5 On second thoughts, Eloy was right - showall is useless. :-) 2004-02-17 12:18:02 +00:00
moodler 987ecd9806 showall is an optional variable that will showall the people in one list 2004-02-17 12:16:14 +00:00
moodler fc4a5a2f63 FIxed the logging of attempts so that clicking on the link in the log
actually shows you that attempt, rather than opening a new one!
2004-02-17 12:14:02 +00:00
rkingdon c65e968162 A couple more strings for the sanity check. 2004-02-17 11:22:25 +00:00
rkingdon 9aba486423 Added sanity check before calculating grade. 2004-02-17 11:11:00 +00:00
moodler 7a38bf2836 A tiny MP# player. :-) 2004-02-17 09:43:36 +00:00
moodler 609a2b13b7 SOme info about $CFG->filterall 2004-02-17 06:33:04 +00:00
moodler 9e353ce7e2 Upgrade filter references 2004-02-17 05:28:52 +00:00
moodler 4da85078e9 Changed the name of all filters to be consistent.
Removed texh filter
2004-02-17 05:22:26 +00:00
moodler 830e238d58 Removed tex binaries and renamed main filter file 2004-02-17 05:12:33 +00:00
moodler f4da2ed4d7 Don't specify id on upgrades! Thanks, Eloy! 2004-02-17 03:58:06 +00:00
moodler ae2aa3c82c More fixes 2004-02-17 03:43:33 +00:00
fiedorow e8e6a5602e Improved mimeTeX binaries & more uniform cross-platform code in filter 2004-02-17 03:41:10 +00:00
fiedorow 1a1de46ae2 Working version of algebra filter for Unix and Windows 2004-02-17 03:38:48 +00:00
moodler 3ce906d64d Some fixes for multiple links 2004-02-17 03:15:55 +00:00
moodler 652d573b5e JUst removing capitals .. :-) 2004-02-17 02:38:59 +00:00
moodler 6de17fde07 Cool thing for the morning - a new filter that will turn any link to
an MP3 into an embedded plugin.  It would be easy to add movies
and things later.
2004-02-17 02:37:51 +00:00
rkingdon aaac8ae3fa Additional string. 2004-02-17 00:55:06 +00:00
rkingdon 667c5e9199 Only teacher's with edit privileges see the edit links; Navigation now
uses POSTS rather than GETS.
2004-02-17 00:54:10 +00:00
stronk7 4130af7552 Now label, quiz, resource and survey logs
are restored properly (I think) :-)
2004-02-16 20:42:16 +00:00
stronk7 eaefa1c0e8 Added missing cmid parameter when calling add_to_log() function
for report and review actions :-)
2004-02-16 20:22:32 +00:00
stronk7 8f583218df Added missing cmid parameter when calling add_to_log() function. 2004-02-16 19:31:26 +00:00
moodler 0e27a3ae71 Allow longer answers to support text fields better 2004-02-16 17:58:06 +00:00
moodler 62a575d157 Chat room text is now filtered 2004-02-16 17:39:05 +00:00
moodler 302130de75 Global not defined 2004-02-16 17:32:10 +00:00
moodler 1d8063adbc Some spacing 2004-02-16 17:15:59 +00:00
moodler f14a311ec3 Minor tify up 2004-02-16 17:14:07 +00:00
moodler 077641504f Cornflower, by Tom Murdock.
A blue theme with some nice things about it.
2004-02-16 16:52:39 +00:00
giro123 5b767cb1ea *** empty log message *** 2004-02-16 16:51:28 +00:00
rkingdon 9cf1f5a6ab Add missing string. 2004-02-16 16:28:47 +00:00
moodler c9b1af4d42 Make sure the update happens (some of this new code is actually really
old and sort of got bypassed)
2004-02-16 16:15:21 +00:00
moodler 7c8c335fa3 Complete clean-up of the survey reports.
Frames are GONE.  :-)

Also, a new survey: CIQ = Critical Incident Questionnaire
2004-02-16 16:13:31 +00:00
rkingdon 9be2bd0c39 Moveit action: Removed debug messages; added redirect. 2004-02-16 16:08:40 +00:00
selliott 4897d92364 Fixed icon display for submissions when shown in course/recent.php 2004-02-16 14:17:33 +00:00
bobopinna d1156ef7ec Updated by Roberto Pinna 2004-02-16 13:24:35 +00:00
moodler 9232405d8a SOme improvements to logging 2004-02-16 12:20:40 +00:00
moodler e2e039f18b Fixed header on table 2004-02-16 12:02:08 +00:00
moodler cda397e7f3 Didn't look so good as the "L" 2004-02-16 11:59:57 +00:00
moodler bd9f4bd634 Slightly different icon ... now it looks like an "L" :-) 2004-02-16 11:56:20 +00:00
moodler 096b5432a7 Fixed some old pix paths 2004-02-16 09:24:14 +00:00
moodler c10a04e82d Log display 2004-02-16 08:45:58 +00:00
moodler c872bfb7b9 Fixed logs 2004-02-16 08:43:33 +00:00
moodler 60efe6cbb3 Apparently WIN32 gets returned sometimes too 2004-02-16 06:44:50 +00:00
moodler 23323b37b6 Accept Windows as well as WINNT 2004-02-16 06:42:10 +00:00
moodler 24d18e2f8e First cut at a new icon 2004-02-16 06:13:52 +00:00
moodler 97e4129b73 Removed the debugging statement 2004-02-16 06:06:26 +00:00
moodler 7b608def7e Add some formatting to the answers 2004-02-16 05:59:20 +00:00
moodler bbcbc0fecc Adding the Lesson module to the main CVS. Nice job Ray!
Still needs PostgreSQL support and wider testing
2004-02-16 05:41:13 +00:00
moodler fd9521f6d4 Better smiley fix 2004-02-16 03:45:53 +00:00
moodler 36a043db25 Fixed image links 2004-02-16 03:42:19 +00:00
moodler 49349c4916 Source of dodgy image 2004-02-16 03:37:08 +00:00
moodler c5fff8a5d2 FIxed a dodgy image 2004-02-16 03:36:12 +00:00
fiedorow d29d3218a2 Updates for Windows and MacOS X 2004-02-16 02:05:24 +00:00
stronk7 4866a36714 Initilize selectmod in navmenu() function to avoid some warnings
when showing the menu and no cm has been selected. No risk with this
change, I suppose. :-)
2004-02-16 00:41:52 +00:00
stronk7 0f318c26b4 Now logs from:
- Assignments
- Choices
- Workshops
are restored too.
2004-02-15 21:18:52 +00:00
stronk7 530931dd21 Modified calls to add_to_log() function to include cmid at the end. It was missing
in "resubmit" logs.
2004-02-15 20:07:21 +00:00
stronk7 7c11319ad7 Modified calls to add_to_log() function to include cmid at the end. It was missing
in "over allocatio" and "grade" logs.
2004-02-15 20:03:28 +00:00
stronk7 d09ce61d1a Modified calls to add_to_log() function to include cmid at the end. It was missing
in "league_table", "submit" and "assess" logs.
2004-02-15 19:37:26 +00:00
moodler 128452bbd8 Fixed bug selecting students in group 2004-02-15 14:54:04 +00:00
moodler 2969a73c00 Fixed bug getting group users 2004-02-15 14:51:24 +00:00
moodler ac8abb5f6a DOn't set CFG->courelang unless it means something 2004-02-15 14:34:13 +00:00
moodler e5415d580a Bug fix for languages in emails and possibly elsewhere that could
happen with blank variables.
2004-02-15 14:33:13 +00:00
moodler e1fb2e6e09 Don't create empty $CFG->courselang to be sure 2004-02-15 14:32:18 +00:00
moodler ad0abe9d77 Added new style headingblockcontent 2004-02-15 13:58:22 +00:00
moodler a711021a75 Added a missing style for the internal table of the headingblock,
since inheritance doesn't seem to work

   headingblockcontent
2004-02-15 13:54:47 +00:00
koenr 60abb6a3a8 missing strings 2004-02-15 12:55:49 +00:00
moodler 436a7cae88 Filter subject lines in discussion listings too. 2004-02-15 10:23:35 +00:00
moodler 83ec909837 Allow <lang> tags in forum subjects.
And filter them is $CFG->filterall is on
2004-02-15 10:16:12 +00:00
moodler 3c89f9a837 If $CFG->filterall is defined true, then activity names are filtered.
Useful in particular for multilang filter

More to come.
2004-02-15 10:08:05 +00:00
moodler c245b6a339 Quick GUI to turn off/on hiding of group pictures 2004-02-15 09:59:16 +00:00
moodler 3afe1085e2 Format group description 2004-02-15 09:29:55 +00:00
moodler 2ad0d1da3c Format the group description 2004-02-15 09:29:20 +00:00
moodler b6ee2d82ea Groups support for choice module 2004-02-15 08:17:45 +00:00
moodler 52f1b49620 When searching for resources, use button instead of link. 2004-02-15 08:04:33 +00:00
moodler 97ea483380 Editing teachers always can see group picture.
Plus some fixes in print_group_picture()
2004-02-15 07:37:48 +00:00
moodler 3c0561cfe7 New field in the groups table to "hidepicture" from being displayed
in locations like forums etc.

Backups done too, Eloy.  :-)
2004-02-15 07:29:55 +00:00
moodler ac0024f9f4 Center the groups menu for now 2004-02-15 07:18:28 +00:00
moodler 424aef6aef Use the new short way of setting up groups 2004-02-15 07:18:07 +00:00
moodler c3cbfe7fdf New function setup_and_print_groups() makes it much easier to set
up groups everywhere else.
2004-02-15 07:13:08 +00:00
selliott 05263aefe1 Removed extra <hr> tag 2004-02-15 06:40:25 +00:00
selliott f466c9edb6 Deleted assignment_print_recent_instance_activity and assignment_get_recent_assignments (used only in course/recent.php)
Added   assignment_get_recent_mod_activity and assignment_print_recent_mod_activity (used for course/recent.php)
2004-02-15 06:32:54 +00:00
selliott 740f94d8e7 Deleted quiz_print_recent_instance_activity and quiz_get_recent_quizzes (only used in course/recent.php)
Added quiz_print_recent_mod_activity and quiz_get_recent_mod_activity (for course/recent.php)
2004-02-15 06:26:55 +00:00
selliott a57a7794ea deleted forum_print_recent_instance_activity and forum_get_recent_posts (only used in course/recent.php)
added  forum_get_recent_mod_activity and forum_print_recent_mod_activity for course/recent.php
2004-02-15 06:19:08 +00:00
selliott 4581271ad1 Changed selector form in course/lib.php for course/recent.php
Rewrote course/recent.php to allow sorting of data before it is output
2004-02-15 06:11:15 +00:00
moodler 082e3ebc4f WHen emptying a course, delete groups and events 2004-02-15 05:08:00 +00:00
moodler 32d03b7b85 Better logic for showing group mode buttons
Teacher can now see forced mode more clearly
2004-02-15 04:13:25 +00:00
moodler 110a32e2ca Bug fix - if groupmode is forced then group icons are not even displayed 2004-02-15 03:20:51 +00:00
moodler 41b94a4044 New activities now default to course groupmode 2004-02-15 03:19:52 +00:00
stronk7 ea3591e41a Now chat logs are included in restore. I've decided to start with this
simple module to be ready for the difficults... :-)
2004-02-15 00:54:56 +00:00
moodler 31d757129f A few quick updates 2004-02-14 17:52:31 +00:00
moodler 088cbaab7b Fixed a typo 2004-02-14 17:33:24 +00:00
moodler 539a2da1f3 Happy Valentine's day everyone! I had a good one, hope you did too. 2004-02-14 17:29:48 +00:00
moodler 1d06dd30bb Tiny formatting fix 2004-02-14 17:01:14 +00:00
moodler 831b236f2c Group support for Quiz reports. :-)
... except detailed stats.
2004-02-14 16:52:55 +00:00
moodler a46b14ef76 I changed the form names, so change references to them 2004-02-14 16:22:37 +00:00
moodler 241f6f306b MOved the file icons into the proper place (at last) 2004-02-14 16:19:48 +00:00
moodler daf06e2c33 Some tidying up of the HTML on the login page to make it a little
more respectable (and fix some display bugs)
2004-02-14 14:09:25 +00:00
martignoni ad50bdddee Help file for label module translated 2004-02-14 11:04:18 +00:00
moodler 9867144441 Group suport for Journals.
This module also has a crappy interface and must be fixed.  But not today.
2004-02-14 08:52:28 +00:00
moodler e1aaf05de9 Working around that PHP bug - thanks for the confirmation Henrik! 2004-02-14 08:17:01 +00:00
moodler b7e16e6acb A few more improvements with sorting 2004-02-14 08:11:02 +00:00
moodler 486f78b51f Group support for assignment submissions, and some cleanups.
I really hate this interface - it's not scalable - but this will have
to wait for another day.
2004-02-14 07:57:48 +00:00
moodler aaad489149 Using PHP_OS to detect OS (thanks, Greg Barnett!)
Included three binaries for mimetex ... Linux is tested but I haven't
tested the others yet
2004-02-14 03:00:56 +00:00
moodler 0f6f62cbdb Removing the is_windows function ... instead, use the global define PHP_OS 2004-02-14 02:49:56 +00:00
moodler c469a7efb6 Use $modname if it's defined 2004-02-14 02:44:35 +00:00
stronk7 d2c3605c83 Changed to calls to print_log_selector_form() with modname not set
to avoid two notices with debug on. I suppose that there isn't problems
with this because modname var doesn't exist in all the file, but...
2004-02-13 23:53:36 +00:00
stronk7 07bbc2d1c7 Now the questiontextformat is supported in backup/restore too. 2004-02-13 23:47:08 +00:00
adamtpaw f91a7bf618 Translation of ver 1.2 2004-02-13 23:43:46 +00:00
stronk7 2ecad74265 First version of restore logs !!
It restores:
    course logs
    user logs
Todo:
    module logs

Coming soon :-)
2004-02-13 23:28:45 +00:00
adamtpaw 8d75b3b6dd Translation 2004-02-13 23:18:14 +00:00
adamtpaw 0b6693ec7e Translation of Moodle 1.2 2004-02-13 22:58:17 +00:00
moodler 4f91b2965e Updated get_records_select() to help Eloy out. :-) 2004-02-13 16:32:02 +00:00
moodler f064a3dfb9 WHAT!??
Why doesn't this work?

   if (!empty(trim($forum->intro))) {
   }

It gave blank screens on moodle.org!   Wierd.
2004-02-13 15:20:06 +00:00
moodler 5cdb8a856a Quiz questions now have proper formatting controls.
Any format can be used.  This fixes a number of problems at once,
but the latest one is Bug #1047
2004-02-13 14:01:27 +00:00
moodler 016bfc83bc A new is_windows function 2004-02-13 08:34:39 +00:00
moodler 54caa35e20 DOn't print blank summaries 2004-02-13 03:42:51 +00:00
moodler fe412041b5 Don't print blank journal intros 2004-02-13 03:40:57 +00:00
moodler 51a55508e6 Use format_text on forum intros 2004-02-13 03:39:58 +00:00
moodler 11157acdf0 To help with our GPL obligations 2004-02-13 01:42:46 +00:00
moodler a83d775a24 A general cleanup. Added mimetex 2004-02-13 01:39:45 +00:00
willcast e18abcc4de Adding missing columns... and tables for PosgresSQL squema 2004-02-12 22:42:04 +00:00
koenr 385272bd0f missing string 2004-02-12 22:31:35 +00:00
adamtpaw 45c93e2669 Translation of Moodle 1.2dev . 2004-02-12 22:17:44 +00:00
martignoni 58fcf99fa7 Some more tweeking 2004-02-12 18:55:31 +00:00
bobopinna 0621ba74a9 Updated by Francesco Bavastro 2004-02-12 12:55:29 +00:00
moodler 554143f22c Removed CloseOnEsc completely because it has issues on IE6
and wasn't that useful anyway

http://moodle.org/mod/forum/discuss.php?d=5253#24136
2004-02-12 12:17:02 +00:00
martignoni bdb03cafa8 All help files for Glossary module translated 2004-02-12 10:31:26 +00:00
moodler ddbc548d9f Add new headers to language stuff 2004-02-12 09:40:21 +00:00
martignoni c7c18a64b0 More help files translated 2004-02-12 09:05:09 +00:00
moodler 9d49b43016 OK, well this is working for me now! 2004-02-12 08:39:48 +00:00
moodler f1d604cbda Added new table cache_filters for all filters to use if they need to 2004-02-12 07:06:07 +00:00
moodler 65624a2821 Removing the newmodule template from this directory and putting it
in /contrib

This should prevent some user confusion.

It was getting out of date too.
2004-02-12 06:41:17 +00:00
moodler 2c42415b8c Clarification about what "Server time" means. 2004-02-12 06:13:52 +00:00
moodler d6582c7cac A new configuration setting so that the admin can define the site's default
timezone.
2004-02-12 06:08:06 +00:00
moodler 90207a06e3 Use a site-defined timezone if one is defined 2004-02-12 05:55:04 +00:00
moodler 00d727e387 FIxed (old?) bug that sometimes prevented new categories 2004-02-12 03:48:13 +00:00
moodler 0c29498ede Use format_text on question texts so we get caching, filters etc 2004-02-12 03:41:16 +00:00
martignoni 692a13b499 New help files translated 2004-02-11 21:55:12 +00:00
martignoni 8b9e007056 New help files translated 2004-02-11 19:47:32 +00:00
moodler 1cdd857ce6 SOme tweaks 2004-02-11 14:25:42 +00:00
koenr bcead64f30 missing strings 2004-02-11 12:45:31 +00:00
moodler 4901562dd7 FIxed a bug in the definition of fullnamedisplay 2004-02-11 02:35:33 +00:00
moodler 0d851f90a8 Cache format_text calls in make_mail_post for even more speed
during a forum_cron
2004-02-11 02:26:25 +00:00
martignoni 01e04d5470 ?dit? le -> Modifi? le 2004-02-10 19:41:30 +00:00
martignoni 288ffddc1e Some minor changes 2004-02-10 19:32:05 +00:00
martignoni e8fc9f954d Some tweeking done 2004-02-10 19:25:04 +00:00
martignoni 80384eee21 Translation complete 2004-02-10 19:02:16 +00:00
martignoni ac65acc89d First part translated 2004-02-10 16:56:42 +00:00
fiedorow c49dede89d Test version of TeX filter designed for moodle.org 2004-02-10 16:46:30 +00:00
moodler 78b85ede6a Fixed link to show group members 2004-02-10 14:41:45 +00:00
moodler 546b301b44 Don't print group pictures if none is defined 2004-02-10 14:36:12 +00:00
moodler 9c84314ed7 Fix for recent courselang stuff 2004-02-10 14:28:32 +00:00
moodler 30c9a78063 Interface for editing groups 2004-02-10 14:25:20 +00:00
moodler 7721c69499 save_user_image ---> save_profile_image so it works for groups too 2004-02-10 14:24:36 +00:00
moodler 35067c438f print_group_picture is more simple again, uses JPEGs
Put the fancy PNG code in a new function for later print_png()
2004-02-10 14:22:20 +00:00
moodler 0e2585ac0f Reject Opera when it is pretending to be IE 2004-02-10 14:20:44 +00:00
moodler eea2335afe Multi-lang filter can flag a text as not being cacheable 2004-02-10 10:01:42 +00:00
moodler 8eaa4c61d5 The text caching is now sensitive on the temporary variable
$CFG->currenttextiscacheable

Any filter can set this to FALSE and the current text will not be cached
2004-02-10 09:59:46 +00:00
bobopinna a953edbd35 Updated by Roberto Pinna 2004-02-10 09:49:58 +00:00
bobopinna 6af8359fc4 Updated by Roberto Pinna 2004-02-10 09:39:15 +00:00
bobopinna c696c41b5b Translated by Francesco Bavastro 2004-02-10 09:12:35 +00:00
bobopinna c57550050f Traslated by Francesco Bavastro 2004-02-10 09:03:58 +00:00
moodler ca31091b12 Uploading in course restricted by site setting ... 2004-02-10 09:00:24 +00:00
moodler e11dc9b682 Another little hack to complete the course-level forcelanguage 2004-02-10 08:10:04 +00:00
moodler 875cb9fa18 Use Unicode for the name of the language. Makes the menu look better. 2004-02-10 07:38:49 +00:00
moodler c2061f1608 New strings for forcing languages 2004-02-10 07:17:42 +00:00
moodler 2639d3d310 Allow the teacher to force a language if they want to 2004-02-10 07:17:09 +00:00
moodler a75082c017 A simple README to start off 2004-02-10 06:47:05 +00:00
moodler a3dec13dab First very rough version of Korean.
Some of it is euc-kr ... some of it is Unicode ...
2004-02-10 06:38:11 +00:00
moodler 2c7091551f Removed some test code 2004-02-10 05:10:30 +00:00
moodler 9284861420 Updated config-dist.php since options have moved out of it 2004-02-10 05:06:12 +00:00
moodler d523d2ead1 Some configuration options now added to the Configuration page.
opentogoogle

  textfilters

  cachetext

They should upgrade cleanly from anything you may have in config.php
2004-02-10 05:05:28 +00:00
giro123 0cbc7de6b6 *** empty log message *** 2004-02-10 00:43:22 +00:00
stronk7 3a4b33c3b9 Now course->lang is in backup & restore. 2004-02-09 22:24:34 +00:00
moodler 178c952a52 Latest translations from Paula Magri 2004-02-09 18:46:41 +00:00
mits 58f2393ebf translated & polished some. 2004-02-09 18:11:40 +00:00
mits 5b16d81510 translated few. 2004-02-09 17:23:34 +00:00
moodler 246dedcf47 Give new windows different names so they can be compared more easily 2004-02-09 14:37:45 +00:00
moodler e3812d2a7c Fixed table name 2004-02-09 13:12:46 +00:00
moodler 45121ffbf3 text_cache --> cache_text much better 2004-02-09 13:10:19 +00:00
moodler f0aa2fed24 Removed a small bit of debugging code 2004-02-09 12:33:44 +00:00
moodler cb3a448415 Delete old cached texts on a cleanup 2004-02-09 12:33:02 +00:00
moodler d363047eb0 TEXT CACHING
------------

I have a site which really needs this, so I went ahead with it already.

This add-on will cache formatted texts in the database and use them
for a specified timeperiod.

By default it is disabled.   Enable it with:

  $CFG->cachetext = 600;   // in seconds
2004-02-09 12:27:34 +00:00
carlesbellver 6579224b6a *** empty log message *** 2004-02-09 11:40:24 +00:00
carlesbellver c18a62ddbd *** empty log message *** 2004-02-09 11:02:41 +00:00
martignoni 822e9771f2 More files added 2004-02-09 10:19:13 +00:00
martignoni 5a1e63d532 Small corrections 2004-02-09 09:52:06 +00:00
martignoni b273933f1c New translated file 2004-02-09 09:45:58 +00:00
martignoni 095d970dba Update to last changes of french translation 2004-02-09 09:19:09 +00:00
moodler 0cc6fa6a1f Emails can take on course language as well 2004-02-09 08:49:54 +00:00
moodler b3153e4b7d Small hack to force a particular language within a course.
No interface on course/edit.php ... I want to try this on
moodle.org for a while to try and stop the encoding problems
2004-02-09 07:31:04 +00:00
martignoni e138523ff3 Adding more files 2004-02-08 22:50:24 +00:00
martignoni 4a63f1dc6c Typo corrected 2004-02-08 22:36:24 +00:00
martignoni c812e7b78a Quiz help files updated 2004-02-08 22:32:26 +00:00
stronk7 2b375658ae user_preferences fully supported
discussion->usermodified fully supported
log->cmid supported in backup
Bump previous to implement:
   - events
   - restore logs
2004-02-08 19:40:31 +00:00
stronk7 9055368540 Ooops !! Copy/paste typo. :-) 2004-02-08 19:37:43 +00:00
stronk7 63349eb15c log->cmid is included in backup (not processed in restore yet!!) 2004-02-08 19:36:42 +00:00
stronk7 e222ce0944 discussion->usermodified is in backup & restore now. 2004-02-08 19:34:22 +00:00
stronk7 41fd7fe497 Now user_preferences are fully supported in backup & restore. 2004-02-08 19:27:23 +00:00
moodler 21d1d0773b Added some documentation about a few preferences that are only in config.php
right now.
2004-02-08 14:27:54 +00:00
moodler bc5bb6f8f5 Don't show scheduled backups menu if they are disabled 2004-02-08 14:24:44 +00:00
moodler 12fb46824f Changed the name of $CFG->preventscheduledbackups to disablescheduledbackups 2004-02-08 14:21:23 +00:00
moodler 76a5ce96fe Fixed the year 2004-02-08 14:05:12 +00:00
moodler d6f2c959c7 OK, this time I've fixed that URL! 2004-02-08 13:59:50 +00:00
moodler b468a22a45 FIxed the link to old release notes 2004-02-08 13:55:04 +00:00
moodler 8b7fb26f2c Latest release notes for 1.2. Phew, this took me most of the day! 2004-02-08 13:52:47 +00:00
moodler 09119f3b8b Old release info 2004-02-08 13:51:30 +00:00
moodler 7eac5f93cd Removed some rubbish 2004-02-08 12:51:27 +00:00
moodler 952b9c07b6 Quicktime plugin 2004-02-08 12:48:43 +00:00
martignoni 96e8998e94 More files translated 2004-02-08 12:32:43 +00:00
moodler 0708881565 Use mediaplayer for ALL uploaded mediaplayer files 2004-02-08 12:21:36 +00:00
moodler 393137e290 Add a mimetype for .asf files 2004-02-08 12:21:06 +00:00
moodler 6b1ce6b2e0 Some wording changes. 2004-02-08 09:52:24 +00:00
moodler 0437ab95c6 Use format_text to print text so that filters work 2004-02-08 09:48:48 +00:00
moodler 80e376a20d Use format_text instead of text_to_html (so filtering works) 2004-02-08 09:47:29 +00:00
martignoni b53bff0767 Some small corrections 2004-02-08 08:59:02 +00:00
anvergara 2cdbaeba53 Updated 2004-02-08 00:41:39 +00:00
martignoni dcf59b72f9 More help files translated 2004-02-07 22:37:34 +00:00
ralf-bonn b6bf48acb7 Einige kleinere ?nderungen 2004-02-07 19:08:27 +00:00
martignoni 3b05a7f04c More typos corrected 2004-02-07 18:07:29 +00:00
martignoni 7df4d70ac0 Small corrections to backup strings 2004-02-07 18:01:43 +00:00
martignoni 27c7e17f44 Typo corrected 2004-02-07 17:44:54 +00:00
moodler 42e49dad0e By no means finished but at least no loose ends with groups editing 2004-02-07 17:44:10 +00:00
martignoni 6a66656eb7 Plural forms 2004-02-07 13:19:56 +00:00
martignoni 418729eb3a Plural forms 2004-02-07 13:18:23 +00:00
martignoni f2d021b0a5 More typos corrected 2004-02-07 13:16:16 +00:00
moodler b9dd2ed696 News strings for groups stuff 2004-02-07 13:06:04 +00:00
martignoni a36058af51 Typos corrected 2004-02-07 12:52:22 +00:00
moodler a6c7a9fbf8 Some more work on the groups pages (not finished yet) 2004-02-07 12:51:22 +00:00
moodler 1eddd0d8f5 Added timezone display to reduce confusion 2004-02-07 12:27:23 +00:00
ralf-bonn 8394e63f23 Einige kleinere ?nderungen 2004-02-07 12:26:21 +00:00
moodler 74736e4922 A setting $CFG->preventscheduledbackups will prevent scheduled backups
completely.
2004-02-07 05:41:58 +00:00
moodler 5e1aaecb20 Don't lowercase the module name 2004-02-07 02:10:54 +00:00
koenr e1fa1667b3 translated by Koen Roggemans 2004-02-06 23:39:23 +00:00
koenr 282ddcc924 filling in missing strings 2004-02-06 23:38:39 +00:00
koenr fddab4db5a corrected a typo 2004-02-06 23:37:57 +00:00
martignoni c422f82344 More help files translated 2004-02-06 21:51:02 +00:00
koenr 50357f373a corrected a typo 2004-02-06 19:30:11 +00:00
martignoni 755d600fbc More help files translated 2004-02-06 18:55:03 +00:00
moodler 7efa3c6bed Slight improvement to groups listing. I'm not happy with it though. 2004-02-06 17:04:09 +00:00
martignoni 08fc9b7530 More help files added 2004-02-06 16:59:21 +00:00
martignoni 2b3cfed53b Change 'Forcer' to better 'Imposer ' 2004-02-06 15:11:15 +00:00
martignoni 29fee097ad Group mode translation 2004-02-06 15:08:38 +00:00
martignoni b722a1edb9 Typos corrected 2004-02-06 14:48:14 +00:00
moodler 016cd6af4f Discussions now store the last user to change them, as well as the
last time they were modified.   This isn't actually used yet but it
will be.
2004-02-06 13:15:15 +00:00
moodler 0ad4eb5f63 Add institution to the data returned about course students 2004-02-06 12:03:30 +00:00
selliott 26b90e709e Added functions get_recent_assignments and print_recent_instance_activity (for course/recent.php) 2004-02-06 05:25:34 +00:00
selliott bbbcfe3b53 Added string for choosereportfilter (for course/recent.php) 2004-02-05 20:57:29 +00:00
selliott d92d9a22f9 Change string reference for choosereportfilter 2004-02-05 20:54:15 +00:00
selliott aae8c680c9 Used existing string showrecent for button text in print_recent_activity_selector. 2004-02-05 20:48:06 +00:00
selliott 0eb7764d4d Added user parameter to print_recent_instance_activity and get_recent_quizzes (for course/recent.php) 2004-02-05 20:40:59 +00:00
selliott c892ab3672 Added user parameter to print_recent_instance_activity and get_recent_posts (all for course/recent.php) 2004-02-05 20:38:14 +00:00
selliott e7d9c96676 Added selector form at the top of the page .
Added logic to not display hidden activities.
2004-02-05 20:34:49 +00:00
selliott cb83c3cb4d added function print_recent_selector_form for course/recent.php 2004-02-05 20:30:26 +00:00
moodler 898ffaf9d4 Tweaks 2004-02-05 09:57:18 +00:00
moodler 4da1a0a1db Improvements to the way the log upgrading works.
Centralised with an interface now.
2004-02-05 09:55:50 +00:00
moodler 14076f3ad7 More new strings 2004-02-05 09:54:57 +00:00
moodler 13bc710ffa New file for admin-only strings. 2004-02-05 09:10:23 +00:00
moodler 34050fd84a Removing old log upgrades (too slow) 2004-02-05 08:36:48 +00:00
moodler 9d162c650f Removing log upgrades from here (too slow) 2004-02-05 08:32:49 +00:00
moodler 54e5e3f387 Removing the log upgrades from here (too slow) 2004-02-05 08:24:04 +00:00
martignoni cbb60bca21 Suppression of duplicate entries 2004-02-05 08:18:18 +00:00
martignoni 67fa277dd9 Typos corrected 2004-02-05 08:16:16 +00:00
moodler 8a55b99805 UPgrade logs to new format 2004-02-05 05:16:29 +00:00
moodler 484f723352 Upgrade logs for assignments 2004-02-05 05:10:39 +00:00
moodler af7d68413f Update old quiz logs 2004-02-05 05:00:52 +00:00
moodler b44b3a9f29 Add coursemodule info to logs for attempts and submits 2004-02-05 02:54:16 +00:00
martignoni 53c02cbe53 Update to last strings 2004-02-04 21:59:08 +00:00
martignoni 4a1ac5c34e Better strings for better explanation of zip function 2004-02-04 20:48:06 +00:00
martignoni 2dd985804f Change 'backup' to 'sauvegarde' 2004-02-04 20:43:35 +00:00
martignoni 2e33a17229 Update to new strings 2004-02-04 20:38:57 +00:00
koenr 865074ce71 filling in missing strings 2004-02-04 15:30:00 +00:00
selliott fdba9bb4d9 Added functions quiz_get_recent_quizzes and quiz_print_recent_instance_activity for course/recent.php (a recent activities page). 2004-02-04 15:12:06 +00:00
selliott 2bda8358da In function forum_get_recent_posts, removed u.id from select because of conflict with p.id field (p.userid is available) also changed sort from discussion id to modified. 2004-02-04 15:07:08 +00:00
moodler dc6799ff22 Added more information to grades downloads 2004-02-04 14:56:41 +00:00
moodler 9ae8a7a94b Admins can edit the instituion and department fields now.
Long-standing oversight!
2004-02-04 14:24:29 +00:00
moodler 48adbab6bf New string "institution" ... and some minor HTML cleanups 2004-02-04 14:23:55 +00:00
moodler bd115b3f82 Caters for the case when nothing was selected 2004-02-04 13:40:20 +00:00
moodler 9b591be622 Better error messages for restricted users 2004-02-04 12:59:05 +00:00
moodler f3436de6a7 Restricted users can't enrol in other courses 2004-02-04 12:52:31 +00:00
moodler 3ed0a1c316 Restricted users can't update course formats 2004-02-04 12:45:35 +00:00
moodler b7318874b9 Don't allow restricted users to do restores 2004-02-04 12:44:06 +00:00
moodler 9069e60346 Restricted users can't do backups 2004-02-04 12:43:05 +00:00
koenr 941391a4c1 translating at Moodle speed :-) 2004-02-04 09:35:43 +00:00
moodler fed7c5ba94 Fixed a hardcoded string (thanks, koen) bug #1022 2004-02-04 09:29:01 +00:00
moodler 5c9cbb399e Remove time restriction. :-) 2004-02-04 09:13:26 +00:00
paca70 fb25ce9457 updates 2004-02-04 06:55:36 +00:00
moodler b5abf3e824 Fixed a Typo - thanks Bruno Vernier 2004-02-04 06:16:59 +00:00
moodler 31b1967fe1 Bump 2004-02-03 15:56:27 +00:00
andre_bln 4cf89ce3d2 new version german translation 2004-02-01 2004-02-03 15:23:19 +00:00
moodler d4469f2a84 Clean up of insert_record with some better error-checking 2004-02-03 15:18:41 +00:00
moodler 791b42ee1d Add framename target for logs links 2004-02-03 10:21:20 +00:00
moodler 06d6f733b7 Latest fixed from Dr Ali 2004-02-03 09:12:31 +00:00
moodler 95d4575736 If there aren't many logs to process, then do it now during the main
upgrade, but otherwise, tell the upgrader to run the separate script
at admin/upgrade_logs.php later on.
2004-02-03 04:56:22 +00:00
moodler 6ba0da0289 Quick version of script to upgrade the old logs to the new format 2004-02-03 03:46:29 +00:00
moodler 35faf19e80 SOme extra information when upgrading old logs 2004-02-03 02:27:33 +00:00
martignoni 77f4ad40d9 Update for GIFT and Aitken formats 2004-02-02 14:30:56 +00:00
martignoni 63031d4ae6 Added links to the other help files 2004-02-02 13:56:12 +00:00
martignoni fe7424eebb Update because of slippage 2004-02-02 13:51:29 +00:00
moodler e046dcd419 Made using new admin/lang.php 2004-02-02 12:13:50 +00:00
moodler 55b5b387ba Copied from en 2004-02-02 12:13:32 +00:00
moodler a2b0158423 Adding back the missing logs ... they are needed by recent activity - doh! 2004-02-02 09:44:06 +00:00
moodler 2a5885c432 Reformatted using new admin/lang.php to remove all linefeeds 2004-02-02 04:20:37 +00:00
moodler da9e21a407 Strip linefeed characters \r from multi-line strings 2004-02-02 04:19:56 +00:00
moodler 6fa45f168b Updated old language files to the new 'format' 2004-02-02 03:54:52 +00:00
andre_bln 358906742c new version german translation 2004-02-01 2004-02-01 20:36:32 +00:00
stronk7 0180f73f48 Now, this function can be called twice from the same page.
In participants list, when showing teaches, the country of
the students was not showed.
Please, check. I haven't found problems with this, but...
2004-02-01 12:07:36 +00:00
moodler 612250d025 Important fixes from Dr. Ali .... a$ --> $a :-D 2004-02-01 08:49:41 +00:00
moodler 114c82afe5 On second thoughts, no need to double up these logs 2004-02-01 07:27:40 +00:00
moodler 573eae5aa7 Save coursemodule in logs for generic updates/adds 2004-02-01 07:25:10 +00:00
moodler ed68c6db3d Fixed calculation of max upload size 2004-02-01 05:51:20 +00:00
moodler 82f5ee2678 Author details 2004-02-01 04:47:53 +00:00
moodler a7f4452d11 Updating version numbers of all Modules to make things a bit clearer 2004-02-01 04:42:39 +00:00
moodler e78d197dca Latest version of Arabic from Dr Ali 2004-02-01 04:22:21 +00:00
fiedorow 36268d0271 Added all the presentation and content tags from the MathML 1.01 specification 2004-01-31 22:02:01 +00:00
mits 8ba911fc29 New file translated. 2004-01-31 17:40:29 +00:00
mits 20144a68f0 New some translation added. 2004-01-31 17:39:36 +00:00
moodler 077b1acf0d New Lithuanian translation from
Aidas Smaizys
Klaipeda university
Lithuania
2004-01-31 16:19:40 +00:00
moodler b56fad0b50 Upgrade process can be long, so flush regularly 2004-01-31 15:33:12 +00:00
moodler 9423833cd9 All modules now require the very latest because of the changes to add_to_log 2004-01-31 15:25:00 +00:00
moodler 037f99aa2d Upgraded add_to_log to send cm->id 2004-01-31 15:22:04 +00:00
moodler 69d79bc31f OK, some big improvements to the logs.
Logs now include a field called modid which contains the coursemodule id.

This makes it now possible to

   - see complete logs per-activity

   - do backup/restore of logs

The upgrade process will currently try to scan all the old logs and
rebuild this field based on available data (especially forums).

STILL TO DO:  alter all the non-forum modules to send the coursemodule id
2004-01-31 14:47:57 +00:00
moodler bb0d4590bd Fixes to log URLs for these new ones 2004-01-31 12:01:25 +00:00
moodler 16e962a71c Use a looser search when showing an activity module's logs, to get more 2004-01-31 11:55:05 +00:00
moodler 4afe0109d1 A new log_display entry for when resources are updated 2004-01-31 11:54:26 +00:00
moodler 86c90e4541 Add a log entry under the module name whenever the module is updated 2004-01-31 11:53:49 +00:00
moodler b7510ce4ee Going through it now to make the release page 2004-01-31 09:12:25 +00:00
moodler 04b113f6e1 Updated because of slippage 2004-01-31 09:00:19 +00:00
koenr dad2efab6b translating on moodle-speed ;-) 2004-01-31 08:49:57 +00:00
moodler bd5d44fa22 Bump 2004-01-31 08:43:30 +00:00
moodler ac679ffd80 New string 'clicktochange' 2004-01-31 08:42:45 +00:00
moodler 3d575e6f08 Improvements to groups.
- you can now actually turn group modes on and off for each activity. :-)
    "Turn Editing On" to see the new icons.

  - Link to Groups page is now smarter about when it does and doesn't appear
2004-01-31 08:40:38 +00:00
koenr 30654f8c11 missing strings 2004-01-31 08:39:34 +00:00
koenr 4de2f1d6ff missing strings 2004-01-31 08:37:04 +00:00
moodler de411a0595 Slightly improved icon 2004-01-31 08:36:30 +00:00
moodler 6dfa062f89 New draft icons for defining groups per activity 2004-01-31 07:44:19 +00:00
moodler a80a772821 Fixed some hard-coded strings http://moodle.org/bugs/bug.php?op=show&bugid=1011 2004-01-31 05:55:11 +00:00
moodler 006af32664 Missing string 2004-01-31 04:27:08 +00:00
moodler 2cb2ce61ad When separate groups are being used, only show teachers and students who have
access to that group
2004-01-31 04:08:10 +00:00
moodler 3d35e6b732 Putting in a placeholder when counting or gettig users in group 0
(return nothing for now)
2004-01-31 04:03:46 +00:00
moodler 0720313b30 get_course_students can now look for groups as well (doesn't handle
group 0 yet)

get_course_users is more robust (fixes the journal report problem etc)
2004-01-31 03:30:31 +00:00
koenr 27a350e676 missing strings 2004-01-30 23:50:00 +00:00
stronk7 3caa089f49 Some strange line feeds in the latest version. Solved. 2004-01-30 23:15:11 +00:00
gustav_delius 800578b7fe increase mailed to number(2) 2004-01-30 21:44:44 +00:00
gustav_delius c7cdd6ec82 moved the database update code to where it belongs 2004-01-30 21:40:31 +00:00
stronk7 2b80c9d76a Added str. creatinggroups 2004-01-30 21:16:52 +00:00
stronk7 29856bcba0 Now everything seems to work fine with the new insert_record() function.
Please, test :-)
2004-01-30 19:04:07 +00:00
gustav_delius 3d94772d47 better logging of forum mail errors, see http://moodle.org/mod/forum/discuss.php?d=4865. Required the addition of an extra optional argument $user="" to add_to_log() 2004-01-30 18:21:56 +00:00
moodler 8ff79e8c5b Fixed the counting of submissions for a new function assignment_count_real_submissions() 2004-01-30 16:53:01 +00:00
moodler d98579dbc9 OK, much better. What was I thinking. :-) 2004-01-30 15:22:43 +00:00
moodler 819110a116 On second thoughts, added hours 2004-01-30 15:16:54 +00:00
moodler d3128ddf0e Fixed date format 2004-01-30 15:16:04 +00:00
gustav_delius 6077020a60 got rid of bad line endings 2004-01-30 14:50:03 +00:00
moodler 5ea64f4b2f Error message for restricted users 2004-01-30 09:55:57 +00:00
moodler fcf9c45033 New paratmeter to insert_record called primarykey (defaults to "id")
and removed insert_record_old
2004-01-30 09:04:31 +00:00
moodler e248a905b4 Whoops ... forgot to check this in 2004-01-30 08:50:53 +00:00
moodler 5476a93df2 Fix the mode handling for "single" forums 2004-01-30 08:45:11 +00:00
moodler e83c419d06 Check for restricted users and also removed some tabs 2004-01-30 08:31:50 +00:00
moodler ab39445640 Restrict certain users from changing profile 2004-01-30 08:29:35 +00:00
moodler cb98d3120c New function to restrict defined users 2004-01-30 08:25:49 +00:00
paca70 77e84a85f2 My php 4.3.4/postgres7.4 combination was thinking
that returned id-column was string and some modules were thingking that theres
insert error if return value is string.
Right now all id-colums is always integer so
this should be ok.
2004-01-30 07:45:36 +00:00
bobopinna b4e1d00641 Updated by Roberto -Bobo- Pinna 2004-01-30 07:43:54 +00:00
bobopinna 2d263cd84b Updated by Roberto -Bobo- Pinna 2004-01-30 07:36:08 +00:00
moodler 916ac02608 No functional change, just me moodling 2004-01-30 07:29:08 +00:00
moodler 1eff7fef0c Use natural sorting on lists 2004-01-30 07:26:52 +00:00
moodler 9fa6280580 When unenrolling students, remove them from groups too 2004-01-30 06:44:02 +00:00
moodler bb8c36313c When adding a teacher, remove them as a student. 2004-01-30 05:59:33 +00:00
moodler a698fc0e92 Simplified logic a bit 2004-01-30 04:02:17 +00:00
moodler 7008b03ca3 Fixed typo bug when getting users 2004-01-30 04:01:19 +00:00
moodler 25be6cfff3 Upgrading ADOdb to 4.11 ... there were lots of little bug fixes 2004-01-30 03:11:47 +00:00
moodler 89f1cea654 Fixed problem with magic quotes 2004-01-30 02:25:02 +00:00
moodler 5c09be163c Don't always use arraymerge in journal_get_users_done() - was causing
bad data sometimes ...
2004-01-30 01:57:00 +00:00
moodler 0892f7bd01 IMPORTANT! CRUCIAL CHANGE TO MAJOR FUNCTION!
Petri Asikainen rewrote insert_record to use ADOdb functions.  It might
be very slightly slower but it gets rid of all the horrible not-quite-working
PostgreSQL workarounds the old one contained.

It worked for him on PostgreSQL 7.4 and for me on MySQL 3.23 and 4.0.15,
so I'm checking it in.

Please test it thoroughly on your test systems.

Since it writes data it has the potential to stuff things up, so be
careful on production systems for a few days.
2004-01-29 15:27:21 +00:00
bobopinna 66e7920caf Updated by Roberto -Bobo- Pinna 2004-01-29 15:13:09 +00:00
bobopinna 99d7c97106 New version from Giorgio Borelli 2004-01-29 14:27:32 +00:00
moodler 1390f203a7 Dont print learning forums table if there aren't any 2004-01-29 05:59:26 +00:00
moodler 36c23cd6a9 Reduce intro text for general forums 2004-01-29 04:58:56 +00:00
moodler ba39fa10cc Change type of config->value to text (to allow longer info) 2004-01-29 04:13:55 +00:00
stronk7 916bb3daec - some debug info turned off.
- scheduled backups now supports groups info (need to centralize the code!!)
- solved an important issue when restoring users introduced in lib.php v1.44

Bump
2004-01-29 00:14:02 +00:00
stronk7 6be18d4f75 Solved one important issue when restoring users due to a bug in
revision 1.44, when solving bug 946. Tons of thanks to Jacob Romeyn
detecting it.
2004-01-29 00:12:17 +00:00
stronk7 50dbc51fc9 Turn off some debug info. 2004-01-29 00:08:25 +00:00
stronk7 e9163ad481 Now groups are included in scheduled backups.
I think that we should use the same exact code in backup_execute.php
and backup_scheduled.php to avoid duplicating it in two files !!
2004-01-29 00:07:25 +00:00
moodler 643cd42872 Latest tags 2004-01-28 16:46:42 +00:00
moodler e06a8263a1 Removed function, and updated versions 2004-01-28 14:49:56 +00:00
moodler 279826e26f Yes, finally forum display preferences are preserved. :-) 2004-01-28 14:48:49 +00:00
moodler 066af654c2 Bugfixes to set_user_preference 2004-01-28 14:47:39 +00:00
moodler 70812e39a0 Added new table called "user preferences" which can be used for
storing arbitrary preferences for each user.

Thanks to Jon Papaioannou for the first draft of this code
which I modified.
2004-01-28 14:14:19 +00:00
moodler ad7101a17b FIxed counting of submissions 2004-01-28 11:03:44 +00:00
koenr 73e7875705 missing strings 2004-01-28 07:41:48 +00:00
koenr df7177161a found some typo's 2004-01-28 07:41:10 +00:00
moodler 1d1a623391 Added msup 2004-01-28 04:42:30 +00:00
moodler 83f007bf39 Define minimum required versions of Moodle 2004-01-28 04:27:57 +00:00
moodler 6deb891b4c Allow modules to define the version of Moodle they require, and
abort their installation if this requirement isn't met.
2004-01-28 04:26:58 +00:00
stronk7 b50b027b2b Small typo preventing Excel Sheets to be named correctly. 2004-01-27 23:48:23 +00:00
moodler 66ee479190 Fixed tiny bug for courses without groups 2004-01-27 11:57:10 +00:00
moodler 9a7f910cf8 Bumpy bump - time moving too fast 2004-01-27 03:43:56 +00:00
moodler 899da17470 Allowing <algebra> tag 2004-01-27 03:30:57 +00:00
stronk7 eb74cfd05e Now the destination directory in scheduled bakups have some checks:
- Trailing slashes.
   - Trailing backslashes.
   - Exists.
2004-01-26 23:24:12 +00:00
moodler 4fb93b2ed2 Check $themename to prevent warnings at high levels of debugging ... 2004-01-26 18:22:02 +00:00
moodler ece42d55fc FIxed tiniest bug when trying to backup groups in courses that have none 2004-01-26 17:46:19 +00:00
moodler fd6c9e1d3a Setting moodle.php back to default format (as created by admin/lang.php) 2004-01-26 17:32:07 +00:00
moodler 9785185db2 Adding string for groups backup 2004-01-26 17:26:52 +00:00
moodler e6ce0cb9f3 Undoing some wacko formatting ... What were you trying to do, Gustav? 2004-01-26 16:55:37 +00:00
bobopinna b18077d5e3 Updated by Roberto -Bobo- Pinna 2004-01-26 13:56:46 +00:00
moodler 8eb675a555 Added dividers 2004-01-26 12:29:02 +00:00
moodler 9328530195 Added dividers and improved display of section 2004-01-26 12:27:11 +00:00
moodler de7d2d5531 New dividers 2004-01-26 12:21:44 +00:00
moodler 858c8a05e8 Better dividers in the table 2004-01-26 12:07:34 +00:00
moodler a1a6750357 Use dividers on the resource page 2004-01-26 11:51:41 +00:00
moodler 6a903e0e83 Better for CSS 2004-01-26 11:47:20 +00:00
bobopinna 391aab5ea0 Updated by Roberto -Bobo- Pinna 2004-01-26 11:26:29 +00:00
moodler 5604f7798f New style for tabledivider, and some fixups 2004-01-26 10:14:22 +00:00
moodler 9586c1dd6b Er, much better wayto do dividiers 2004-01-26 09:54:40 +00:00
moodler ef6a649b72 MOds to use dividers between sections 2004-01-26 09:48:20 +00:00
moodler e21e20cfd7 Mod to print_table to allow dividers between rows (used on forum listing) 2004-01-26 09:48:00 +00:00
moodler 6a751fca5a Adding more tags for matsh 2004-01-26 09:15:12 +00:00
moodler 404afe6b86 Get groupmode when returning a list of instances 2004-01-26 09:13:47 +00:00
moodler 8a2c90768f Clarification to some group logic 2004-01-26 09:12:52 +00:00
moodler c585ba8b14 Remove the forum links as well (for group forums when user not in group) 2004-01-26 08:57:01 +00:00
moodler a0b9571f7c Subscribe links accurately reflect what is possible according
to the user's group status.

Section numbers now printed once per section
2004-01-26 08:05:44 +00:00
moodler 0affff5ecd Put $themename back again 2004-01-26 04:34:44 +00:00
stronk7 61f95aada5 Now userid and groupid fields are recoded correctly
in the restore process. This should make the backup utility
group-compliant !! (when talking about forums, of course) :-)
2004-01-25 21:00:06 +00:00
stronk7 dfa14bc98f Now groups and members are restored and recoded when restoring courses.
Existing courses are searched by name+description to add members to
existing groups (when restoring over another course).
2004-01-25 20:57:58 +00:00
gustav_delius d7143408df replaced incorrectly closed html tags, see bug 365 2004-01-25 20:34:54 +00:00
gustav_delius 2e39d2f810 minor fixes, including bugs 997, 998 2004-01-25 19:37:04 +00:00
stronk7 a4de843e15 Groups are now included in backup too. I start working in restore now. 2004-01-25 19:26:24 +00:00
gustav_delius 09b78a6b3d removed empty lines, which for example messed up the display of the license terms 2004-01-25 19:05:09 +00:00
gustav_delius 8c0ef41d6a reset timelimit so that script does not get timed out when posting to many users 2004-01-25 17:04:54 +00:00
gustav_delius 33dd9a0bcf added missing </center> 2004-01-25 17:02:22 +00:00
gustav_delius 9928b09e6e added alt text to some icons 2004-01-25 17:00:12 +00:00
gustav_delius 0d0e550f88 apply filter_text to course summary 2004-01-25 16:50:49 +00:00
moodler afabdb1491 Run cron.php as admin user so timezones etc work 2004-01-25 14:51:04 +00:00
moodler fbe0e97ceb Shorter string to help editor display
http://moodle.org/mod/forum/discuss.php?d=4791
2004-01-25 13:50:09 +00:00
moodler 18845ac357 If $CFG->opentogoogle is defined then
- google can get in as guest

   - visitiors referred from google get in as guest
2004-01-25 09:37:28 +00:00
moodler 0609562b64 New function guest_user to create a guest user record and return it 2004-01-25 09:35:45 +00:00
willcast 33cc423e38 - Solving bug 995:
Blank aliases caused the autolinking feature to mess the whole thing...
2004-01-25 04:05:58 +00:00
rkingdon 2e855d5f05 Fixes to Backup and upload (now allows teachers multiple uploads in a
short period)
2004-01-23 17:02:47 +00:00
moodler c0ae5fc15b New strings 2004-01-23 13:23:54 +00:00
moodler 5316939bcf Prevent people from subscribing to group forums is they aren't in a group 2004-01-23 13:21:25 +00:00
moodler a7f5bf8575 Always show correct current group in popup menu 2004-01-23 13:01:05 +00:00
moodler 2f9c977e6b Fixes for recent_activity and cron to use the new groupid stuff 2004-01-23 12:48:37 +00:00
moodler f356144c52 Zipping now works in the filemanager popup from resources. 2004-01-23 12:34:29 +00:00
moodler 02509fe667 Improvements to forum groups.
New forum_discussions->groupid now stores the group ID for the
discussion.
2004-01-23 12:09:25 +00:00
moodler d26924c4ec Load overlib.js as an external Javascript file, on all pages 2004-01-23 08:51:17 +00:00
moodler 210d0f3388 MD5 library for home-made security 2004-01-23 08:40:29 +00:00
moodler 80bc80e121 Overlib function for slick popups 2004-01-23 08:35:45 +00:00
moodler 43e93a0756 FIxes to cope with this case:
- student authenticates
  - teacher enrols the student manually
  - student tries to enter course

http://moodle.org/mod/forum/discuss.php?d=4529#20493
2004-01-23 08:30:15 +00:00
stronk7 e695cd3f36 Now groupmode in course_modules is supported too. 2004-01-22 20:27:17 +00:00
moodler 18352a55f5 For now just avoid public categories.
It would be nice if instead a check was made to make sure that the
category wasn't being used by other courses, then even public
categories could be deleted.
2004-01-21 17:13:55 +00:00
moodler b2d594c8de New function quiz_delete_course() which deletes all the leftover stuff
while a course is being deleted
2004-01-21 16:44:22 +00:00
moodler ca952b033d In remove_course_contents() look for a module function called
module_delete_course and run it as well.  This is mainly for
quizzes at the moment but basically it runs cleanup stuff
whenever a course is being emptied
2004-01-21 16:15:03 +00:00
moodler facbf40f92 Only list categories that belong to real courses 2004-01-21 16:04:55 +00:00
moodler 38be5e773e Fixed buggy date string 2004-01-21 12:09:23 +00:00
andre_bln 798af5b7e7 new german version richtext.html 2004-01-21 05:02:06 +00:00
moodler 22592150f9 Slight fix for null case (Add Choose item on popup menus) 2004-01-21 03:22:16 +00:00
rkingdon 9748030a8f Fix bug in Analysis of Assessments 2004-01-20 17:25:45 +00:00
moodler 298698ae60 Removing defunct language 2004-01-20 13:58:03 +00:00
moodler 5e04a34404 Flush it 2004-01-20 13:54:32 +00:00
moodler c6d691dc28 - Prevent users from replying in groups other then own.
- groups menu at discussion level
2004-01-20 13:51:27 +00:00
moodler 28b6f2b404 Some fixes 2004-01-20 13:50:02 +00:00
moodler 1ad1390857 Fixed locale 2004-01-20 13:49:05 +00:00
moodler e08061157c Added lang and mathml tags to allowed tags 2004-01-20 13:27:37 +00:00
moodler c322ecb76a Corrected a string 2004-01-20 11:27:29 +00:00
moodler 98a45cd7e7 Support for auto embedding of WMV files 2004-01-20 11:22:09 +00:00
moodler 52c6d39e93 New Farsi translation by Adel Ghazikhani <a_g1981@yahoo.com> 2004-01-20 11:19:56 +00:00
moodler c9b7e81ac0 Make sure XML is enabled 2004-01-20 10:03:34 +00:00
moodler e318d18df2 Working code by Ga?tan Frenoy to allow texts to contain multiple languages!
See:  http://moodle.org/mod/forum/discuss.php?d=2760
2004-01-20 08:56:38 +00:00
moodler ce57cc79eb Added stripos function and allow filters to work even when courseid
isn't set.
2004-01-20 08:51:43 +00:00
moodler 46d621261b Use format_text on the site-info 2004-01-20 08:50:00 +00:00
moodler ef6b0c645e Ignore errors on chown 2004-01-20 08:46:23 +00:00
koenr 8d2acc5cee trying to improve the translation by using the module 2004-01-18 21:34:23 +00:00
trobb 7b656c9707 Further problems with the percentage displays fixed 2004-01-18 09:52:52 +00:00
trobb f287b42cee Error in percentage calculations for T/F items fixed (screen display only) 2004-01-18 08:55:18 +00:00
moodler b0be6c79bf Some fixes for displaying empty grades in quizzes
suggested by Marilyn Fleming http://moodle.org/mod/forum/discuss.php?d=4636
2004-01-18 06:17:02 +00:00
koenr 60904615c5 missing strings 2004-01-18 02:05:19 +00:00
les_kopari 1aaef0d086 Translated from MySQL. 2004-01-17 15:41:38 +00:00
les_kopari 79741ebe7e Added one column and modified test cases. 2004-01-17 14:18:55 +00:00
les_kopari 33235e53b0 Renamed. 2004-01-17 13:02:24 +00:00
les_kopari ea31ae41c7 Another test run. 2004-01-17 12:59:28 +00:00
les_kopari cab9d39e60 Renamed to schemaGroups_members.xml 2004-01-17 12:57:24 +00:00
les_kopari 49df1a42b5 Renamed to schemaGroups.xml 2004-01-17 12:56:13 +00:00
les_kopari 945e013c67 Renamed table. 2004-01-17 12:52:42 +00:00
les_kopari 6b95445ac8 Test run with new columns and tables. 2004-01-17 12:49:49 +00:00
les_kopari 339ac7daa5 New columns. 2004-01-17 12:44:50 +00:00
les_kopari 68cd6454aa New columns and tables. 2004-01-17 12:41:54 +00:00
trobb 88ba0fed41 Report lines after a matching question in screen display and Excel fixed. 2004-01-17 10:27:01 +00:00
moodler 77362fa9ce A very quick and dirty try .... Williams? What do you think? 2004-01-17 10:18:12 +00:00
moodler 5fba04fba0 EARLY SUPPORT FOR CALENDARS AND EVENTS
--------------------------------------

New functions and tables, based on work from Gustav Delius
(see http://moodle.org/mod/forum/discuss.php?d=4466)

This forms the core of a new system to store, track and utilise
event information in all modules, as well as allowing external
calendars to be synchronised with new information.
2004-01-17 09:47:45 +00:00
les_kopari e34aab0dd0 New field. 2004-01-17 09:16:20 +00:00
les_kopari 5f1317f88e Correct defaults. 2004-01-17 09:06:21 +00:00
les_kopari d8f6ab1b8a Added groupmode, groupmodeforce. 2004-01-17 08:55:22 +00:00
moodler 4fc2eb7a5e Use is_internal_email function (see bug 978) 2004-01-17 07:08:47 +00:00
moodler a33ba1367e Editing teachers can always get into forums 2004-01-17 06:49:18 +00:00
moodler eef16119b9 Only editing teachers can see files 2004-01-17 05:39:29 +00:00
koenr ca3dc4c7c0 Hans insisted 2004-01-16 21:36:04 +00:00
koenr 268e90211a mising strings 2004-01-16 21:34:15 +00:00
giro123 75b2ba754f *** empty log message *** 2004-01-16 18:32:12 +00:00
moodler 27ac57c086 Chat sessions can now be deleted 2004-01-16 13:14:42 +00:00
moodler 94d712f197 Links color = black 2004-01-16 12:16:05 +00:00
moodler 0f32a7f3f9 Require user to login to see glossary entries (if a course is specified) 2004-01-16 11:39:40 +00:00
moodler 218b443372 Add some styles in the posts so the autolinks look OK. 2004-01-16 11:32:14 +00:00
moodler bb95c08bc4 Small improvement to log-gathering for activities - works better with
glossary logs
2004-01-16 11:23:40 +00:00
moodler 71767204c9 Pass courseid to format_text explicitly 2004-01-16 10:51:24 +00:00
moodler c4ae4fa1a8 Fixes so that $courseid can be passes to format_text (and this filter_text) 2004-01-16 10:49:07 +00:00
moodler a8502a18fb Output the time in the cron output 2004-01-16 10:23:11 +00:00
moodler f95ad4b43a UNTESTED changes to allow multiple hosts to be used for POP3/IMAP/NNTP authentication
Please test them.
2004-01-16 09:17:20 +00:00
moodler b78eabdcdd When using the HTML editor, don't provide format options 2004-01-16 06:42:46 +00:00
paca70 359c9742df Updates 2004-01-15 19:02:39 +00:00
paca70 16e45ab4c9 Initial version 2004-01-15 19:01:22 +00:00
giro123 14cafbd4eb *** empty log message *** 2004-01-15 18:52:27 +00:00
paca70 757720d532 Initial translation 2004-01-15 18:39:05 +00:00
villate 80a51ae512 New files from version 1.2 2004-01-15 17:56:55 +00:00
paca70 edd962ab73 Updates 2004-01-15 17:43:46 +00:00
villate eda0719d95 Updated to the 1.2 version 2004-01-15 17:08:22 +00:00
moodler 2d1c22bb66 Menus on quiz editing no longer need the submit buttons 2004-01-15 15:26:34 +00:00
moodler 1e80bd71a4 FIxed a small typo preventing group display 2004-01-15 10:22:15 +00:00
moodler c5a05b9598 Don't show old chat users in recent activity 2004-01-15 08:44:08 +00:00
moodler 9f39874ec5 Double-check bad input data 2004-01-15 07:52:21 +00:00
moodler e2c4f8e4dc Save forum log url in a more standard way 2004-01-15 07:26:52 +00:00
moodler c57e40225f Added "All activities" 2004-01-15 07:21:32 +00:00
moodler 3da4752434 Added log links for teachers from each activity page 2004-01-15 07:17:47 +00:00
moodler f24cffb995 Logs can now be divided up by activity! 2004-01-15 07:17:12 +00:00
paca70 6f01df4957 Added missing "(" 2004-01-14 18:25:25 +00:00
paca70 f63823b3cc FIXED:
script was calling fix_course_sortorder() before courseorder have been renamed to coursecount.
2004-01-14 18:13:26 +00:00
moodler d7df380b78 Extra parameter for robustness 2004-01-14 17:53:51 +00:00
moodler bd9dd91015 Latest files from Denis 2004-01-14 16:56:39 +00:00
stigbjarne fabeeb627c New file. For now, mostly headers and infotext translated. Answers: Still in english. 2004-01-14 13:47:16 +00:00
moodler a2c3b87eda Clean output for old entries 2004-01-14 13:33:00 +00:00
moodler 999beee0b6 Clean all data in user profile 2004-01-14 13:31:28 +00:00
moodler aeb23d0a02 User descriptions weren't being filtered! They are now. :-) 2004-01-14 13:07:29 +00:00
moodler c3fcf3f3c5 Fixed two typos - seems to be working properly now 2004-01-14 13:01:54 +00:00
stigbjarne f52a0eb948 New file 2004-01-14 13:01:01 +00:00
moodler d05956ac9f Some improvements in efficiency of Recent Activity.
There is now a new field in forum_discussions which has the userid
of the author in it.  This saves a lookup every time to forum_posts.

There is also some caching and rearrangement of the logic.

It seems to work OK, I'm about to do some speed tests on moodle.org
2004-01-14 11:50:29 +00:00
moodler da8079852c Even in visible-groups mode, only show recent activity of one's own group
Not sure if this is right though
2004-01-14 09:12:53 +00:00
moodler 29aab4acda Obey "forcelogin" 2004-01-14 08:27:40 +00:00
moodler 0a45ffe301 A new configuration setting - "forcelogin".
Default is false, everything is as it is now.

If turned on, then users are forced to log in before
being able to see the front page or the course listings.
2004-01-14 08:27:18 +00:00
koenr f309f624ea added link to index of helpfiles 2004-01-14 08:22:48 +00:00
moodler c7609872ca May avoid a cookie issue 2004-01-14 03:47:40 +00:00
moodler 7d18a73462 Make it easier to click on attempts 2004-01-14 03:25:46 +00:00
moodler 413766e856 Added links to the other help files 2004-01-14 03:10:35 +00:00
moodler 34a2293e08 Journal questions can now use HTML editor, plus new field 'introformat' 2004-01-14 02:24:42 +00:00
koenr ecd7e49e87 keeping track of the changes 2004-01-13 21:19:17 +00:00
thetrinity a9981ba619 Implemented Matching Questions. 2004-01-13 14:32:18 +00:00
willcast 94b27136b2 - Solving bug 971:
Some default settings override db fields when editing an entry.
2004-01-13 13:48:40 +00:00
stigbjarne 4aac7b8ab6 New file 2004-01-13 10:16:53 +00:00
moodler 62f5a86963 Strip tags from new user's names and email. Thanks to Paul Shew. 2004-01-13 07:54:22 +00:00
moodler 127962ca2a Fixes for buggy stuff 2004-01-13 02:32:33 +00:00
koenr d57e12eb51 updated 2004-01-12 19:27:21 +00:00
koenr cc8a82dcbe updated and put in (Dutch) alphabetical order. All indexfiles should be alphabeticaly ordered now. 2004-01-12 17:35:04 +00:00
koenr a871ec51d0 changed title to fit logicaly in indexfile 2004-01-12 17:30:12 +00:00
moodler f4212b4f12 Don't print description box if there is no description. 2004-01-12 17:20:41 +00:00
moodler b91d6dcd57 This is a ridiculously complicated solution to showing only
those posts in recent activity that one should see.

It's temporary.

I have a more efficient solution in mind but it will take
at least one new database field - I'll tackle it later.
2004-01-12 17:20:10 +00:00
moodler 3fc6ae75e4 Some fixes to clarify handling of the number of attempts 2004-01-12 16:30:51 +00:00
bobopinna a6c3d65039 Updated by Bobo 2004-01-12 16:09:19 +00:00
moodler ec15d3e9f1 And make sure the group is from this course! 2004-01-12 14:51:29 +00:00
moodler e9089eb471 Secure group viewing when in separate mode 2004-01-12 14:48:33 +00:00
moodler d04d87e3bd Replaced missing string 2004-01-12 13:11:40 +00:00
moodler 91504deaee A number of fixes (fixed by simply saving with admin/lang.php) 2004-01-12 13:06:38 +00:00
andre_bln 2aa4f4d1f4 german language files version 20.11.2003 2004-01-12 10:24:08 +00:00
mits 2c33370ac5 some new translation added. 2004-01-12 08:24:56 +00:00
thetrinity f14d97d06e Fixed typo and minor polishing for GIFT filter docs. 2004-01-12 03:58:31 +00:00
thetrinity f70567fee5 Fixed typo and minor polishing. 2004-01-12 03:54:24 +00:00
moodler 19090101a9 Bug #966 - journal_grades should return NULL if no grade 2004-01-12 02:36:45 +00:00
koenr cf37cc5502 filling in missing strings 2004-01-11 22:19:04 +00:00
koenr 81cc156467 translated by koen Roggemans 2004-01-11 22:18:36 +00:00
koenr 1e32384cc0 corrected some typo's and ugly tranlations 2004-01-11 18:44:13 +00:00
moodler 7df59158b8 Bug 965 2004-01-11 18:37:00 +00:00
moodler e21f6c81b5 No need to require this file 2004-01-11 18:09:09 +00:00
moodler 1b69867429 Use is_internal_auth function instead 2004-01-11 18:08:10 +00:00
moodler 9197e1472f First version of support in groups in the forums.
Still needs plenty of testing.   There is no GUI yet for turning on
the groupmode just for the forum (this will be on the course page)
but you can put a 1 (visible) or 2 (separate) in the course_modules table.
2004-01-11 17:46:57 +00:00
moodler 0d67c51458 Work done on group functions 2004-01-11 17:44:46 +00:00
moodler ddc7afad9a Added groupmode setting to course_modules 2004-01-11 17:44:09 +00:00
moodler e9f289635d Added strings for WebCT Import format 2004-01-11 02:50:41 +00:00
moodler 998ebd420a WebCT Import format!! (untested)
Contribution from Denis Rebaud!
2004-01-11 02:43:16 +00:00
moodler 34c46c1724 Grammar fixes for "updating" and "editing" 2004-01-11 01:57:43 +00:00
moodler 37d67d011a Some grammar fixes (for modules named starting with vowels) 2004-01-11 01:56:52 +00:00
moodler 2c4263c433 Sort group members by last access by default 2004-01-10 16:52:33 +00:00
moodler 548ef30e8b Use the new print_user function for the group 2004-01-10 16:49:17 +00:00
moodler 499795e84d Links in print_user are absolute 2004-01-10 16:47:14 +00:00
moodler 951b22a829 Completely got rid of user/lib.php
- print_user() went to weblib.php and got tidied up

  - The graphics functions went to lib/gdlib.php

See Bug 922
2004-01-10 16:41:29 +00:00
moodler 158d5a4f32 New library for collecting routines related to GD 2004-01-10 16:38:18 +00:00
moodler 6e51e14435 When logging in as a user, take on their "current group" setting too,
then afterwards return teacher to their old setting
2004-01-10 14:25:18 +00:00
thetrinity 7692b869ef Converted to UNIX file type. 2004-01-10 09:50:14 +00:00
thetrinity 9249e3ab4e Fixed typo 2004-01-10 09:39:28 +00:00
thetrinity f301de5e9e Updated docs to latest revisions of GIFT import filter 2004-01-10 09:24:37 +00:00
moodler 29fb5974e7 Increased QUIZ_MAX_NUMBER_ANSWERS to 10, and actually made it apply to everythin 2004-01-10 07:39:19 +00:00
thetrinity 87e6dacbdf examples.txt added 2004-01-10 03:39:14 +00:00
thetrinity 4300aa4c58 Integrated Multiple Answers and inline comments options. Made examples.txt. Documentation now moved. 2004-01-10 03:35:11 +00:00
gniske 14b54f0166 Adding missing strings
Made som few corrections in existing translation
2004-01-09 22:04:54 +00:00
moodler 17c4a01172 Don't move courses from delete categories to the "zero" category
(Make sure the grandparents are home before sending the kids there!)
2004-01-09 16:54:10 +00:00
martignoni f0c60a8fba One sentence corrected 2004-01-09 16:49:13 +00:00
martignoni c8e87ef291 Changed to single quoted strings 2004-01-09 16:15:24 +00:00
martignoni 104789e9d6 Changed to single quoted strings 2004-01-09 14:31:17 +00:00
moodler 12c20fffc6 Fixed a small bug introduced yesterday 2004-01-09 12:57:33 +00:00
moodler 8d3f818bdd Updated with the new location of the Flash script 2004-01-09 08:47:37 +00:00
moodler f75b1ea426 Including the MP3 player source along with it. 2004-01-09 08:46:44 +00:00
moodler 0643b1db7a Old settings weren't being remembered - fixed now. 2004-01-09 07:16:07 +00:00
moodler 1b4ccb8a92 More tweaks when displaying embedded resources 2004-01-09 06:52:54 +00:00
moodler 797e9e30ce Some tidying up of the recent layout 2004-01-09 06:36:43 +00:00
moodler a98d00e2b0 Some cleaning up and native support for streaming MP3! (using Flash) 2004-01-09 03:31:28 +00:00
moodler ca34d03f32 A general-purpose MP3 player in Flash 2004-01-09 03:30:44 +00:00
martignoni 60e1ce7574 Converted to single quote strings 2004-01-08 19:02:40 +00:00
martignoni cd71d7dcb1 Converted to single quoted strings 2004-01-08 15:05:53 +00:00
moodler d1d124cbfb Add fixes from Zig 2004-01-08 13:19:05 +00:00
moodler 82fead1aa7 Bumping the version 2004-01-08 12:37:37 +00:00
moodler ffaaf096a5 Fixed long-standing problem with popup windows.
Now when you go to the using the navbar, they popup and leave
some navigation behind.

Also fixed a recent bug with embedded images
2004-01-08 12:20:11 +00:00
fiedorow c779f92903 Apply addslashes to adminuser data 2004-01-08 11:00:40 +00:00
moodler 14f3260978 Fix for case calling get_courses("all") when there is no user 2004-01-08 04:50:43 +00:00
fiedorow 5c27e7612c Apply addslashes to data 2004-01-08 03:51:08 +00:00
moodler 9aefce20af Add info about addslashes() 2004-01-08 03:10:27 +00:00
moodler 1cfed10bb9 Improved documentation for Quiz filters 2004-01-07 13:41:55 +00:00
stigbjarne e77c81e132 New file 2004-01-07 13:23:01 +00:00
moodler 544fe071bd Fixed header 2004-01-07 13:16:21 +00:00
moodler 93394a9018 Some cleaning up of the edit screen (especially in non-quiz mode) 2004-01-07 13:10:13 +00:00
moodler 20267252a2 Massive fix-up job on Norwegian ... I'm not sure what Stig was thinking
checking in those older files ...
2004-01-07 12:37:05 +00:00
martignoni 80a78b58ba More strings translated 2004-01-07 12:27:08 +00:00
stigbjarne b6da50fd63 New file 2004-01-07 12:18:42 +00:00
andre_bln a63e9ffee4 german language files 05012004 2004-01-07 08:15:56 +00:00
koenr aab97b351c followed change in Englisch version 2004-01-07 08:14:51 +00:00
moodler ca23a9c9dc SOme fixes to use the notify function all the way through 2004-01-07 06:55:35 +00:00
moodler 3e562b88f9 New strings and fixed strings, rewritten by lang.php 2004-01-07 06:54:43 +00:00
moodler 4a4b204a6a Info about commas added 2004-01-07 03:13:16 +00:00
fiedorow 748fd535fe Fixed bug in setting optionalDefaults outside the main loop 2004-01-06 20:25:12 +00:00
koenr e38015fe92 translated by Koen Roggemans 2004-01-06 19:42:43 +00:00
koenr 2abea577b6 filling in missing strings 2004-01-06 19:41:15 +00:00
fiedorow 5059262770 optionalDefaults are now set using settings from Admin account 2004-01-06 19:24:44 +00:00
koenr bf7ccea05d Changing little errors and ugly translations 2004-01-06 18:55:39 +00:00
fiedorow 8714c2cfb5 Restored feedback messages, added multilingual support, added decoding of encoded commas in the data 2004-01-06 17:33:36 +00:00
martignoni fe20dc9679 Some typos corrected 2004-01-06 16:37:53 +00:00
moodler 13f5b23d28 Fixed a bug - thanks Zig! 2004-01-06 14:00:06 +00:00
martignoni 6edf4682e6 'fullnamedisplay' had missing escape chars ('\') before the '$' char (thanks Eloy !) 2004-01-06 10:35:43 +00:00
stigbjarne 481893d070 New file 2004-01-06 10:29:19 +00:00
moodler 860a0cd028 Added a field that was missing 2004-01-06 06:15:56 +00:00
moodler 2e04935a60 Add new help file to index 2004-01-06 03:32:27 +00:00
moodler ca9c070589 Added a course to the example 2004-01-06 03:30:41 +00:00
moodler b06c3ba8cf Help file for user uploads 2004-01-06 03:29:14 +00:00
moodler 0a6150ca2e Some formatting tweaks 2004-01-06 02:48:12 +00:00
moodler f99035c299 Add a link to the upload user script in the admin menus 2004-01-06 02:35:27 +00:00
moodler 84994c886e Some new strings related to user importing 2004-01-06 02:33:28 +00:00
moodler 5de0722025 Cleaned up the script to fit coding guidelines better.
I haven't tested this yet, or touched the main parsing routine
2004-01-06 02:32:43 +00:00
thetrinity 24c70149ad Changed to UNIX file type and removed tabs for documentation. o U 2004-01-06 02:19:11 +00:00
thetrinity d0f86d1654 Brings documentation up to date with rev.1.2 of gift/format.php 2004-01-06 01:49:32 +00:00
stronk7 282ecaf828 Added support to teacherloading, assessmentstodrop and donotuse
fields in workshop module.
2004-01-05 18:21:42 +00:00
andre_bln 7748ddaa14 german language files 29.12.2003 2004-01-05 07:50:15 +00:00
stronk7 568d750b41 Now groupmode and groupmodeforce (course table) are in backup and restore too. 2004-01-05 00:57:23 +00:00
stronk7 148b8edfca Now, when the status is RUNNING, the function checks how much
old is that status in backup_logs table. If there is no activity
in that period, then the script status is unlocked automatically.
This prevents to become RUNNING for ever !!!
2004-01-05 00:27:22 +00:00
stronk7 79619daf93 Added addslashes() to check for existing users, because some characters
can break the query (old users containing ', for example).
2004-01-04 22:58:28 +00:00
stronk7 d8e24b78ea Changed code to use the insert_record() function in
the backup/restore backup_putid() function. To solve
bug 946 (http://moodle.org/bugs/bug.php?op=show&bugid=946).
2004-01-04 12:48:33 +00:00
stronk7 1a0c9eff8e Removed duplicate showreports field in course table!!
That (yy)yanked and (pp)pasted lines!! :-)
Thanks to Juan Pablo, from Bolivia.
2004-01-04 11:51:47 +00:00
moodler 4f3d1a638f Fix appearance of Guest User's name. 2004-01-04 05:04:10 +00:00
moodler f464c2757a New version of the uploaduser script from Zbigniew Fiedorowicz and Steve Zeidner
http://moodle.org/mod/forum/discuss.php?d=2367#19283
2004-01-04 02:07:59 +00:00
koenr f15d37e068 updated some ugly translations 2004-01-03 22:24:10 +00:00
stronk7 e9f3e715dd Add one more eregi_replace, because the 'alnum' allows the
comma char and it can cause some problems in filenames.

Off-topic: This is my 1st commit with my new eMac !! My old iMac screen
died two days ago... :-( but I've recovered everything :-)
2004-01-03 20:53:25 +00:00
moodler deae201fc6 Fixed missing bracket 2004-01-03 15:41:15 +00:00
moodler dfa1fbac6d Better fix 2004-01-03 06:31:23 +00:00
moodler 1cb5bf828b Don't carry description around in USER session variable ... can be big 2004-01-03 06:20:25 +00:00
les_kopari 0253cd4edc Adding remaining schema.xml files, one per table...still more to come.
See execution listing for test results thus far.
2004-01-02 18:12:45 +00:00
les_kopari 5a2f8b8dcd Initial. 2004-01-02 18:08:06 +00:00
les_kopari 7a55fe065d Initial add. 2004-01-02 17:55:09 +00:00
moodler ea229804e1 Added an error message to catch some cases of sessions not working 2004-01-02 14:11:21 +00:00
villate c133989f09 It now uses "backup" for the name of the backup files. 2004-01-02 10:25:16 +00:00
les_kopari 920d44320d Initial add...separate .xml file for each table. 2004-01-01 19:41:48 +00:00
les_kopari 18eaa5d2ca Initial add...just the first two tables, config and course. 2004-01-01 19:38:51 +00:00
koenr 431744ad94 translated by Koen Roggemans 2004-01-01 18:45:40 +00:00
koenr 7808ee76d5 filling in missing strings 2004-01-01 18:44:04 +00:00
kaipe e72a2e6d63 As this page uses the multianswer import format, the require_once statements have been updated to fit the new plug-in paths for the import formats. 2004-01-01 15:12:16 +00:00
kaipe 5276dc4887 Short-answer fixes:
As the wild card feature makes it possible for a response to match more than one answer alternative, I made sure that the alternative with the
highest grade would count.
I also fixed bug #945 for the short answer case.
2004-01-01 15:01:29 +00:00
kaipe 0226a97d31 Fixed bug that could cause duplication of attempt numbers.
This bug came to the surface when the possibility to delete attempts was introduced in report/overview/report.php
2004-01-01 12:47:50 +00:00
moodler 02759cb587 On group images use description in the title ... 2004-01-01 08:36:53 +00:00
moodler 2b9641da2f Strings for new setting 2004-01-01 06:35:42 +00:00
moodler 263a473593 New setting makes it optional to show column of people who didn't answer 2004-01-01 06:35:22 +00:00
moodler 761205376c New strings for forum settings (allow students to view ratings of others) 2004-01-01 04:52:57 +00:00
moodler 3bd98ad4bc New option to allow students to see aggregate ratings on other posts (anonymous) 2004-01-01 04:48:55 +00:00
kaipe e097165541 Fixed a single/double quote issue (again) 2003-12-31 19:22:38 +00:00
moodler 2b4287d5bc Shapes not shape 2003-12-31 15:22:05 +00:00
moodler 75194fffbf Temporary sorting order on group members 2003-12-31 14:16:55 +00:00
moodler 507407a795 Display group icon in forum is a group is defined 2003-12-31 13:40:33 +00:00
moodler a08b9fe9d4 Changes to improve group images 2003-12-31 13:39:59 +00:00
moodler f2c80965f5 Some improvements when displaying PNGs 2003-12-31 13:39:08 +00:00
martignoni 3afbefcc09 Tweeking again (still needs work!) 2003-12-31 09:29:49 +00:00
moodler 07be0ed2b9 Small fixes 2003-12-31 08:07:03 +00:00
moodler 24c32bd668 Some re-wording of English backup strings 2003-12-31 08:05:01 +00:00
moodler 6031fe85d5 Don't try to display forums if there aren't any 2003-12-31 06:44:39 +00:00
martignoni 8fcd25b850 More translation 2003-12-30 21:32:31 +00:00
moodler 3facf28fe1 Fix when storing group memberships in USER session 2003-12-30 19:06:53 +00:00
martignoni 38a8fdd790 Small modifications 2003-12-30 18:57:21 +00:00
moodler 15e06a2444 Fix up group icon display in certain situations 2003-12-30 18:42:58 +00:00
moodler 713740a044 Improvements to timekeeping etc 2003-12-30 18:39:24 +00:00
moodler 27d1407c28 Fixed up references to old tables names 2003-12-30 18:24:17 +00:00
moodler 2d439c9d59 Slight fix for MySQL 4 2003-12-30 18:19:15 +00:00
moodler f74959fbb6 Fix reference to new table name 2003-12-30 18:09:46 +00:00
moodler 0da33e07b9 Need to change table name! It was tougher than I thought to work around
the reserved word "group"
2003-12-30 18:07:09 +00:00
moodler f86eb3ce12 New strings for groups 2003-12-30 17:36:47 +00:00
moodler 3ac035a0db Some help files 2003-12-30 17:35:21 +00:00
moodler f374fb1006 This is the first check-in of support for groups.
It's very early (it doesn't actually do anything yet!) but you can
define groups and get an idea of how the interface is shaping up.
I also wanted to show that I have actually done something on this! :-)

From here my plan is to add group support to the modules, one by one
(forums first), then go back and clean up some of the central interfaces,
graphics etc.

Finally, test, test, test and get 1.2 out well before the end of February.
2003-12-30 17:18:06 +00:00
martignoni ee39bbe0ee Some tweeks again 2003-12-30 16:17:56 +00:00
moodler 89b8d337da Fixed some single/double quote issues 2003-12-30 07:28:43 +00:00
moodler d751243549 Bodgy HTML converted to nice clean XHTML fragments.
Thanks to Jonathan Moore and all his work!
2003-12-30 07:04:04 +00:00
moodler 0d71d164b8 Improved navigation info in header 2003-12-30 06:54:19 +00:00
moodler 82ca81cf69 Big cleanup for logic in handling uploaded files, now shorter and clearer 2003-12-30 06:53:53 +00:00
moodler 4cd327fb26 Change default value for backup_sche_keep to be one day.
(As the path of least impact on server resources)
2003-12-30 03:56:32 +00:00
stronk7 b06021549a A new parameter (backup_sche_keep) is included. Oldest backup files
will be deleted automatically. Try it !!
2003-12-29 20:24:45 +00:00
stronk7 1b7d0ba271 Included some strings about the "Keep Backup Files" option. 2003-12-29 20:22:41 +00:00
stronk7 4f7a557d6d Little change in the form that duplicated course shortnames are handled. This should
help when detecting copies of backup files.
2003-12-29 20:20:03 +00:00
stronk7 1ae0dbd1a7 Changed to use clean_filename() function when calculating
backup file name. Thanks Martin !! :-)
2003-12-29 20:15:56 +00:00
martignoni d99315f8db More translations 2003-12-29 18:28:35 +00:00
gniske 1e669a01ea Adding missing strings
Made som few corrections in existing translation
2003-12-29 16:37:53 +00:00
martignoni 0f776ec0e2 Some more tweeks 2003-12-29 16:28:46 +00:00
martignoni da0cd0fc56 Some tweaks and typos corrected 2003-12-29 11:17:33 +00:00
martignoni 29bf1ebf4d Update to last version, with some modifications 2003-12-29 09:41:13 +00:00
moodler 0ce4aa1a8a Some preliminary code to allow wildcards in short answers.
Based on code sent by Thomas Robb
2003-12-29 09:40:23 +00:00
moodler 3fcc331fee Better info about quizzes 2003-12-29 09:28:14 +00:00
moodler 3334a25495 Edit button on quiz reports 2003-12-29 09:24:16 +00:00
stronk7 b35a612212 Solve more bugs in set_field("backup_courses"... calls. 2003-12-28 11:15:19 +00:00
moodler e1518b0c1c Added two new styles for smallinfo displays on the side 2003-12-28 05:56:34 +00:00
moodler 0036338998 Added new styles for latest news listings smallinfo and smallinfohead 2003-12-28 05:49:16 +00:00
martignoni be8148eabb Translation complete 2003-12-27 22:57:52 +00:00
martignoni 86f4d9359b A little bit more translated 2003-12-27 16:36:46 +00:00
koenr 6087fc2062 filling in missing strings 2003-12-27 13:05:46 +00:00
koenr bdc4deaec1 Adapting translation to users fro Holland 2003-12-27 10:42:29 +00:00
moodler 51b468cdf0 New group icon 2003-12-27 08:33:19 +00:00
moodler e82b841361 Add the site's shortname to the email subject 2003-12-27 04:08:04 +00:00
moodler 8c39e2740f FIxed a small bug when updating the next time 2003-12-27 03:14:32 +00:00
moodler d642f548d2 Added a missing string 2003-12-27 03:13:41 +00:00
martignoni bf9f73f4cb Beginning of translation of folder Workshop 2003-12-26 23:11:59 +00:00
martignoni 36040ae11c Typos corrected 2003-12-26 20:59:26 +00:00
martignoni 381e9bfaef Survey folder translation complete 2003-12-26 20:52:20 +00:00
trobb 2003e4464c Null data caused errors so placed an IF statement around SWITCH
at line 920
2003-12-26 03:50:27 +00:00
les_kopari 08481e544c Inserts for MySQL and PostGRES. 2003-12-24 17:33:05 +00:00
les_kopari 218cb966c5 Initial add. 2003-12-24 17:29:30 +00:00
rkingdon d5ec0e19e6 Fixes to restore. 2003-12-24 14:49:33 +00:00
rkingdon 98591c89d5 Modified help files for late submissions and reduction of the number of
phases.
2003-12-24 14:47:15 +00:00
rkingdon 77c8896b6b New strings for the handling of late submissions. 2003-12-24 14:45:22 +00:00
rkingdon f43c849f7e A new version (2003121000). Fixes to backup/restore. Addition of "late"
work and the reduction of the number of phases to 3 (from 4).
2003-12-24 14:43:24 +00:00
rkingdon 7667ed702c One string for open dialogue list. 2003-12-24 14:38:54 +00:00
rkingdon ae1d214cd5 Bugs fixed in backup and restore. Dialogue now notifies if there are any
open dialogues.
2003-12-24 14:36:18 +00:00
stronk7 b1b589b5cc Now admin/configuration/backup strings are included.
Happy Christmas :-)
2003-12-24 12:11:35 +00:00
stronk7 d13a5d7f0c Now admin/configuration/backup strings are included.
Happy Christmas :-)
2003-12-24 12:03:49 +00:00
martignoni dab3fc5be3 Update to new roadmap 2003-12-24 09:06:34 +00:00
moodler 04304c10bc Updated 2003-12-24 05:52:29 +00:00
martignoni 11126b9cf4 Typo corrected 2003-12-23 22:21:43 +00:00
martignoni cae5f003b7 Typos corrected 2003-12-23 22:19:27 +00:00
martignoni 08ff2b3027 Help folder translation complete 2003-12-23 22:12:52 +00:00
koenr b5ef9489bf modifications by evelien roos 2003-12-23 20:21:29 +00:00
trobb 9fb9dac127 Possible division by 0 fixed with if branch line 132 2003-12-23 13:41:27 +00:00
moodler 24157e96c0 Ask for email address again to help avoid typos 2003-12-23 11:58:41 +00:00
koenr fbf60b0194 necessary for styles 2003-12-23 09:08:18 +00:00
koenr a056982dc6 updated css-file location 2003-12-23 09:07:17 +00:00
koenr 5b597be648 translated by Koen Roggemans 2003-12-23 09:05:45 +00:00
andersbe 453f8ff2a1 All the strings in the php-files and all the help-files are translated as of 2003-12-22
All standard and all development modules are included.
Some php-files required for Moodle 1.2 are also included.

Alla str?ngar i php-filerna och alla hj?lpfiler ?r ?versatta t o m 2003-12-22
Det g?ller alla standard- och utvecklingsmoduler. N?gra programfiler f?r Moodle 1.2 finns ocks? med.
2003-12-22 20:52:40 +00:00
koenr 5bacdab796 translated by Koen Roggemans 2003-12-22 20:11:34 +00:00
koenr 0829018167 initial translation 2003-12-22 19:22:56 +00:00
koenr b3ded3a32a minor changes in translation 2003-12-22 19:16:48 +00:00
koenr 24228ffc24 minor changes in translation 2003-12-22 19:15:07 +00:00
koenr b92e1c36cb translated by Koen Roggemans 2003-12-22 19:03:56 +00:00
koenr 92d7061e22 translated by Koen Roggemans 2003-12-22 15:55:58 +00:00
moodler 0787779dad Latest version from Paul Shew 2003-12-22 15:09:25 +00:00
moodler e3b343e0e3 Some improvements to style_sheet_setup based on this from John Dell
http://moodle.org/mod/forum/discuss.php?d=4171
2003-12-22 02:43:51 +00:00
moodler b4c480c34a SOme formatting fixes using new language editor 2003-12-22 02:11:19 +00:00
andre_bln cb5870c56f German language files 21.12.03 2003-12-21 21:27:22 +00:00
martignoni e1bdace263 Some more files of help folder integrated 2003-12-21 18:03:08 +00:00
martignoni c5899c7b23 Modification: "mise en correspondance" -> "appariement" 2003-12-21 14:23:51 +00:00
martignoni 3f052470ec Some typos corrected 2003-12-21 14:14:00 +00:00
trobb 83d8e36f15 Bug in percentage calculation for on-screen display fixed 2003-12-21 13:56:24 +00:00
moodler 54e7130ed2 When deleting a category, send children courses to live with grandma 2003-12-21 05:10:13 +00:00
moodler 6049fb78f2 Modification of the course format plugin structures so that it
fits in with other plugin formats in Moodle.
2003-12-21 04:52:25 +00:00
moodler 4020587b9a Shorter search box to help smaller screens 2003-12-20 02:47:14 +00:00
martignoni 64569cbb5b Some more help files translated 2003-12-19 15:12:00 +00:00
moodler 945b2b4a6e Remove pgassignment 2003-12-19 07:37:16 +00:00
koenr 46bbd4b651 translated by Koen Roggemans 2003-12-19 07:22:33 +00:00
koenr aff2c394cf typo 2003-12-19 07:21:03 +00:00
koenr 4350adc1fb filling in missing strings 2003-12-18 23:36:16 +00:00
koenr d53c70d47c Translated by Koen Roggemans 2003-12-18 22:52:36 +00:00
martignoni 94c2c3924b Some typos corrected 2003-12-18 22:49:08 +00:00
martignoni 06ab455142 File translation complete 2003-12-18 22:34:38 +00:00
martignoni 873efec0b7 Journal help folder translated 2003-12-18 19:14:37 +00:00
martignoni f1b8867491 Some terms added 2003-12-18 19:03:12 +00:00
martignoni 94791ada75 Small corrections 2003-12-18 17:59:27 +00:00
martignoni a6f989fc61 Some typos corrected 2003-12-18 16:58:16 +00:00
moodler 34edc3ad1b Clean sessioncookie variable 2003-12-18 16:46:34 +00:00
martignoni bd741d50f8 Translation of "connected" and "separate" (thanks to JF Nadeau) 2003-12-18 16:23:36 +00:00
martignoni badec294d3 Choice folder translation complete 2003-12-18 16:07:20 +00:00
martignoni cbf93aff2b Modification of "Fichier" 2003-12-18 15:40:46 +00:00
martignoni e6910f0a75 Small typo corrected 2003-12-18 15:38:47 +00:00
martignoni 86d1f427e5 Re-order alphabetically the different items 2003-12-18 15:35:54 +00:00
martignoni 120bfe673e Typo corrected 2003-12-18 15:32:41 +00:00
martignoni 391fa1bb50 Change name of resources "Page Web" and "Lien vers une page Web" to resp. "Page web (interne)" and "Page web (externe)" 2003-12-18 15:30:01 +00:00
koenr aaa8642d41 Translated by Koen Roggemans 2003-12-17 22:37:05 +00:00
martignoni 48a5356040 Small correction: fils de discussion -> discussion 2003-12-17 22:02:24 +00:00
martignoni 7a2c7ce2eb Chat directory completely translated 2003-12-17 21:58:54 +00:00
martignoni 31f5d4d1fc Folder ressource translation complete 2003-12-17 20:33:54 +00:00
martignoni e0ad04798d Forum folder translation complete 2003-12-17 20:26:11 +00:00
martignoni c610c20d16 Assignment translation complete 2003-12-17 20:21:19 +00:00
martignoni eb4ad7479f More updates of help folder 2003-12-17 20:07:34 +00:00
martignoni b7e82b4904 Update of help files (help directory) 2003-12-17 19:53:59 +00:00
moodler 1a5a3ccf24 Removed old versions of quiz format plugins 2003-12-17 15:32:45 +00:00
moodler 2860b7a5f2 More accurate info on link to reports 2003-12-17 13:49:51 +00:00
moodler 3fb839a1e4 A small fix for showing pictures in randomly-selected questions 2003-12-17 13:35:49 +00:00
moodler a6478fdc0d Improved overview, now allows deleting and shows more info.
Thanks very much for Thomas Robb for submitting the original
modification with the new functionality ... I ended up doing a
lot of cleaning up and reworking of it but it wouldn't have been
done without Thom's work.
2003-12-17 13:04:47 +00:00
trobb 99cb3dc887 Percentages displayed as numbers rather than strings in Excel 2003-12-17 13:02:49 +00:00
moodler 19a95eb03a Some new strings (related to quiz reports) 2003-12-17 12:53:25 +00:00
koenr f68846e3ec misspell corrected 2003-12-17 12:08:34 +00:00
koenr 2a4253ba76 translated by Koen Roggemans 2003-12-17 12:03:58 +00:00
trobb c95d3c0fad *** empty log message *** 2003-12-17 08:57:36 +00:00
moodler adcedde7d9 Strip tags from activity name when moving 2003-12-17 03:36:19 +00:00
moodler f36b1996a2 Strip tags from activity names when moving 2003-12-17 03:32:30 +00:00
moodler c97500720d Emergency fix for this file ... it had lots of bad strings in it 2003-12-17 03:22:59 +00:00
stigbjarne 6a366909c9 New file 2003-12-16 13:53:41 +00:00
stigbjarne cb2a3ab4b7 Improved and extended 2003-12-16 13:52:51 +00:00
paca70 4252895a6b More updates by Joni Rosenberg 2003-12-16 12:01:33 +00:00
bobopinna 49dea6bce9 A revision by Bobo. 2003-12-16 08:54:08 +00:00
moodler 003296c476 Fixed a typo (not using $CFG->admin) 2003-12-16 05:31:52 +00:00
martignoni 098c476559 Updated to last changes (docs folder translation completed) 2003-12-15 12:13:26 +00:00
moodler b1e53f2c2d Bump. It's unbelievable how fast time is going. The last update from
a week ago literally seems like yesterday.
2003-12-15 03:58:39 +00:00
stronk7 9bc586e097 max_execution_time and memory_limit to allow backup of large installations.
(I've executed it with 50 courses)
2003-12-15 00:56:12 +00:00
stronk7 d997d2d44e Now an email is sent to the admin when some course backup is excecuted.
TODO:
   - View logs
   - Language strings
2003-12-15 00:54:16 +00:00
martignoni f273fa076f Translation completed 2003-12-14 19:27:09 +00:00
martignoni ed99b35e06 Translation completed 2003-12-14 16:59:37 +00:00
moodler 60b9a5658f FIxed some faulty form 'target's that weren't using $CFG->framename 2003-12-14 15:03:23 +00:00
martignoni fcdb4a3b15 Translation completed 2003-12-14 15:01:07 +00:00
julmis 4351130450 added wordClean function and new table operations
- column sizes are calculated automatically from
  table width
2003-12-14 14:57:33 +00:00
martignoni eb87881479 First bit of translation 2003-12-14 13:26:45 +00:00
moodler f5aa1c37c9 No functional change, just me being a fussy Moodler 2003-12-14 03:27:49 +00:00
moodler 8c8c9bafa5 Align rows to top 2003-12-14 02:54:10 +00:00
stronk7 7f46857afe Now scheduled backups seem to be fully functional. Please, test it !!
TODO:
   - Insert info about process in backup_log
   - Be able to see that info from admin/backup.php
   - Email to the admin with the execution progress
   - Create all languaje strings
Bye :-)
2003-12-14 00:00:28 +00:00
stronk7 e6d273ebe7 Little change to inform in standard output. 2003-12-13 23:57:16 +00:00
martignoni 943eb7e150 Translation completed 2003-12-13 23:02:34 +00:00
martignoni d47614fad2 First part of translation 2003-12-13 21:40:04 +00:00
martignoni 32ba0b9b79 Translation complete 2003-12-13 20:00:12 +00:00
martignoni 3851ea3fe7 Translation complete 2003-12-13 18:51:47 +00:00
martignoni 5307a1a2bc Translation terminated 2003-12-13 18:10:18 +00:00
moodler 69d51d3a81 Prevent funny-looking text when trying to highlight a null string 2003-12-13 06:27:25 +00:00
moodler 6675f0141d Improved description of interim final grade 2003-12-13 02:30:20 +00:00
moodler 835389b818 Name of final grade column makes more sense now 2003-12-13 02:09:00 +00:00
martignoni 91c66d3af8 Initial bit of translation 2003-12-12 21:52:56 +00:00
martignoni da2ae41d3f Small correction (entities not correctly coded) 2003-12-12 20:29:16 +00:00
martignoni 54901b1c82 Finally terminated! 2003-12-12 20:19:35 +00:00
stronk7 c4b39dd214 Included backup's cron function (not implemented) 2003-12-12 19:36:52 +00:00
stronk7 d3159192e9 Included call to backup's cron function (not implemented). 2003-12-12 19:35:50 +00:00
moodler 11a13a66bc Fixed a buglet when changing pages via menu inside a frameset 2003-12-12 14:54:23 +00:00
martignoni 388a73c52a A bit more again! 2003-12-12 11:41:57 +00:00
moodler f8029045de Don't show replies when re-editing a post. 2003-12-12 08:46:24 +00:00
martignoni 07bc723585 A bit more translation 2003-12-12 08:21:16 +00:00
moodler 2e82fd38c1 This has been annoying me for ages, and the fix is so simple.
When replying to a post that already has replies - the replies
are listed in threaded form.
2003-12-12 08:20:45 +00:00
moodler d39e56ede3 Put docs here temporarily until the format settles down 2003-12-12 07:50:11 +00:00
moodler 43bf9fc2d7 Reworking of the plug-in format for import/export files.
Each format is now in it's own subdirectory, which allows the
format to have as many files as it likes.  The formats are now
detected automatically (no need to edit lib.php anymore) and
the parent class is now in mod/quiz/format.php

Lastly, I added Paul Shew's new GIFT format.
2003-12-12 07:35:55 +00:00
moodler c3b736a119 Name some of the newer formats 2003-12-12 07:22:14 +00:00
paca70 bdc8431a46 Translation from Janne Mikkonen 2003-12-12 05:26:08 +00:00
paca70 402377c375 initial translation and helpfiles for dialogue module.
Thanks to Janne Mikkonen.
2003-12-12 05:24:32 +00:00
trobb 544c4b9aa3 *** empty log message *** 2003-12-11 23:53:46 +00:00
moodler f1de6e874f Added a little option to disable user image upload 2003-12-11 12:59:54 +00:00
moodler 404cfbb836 Cleaned up this form a little to make it more consistent 2003-12-11 07:22:13 +00:00
martignoni e7443ea3ff Update to last mods of 'en' language 2003-12-10 22:03:39 +00:00
martignoni f6fb1034ce Update to the last mods of 'en' language 2003-12-10 21:25:56 +00:00
martignoni b85bf04ba0 Update to the last changes of 'en' language 2003-12-10 21:12:04 +00:00
kaipe 1e085edc43 The Quizzes page is given an "Edit questions" button that links to a possibility to edit questions without opening a quiz. 2003-12-10 20:03:59 +00:00
stronk7 08c80128a9 Start the cron integration task for scheduled backups... 2003-12-10 16:47:02 +00:00
moodler 55030f9a41 A little spacing on the display 2003-12-10 16:36:38 +00:00
moodler a61cf7e35e Hope you don't mind, Will, but I had to do some cleaning up of the comments pages
- comments look more like forums
   - glossary entry is displayed consistently
   - workflow makes more sense to me at least (more like forums)
   - code is shorter   :-)
2003-12-10 16:29:56 +00:00
moodler 79be5e9a41 Simplification of the comments page and more forum-like comments 2003-12-10 16:06:06 +00:00
stigbjarne 22311d81d4 New file 2003-12-10 11:26:11 +00:00
stigbjarne 60c9f51a41 New file 2003-12-10 09:43:30 +00:00
stigbjarne 27a2c7692f Minor changes 2003-12-10 09:37:59 +00:00
moodler e0920b2189 FIxed size of comment icon 2003-12-10 08:47:08 +00:00
moodler df0628e289 Whoops left a typo 2003-12-10 08:44:03 +00:00
moodler 4da57a09bd Changed some font size 2003-12-10 08:43:02 +00:00
moodler 977862af80 FIxed up quotes (double -> single) and some ommissions 2003-12-10 07:49:09 +00:00
moodler 87cfde86ba Fixed some enrol -> enroll 2003-12-10 07:38:57 +00:00
moodler f0abc763a3 Some English fixes 2003-12-10 07:30:27 +00:00
moodler 3d9f49f026 Some cleanups in the English 2003-12-10 07:29:34 +00:00
martignoni ba54365c18 Fixing missing quotes 2003-12-10 07:21:21 +00:00
moodler b1e820edc4 Clean up 2003-12-10 07:17:15 +00:00
martignoni ac80c7a338 Added feminine form e.g. for "Modifier un(e)" 2003-12-10 07:15:11 +00:00
moodler 05c6e5b96b Some cleanup of English version 2003-12-10 07:15:02 +00:00
martignoni d8b7e41c87 Added feminine form for e.g. "ajout? un(e)" 2003-12-10 07:03:12 +00:00
martignoni f0d23c6f33 Change "texte pur" to better "texte" everywhere 2003-12-10 06:58:03 +00:00
giro123 7451d96fc1 *** empty log message *** 2003-12-09 22:56:05 +00:00
stronk7 b95a986819 Included (TODO) a new feature to select manually the desired activities
to backup (an Przemyslaw Stencel idea).
See http://moodle.org/mod/forum/discuss.php?d=3964
2003-12-09 16:16:04 +00:00
andre_bln 3007ff3e80 new version german translation 2003-12-09 16:14:21 +00:00
stigbjarne 3f4b8e4214 New file 2003-12-09 09:07:46 +00:00
moodler c0f2bc8462 Fixed bug 812 about editing text files with backslashes in them. 2003-12-09 08:15:34 +00:00
moodler 0c3ffa2f7a Fixed up some ommissions about database structure 2003-12-09 06:07:12 +00:00
moodler 83891eda00 New defaults for popup window settings, which is window off, but all
sub-settings on.

These default defaults can be defined on the page

  Admin -> Config -> Modules -> Resource -> Settings
2003-12-09 04:00:33 +00:00
moodler 007df43c33 New strings for resource setting screen 2003-12-09 03:55:11 +00:00
moodler 2657d7cb46 Fix to allow quiz import to deal with Macintosh OS files (from Paul Shew) 2003-12-09 02:00:48 +00:00
stronk7 be3737bfc0 Creation of needed DB structures (prefix_backup_courses and
prefix_backup_log) to store info about scheduled backups.

NOTE: PostreSQL and Oracle not tested !!
2003-12-08 22:50:56 +00:00
stronk7 c728ec734e Included the 'firstdayofweek' entry to show week days ordered. 2003-12-08 17:42:45 +00:00
moodler 6942583e02 Larger steps on minutes when printing times - see bug 912 2003-12-08 17:20:31 +00:00
stigbjarne 04fb8cf51b Minor changes 2003-12-08 15:10:59 +00:00
stigbjarne 9ce91ed13e New file 2003-12-08 15:01:52 +00:00
stigbjarne eb375f626f Improved and extended 2003-12-08 14:49:23 +00:00
moodler d4b1ce148f Use filemtime instead of filectime 2003-12-08 13:32:32 +00:00
moodler 4511145165 Use filemtime not filectime 2003-12-08 13:31:14 +00:00
moodler bc56d5415b Bumping it 2003-12-08 13:15:44 +00:00
stigbjarne e6618986ca New file 2003-12-08 13:05:22 +00:00
moodler 26d2f5fb4a Fixing a typo I spotted in the CVS diffs. :-) 2003-12-08 13:03:41 +00:00
stigbjarne 883360834f New file 2003-12-08 11:49:27 +00:00
stigbjarne fe428e6037 New file 2003-12-08 10:41:57 +00:00
rkingdon 5a6d1a79ce Fixed bug #863. 2003-12-08 09:22:03 +00:00
stigbjarne 2931ade5d7 New file 2003-12-08 08:31:27 +00:00
moodler d6c3bebead Converted to new format using 'single quotes' 2003-12-08 06:58:12 +00:00
moodler 74b1ef5af6 Turn off time limits on all upgrades 2003-12-08 06:11:56 +00:00
koenr 4a7fc30090 translated by Koen Roggemans 2003-12-07 22:24:35 +00:00
koenr 08d2504bb3 translated by Koen Roggemans 2003-12-07 17:27:13 +00:00
moodler 2646460c6e Fixed up some examples 2003-12-07 13:49:51 +00:00
koenr 0705343e58 translated by Koen Roggemans 2003-12-07 12:52:55 +00:00
koenr a5abee5817 filling in missing string 2003-12-07 11:55:35 +00:00
koenr 2a19447428 translated by Koen Roggemans 2003-12-07 10:00:45 +00:00
koenr 0c488bf830 filling in missing links 2003-12-07 09:59:49 +00:00
moodler c30c36a352 New, smaller comment icon 2003-12-07 05:57:57 +00:00
koenr dc97859c78 missing closing tag </blockquote> 2003-12-06 13:15:51 +00:00
moodler ee273b61a4 Fix for image display - see Bug 695 Thanks, Gustav 2003-12-06 07:34:55 +00:00
moodler e7b51a9bf0 Add a check for GD library 2003-12-06 06:47:32 +00:00
moodler 6f0c8b88b4 A little script to quickly check compatibility on servers. 2003-12-06 06:43:21 +00:00
rkingdon bfd68abc58 Added the setting of League Table options to the Administration page. 2003-12-05 17:55:54 +00:00
rkingdon 2e54fffcaa Minor change to League table options. 2003-12-05 17:53:23 +00:00
stigbjarne ecdeec8e7b Minor changes 2003-12-05 13:34:24 +00:00
stigbjarne 4d98562c00 Fixed error 2003-12-05 13:33:01 +00:00
stigbjarne 7429c4afc4 New file 2003-12-05 13:17:23 +00:00
moodler 07eb7fa7b8 Fixes for POP3 and TLS (new option) 2003-12-05 03:22:34 +00:00
moodler cf3eb7c310 Slight change to make packaging easier on Debian. :-) 2003-12-05 03:10:45 +00:00
rkingdon 945bb28be7 Minor change to student listing in index.php. 2003-12-04 18:47:48 +00:00
rkingdon dc610c361a Correction to Final Grades. 2003-12-04 18:45:55 +00:00
giro123 66a7ecbe73 *** empty log message *** 2003-12-04 17:12:15 +00:00
stigbjarne 8eb50d764d New file 2003-12-04 09:24:21 +00:00
koenr de7629503a corrected little html-error 2003-12-03 23:54:12 +00:00
koenr 67c8d5cadf translated by koen roggemans 2003-12-03 23:51:41 +00:00
koenr cb6424d6e8 filling in missing links 2003-12-03 23:50:19 +00:00
koenr 7541ceed5e filling in missing strings 2003-12-03 22:56:49 +00:00
willcast c80828fe8f - First step towards Tom Murdock's suggestions on a global search feature (if it is ever implented)...
Added a new funtion: module_search( $course, $searchterms, $extended, $glossary = NULL)

It returns all entries that matches the specified criteria in any glossaries within a given $course. It performs an $extended search if necessary.

It restrict the search to only one $glossary if specified (currently used by the internal search function of the module).
2003-12-03 18:33:16 +00:00
rkingdon d33986dbe6 Tidy up return of grades in exercise_grades routine. 2003-12-03 17:38:49 +00:00
julmis d1e5e6359e Improvement to table editing. If table border is set to zero
you'll still see the dotted border.
2003-12-03 17:34:41 +00:00
moodler 4b45f30023 Latest version from Jean-Fran?ois Nadeau 2003-12-03 15:33:28 +00:00
koenr ba7c34fb18 updating links 2003-12-03 14:22:38 +00:00
koenr 0ad9666ffd translated by Koen Roggemans 2003-12-03 14:19:04 +00:00
koenr cdb4ca838d filling in missing strings 2003-12-03 13:51:40 +00:00
moodler 5a80fd86be FIxed names for names 2003-12-03 07:29:15 +00:00
moodler 74b9476a3a Fixed up names for names 2003-12-03 07:28:46 +00:00
willcast 11797fd804 - Bringing order to chaos (thanks Martin) 2003-12-02 18:53:43 +00:00
paca70 1e57486f11 Initial version for postgresql. 2003-12-02 17:00:39 +00:00
moodler 3f1d9b22ba Undoing that last checkin while I examine the consequences for other
database types
2003-12-02 16:21:28 +00:00
paca70 ce24824eba To fix postgresql 7.4 default values.
Starting with v. 7.4 postgres is returning default-values with datatype in form:
'default value'::data type
This cannot be inserted back to database so DEFAULT keyword must be used.
2003-12-02 15:42:33 +00:00
moodler 9723c2d606 Add credits for Snoopy 2003-12-02 15:24:15 +00:00
willcast 5b4388f305 - Missing a $firstname $lastname... :( Changed to fullname 2003-12-02 14:43:36 +00:00
willcast 072f753331 - Some fixes when deleting entries and glossaries.
- Changing the way the comments are shown
- Saving a couple of lines in the Add Entry screen.
2003-12-02 14:35:39 +00:00
moodler 316ebf78a3 Take post_max_size into account when calculating maximum sizes. 2003-12-02 14:34:24 +00:00
moodler 811a6f64c5 FIxed missing quotes 2003-12-02 03:53:21 +00:00
koenr a0e66115cd filling in missing strings
changed item to invoer
2003-12-01 23:24:38 +00:00
paca70 45a3ca96ae Now backuptables gets created. (Still untested) 2003-12-01 22:58:49 +00:00
koenr 06879cb492 initial translation 2003-12-01 22:57:48 +00:00
paca70 a051e31700 To fix postgres column renaming. 2003-12-01 22:28:36 +00:00
stronk7 1b225eaf65 Wow !!
Now backup of one course is ENTIRELY encapsulated inside backup_scheduled.php.
And a backup of EVERY course can be executed invoking try.php.
Backing up to a custom directory is working too !!
They are preliminary versions, of course, but seem to work fine :-)
Now I'm going to make all the necessay structures to support the cron system
and to be able to inform the admin about every scheduled backup process.
Ciao :-)
2003-12-01 22:00:00 +00:00
stronk7 78d4084cf1 Take out another notice in backup. 2003-12-01 21:39:11 +00:00
stronk7 97a49e63ed Take out one notice... 2003-12-01 20:38:09 +00:00
stronk7 37afa39a5e Added support in copy_zip_to_course_dir() to save course
backup file in a custom directory (via $preferences->backup_destination).
Needed in scheduled backups.
2003-12-01 20:25:50 +00:00
jungwirr 81434da2b3 added missing strings dynsectionshort autoattendshort gradeshort 2003-12-01 20:24:18 +00:00
rkingdon 6a6f95c3cb Fix minor bug in Administration page. 2003-12-01 17:18:08 +00:00
rkingdon f01e4314ed Extra strings for analysis of assessments. 2003-12-01 13:50:53 +00:00
moodler 79edc7f972 Allow A. B. C. in addition to A) B) C) 2003-12-01 12:21:49 +00:00
rkingdon 285b8f7fef New version (2003113000), Analysis of Assessments added. 2003-12-01 12:19:48 +00:00
rkingdon c2d27ab6a6 New Workshop help file for the analysis of assessments. 2003-12-01 12:16:24 +00:00
andre_bln c140dc684f new version german translation *.html-files 2003-12-01 08:15:19 +00:00
moodler 750eeaebd5 If a file called cronextra.php exists in the dataroot then cron will
run that too.  This allows sites to have "special" maintenance.
2003-12-01 08:01:41 +00:00
moodler eb12fd50d2 Fixed missing string adminhelpbackup 2003-12-01 06:47:23 +00:00
moodler 0315927955 New format called "Aiken format" by Thomas Robb (and Art Lader)
to allow import of questions like this:

Every seriously injured person is likely to go into
A) shock.
B) infection.
C) hemorrhage.
D) respiratory pain.
ANSWER: A
2003-12-01 06:37:14 +00:00
mits a8f9baaf4e new translation and polished few. 2003-12-01 02:12:15 +00:00
stronk7 90471d6b0b Going to "Create the script". Bump. 2003-11-30 21:57:43 +00:00
stronk7 2ee3c92e4a Destination folder is included too. 2003-11-30 21:56:21 +00:00
stronk7 129cee29fc Now weekdays, active and execution time are included, too. 2003-11-30 21:37:46 +00:00
stronk7 69c7eba733 Scheduled weekdays are now stored in DB 2003-11-30 18:58:37 +00:00
moodler 87755b16cd Switch firstname with lastname 2003-11-30 14:57:46 +00:00
moodler 43875a1069 Plural "Given name(s)" looks silly in English and isn't needed. Might be
for Spanish or Arabic though.
2003-11-30 14:44:17 +00:00
moodler 6560de825e Display FAMILY names first 2003-11-30 14:40:00 +00:00
moodler 76e70b8732 Display family names FIRST 2003-11-30 14:38:11 +00:00
moodler 50d929736e Reverse the names ... 2003-11-30 14:15:39 +00:00
moodler 4e0eb3d298 Bump 2003-11-30 14:02:14 +00:00
moodler b5cbb64dc5 Final pieces to allow site-wide configuration of name display.
Site variable can override order of "firstname lastname" or it
can leave it up to the language packs.
2003-11-30 14:02:01 +00:00
moodler d344988f0b Tweaks 2003-11-30 08:41:48 +00:00
moodler 270f6cf52c Style fixes 2003-11-30 08:40:03 +00:00
moodler e935da6f31 Added information about databases 2003-11-30 08:31:08 +00:00
giro123 f058099d78 *** empty log message *** 2003-11-30 03:43:08 +00:00
moodler 086f592ebc Bugfix - don't use control keys if alt key is also down (to fix Polish) 2003-11-30 00:35:32 +00:00
moodler b405515797 Fixed typo from last night 2003-11-29 14:26:59 +00:00
moodler db0d033776 Fix navigation buttons for hidden buttons 2003-11-29 02:27:04 +00:00
moodler 74a4505b6e Fixed notefile string 2003-11-29 02:19:34 +00:00
moodler eca1c454d7 Use fullname display for actual name in list 2003-11-28 16:16:59 +00:00
moodler ff0b0de96d Use fullname function for names 2003-11-28 15:47:11 +00:00
moodler 9450cb6561 Use fullname function for displaying names 2003-11-28 15:45:46 +00:00
moodler 6dde8c3d39 Use fullname for displaying names 2003-11-28 15:42:32 +00:00
moodler b3679ca436 Display names using fullname function 2003-11-28 15:41:18 +00:00
moodler 7cc9a05edf Make sure teacher override is there 2003-11-28 15:37:27 +00:00
moodler 8f6ca087e9 DIsplay names using the fullname function 2003-11-28 15:35:41 +00:00
stigbjarne 25d95b9763 New file 2003-11-28 14:01:56 +00:00
stigbjarne c9652d7dbd Minor changes 2003-11-28 13:40:23 +00:00
stigbjarne a39b0a606c Minor changes 2003-11-28 12:56:26 +00:00
stigbjarne 2c3de0f12e Minor changes 2003-11-28 12:49:32 +00:00
stigbjarne 2d7607dc9d Minor changes 2003-11-28 12:48:54 +00:00
moodler 6f2e07e8b9 Use fullname function 2003-11-28 11:06:53 +00:00
moodler 44e5f877b2 Use fullname function for names 2003-11-28 11:02:43 +00:00
moodler 2d71e8ee23 Use fullname function for name in login string 2003-11-28 11:00:46 +00:00
moodler 627407365c Tiny hack for Qmail - I've come across one system which REQUIRED the IsQmail
method of phpmailer to be used.

This is now possible just by specifying "qmail" in the smtphosts field.
2003-11-28 10:57:58 +00:00
moodler 0b4c582298 Some changes to use fullname function for names 2003-11-28 10:53:07 +00:00
moodler 40387b0fc7 Use fullname() function for name 2003-11-28 10:47:39 +00:00
moodler d7e1bae056 Use fullname function to display names 2003-11-28 10:41:06 +00:00
moodler 533b7ea6d9 Use fullname function. Sorting is still wrong though and the selection
mechanism sucks.
2003-11-28 10:40:04 +00:00
moodler 7ec60e4e7e Use fullname() function for names 2003-11-28 10:33:54 +00:00
moodler f5104a2b97 Use fullname for Guest name 2003-11-28 10:32:32 +00:00
moodler 2f15e48cf6 Implemented more fullname() calls 2003-11-28 10:31:06 +00:00
stigbjarne 939f26a96c New file 2003-11-28 10:09:05 +00:00
stigbjarne 8b6b50b008 New file 2003-11-28 09:08:54 +00:00
stigbjarne 4a6b6649b8 Improved and extended 2003-11-28 08:58:21 +00:00
stigbjarne 88cdb566b3 Minor changes 2003-11-28 08:45:03 +00:00
moodler 9aebbc40e3 Fixing a broken line 2003-11-28 04:02:53 +00:00
moodler 264a173f69 Editing as necessary :) Can't have all that HTML formatting in the strings ... 2003-11-28 04:01:02 +00:00
willcast bf46cd2267 - Adding error trapping to the fetching function and giving error messages accordandly.
- Adding Moodle as the web agent!!! :)

PLEASE, edit the new language strings if necessary.
2003-11-28 03:27:24 +00:00
moodler b2b8471e63 Removed some tabs 2003-11-28 02:19:20 +00:00
willcast 0c4a0e80b7 - Fixing bug that was preveting uploaded files to be shown...
Uploaded files parsing is not ready so it's desabled by code...
2003-11-28 02:18:47 +00:00
moodler 3bfe3922c2 A few rearrangments in the new code for filtered external pages 2003-11-28 02:11:02 +00:00
stronk7 d31a78675b Small change to save scheduled days always in
0=Sunday....6=Saturday format, independent from the
visual display of the week. :-)
It uses the "firstdayofweek" string in every languaje pack
(defaults to 0-Sunday)
2003-11-27 23:50:46 +00:00
stronk7 34b1d1a41d Comment some debug. I forgot it, sorry. :-( 2003-11-27 23:42:25 +00:00
stronk7 2a0acc00df Changed empty->isset !! Arghh 2003-11-27 23:38:27 +00:00
stronk7 49b95c3068 Return backup_config records as an object instead of an array. 2003-11-27 23:33:20 +00:00
stronk7 de4746a8a2 Initial release of the configure backup.
It now uses backup_config instead of config.
Not finished !!
2003-11-27 23:28:29 +00:00
stronk7 3968be8fce Solved one small typo with prefix.. :-) 2003-11-27 22:57:18 +00:00
stronk7 fe27d33f4f Included support for new backup_config table.
(postgresql and oracle versions not tested !!)
2003-11-27 22:53:30 +00:00
paca70 8ea237e932 More Finnish translation from Teemu Sumi. 2003-11-27 19:19:11 +00:00
willcast 8367faba8b - External webpage resources now are parsed and automatic links are added to the glossary terms... Only if $CFG->filterexternalpages is enabled. 2003-11-27 19:09:47 +00:00
paca70 b20ad90a53 One small correction. 2003-11-27 19:08:20 +00:00
willcast af65e103df - External webpage resources now are parsed and automatic links are added to the glossary terms... Only if $CFG->filterexternalpages is enabled. 2003-11-27 19:04:36 +00:00
willcast ef5b38b267 - Adding a new class to fetch remote files through PHP. 2003-11-27 19:02:31 +00:00
paca70 276a8df94c Finnish teachers manual. Thanks to Lasse Utti. 2003-11-27 19:01:17 +00:00
moodler ceed288505 Eloy's "war name" :-) 2003-11-27 17:52:57 +00:00
moodler ae67d9cd40 Decode pathinfo in case it has encoded spaces etc in it 2003-11-27 17:23:36 +00:00
moodler e6073312c2 Different format on headers for text downloads to improve performance on
more browsers
2003-11-27 14:52:22 +00:00
willcast 0f23e14e27 - Deleting inconsistent records on glossary_alias due to the last fixed bug. 2003-11-27 13:32:02 +00:00
andre_bln 3823500342 new version completed php-files
CVS ----------------------------------------------------------------------
2003-11-27 08:26:01 +00:00
moodler 1bdcef1051 Worksheet name can't be longer than 31 characters 2003-11-27 07:10:27 +00:00
willcast 5d422d4284 - Fixing bug regarding the aliases (pointed out by Sho Fukamachi also) 2003-11-27 05:25:26 +00:00
trobb e8a5be2853 *** empty log message *** 2003-11-26 22:21:17 +00:00
moodler eb5baa8a7e Peter Taylor got upgraded :-) 2003-11-26 16:07:44 +00:00
willcast c8473c36a4 - Fixing typo (pointed out by Sho Fukamachi) 2003-11-26 14:42:47 +00:00
willcast 65a6c7bb3f - Removing tags from glossary name when exporting the entries. 2003-11-26 14:38:34 +00:00
paca70 3bc5359621 Converting back to iso-8859-1. Sorry for this mess... 2003-11-26 13:10:54 +00:00
moodler 5e91dd3f36 Another setting to allow a default URL in webpage and weblink 2003-11-26 11:47:51 +00:00
stronk7 6e980cfa80 Updated to include scheduled backup status. 2003-11-26 10:54:06 +00:00
andre_bln c4a2d886e0 add new german translation html-files 2003-11-26 09:42:00 +00:00
andre_bln facea1b341 add new german translation html-file 2003-11-26 09:39:51 +00:00
moodler 5b645d97c4 Grade is in the main file already 2003-11-26 01:37:56 +00:00
moodler 706cf31ee1 Use "grade" string from the main language pack 2003-11-26 01:37:20 +00:00
trobb bbc8a2ade5 *** empty log message *** 2003-11-25 23:41:08 +00:00
andre_bln a5d200d862 german translation new html-files 2003-11-25 22:53:42 +00:00
willcast b620a99505 - Fixed two bugs: Teacher's modified or added entries were being set as not approved if the default approval status is off.
- Fixed bug when trying to display entries with ? in the definitions or aliases.
2003-11-25 17:44:51 +00:00
willcast d6bbfb22fa - Student can't edit their own entries solved. 2003-11-25 16:37:59 +00:00
andre_bln 5322277aa6 new version german php-files ( jetzt vollst?ndig ?? 2003-11-25 14:08:59 +00:00
moodler 98516bb40a A little tidy 2003-11-25 13:31:11 +00:00
moodler 50368eea89 New file from Tom Robb 2003-11-25 13:30:13 +00:00
trobb 036162ea9a *** empty log message *** 2003-11-25 12:35:43 +00:00
moodler 32da9038c5 Removed some bogus Control-M's 2003-11-25 12:15:10 +00:00
moodler 66c2503062 Added a new setting called "resource_websearch" ... it is simply a
URL that is offered to users as a place to to find URLs.  By default
it's google.com, but could easily be a local repository of files.
2003-11-25 08:01:52 +00:00
moodler c428e8c4cb Added a new help string 2003-11-25 08:00:33 +00:00
moodler f2d91421fd Added new navmenu function that now prints next/previous buttons - it's
based on code from Gustav Delius.  Thanks, Gustav!
2003-11-25 04:19:58 +00:00
trobb a222541e98 *** empty log message *** 2003-11-25 00:07:38 +00:00
andre_bln 8d5ad76244 add german translation help-files 2003-11-24 15:16:30 +00:00
andre_bln 63128953bd new version german translation 2003-11-24 07:51:59 +00:00
andre_bln 75547242c9 new version german translation *.html-files 2003-11-24 07:46:04 +00:00
andre_bln 38f1133371 new german translation php-files 2003-11-24 07:09:50 +00:00
moodler 0c0128531c No need for HTML editor stuff 2003-11-24 01:48:02 +00:00
moodler 0b5d3ddfb9 Some logic for focussing cursor 2003-11-24 01:23:29 +00:00
moodler 02fa231515 Use the new method for calling html editor 2003-11-24 01:16:25 +00:00
andre_bln 4fcc1c214a add german translation exercise help-files 2003-11-23 22:28:51 +00:00
andre_bln 76d91f8a41 add glossary help-files 2003-11-23 22:27:05 +00:00
andre_bln d60e82a4c3 new version german translation *.html-files 2003-11-23 22:21:22 +00:00
koenr 3ba496f1ff filling in missing strings 2003-11-23 21:40:42 +00:00
andre_bln a0a23e48fe new version german translation *.html- Files 2003-11-23 18:41:18 +00:00
stronk7 5574388a9c Search for any 'view%' string in the module log, instead
of exact matching.
2003-11-23 11:15:37 +00:00
willcast e29ad7ebbe - Properly deleting attached files when a glossary is deleted. 2003-11-23 02:46:29 +00:00
willcast 37d543b545 - Minor fix (locating the send ratings button correctely when the mode is entry.) 2003-11-23 01:01:29 +00:00
willcast a6d0cd987a - Minor change (aliases by Keywords, more intuitive, I think) 2003-11-23 00:31:13 +00:00
giro123 01abc5e6bf Trad. Sergio Alfaro 2003-11-22 22:01:54 +00:00
stronk7 15d6420f3d Bump !!
Some important changes incoming next days !!
2003-11-22 20:21:19 +00:00
stronk7 5e4f44b6ad Now glossary_ratings are in backup/restore too. !!
Solved one errors with glossary_alias.
Updated "graphical structure" of the module.
2003-11-22 20:02:34 +00:00
moodler 4708a37266 Quick script to slam timezones 2003-11-22 09:00:15 +00:00
moodler 7e0830caea Fixed bug 902 when displaying scale grades for offline assignments 2003-11-22 03:14:59 +00:00
moodler 71be7f90ac Converted back to single quotes, and removed "grade", "grades" strings 2003-11-22 02:45:07 +00:00
moodler 06e9893001 Use main translation for grade 2003-11-22 02:43:48 +00:00
moodler c0542d081d Use main translation for "grades" 2003-11-22 02:42:38 +00:00
trobb a234654021 *** empty log message *** 2003-11-21 23:56:34 +00:00
trobb 6f2b3bcdd2 *** empty log message *** 2003-11-21 23:53:24 +00:00
stronk7 a741f7eea8 Some needed scales recoding previous to ratings... :-) 2003-11-21 22:51:56 +00:00
andre_bln c1acb61934 new version help-files in german 2003-11-21 22:24:15 +00:00
trobb 6b36aa9396 *** empty log message *** 2003-11-21 22:22:50 +00:00
trobb c4cfddf4d1 *** empty log message *** 2003-11-21 21:35:45 +00:00
willcast 375c162355 - Minor fix (removing a notice) 2003-11-21 19:04:21 +00:00
willcast 1c1f86b7b1 - Compatibility issue. (Eloy, try this one). 2003-11-21 19:00:09 +00:00
willcast 63dd5fb281 - Grading enabled.... finally. 2003-11-21 18:42:38 +00:00
trobb 21e98e21c9 *** empty log message *** 2003-11-21 14:08:28 +00:00
moodler 2185622e76 Removed unnecessary functions 2003-11-21 14:03:06 +00:00
moodler 33c1770940 Whoops forgot a debugging statement 2003-11-21 12:54:53 +00:00
moodler 0fd7da8138 For recent activity, only parse modules that are enabled 2003-11-21 12:54:09 +00:00
moodler 7bc81aac9b New translation - Galego (Sonia ?lvarez L?pez - sonial@uvigo.es) 2003-11-21 12:30:52 +00:00
moodler b2eda6e0a5 Wrong case for rtl 2003-11-21 09:40:39 +00:00
moodler 440dfec649 Added direction again 2003-11-21 09:39:03 +00:00
moodler 2573aaa996 Latest translation from Dr Ali 2003-11-21 09:37:20 +00:00
moodler 46fd234634 Show current user image on editing page ...
Bit of a hack ... not sure about the location .
2003-11-21 07:06:17 +00:00
moodler cc41c129c8 Remove evil styles ;-) 2003-11-21 05:24:01 +00:00
moodler 08ff4ca6fb Added some missing strings 2003-11-21 05:18:10 +00:00
willcast 505eec9cad - Removing my nice black lines around the tabs.. sniff... sniff
8D
2003-11-21 04:55:32 +00:00
willcast ae07873330 - Removing some Notices.. Thanks to Eloy for leting me know! 2003-11-21 03:33:21 +00:00
willcast 840d3ba8e3 - Found the bug with the Edit Categories button. Fixed. 2003-11-21 03:00:42 +00:00
willcast db87439af3 - Fixing minor bugs... Nothing related with the problems the glossary is presenting right now in moodle.org... :( 2003-11-21 02:50:08 +00:00
willcast 229ed3b57c - Adding slashes to [,] and other characters to allow autolinking. 2003-11-20 23:37:33 +00:00
kaipe 7c9c2a8da6 Made it possble to give negative grades for single multichoice answers in a question with embedded answers, as suggested by Koen Roggemans. The total score of the whole question must still be greater than or equeal to zero. 2003-11-20 19:39:08 +00:00
stronk7 cc652b4d76 This report shows the total number of views for each activity in a course.
It is based in the "Outline User Activity Report". I commit it here, but
you (Martin, of course) decide if you want to link to it from the "logs" page.
2003-11-20 18:45:52 +00:00
kaipe b63519ebda Added simplified aliases for answer types, as proposed by Thomas Robb. It is now possible to use these aliases:
SHORTANSWER = SA = MW ;
NUMERICAL = NM ;
MULTICHOICE = MC
2003-11-20 18:39:25 +00:00
moodler 565e970ee2 New report from Thomas Robb - provides detailed statistics. Needs some work. 2003-11-20 16:02:13 +00:00
moodler 0a8d8da96a Show standard reports first 2003-11-20 16:01:21 +00:00
moodler f6b9326173 Added "Detailed statistics" 2003-11-20 15:51:12 +00:00
moodler 5ee2080112 Escape double quotes too 2003-11-20 11:47:14 +00:00
moodler 513c636d94 Fixed authentication a little 2003-11-20 11:23:45 +00:00
willcast 38f7f44e73 - fixed little bug on url called by the alphabet tab. 2003-11-20 02:26:35 +00:00
rkingdon f52cdc8c43 Bug fixed in assesssubmission code. 2003-11-19 17:54:54 +00:00
willcast b6862360af - Case sensitive search when click on a letter, fixed.
- Adding a display format manager. It controls the behavior of the display format when the user enter the glossary and when an auto-link is shown.
- Adding support to the new fullname function.
2003-11-19 17:47:40 +00:00
willcast 0dafa92b4d - Case sensitive search when click on a letter, fixed.
- Adding a display format manager. It controls the behavior of the display format when the user enter the glossary and when an auto-link is shown.
- Adding support to the new fullname function.
2003-11-19 17:36:00 +00:00
moodler 1b26d5e74e Changes to use the new fullname function 2003-11-19 16:45:20 +00:00
moodler 2ac64806ff Names now use the new fullname function 2003-11-19 16:30:09 +00:00
moodler 5fde0ca615 Use the new fullname function 2003-11-19 16:15:56 +00:00
moodler e2cd50652b This function is just a stub to stand in for a while until I have more
time ... Following this I'll be converting all the other files around
the place to use this function.
2003-11-19 15:59:45 +00:00
moodler a4c3ccc36a Script to look at database performanceusing ADOdb tools 2003-11-19 08:15:23 +00:00
moodler 9c72928dc3 Show enrolled courses on user page to teachers
See http://moodle.org/mod/forum/discuss.php?d=3562
2003-11-19 07:55:00 +00:00
moodler fb88144ba4 Latest tags 2003-11-19 07:34:45 +00:00
moodler 18eebff22d Mention new style 2003-11-19 02:55:37 +00:00
moodler a0456978ef Changed a style -> categoryname --> categorynumber 2003-11-19 02:52:26 +00:00
willcast f287e69c33 - Messing of A and IMG tags because of auto-linking fixed 2003-11-18 14:29:31 +00:00
willcast 4f3e59c3a2 - Improved printer-friendly version
- Cosmetic change in the main view of a glossary.
2003-11-18 13:49:31 +00:00
julmis b694b2bd1f Increase size to popups for translations. So buttons or text
would fit into popups.
2003-11-18 08:01:35 +00:00
moodler 025583cd23 Add a little language-changing menu here to make it easier 2003-11-18 07:41:35 +00:00
moodler 892a80dc63 New, speedier English translation. All files and every line has changed.
This is working OK in my testing, but please contact me immediately
if you find any errors.
2003-11-18 07:28:46 +00:00
moodler 452c1cb363 Language editor now saves strings with 'single quotes' which should
- simplify the files a bit
     - speed up processing at run time
2003-11-18 07:26:40 +00:00
willcast 66d7ae88a1 - Adding View comments link to the new display format 2003-11-18 03:41:09 +00:00
willcast a0d1e2bba7 - Adding View comments link to the new display format 2003-11-18 03:25:28 +00:00
willcast 584dcac979 - Using user-defined functions to display comments properly.
- Adding a default view to auto-linked entries when the new display format is used (temporarly until the display format manager is done)
2003-11-18 02:28:18 +00:00
willcast 9d12152641 - Nice default view to the new format display. 2003-11-18 01:07:21 +00:00
willcast 1f8ab70281 - New display format: Entry list (please, fix the translation if it is wrong). 2003-11-18 00:46:02 +00:00
willcast b191803470 - Now you can override the display format of a glossary (useful to certain display format -asked by Tom Murdock-, automatic linking, etc) 2003-11-18 00:41:35 +00:00
rkingdon f47f90af64 Removal of diagnostic messages in Administration page; correction to
db/mysql.php
2003-11-17 18:51:01 +00:00
giro123 b7926afa48 *** empty log message *** 2003-11-17 18:29:01 +00:00
mits a56d226564 New help files. 2003-11-17 17:05:47 +00:00
mits 04a3c84ac7 translated some. 2003-11-17 16:46:00 +00:00
mits 8861507850 New help files added. 2003-11-17 16:45:17 +00:00
willcast 0756aaecac - Fixed bug regarding default setting' variable names 2003-11-17 12:40:25 +00:00
willcast 5e3d1f59de - Backup/restore of the new field entbypage 2003-11-17 03:08:35 +00:00
willcast dcae5a5804 - Added string used in the browse by author page (forgot to inlude it in the previous checkout) 2003-11-17 02:56:56 +00:00
moodler 0108633793 Updating en_us to match the latest English (should help with speed
and memory usage on US installations)
2003-11-17 02:40:09 +00:00
moodler f8dbffb1c0 Check for string before sorting it 2003-11-17 02:19:13 +00:00
moodler bae53097c9 Removed some old editor stuff causing problems in IE 2003-11-17 01:56:43 +00:00
stronk7 73daab351c When restoring "teacher" forums, if it exists in destinatio course, discussions
are merged mantaining a unique forum (previously, a second "teacher" forum
was created). See bug 880 (http://moodle.org/bugs/bug.php?op=show&bugid=880).
2003-11-16 22:49:11 +00:00
koenr 08ded30845 filling in missing strings... 2003-11-16 20:11:14 +00:00
willcast c4a354196b - Improved browse by author.
- view.php?id=cm&show=[concept | alias ] done.
2003-11-16 17:13:19 +00:00
willcast 2f23555ddd - Todo list. 2003-11-16 02:58:18 +00:00
willcast 5020a17a85 - Fixing a bug: Group breaks even when the only thing that change between an entry and the previous is its case. 2003-11-16 02:53:13 +00:00
giro123 7601c1f082 *** empty log message *** 2003-11-16 01:12:30 +00:00
willcast 1ac87c7397 - Rewrite of the internal API in order to, hopefully, create an easy way to handle the flow of data internally and externally.
- Adding a new frame: Browse by Author
- A new, friendly way to show entries (asked by Martin): view?id=cm&mode=term&hook=[concept | alias ]
- Handling user activies, outline and complete.
- Properly showing new entries in recent activity box.
- Adding a flag to categories to specify if a category should or should not be automatically linked.
- Adding some missing strings and files as well.
- Adding a field to each glossary that specify how many entries by pages it should show.
2003-11-15 15:55:47 +00:00
moodler 45376a51a9 Don't have the Javascript dialog on submitting an attempt if the quiz
doesn't have a grade.
2003-11-15 03:31:37 +00:00
selliott 02f007f45d modified print_recent_instance_activity to fix missing course value
modified get_recent_posts to select course id from forum_discussions table
2003-11-14 19:28:43 +00:00
selliott 6f526f7451 Added some words for course/recent.php 2003-11-14 19:16:23 +00:00
selliott 37e00f7039 Created links for how many days to go back in report. 2003-11-14 19:06:02 +00:00
moodler f7c225fbd4 Check for existence of grades 2003-11-14 18:34:17 +00:00
moodler c0fa5540c3 No need to strip slashes in a filter ... 2003-11-14 17:18:15 +00:00
rkingdon e539802dc5 Indexes added to submissions, assessments and grades tables.
Administration page cleaned up slightly.
2003-11-14 15:38:50 +00:00
moodler ab809cc2c0 To cover the recent security fix. 2003-11-14 15:06:14 +00:00
moodler 6a7585f259 SECURITY FIX: This patch prevents teachers from logging in as admins or
course creators!  I'll make an announcement to registered
               administrators.
2003-11-14 12:48:26 +00:00
martignoni 8fdd4fa419 Just a bit more translated 2003-11-13 20:05:29 +00:00
giro123 b6ebdaffb3 *** empty log message *** 2003-11-13 18:39:33 +00:00
rkingdon 178761415f Change to the handling of Error Banded asessments; Removed percentages
from grades.
2003-11-13 16:25:33 +00:00
rkingdon a50f447b04 Some minor improvements, see Workshop Forum. 2003-11-13 16:22:27 +00:00
rkingdon 8d8deea21a A few more strings. 2003-11-13 16:19:38 +00:00
rkingdon b15aadd7b5 Change to new-style tabs. 2003-11-13 11:57:34 +00:00
rkingdon 939a906ec8 New style Tabs in Management page. 2003-11-13 11:39:09 +00:00
martignoni c311f59944 A little bit more translated 2003-11-12 12:44:15 +00:00
moodler 959e11bf24 Fixed paging bar at the bottom of the page 2003-11-12 07:40:09 +00:00
moodler 1040ea8501 A workaround for a PHP bug with Turkish, and some fixed strings changed from "" to '' 2003-11-12 07:39:10 +00:00
moodler 6ee9d39b49 urlencode the dynalinks so they don't give errors if they have quotes
in them etc
2003-11-12 06:21:15 +00:00
moodler 6abd1eedbf Added label icon to cordoroyblue example 2003-11-12 02:42:26 +00:00
julmis a3ee23b115 Fixing charset setting. 2003-11-11 23:19:39 +00:00
moodler 4340a83ae8 Added some bug-fixing code from Eloy Lafuente that fixes a quiz problem.
What happens is that adding random questions used to set the timestamps
of these questions to the same value.  This is fine in normal operation,
but it stuffs up the backup of that course, overwriting the question.
When the course is restored, the missing questions cause quizzes to
have lots of red notices like "Question not found".

Anyhow, this patch should safely fix older installations that may have
these duplicate questions lying around.

THANKS ELOY!
2003-11-11 16:13:57 +00:00
martignoni ec93fb5015 Corrected version 2003-11-11 12:26:32 +00:00
martignoni 9d4ec48859 Removing bad developer.html 2003-11-11 12:24:55 +00:00
martignoni f6d57b0e6a Initial bit of translation 2003-11-11 12:15:32 +00:00
moodler bb8acf8844 More new files 2003-11-11 09:11:38 +00:00
moodler fdeba4eda2 Latest version of Greek, from geof@01infonet.gr 2003-11-11 09:08:43 +00:00
moodler 003891b463 Undoing my changes to the editing functions, because it removed backward
compatibility with 1.1.1 ... this way it works on both.
2003-11-11 06:27:49 +00:00
mits cc79c31911 translated some. 2003-11-11 02:49:00 +00:00
mits 46fa359f8c New langfile added. 2003-11-11 01:22:47 +00:00
koenr 894d86760b closing tags 2003-11-10 22:39:10 +00:00
julmis 3b26f9fb20 Link correction to smileys 2003-11-10 21:04:12 +00:00
martignoni 794122a7b0 Typos corrected 2003-11-10 20:49:51 +00:00
martignoni c1b2d9f922 Translation terminated! 2003-11-10 20:44:18 +00:00
martignoni e66c8a57f0 A little bit more (again)! 2003-11-10 12:25:46 +00:00
martignoni c56db831c3 Translation almost finished 2003-11-10 07:59:30 +00:00
moodler 26e40578f8 Removed text focus to avoid errors in IE 2003-11-10 01:49:00 +00:00
koenr 1d7abb687c translated by koen roggemans 2003-11-10 00:01:21 +00:00
koenr 11beba1dcb filling in missing strings 2003-11-10 00:00:00 +00:00
koenr 7890cbe40c translated by Koen Roggemans 2003-11-09 22:04:32 +00:00
koenr 91a1cb371b updating... 2003-11-09 22:01:47 +00:00
koenr 06d0d0eb6f filling in missing strings 2003-11-09 22:01:07 +00:00
willcast 1d8cfdce7c - BUg when importing aliases 2003-11-09 12:35:12 +00:00
julmis 835cc2f85e Charset update 2003-11-09 11:30:52 +00:00
moodler f6d5ac7efc Removed focus from header 2003-11-09 03:54:26 +00:00
moodler 34fb06515c if the glossary is at site-level then don't require a login 2003-11-09 03:35:36 +00:00
willcast 4403d2b89c - Setting as optional the course id so, by default, it look for entries in global glossaries (unless a glossary is specify that will search in both). 2003-11-09 03:29:25 +00:00
moodler f26d986a17 Minimal formatting changes to center things 2003-11-09 03:26:33 +00:00
moodler 1c338cdbc8 Some cosmetic changes to the code to use the new html editor functions.
No change in functionality at all.

I was in the area trying to fix a bug on this page that only
shows up in Internet Explorer (something to do with editor)
2003-11-09 03:16:28 +00:00
julmis 3c62da905c Change insertSmile function to use insertHTML or pasteHTML method
since insertimage method is not working so good in gecko based browsers
2003-11-08 14:41:30 +00:00
julmis 8dcd870756 Changes to charset and window return value is now "string". 2003-11-08 14:39:52 +00:00
julmis 88f614bf1c Change charset to dynamic "print_string("thischarset")" 2003-11-08 14:38:39 +00:00
martignoni 19f6a59e86 Just a bit more translated 2003-11-08 11:48:33 +00:00
gniske d272a7ffd3 Adding missing strings
Made som few corrections in existing translation
2003-11-08 11:06:51 +00:00
martignoni 79705cb7e4 Some strings corrected 2003-11-07 21:50:35 +00:00
martignoni 5b1db5f305 Just a bit more translated 2003-11-07 21:48:08 +00:00
martignoni 4a6817fd4a File partially translated 2003-11-07 20:34:29 +00:00
willcast 0075885151 - Missed that one. 2003-11-07 16:04:31 +00:00
willcast 7965be79e3 - Backup/restore and Import/export aliases. 2003-11-07 15:58:29 +00:00
moodler 82196932b0 Forgot to check this in ... has a new function 2003-11-07 15:11:34 +00:00
moodler fbfc267591 New language file called pix.php for defining alt-text of pix files.
Smileys code is changed over to use this, both in replace_smileys
and in editor/popups/dlg_ins_smile.php

Needs testing please!
2003-11-07 14:55:44 +00:00
moodler 6476f5fca6 Modifications from Mark (main author) to be more robust with
certain types of bad HTML code
2003-11-07 11:01:16 +00:00
moodler 4bd91f99b8 Fixes to include ALT tags in smilies - by Janne Mikkonen 2003-11-07 07:59:23 +00:00
moodler 4110d37f45 Added style as a valid tag 2003-11-07 04:53:54 +00:00
jungwirr 129b43ee0e fixed foreach problem on line 125 per request from forums 2003-11-07 04:29:13 +00:00
moodler 428aaa2911 Accidentally deleted a $CFG line 2003-11-07 04:14:38 +00:00
moodler c6927f670c Added html2text function to credits 2003-11-07 03:28:43 +00:00
moodler 6ff45b597e Use the new html2text function for converting html to text.
This function is still being tested - it seems fast enough so far
but I'm checking it in to do some further testing on moodle.org
for a while.
2003-11-07 03:27:21 +00:00
moodler b6c120104f A new function for converting HTML into text form 2003-11-07 03:25:09 +00:00
rkingdon c21c48cbe6 Cosmetic change to Admin page. 2003-11-06 17:47:11 +00:00
rkingdon 955f94887e Minor change to one string. 2003-11-06 17:44:35 +00:00
rkingdon 81d581d04b Extra strings for setting League Table parameters. 2003-11-06 17:41:18 +00:00
giro123 bd17f26b48 *** empty log message *** 2003-11-06 17:25:47 +00:00
willcast 046a797c1a - Allowing to selectively export categories or entries based on current frame and view. 2003-11-06 15:07:34 +00:00
martignoni ab28847cc8 Some corrections for consistency 2003-11-06 13:47:28 +00:00
martignoni 38ef098d11 Replace every occurence of "e-mail" with the better french term "courriel" 2003-11-06 13:25:10 +00:00
willcast 38e7bbab8d - Adding missing files to index.html 2003-11-06 13:12:14 +00:00
martignoni c0495ed519 Coded accented characters with HTML entities codes 2003-11-06 13:12:10 +00:00
martignoni 7c78bf998f Typo corrected for "bar?me" 2003-11-06 13:08:29 +00:00
martignoni 1531ab7421 Incorporation of french-canadian terms 2003-11-06 13:02:44 +00:00
julmis ff7f7b1028 Print character set based on user settings
- print_string("thischarset")
2003-11-06 12:25:32 +00:00
moodler 7fc0f9e5e4 Add fancy help cursors on help icons 2003-11-06 11:47:23 +00:00
moodler 8b68eb7ebc I didn't like it as much as I thought. :-) 2003-11-06 09:11:35 +00:00
moodler 43acb21fff Putting link to course listing on the course front page.
If anyone doesn't like this please say so!!
2003-11-06 09:10:01 +00:00
moodler b5333476db Search link should go to listing (it has a search box anyway) 2003-11-06 09:05:41 +00:00
moodler 98ba1e32cf Latest updates from Dr Ali Abureesh. 2003-11-06 09:00:53 +00:00
martignoni 0e9d1cdb1d Integrating files translated by Jean-Francois Nadeau, with slight adaptations 2003-11-06 06:44:01 +00:00
mits da440af88f Polished some and New translation added. 2003-11-05 18:38:19 +00:00
rkingdon 6e1cedb5e4 Fixed a bug, referenced a non existent help file. 2003-11-05 18:31:11 +00:00
rkingdon df5405996c Fixed a bug with re-submissions. Added options for the League table of submissions (show in phase 4). 2003-11-05 18:02:06 +00:00
martignoni c2229403ae Changed special characters of all HTML files to entity codes 2003-11-05 17:51:33 +00:00
willcast 53bc5a9433 - Removing tinyints from Postgresql's db squema. 2003-11-05 16:41:56 +00:00
martignoni 87ee1f918b Added some strings 2003-11-05 15:37:39 +00:00
willcast c4c2f1886d - Fixed bug (printing-friendly version of an empty glossary) 2003-11-05 15:27:37 +00:00
moodler 2abc70b558 Whoops typo 2003-11-05 13:48:25 +00:00
moodler c7563a9c70 Improved fix to $search variable 2003-11-05 13:47:19 +00:00
moodler cd6f0c1e28 Fixing up some handling when searching for strings with quotes in them 2003-11-05 13:43:31 +00:00
willcast 81bdc9e928 - Aliases are now shown when displaying entries 2003-11-05 12:46:51 +00:00
moodler 2df00c5bad New translation for Swedish by Anders Berggren - complete! 2003-11-05 10:21:34 +00:00
willcast 3c1b31d913 - New icon... :) 2003-11-05 03:30:38 +00:00
willcast 1ba2befbf1 - Adding aliases 2003-11-05 00:06:31 +00:00
willcast de1fe38401 - Adding paging when the number of entries shown is greater than $CFG->glossary_entbypage
- Adding $CFG->glossary_entbypage to config.html
2003-11-04 18:38:22 +00:00
aszora 17200e8f4d Some upgrade to version 1.1, not fully completed yet 2003.11.04. 2003-11-04 17:31:46 +00:00
rkingdon 563f606731 Minor mods to phase 3 display for students.. 2003-11-04 17:19:07 +00:00
rkingdon d69e279438 An extra string for view.php. 2003-11-04 17:14:54 +00:00
moodler de119da9e4 Fixed attachments ...
typo:   type -> enctype   !!
2003-11-04 15:59:42 +00:00
willcast 40b6b8d8b5 Typo 2003-11-04 15:08:00 +00:00
willcast fd9f0ec83a - Solving problems when trying to autolink entries with apostrophes on it
- Idem, when importing entries.
2003-11-04 15:04:35 +00:00
moodler 3bbde52099 Don't focus on the post message (upsets html editor) 2003-11-04 12:42:42 +00:00
moodler c427414996 Glossary now gets the alphabet string from moodle.php instead of glossary.php 2003-11-04 12:36:55 +00:00
moodler ba33f1dd2f Moved string 'alphabet' from glossary.php to moodle.php for various languages
Also changed the separator from | to ,
2003-11-04 12:35:17 +00:00
moodler a328425d17 New feature based on code from Gustav Delius
-> A-Z subsets on the participant list.

http://moodle.org/mod/forum/discuss.php?d=3162

I also made a new datalib function called count_course_students()
2003-11-04 12:09:52 +00:00
moodler 5c2766327f Bump it up 2003-11-04 06:21:36 +00:00
willcast 748b1932aa - Basic export/import functionality.. Does not export nor import the attached files. 2003-11-04 03:54:01 +00:00
moodler 2b23eea312 Removed header redirect for cases where output already occurred
(thougn it shouldn't happen)
2003-11-04 03:35:05 +00:00
gniske 1dc78ff52a Adding missing strings
Made som few corrections in existing translation
2003-11-03 23:59:59 +00:00
julmis 61d5f1854d Hide cut, copy and paste buttons from gecko browsers 2003-11-03 23:53:49 +00:00
julmis 9466f50707 Style improvements to popups 2003-11-03 23:01:13 +00:00
julmis 99a5970cb1 style improvments to popups 2003-11-03 22:59:06 +00:00
koenr fbaf0edb03 translated by koen roggemans 2003-11-03 21:51:13 +00:00
koenr 8c527924a0 filling in missing strings 2003-11-03 21:50:14 +00:00
rkingdon 3d24fbafb5 Minor fix in assessments.php. Revisions to backup and restore to always include teacher's submissions. 2003-11-03 18:45:05 +00:00
bobopinna c66dcab21f Minor Fixing in password change 2003-11-03 17:18:04 +00:00
moodler 40bed9e13d Use new editor stuff 2003-11-03 16:58:45 +00:00
moodler 4b00b4b34a Update to use new editor stuff 2003-11-03 16:49:37 +00:00
moodler 126f0da58d Just moodling ... tidied up the horrible interface a little 2003-11-03 16:27:46 +00:00
moodler 1e8ac0541b No need for useneweditor anymore 2003-11-03 16:13:59 +00:00
moodler 6a1e688f83 Some fixes for using the new editor 2003-11-03 16:12:59 +00:00
moodler 06a179a75c Removing reference 2003-11-03 16:06:13 +00:00
moodler 983962a590 Stopgap measure 2003-11-03 15:21:25 +00:00
moodler 47037513fe Goodbye Richtext editor!
This does not affect any of the existing modules - I've kept some
stub functions to retain backward compatibility.
2003-11-03 15:17:21 +00:00
moodler 8c8e74ae10 SERIAL8 -> SERIAL 2003-11-03 13:21:00 +00:00
moodler 315915628d Keep guests out of chat 2003-11-03 10:22:24 +00:00
moodler 14b6fcdb5f The font style menu is now translatable (Heading, etc) 2003-11-03 05:30:32 +00:00
moodler 1e16942739 Show version number to aid in debugging 2003-11-03 03:22:52 +00:00
moodler 8a55c98423 More redirect tweaks 2003-11-03 03:13:14 +00:00
moodler 091333e091 Removed a blank line 2003-11-03 03:00:45 +00:00
moodler fb7a194e6b Removed blank lines at the end (!) 2003-11-03 02:59:09 +00:00
willcast ea14e78373 - Cosmetic changes... Changing the Add Entry button for a new tab
- Creating two new tabs for the future export/import features.
- Improving a little the Printer-Friendly version (now it shows what you were watching in the previous frame)
2003-11-03 02:26:44 +00:00
kaipe fe98ea90f9 The new quizfile.php makes it possible to view associated file material on quizes, such as images, even for questions belonging to a category on a different course. lib.php is updated accordingly... 2003-11-02 21:36:25 +00:00
aszora ecb1b5ec7c *** empty log message *** 2003-11-02 20:42:17 +00:00
aszora 7523f8a84f *** empty log message *** 2003-11-02 19:27:18 +00:00
aszora 26f80c924e *** empty log message *** 2003-11-02 17:55:04 +00:00
moodler c4df6e1799 Don't even show submitted dates on offline assignments 2003-11-02 15:11:53 +00:00
martignoni 6aa0291420 Update to current work 2003-11-02 12:40:32 +00:00
moodler d0e15bf61f Some cleanups 2003-11-02 07:19:07 +00:00
moodler d8e6933f72 Explicitly setting mimetype and other things to
- hopefully fix Norton problems
  - hopefully improve caching
2003-11-02 07:01:48 +00:00
moodler 6226d47d4e Removed a blank line 2003-11-02 03:13:12 +00:00
willcast ab653b5517 - Typo 2003-11-02 02:40:00 +00:00
willcast f6149b0910 - Applying proper coding conventions to the default settings' variables 2003-11-02 02:37:44 +00:00
willcast cb2f5705ec - The admin can define default values for glossary and entries' settings via the admin modules interface. 2003-11-02 01:48:44 +00:00
willcast 4f4ca7b5e1 - Printer-friendly version of the glossary
- First step in the export/import feature (export is done)
- Minor changes here and there
2003-11-01 20:27:21 +00:00
martignoni ec48239def Typos corrected 2003-11-01 19:38:14 +00:00
martignoni 4c0fd2d731 New translated file 2003-11-01 19:34:16 +00:00
rkingdon c50365cd38 Fix to the Complete isting. Upload now checks the submission for spurious re-submission caused by using the Back button. User and Teacher deletions of submissions are now logged. Redirect delay when marking submissions shortened to one second. 2003-11-01 17:25:13 +00:00
rkingdon 56dc5ba143 Extra string for Complete listing. 2003-11-01 17:19:00 +00:00
willcast 996f4afc1f - Missing help files. 2003-11-01 15:55:49 +00:00
martignoni 34f875d829 New translated file 2003-11-01 15:35:14 +00:00
martignoni a0c66c2450 Changed everywhere "en chapitres" to "th?matique" for the topics format. 2003-11-01 12:11:42 +00:00
martignoni ecb865400f File translation completed 2003-11-01 11:56:51 +00:00
martignoni 60896c7667 Added to french docs folder 2003-11-01 09:36:49 +00:00
moodler ff01945522 Fixed Mozilla redirection-after-htmlediting bug using Javascript! 2003-11-01 06:59:31 +00:00
julmis 55d035b098 Minor change for iframe width 2003-10-31 21:58:24 +00:00
kaipe 004c02e05c An improvement asked for by koen roggemans:
Especially for multianswer questions it is often desirable to have the grade of the question in a quiz larger than the earlier maximum of 10 points.
The new function quiz_gradesmenu_options($defaultgrade) makes quiz question list grade selector drop-down have the maximum grade option set to the highest value between 10 and the defaultgrade of the question.
2003-10-31 21:27:43 +00:00
willcast 49210b9085 - Important update: I did not delete categories nor comments once a glossary has been deleted. Fixed now. 2003-10-31 15:26:28 +00:00
stronk7 40c9e047e0 Another small typo, == instead of =. :-D 2003-10-31 14:24:44 +00:00
stronk7 8c844d2d40 Small typo preventing users to be sorted. :-) 2003-10-31 14:22:37 +00:00
willcast 5eaa2d3468 Bug fixed:
- Updating a Default Approval Status from NO to YES in a glossary, now approve automatically all entries waiting for approval.
2003-10-31 13:40:34 +00:00
martignoni f303b365be Updates for EasyPHP 1.7 2003-10-31 12:29:29 +00:00
martignoni 17ffa1ed24 new string for choosing a file 2003-10-31 12:18:36 +00:00
martignoni 925711c0b3 New strings added 2003-10-31 12:13:42 +00:00
martignoni 4e0f8146ba No due date string 2003-10-31 12:05:26 +00:00
martignoni a3480d4377 Change Richtext editor to HTML editor 2003-10-31 11:51:45 +00:00
moodler 0604ce1a32 Added missing link 2003-10-31 09:52:44 +00:00
koenr e49106faac filling in missing strings 2003-10-31 09:50:52 +00:00
koenr 9bbbc6700e filling in missing entry 2003-10-31 09:47:55 +00:00
koenr 7a896ffbc6 Translated by Koen Roggemans 2003-10-31 09:47:22 +00:00
koenr ac234da04d filling in missing strings... 2003-10-31 09:18:03 +00:00
stronk7 961d2828e8 globalglossary is included now in backup/restore. :-) 2003-10-31 08:47:03 +00:00
moodler e764aa71ef Add navmenu to header of forum search pages 2003-10-31 08:31:39 +00:00
moodler 5d6c043a39 Using Location header is not subject to the meta-refresh bug in Mozilla 2003-10-31 08:13:44 +00:00
moodler 497588fe37 No longer need parent link in the footer 2003-10-31 06:57:25 +00:00
moodler 8f85017285 Show activity button for students on their profile page 2003-10-31 06:50:19 +00:00
moodler 85a6e76c51 Tidy up 2003-10-31 06:45:38 +00:00
moodler 01f7344a40 Some updates to the text 2003-10-31 06:06:30 +00:00
moodler 3f125001bc New feature: Allow students to see their own activity reports.
This is a course setting.  By default it is off.  When on, there
is a new link in the course admin menu for students, and they can
browse the same report that teachers see.

The report icon is temporary.
2003-10-31 05:57:30 +00:00
moodler d94ee341e5 Undoing Greg's UNION hack ... it was causing problems on Mysql 3 2003-10-31 03:25:37 +00:00
martignoni dffc499b47 Systematic HTML encoding of entities in all files 2003-10-30 22:04:50 +00:00
rkingdon 8090ace7a2 Teacher assessment table string added. 2003-10-30 17:47:26 +00:00
rkingdon 0d1bd24dad Index.php now ignores grading grades; Teacher Assessment Table added to Administration. 2003-10-30 17:45:47 +00:00
moodler 73d0da8084 New database GIF by Eloy! 2003-10-30 14:25:23 +00:00
moodler 65f19876d8 Removed the offensive "and" 2003-10-30 03:44:49 +00:00
willcast 0de786f7da - Global glossaries now available. All current rules apply to its entries. 2003-10-29 23:33:54 +00:00
koenr 68e16a6f47 translated by Koen Roggemans 2003-10-29 19:45:31 +00:00
moodler b3f247e4d1 Rearranged toolbar a bit - put insert stuff together and toggles at end 2003-10-29 16:42:10 +00:00
moodler bfdc52bd32 Missing a semicolon! LOL 2003-10-29 16:28:41 +00:00
moodler 0a8ba9dd7d Sorted the strings, minor fixes 2003-10-29 12:48:17 +00:00
koenr e97a364475 transforming to HTML editor 2003-10-29 12:29:14 +00:00
koenr 7ee3031e69 filling in missing string 2003-10-29 12:28:41 +00:00
moodler 7f0c3a44e4 Oops, typo 2003-10-29 09:16:12 +00:00
moodler 7e224207d0 Fixed bug when moving discussions with attachments 2003-10-29 09:12:23 +00:00
carlesbellver 4ea47efb05 *** empty log message *** 2003-10-29 09:07:49 +00:00
moodler 088e092db8 More language fixes, mostly using print_string instead of get_string 2003-10-29 08:21:52 +00:00
moodler d4a6788523 More editor translations I forgot to alter 2003-10-29 08:13:03 +00:00
moodler 4c46c425db Changes to integrate the new HTML editor into Moodle in an optional way
until it's stable enough to replace Richtext

To enable the new editor, add this line into config.php:

  $CFG->useneweditor = true;
2003-10-29 08:06:11 +00:00
moodler a800c94891 HTMLArea 3.0, slightly edited by Janne Mikkonen. Alpha version. 2003-10-29 07:51:46 +00:00
moodler ba1ce4c0eb new style forumheaderlist (instead of re-using forumpost as before) 2003-10-29 06:24:49 +00:00
martignoni fc881d4afc Initial bit of translation 2003-10-28 21:55:25 +00:00
stronk7 edfc003cd0 Small typo !! :-) 2003-10-28 18:27:22 +00:00
willcast 1d9ddaaf2e - New encapsulated functions in order to make easier to create new display formats
- Fixed problem when showing 'ALL' in alphabet frame
- Disabled unnecessary fields when selecting DO NOT AUTOMATICALY LINK THIS ENTRY in the adde entry screen
2003-10-28 16:10:36 +00:00
martignoni a49f407cc6 File translation terminated 2003-10-28 15:52:48 +00:00
moodler 9788367bb9 Sometimes you really want to know if they are a teacher 2003-10-28 14:44:39 +00:00
moodler 57ef348040 If debugging is on, then make SMTP print debugging info 2003-10-28 14:35:00 +00:00
moodler c260b07707 Make sure resources are put through format_text so that they can be
processed properly (eg autolinking)
2003-10-28 14:01:15 +00:00
moodler cb4f77069d Use unique stamps when creating multiple questions ... 2003-10-28 09:50:23 +00:00
moodler 97ac9019a9 Print "never" on profile page if the user has never logged in 2003-10-28 04:09:03 +00:00
stronk7 8094a84cad Take out some debug info. Forgot it in previous commit. 2003-10-27 17:31:57 +00:00
stronk7 91c59b920c Bump. timeaccess (students and teachers) working. 2003-10-27 17:26:08 +00:00
stronk7 dabf73b44a timeaccess (students and teachers) included in backup/restore. :-) 2003-10-27 17:23:43 +00:00
moodler 0f4ae874d9 A little typo hiding the continuous format 2003-10-27 14:25:08 +00:00
moodler f1603208db The last access date is now that of the course. 2003-10-27 14:15:05 +00:00
moodler 937ae59c8e Get longtimenosee students according to their course access (not site access) 2003-10-27 14:01:29 +00:00
moodler 29b25b0498 Much better updating of access times to make the accurate straight away 2003-10-27 13:38:08 +00:00
koenr d88d693a57 Minor changes 2003-10-27 13:22:10 +00:00
moodler 4d744a220a Added a new column to user_students and user_teachers called "timeaccess"
for recording the last access to the COURSE.

This is updated at the same time as add_to_log and is now used instead
of user->lastaccess when course user listings are required.

This means course listings now show what you expect and open up the way
for a "current users" listing and instant messaging etc ...
2003-10-27 12:38:00 +00:00
koenr ecd25101f5 Translated by Koen Roggemans 2003-10-27 09:41:31 +00:00
moodler 6951a89497 Thomas Robb suggested a movehere image instead of the string. I made an image
and I agree it looks/works a lot better.
2003-10-27 08:31:28 +00:00
mits 2f4424c352 Translated few. 2003-10-27 08:23:09 +00:00
moodler 1c49bffc3c Slight alteration to search option, since not all glossary types
are "definitions" ... using "full text" is more generic
2003-10-27 06:25:56 +00:00
koenr 44d7cbb3b3 filling in missing strings 2003-10-26 23:43:26 +00:00
koenr 6415638ded translated by Koen Roggemans 2003-10-26 23:21:37 +00:00
moodler a52ec9020a Trivial changes that were hanging around 2003-10-26 16:12:03 +00:00
moodler d2e3fa130b No due date string 2003-10-26 16:10:27 +00:00
moodler 953c64fe93 Trying to avoid database clashes 2003-10-26 16:08:31 +00:00
moodler cf2db3ab76 Fixed colours again 2003-10-26 16:07:02 +00:00
moodler 94e935e7d1 In the index, show how many entries there are in each glossary 2003-10-26 08:14:54 +00:00
moodler 00af6d7e91 Use format_text for consistency 2003-10-26 08:06:16 +00:00
moodler 93de2fbcb6 Updates to ADOdb 4.0.1 - some bug fixes 2003-10-25 05:59:58 +00:00
moodler 9652408974 Now uses choose_from_menu() for the format display, and the items
are now sorted.

The other items could be easily done with choose_from_menu() too  ;-)
2003-10-25 02:53:02 +00:00
moodler 7829b7d98b Fixed background colours in quix editing page body-> cellcontent2 2003-10-25 02:38:47 +00:00
giro123 8cae411fa1 *** empty log message *** 2003-10-25 01:38:59 +00:00
moodler 2eea2ccedc Remove quotes from title - these can cause the stylesheet to not load
properly on Internet Explorer.
2003-10-24 06:27:15 +00:00
moodler 55dd77620e Updates from Kristian Nielsen 2003-10-24 03:12:02 +00:00
koenr a92e598d2f adding link 2003-10-23 21:49:00 +00:00
koenr 60150ae1be translated by Koen Roggemans 2003-10-23 21:37:41 +00:00
koenr ffac5de76e translated by Koen Roggemans 2003-10-23 20:20:57 +00:00
rkingdon ce7c86e689 New icon from Eloy Lafuente. 2003-10-23 17:39:49 +00:00
rkingdon 523f5da5ed Extra sting for Administration page. 2003-10-23 17:31:39 +00:00
moodler 16a1917250 Fix bug in NUMERICAL questions where feedback was only shown if the
question was correct
2003-10-23 15:40:17 +00:00
martignoni a3498659ed Translation is now half-way! 2003-10-23 14:54:46 +00:00
moodler a8edccefc9 Updates for EasyPHP 1.7 2003-10-23 03:49:11 +00:00
gregb_cc dcfa857df2 This is a massive speed increase in journal_get_users_done.
The fix requires UNION support in the database.  I've added a simple little
test to see if UNION queries work.

This change very much needs to be tested out by someone using MySQL 3.  If
it tests out there successfully, the supports_union code should be moved out
of this file and into datalib.  Ideally, someone will extend that test and
creatle get_records_union_sql, a function that would split up UNION queries
for databases that don't support them and do an array_merge (and proper
sorting, which is missing from my fix) on the result sets.
2003-10-22 20:06:44 +00:00
stronk7 665ec9436d Added glossary icon to cordoroyblue theme 2003-10-22 16:27:12 +00:00
stronk7 8a59942e4c Take out one notice when the only activity was
create a module and delete it. Strange but possible. :-)
2003-10-22 16:19:21 +00:00
moodler d89a514226 Bump 2003-10-22 14:26:24 +00:00
moodler e2d94a5f26 I revised some of the Glossary texts in English. 2003-10-22 13:59:46 +00:00
moodler 8dddba42ce Modularised some of the processing for "extra" information such as
information for popup windows on resources and labels
2003-10-22 13:14:56 +00:00
martignoni 62e0fb7989 Initial bit of translation 2003-10-22 11:37:22 +00:00
moodler 06e3c5c030 Upgraded to AdoDB 4.00 ... starting to think seriously about the
data dictionary conversion ...
2003-10-22 08:52:42 +00:00
moodler 1789e61668 Fixed some missing styles 2003-10-22 07:54:37 +00:00
moodler 978165545e Some missing styles 2003-10-22 07:51:40 +00:00
moodler 9d212d8602 FIxed some missing styles and colours 2003-10-22 07:48:23 +00:00
moodler b67117d848 Some missing colours 2003-10-22 07:47:18 +00:00
moodler f91847d0c3 New styles 2003-10-22 07:45:47 +00:00
willcast c197e6070b - Added a new frame: Browse by date.
- Removing unnecesary double quotes (not all of them yet)
2003-10-22 04:15:08 +00:00
willcast 841d317f4a - Sorting entries by the length of the concept so large concepts could be linked first if they exist in the text to parse (avoiding that smaller concepts "gain control" over the larges one).
- Setting hard=coded default settings to glossary (will be replaced soon by global default settings)
2003-10-21 20:45:53 +00:00
willcast 290891415d - Preventing guest for posting comments on entries 2003-10-21 18:32:36 +00:00
willcast 20853eabc7 - Fixed bug the dealing with concepts that contains slashes 2003-10-21 16:30:12 +00:00
willcast 4d4c38f3fe - Fixed some bugs detected with Jeff's glossary (mostly with dynalink link feature) 2003-10-21 13:27:48 +00:00
stronk7 e0234384f4 Small typo :-) 2003-10-21 09:49:55 +00:00
moodler 5bc6e68fbe Put rounded corners on category box too 2003-10-21 06:55:02 +00:00
moodler 5f546a46f0 Slightly nicer code when redirecting 2003-10-21 06:42:10 +00:00
moodler 1b6a4b1db2 Some cleanups for some of the HTML, including addition of new styles 2003-10-21 06:40:39 +00:00
moodler dfe052fcfd Some additions to standard styles 2003-10-21 06:39:05 +00:00
willcast 7b892c8787 - Backup/Restore of the new field 2003-10-21 05:19:43 +00:00
willcast 8f7bd776a9 - New entries for the new feature 2003-10-21 04:56:05 +00:00
willcast c76e673ab5 - Cleaning a lot of code in edit.php and view.php
- Removing more notices when debug is ON
- Added a new feature: Now the entries have a default approval status... Not approved entries are shown on a teachers-only frame from which they can be approved or not prior to be visible by everyone.
2003-10-21 04:55:22 +00:00
moodler 016f1bebbf Removed unnecessary code (maxlogs) 2003-10-21 03:58:08 +00:00
moodler d6f73f538f Put the help inside a box, in case the background is dark 2003-10-21 02:30:42 +00:00
moodler 7f98994816 Don't display search buttons if all the courses are being displayed anyway 2003-10-21 02:25:22 +00:00
rkingdon af58d5f7b5 New function dialogue_count_all_needing_replies_self($user) added to lib.php. 2003-10-20 19:09:31 +00:00
willcast 677038ee7d - Removing notices when debug is on
- Deleting entries with attachments now delete the attachments properly
2003-10-20 16:42:49 +00:00
stronk7 54849831c2 Bump :-) 2003-10-19 23:04:19 +00:00
stronk7 d1014ff79f Now, glossary_comments are in restore too !! :-) 2003-10-19 22:24:25 +00:00
stronk7 e425fb1621 Splited one function into two :-) 2003-10-19 22:00:41 +00:00
stronk7 710c3be112 Now glossary_comments are in backup.
Solved one issue when exporting categories.
2003-10-19 21:38:47 +00:00
willcast 48972ecf12 - Backing up new fields...
- No restoring yet... :(
2003-10-19 18:04:34 +00:00
rkingdon f257277e11 Fixed bug in exercise_grades function. Fixed bug in viewing of students assessments by teachers. 2003-10-19 16:40:07 +00:00
willcast ba38613904 - Adding webquest.php to the lang directory.. It's annoying that the system can't find the file and mess all the screen when editing is on.
Just have the name of the module anyway.
2003-10-19 16:03:24 +00:00
willcast 2a0a6f17fb - Fixed bug related to comments when doing a backup... 2003-10-19 15:49:48 +00:00
moodler 8321a04ed9 new string for choosing a file 2003-10-19 15:18:19 +00:00
moodler 199d242993 I finally added a proper course files browser to replace the menu. 2003-10-19 15:02:41 +00:00
moodler 0abc815473 Allow uploaded files to be declared in popup windows too. 2003-10-19 14:21:54 +00:00
koenr 7480ff5f28 filling in missing strings... 2003-10-19 09:17:47 +00:00
koenr c35d77229d translated by Koen Roggemans 2003-10-19 09:17:02 +00:00
moodler ab16b4ffd5 Some small style changes for tabs 2003-10-19 05:24:33 +00:00
moodler 5e70f06961 Removed one hard-coded "admin" 2003-10-19 05:19:14 +00:00
moodler e8ff59d6cb More styles -- missed the target last time! 2003-10-19 05:07:29 +00:00
moodler e94c179a04 Added styles to tabs 2003-10-19 05:02:45 +00:00
willcast 4257e7f69e - A couple of icons that I forgot to include 2003-10-19 03:48:21 +00:00
giro123 7df67a0dbe *** empty log message *** 2003-10-19 03:41:26 +00:00
willcast 767a31c3bc - Adding two more display formats: Continuous and FAQ
- Fixed bug 818: Adding a new view: Sorted (by creation date or by last modified.
2003-10-19 03:40:36 +00:00
moodler 7069af60aa FIxed styles 2003-10-19 03:28:53 +00:00
moodler f33db1ce37 Use CFG->admin 2003-10-19 02:40:03 +00:00
willcast 3dfa6ce23a - Fixed another bug when showing "dynaentries" (it does not take in count the case sensitive setting) 2003-10-18 20:37:40 +00:00
willcast cca6f7f1bb - Fixed bug when showing "dynaentries" (it showed all concepts no matter the course nor its dynasetting) 2003-10-18 20:23:29 +00:00
willcast 2ee6608ae4 - Fixed bug when showing "dynaentries" (it showed all concepts no matter the course nor its dynasetting) 2003-10-18 20:21:04 +00:00
martignoni a4c1b131c4 New translated file 2003-10-18 19:22:49 +00:00
martignoni 61706b0caf Translation terminated! 2003-10-18 18:14:55 +00:00
willcast d88824c4be - Housekeeping... :( 2003-10-18 13:48:24 +00:00
willcast ad2c7282e9 - Housekeeping... :) 2003-10-18 13:43:36 +00:00
willcast 891ae55ee4 - Fixed a problem when showing the icons in entries with inline images.
- Fixed a bug when deleting entries without attachments.
2003-10-18 13:33:46 +00:00
mits 9c379682aa New help translation. 2003-10-18 12:17:55 +00:00
willcast c7b811b14c - "striping_tags" inthe title 2003-10-18 12:14:46 +00:00
moodler 2d7efab286 Nicer styles in Mozilla 2003-10-18 11:44:52 +00:00
moodler fa3d376d5f Nicer styles on Mozilla 2003-10-18 11:44:22 +00:00
mits 86b68a821c New help translation. 2003-10-18 10:22:13 +00:00
martignoni 938c2c35b2 More translation (almost finished) 2003-10-18 10:20:57 +00:00
mits 5b61f5c8a0 New translation and polish some. 2003-10-18 09:52:25 +00:00
mits 9f4f8828b1 New help translation 2003-10-18 08:48:53 +00:00
willcast f4a809db92 - Two little mods in the category linking issue:
The concepts could be in more than one glossary so...
    I put it inside the "if concept is category" conditional... I little more efficient.
2003-10-17 15:35:18 +00:00
moodler dc04ce9547 Fixed category linking. :-) 2003-10-17 15:30:18 +00:00
martignoni 855eef5d27 Initial bit of translation 2003-10-17 15:08:31 +00:00
martignoni b5aabd4f5f Initial bit of translation 2003-10-17 15:06:23 +00:00
martignoni 65ecd1c557 Just a little bit more translated 2003-10-17 14:04:47 +00:00
moodler e845dee27d Icons for activities should use $CFG->modpixpath so custom icons work 2003-10-17 12:46:33 +00:00
moodler 482b6e6e38 Same as Eloy's fix, just a few less lines of code. ;-) 2003-10-17 12:30:17 +00:00
moodler 24b8e78e2a Bump 2003-10-17 11:49:30 +00:00
stronk7 23f6216b92 Do some isset() checkings with $CFG->sessioncookie.
Previously when debug turned on, login was impossible
due to some notices sent before writing http headers.
2003-10-17 09:54:41 +00:00
moodler c1e97fe591 Made comments link smaller, and also prints "1 comment" and "2 comments" 2003-10-17 08:55:16 +00:00
moodler 13152b970b Some tidying up of the code to display the comment editing page 2003-10-17 08:49:00 +00:00
moodler 477e78b6fd Some small changes ... made the heading a real heading and removed
includes from the template
2003-10-17 08:42:12 +00:00
moodler 101f330fdb Some more cleaning up of the HTML and code formatting ... 2003-10-17 08:38:16 +00:00
moodler 21863a3bb4 Some modification so that the encyclopedia format looks
more like forum posts (in fact it uses the same styles)
2003-10-17 08:19:56 +00:00
giro123 7568aa033a *** empty log message *** 2003-10-17 01:21:08 +00:00
willcast dc36351d8b Case sensitive match
Whole words match
No match at all (a bit rude (you have to get down to the HTML code), no GUI so far either)
Categories are now linked too (I forced to be a case sensitive match)
You can automatically link one or several glossaries at once no matter if it is a main one or not.
2003-10-16 22:05:00 +00:00
mits 09c3588446 New translation and plished some. 2003-10-16 20:07:40 +00:00
mits d8deb5db94 New help translation 2003-10-16 19:46:32 +00:00
mits 4075975c4b Sorry for slow translation. 2003-10-16 18:05:45 +00:00
giro123 fb63db2c36 *** empty log message *** 2003-10-16 18:02:19 +00:00
rkingdon 98933e78b4 A couple of extra messages for teachers about resubmissions. 2003-10-16 17:47:25 +00:00
giro123 4442ed1169 *** empty log message *** 2003-10-16 17:36:49 +00:00
martignoni e08a9cd97e First bit of translation 2003-10-16 17:36:08 +00:00
rkingdon 32a2b23f43 More information to teachers on resubmissions. Add submission entry to log only if upload is successful. 2003-10-16 17:35:01 +00:00
rkingdon 7c54bd509a Fixed bug stopping the calculation of final grades. 2003-10-16 17:17:19 +00:00
martignoni 30396b3e65 Changed to proper encoding 2003-10-16 16:00:07 +00:00
martignoni e4c54c3d58 Translation finished 2003-10-16 15:51:26 +00:00
moodler 39dda0fc4f Added nolink tag 2003-10-16 14:25:36 +00:00
moodler 6de85459d2 Use $CFG->sessioncookie on MOODLEID cookie as well 2003-10-16 13:23:53 +00:00
moodler c1f5319532 A new Moodle variable called sessioncookie is now added to the session
cookie name.  This provides a means for multiple Moodles within the
same website to keep separate sessions and not get confused.
2003-10-16 13:19:10 +00:00
moodler 3528bae253 Fixed comments on str_ireplace 2003-10-16 10:20:35 +00:00
moodler b81789c55b Add a simple README 2003-10-16 09:39:18 +00:00
moodler 3e6525ba88 A very simple filter to censor "bad" words.
Also provides an example of how to write filters.
2003-10-16 09:33:27 +00:00
moodler 7ec2fc00a0 Improved version of str_ireplace() for older versions of PHP (now handles arrays) 2003-10-16 09:28:27 +00:00
willcast ff6c782016 - Testing... If you can read this.. I solved the problem (thanks to Martin)! :) 2003-10-16 06:37:43 +00:00
moodler 46fc277d38 Added version number to source 2003-10-16 06:00:47 +00:00
moodler b93cee20be Slight change to glossary_print_entry_icons so that
"comments" link isn't printed if comments are disabled
2003-10-16 05:41:35 +00:00
willcast ed0201dd7f - Now entries could be commented by other users.
- KNOWN BUG: It does not restore the comments even when userinfo is set... Eloy! I need your help! :)
2003-10-16 05:15:59 +00:00
moodler b16f0342a3 Add a check in case no attendances are defined 2003-10-16 04:17:53 +00:00
moodler 6f27717759 Autolinks added 2003-10-16 03:38:26 +00:00
moodler 23d7c2c5a8 Added autolink style 2003-10-16 03:23:29 +00:00
moodler 8a0e509384 Info for upgraders 2003-10-16 03:23:08 +00:00
moodler d8ff63f276 Added styles and colour for autolink'ed text 2003-10-16 03:21:09 +00:00
willcast 1a1370bb0d - Link within link issue: Solved. 2003-10-15 22:01:12 +00:00
koenr 841da5f0d5 translated by Koen Roggemans 2003-10-15 21:53:38 +00:00
koenr 40c1b0f8d8 filling the gaps 2003-10-15 20:31:23 +00:00
koenr ad70034400 Translated by Koen Roggemans 2003-10-15 20:20:46 +00:00
willcast a9c4a830f7 - Link within link issue: Solved. 2003-10-15 17:27:51 +00:00
jungwirr ce594a239c fixed import of shortanswer questions to get rid of blank answers 2003-10-15 16:38:46 +00:00
willcast 7dd8844764 - Solving bug 817 (adding a glossary overview)
- Minor changes adopting moodle's naming and coding conventions (perhaps not fully adopted yet)
- Solving bug that traspose All Categories with Not Categorised view.
2003-10-15 16:12:38 +00:00
jungwirr 108ef20260 took out some debugging messages. 2003-10-15 15:49:01 +00:00
jungwirr 7386d3d886 fixed some foreach problems with if tests 2003-10-15 14:34:50 +00:00
moodler 857e0dfdd5 Added new import format - Course Test Manager - from Russell Jungwirth.
All I've done is clean up the source code - I've not tested it at all.
2003-10-15 08:53:51 +00:00
moodler 72c751da80 New class for handling ODBC socket server 2003-10-15 08:49:12 +00:00
moodler 06bf9b71e5 New help for Course Test Manager import 2003-10-15 08:48:06 +00:00
moodler c53be4c013 Some cleaning up ... shouldn't make much difference 2003-10-15 02:48:40 +00:00
stronk7 68b32c8cf4 Small typo :-) 2003-10-14 17:33:44 +00:00
stronk7 42960e439a Function exercise_get_participants() included and working. :-) 2003-10-14 17:31:54 +00:00
stronk7 142a6a46ca Take out more notices in restore process. Undefined variables, mainly. 2003-10-14 17:26:37 +00:00
rkingdon 428ab4b9bf Minor re-ordering - Asssessments for teachers now ordered oldest first, youngest last (previously they were ordered by title). 2003-10-14 17:13:10 +00:00
stronk7 e3713e1a31 Take out more notices in restore process. Undefined variables, mainly. 2003-10-14 17:06:58 +00:00
stronk7 0e232d1841 Take out some notices !! :-) 2003-10-13 22:45:36 +00:00
stronk7 f654deea11 Now, when copying files/folders, CFG->directorypermissions is forced
(previously permissions were copied from original)
2003-10-13 22:44:41 +00:00
koenr abf1c6d842 typo 2003-10-13 20:40:15 +00:00
giro123 f36034bcaf *** empty log message *** 2003-10-13 17:21:59 +00:00
rkingdon bd6ba5263c Changes to help file, describes the new phase. 2003-10-13 17:16:15 +00:00
rkingdon 8231fef937 Minor change to phase names. 2003-10-13 16:16:36 +00:00
rkingdon 8dfe0fa64f Change to workshop_grades - only return grades when in the final phase (phase 6). 2003-10-13 15:23:56 +00:00
rkingdon 0d4d32d183 Workshop now has 6 phases. The phase is show on the Workshops page (index.php).
Administration page now excludes "hot" assessments (peer assessments which have been allocated but not yet made).
2003-10-13 14:56:25 +00:00
rkingdon 63d43fa1b9 Additional strings for 6 phases and showing the phase on the index page. 2003-10-13 14:52:24 +00:00
moodler 75f7bfe6a5 Minor formatting change ... links were obtrusive in forums etc ...
Will, what do you think?
2003-10-13 14:44:23 +00:00
moodler e67b9e31e5 NEW EXPERIMENTAL FEATURE: text filters.
This new feature allows arbitrary text filters to be added to
any HTML that is printed (forum posts, resources etc) ... anything
that uses the standard format_text function.

The first one properly supported is the glossary dynamic linking
feature.
2003-10-13 14:11:17 +00:00
moodler 445b23013e use format_text, not text_to_html 2003-10-13 14:03:48 +00:00
rkingdon 27ca988aa7 Additonal help file - addsubject. 2003-10-13 12:44:39 +00:00
rkingdon 5ff082b127 Removing unused files. 2003-10-13 12:42:58 +00:00
rkingdon 9b1a0374e0 Dialogue version 2003101300. 2003-10-13 12:41:36 +00:00
rkingdon 1e18f1923c Some additional strings for version 2003101300. 2003-10-13 12:39:45 +00:00
rkingdon 39b7e05e81 Addition help file - sendmail 2003-10-13 12:31:43 +00:00
martignoni ff2d03f994 A little more translation, almost finished ! 2003-10-13 10:47:22 +00:00
moodler 266a416e16 get_real_size can now pick up 900k 2003-10-13 03:16:25 +00:00
martignoni b55ff547c3 More translation. Not yet finished. 2003-10-12 20:57:43 +00:00
martignoni 5ebcf7b2cb Title translation was omitted 2003-10-12 20:56:05 +00:00
martignoni 1ee767efc1 Encoding corrected 2003-10-12 20:55:11 +00:00
rkingdon efef04ff4b Removed trailing blank line. 2003-10-12 18:09:13 +00:00
moodler 5204d8316a A new configuration parameter 'allowunenroll' will enable/disable the
"unenrol me" buttons on user pages and course pages.
2003-10-12 18:03:50 +00:00
moodler 726705327f Bump to cover Richtext picture insertion 2003-10-12 17:32:39 +00:00
moodler 089ce20f37 Stop inadvertant browsing 2003-10-12 17:27:31 +00:00
moodler 408e62f865 FIxed bug when no courseid 2003-10-12 17:24:46 +00:00
moodler 6d04a477a2 Fix richtext editing and inserting images 2003-10-12 17:21:36 +00:00
rkingdon 1b4a87a780 Removing old todo.txt file. 2003-10-12 17:21:01 +00:00
rkingdon b896875293 Additional information exercises page (index.php). 2003-10-12 17:19:19 +00:00
rkingdon 3ca5e8bee8 Extra strings for index.php page. 2003-10-12 17:17:01 +00:00
moodler 50bdc74de2 A new feature to allow teachers to browse course files to
find images to insert into Richtext editor windows.

This hack was started by Janne Mikkonen, and I further refined it
to fit better into Moodle.

See:  http://moodle.org/mod/forum/discuss.php?d=2126
2003-10-12 17:12:02 +00:00
giro123 35cd5f90ee *** empty log message *** 2003-10-12 13:38:53 +00:00
koenr 010af7e878 filling in the missing strings ... 2003-10-10 23:04:36 +00:00
koenr bf226d8d16 translated till 8 2003-10-10 22:54:29 +00:00
koenr 9630774343 deleted broken link 2003-10-10 21:26:06 +00:00
stronk7 aefbd27636 Added the dialogue_get_participants() function
to use it in backup/restore.
2003-10-10 18:57:38 +00:00
moodler 4bb17e4bab Latest updates for Moodle 1.1 by Riaan de Villiers 2003-10-10 07:49:52 +00:00
moodler 8f6495804d Smaller borders on frames 2003-10-10 06:02:43 +00:00
moodler 6efec14518 Added information about Norton fireewalls 2003-10-10 03:15:48 +00:00
mits 701bf0bb30 Polished. 2003-10-10 01:54:52 +00:00
moodler f06d1c6c66 Bump de bump 2003-10-09 16:50:14 +00:00
moodler 8664309614 Add an "unenrol" link for students on the course page 2003-10-09 16:47:57 +00:00
moodler 74f5d1e381 Only print the ratings button if there are ratings to be made. 2003-10-09 16:36:09 +00:00
mits be7a0ebb09 Polished. 2003-10-09 14:44:37 +00:00
moodler 6bf0078f07 Removed focus from course page - see Bug 825 2003-10-09 12:42:47 +00:00
moodler c0cf7543b6 No need for focus 2003-10-09 08:45:10 +00:00
moodler ec2137ba49 Some changes so that forum_cron is not fooled in case there is already
a real $USER variable present (eg if cron.php was run manually) and
so the timezones are not calculated incorrectly.
2003-10-09 04:58:09 +00:00
koenr 95a1b0cc4e Section 1-5 translated by Koen Roggemans 2003-10-08 21:36:39 +00:00
koenr 76e0168130 translated by Koen Roggemans 2003-10-08 21:18:10 +00:00
martignoni 7e8d372a4e Partial translation 2003-10-08 21:14:41 +00:00
martignoni 748c9b23e0 Partial translation 2003-10-08 21:14:15 +00:00
koenr 342b80c1bb translated by Koen Roggemans 2003-10-08 20:05:18 +00:00
koenr 942d746a1e filling in missing links... 2003-10-08 20:03:55 +00:00
koenr 9a0480fc6e translated by koen roggemans 2003-10-08 20:01:44 +00:00
jungwirr da5d1efec9 fix attempt for auto-attendance logging. Set to use gmdate and gmmktime
functions.
2003-10-08 19:09:39 +00:00
koenr a8d28cb932 translated by koen roggemans 2003-10-08 18:50:08 +00:00
rkingdon 1d23070249 Cosmetic change to index.php list; Logging of phase changes in a workshop; tidy up of log_display entries - thus the new version; 2003-10-08 18:15:22 +00:00
jungwirr aa47f2710d added official support for postgres7 2003-10-08 18:02:10 +00:00
koenr a52fe881d0 filling in missing strings 2003-10-08 18:01:02 +00:00
stronk7 c163e202c2 This image was missing in this theme and '?' images were showded.
See http://moodle.org/mod/forum/discuss.php?d=2882
2003-10-08 17:51:17 +00:00
martignoni 3c99a66aa9 New translated files 2003-10-08 16:48:00 +00:00
rkingdon 08811301b8 Fix in Cron routine to delete closed dialogues; Remove No entries on
the Closed Dialogues pane to make it consistent with the other panes.
2003-10-08 16:15:59 +00:00
koenr 6dfa542d1d translated by Koen Roggemans 2003-10-08 15:57:23 +00:00
koenr 6c18fe9715 translated for version 1.1 2003-10-08 15:56:31 +00:00
koenr 852d8858c1 corrected typo 2003-10-08 15:55:46 +00:00
koenr 97321042a2 showing double help-files: fixed 2003-10-08 15:54:54 +00:00
koenr 161574c331 Fillling missing strings ... 2003-10-08 15:53:55 +00:00
martignoni cd15e0cb15 Changed to proper encoding 2003-10-08 10:56:07 +00:00
martignoni 52d409f93b New translated file 2003-10-08 10:45:06 +00:00
stronk7 4119844902 Now scales users are in backup too. See bug 824.
Closing it in some hours.
2003-10-08 07:35:53 +00:00
moodler af4efb1484 Improved the heading a little 2003-10-08 05:53:55 +00:00
moodler 094640f170 Split up the looooooooooooooong page into separate files, to make editing
a little easier!
2003-10-08 05:44:56 +00:00
moodler 8aed17838e Tweak to add entry button 2003-10-08 03:49:43 +00:00
moodler af4ea1a280 iTweak to english 2003-10-08 03:43:52 +00:00
moodler 86183b0716 Started out reformatting the code a little and ended up simplifying
the interface a bit ... hope you like it, Will!
2003-10-08 03:13:12 +00:00
moodler 1e6e23fe93 Only show visible modules in help 2003-10-08 01:24:49 +00:00
moodler 69901d1994 First main-tree version of the Exercise module (formerly in contrib)
by Ray Kingdon.

Works quite well, but it's not clear yet if this will be part of
major releases (due to the overlap with assignments and workshops
and the confusion this may cause).
2003-10-07 14:54:21 +00:00
martignoni d8f27b7b60 Cleanup of file "moodle.php" 2003-10-07 14:26:58 +00:00
moodler d497a2a2fb Don't throw an error if users aren't found - just print a notice. 2003-10-07 14:02:32 +00:00
moodler e23defdb12 Not having any users in a backup is not necessarily an error. 2003-10-07 14:01:23 +00:00
moodler 8c02baf617 If there aren't any users, don't do anything. 2003-10-07 14:00:09 +00:00
moodler 9501b8f5ad Added notifications right through the backup when errors occur. 2003-10-07 13:59:15 +00:00
stronk7 9bc0466171 Now assessment->resubmission is in backup/restore too. 2003-10-07 12:14:16 +00:00
stronk7 4a4f96bd79 Now forum->maxbytes is supported in backup/restore. 2003-10-07 12:02:19 +00:00
stronk7 6ecc3ea8d3 Now course->maxbytes is supported in backup/restore. 2003-10-07 11:58:56 +00:00
moodler c3235459d0 Only print expanded course listing on the first page (ie short category) 2003-10-07 03:29:44 +00:00
rkingdon 8e7f0d621c Fixed links in email messages. 2003-10-06 19:30:27 +00:00
moodler 950cf40381 <acronym> is an allowed tag 2003-10-06 18:09:27 +00:00
moodler 4909e17632 These changes implement some better controls for controlling uploads.
1) There is a new site-wide configuration variable called maxbytes,
   which provides an upper filesize limit for all (student) uploads.

2) There is a new course-level variable called maxbytes, which further
   limits uploads within a course.

3) There is a new maxbytes field for forums, which further restricts
   the size allowed in a particular forum.  There is also a new config
   variable in the module configuration to specify a default size
   to use when defining a new forum.

4) Assignments already had a limit, but this is now aware of the other
   limits, and like forums there is now a settable default value.

5) Finally, the sizes of files (Gb, Mb, Kb, bytes) is now translatable
   in the language packs.
2003-10-06 18:02:35 +00:00
moodler e72727728c New strings and help pages for file upload restrictions 2003-10-06 17:44:42 +00:00
martignoni f26f1e9491 New tranlated files added to repository 2003-10-06 14:46:39 +00:00
carlesbellver 2e94893668 *** empty log message *** 2003-10-06 13:04:37 +00:00
carlesbellver ebcfcf57a6 *** empty log message *** 2003-10-06 12:31:08 +00:00
martignoni 7f9b5bb7f6 Changed README to proper encoding 2003-10-06 12:06:43 +00:00
moodler e0a0a1146b Moving Dialogue into the main tree for convenience. 2003-10-06 12:00:28 +00:00
carlesbellver 709a2e61bb *** empty log message *** 2003-10-06 07:36:56 +00:00
koenr e73c9b2739 Deleted blank lines 2003-10-06 06:48:54 +00:00
koenr 7b69801533 link to index of helpfiles added 2003-10-05 21:16:41 +00:00
koenr 74ad68736c example for aon added 2003-10-05 21:16:04 +00:00
koenr 53a07d2a7d corrected some errors 2003-10-05 21:15:30 +00:00
koenr 6f752861d8 translated by Koen Roggemans 2003-10-05 21:13:45 +00:00
koenr ef7d006950 some helpfiles translated 2003-10-05 21:12:23 +00:00
rkingdon 2e217fcfc1 New strings for improved resubmission handling. 2003-10-05 19:02:16 +00:00
rkingdon 12fbf6995e Version 2003100200: improved handling of resubmissions (new field added to workshop_assessments) 2003-10-05 19:00:43 +00:00
moodler d8152d04c0 Language direction is now set in the language file, rather than
as a site-level setting.  This currently only affects Arabic but
will affect Hebrew later and maybe others.
2003-10-05 14:05:57 +00:00
moodler eed655faf2 Add default text direction for English (and most other languages) 2003-10-05 13:44:07 +00:00
moodler 2b128e1979 Add direction for Arabic 2003-10-05 13:43:05 +00:00
giro123 c1d075a0ba *** empty log message *** 2003-10-03 19:03:35 +00:00
giro123 26550bcf4a No traslated yet 2003-10-02 16:52:24 +00:00
giro123 cdaaf794b1 No traslated yet 2003-10-02 16:28:47 +00:00
carlesbellver f6a4021073 *** empty log message *** 2003-10-02 08:15:00 +00:00
carlesbellver dcac5b4fbb *** empty log message *** 2003-10-02 06:45:27 +00:00
moodler 399018a07e Minor fix 2003-10-01 19:03:04 +00:00
moodler ed3979a3dc Style sheet (main one is in /doc ... other one is just useful for editing) 2003-10-01 18:01:34 +00:00
moodler ee8b1abe65 First round clean up of the docs
- new Coding Guidelines
  - new Philosophy page
  - new dedicated styles sheet for all pages
  - better table of contents in left frame
  - source fixups all over

The styles are very boring - I'll work on that next time!
Also, we'll get David's optimisation page and a student manual in there.
2003-10-01 18:00:41 +00:00
rkingdon ec47220e87 Adding "weight", fixed bug #799 2003-10-01 16:54:22 +00:00
rkingdon e7a4d829a8 Replace Literal string "Weight": fixes bug #799 2003-10-01 16:50:42 +00:00
carlesbellver bd20496911 *** empty log message *** 2003-10-01 16:11:37 +00:00
willcast b764feaa29 - Exported entries with attachments are now properly shown everywhere. 2003-10-01 01:35:45 +00:00
giro123 9c131dd61f No traslated yet 2003-09-30 22:18:14 +00:00
giro123 26859ced08 No traslated yet 2003-09-30 15:52:42 +00:00
mits 7c897e49b6 New translation. 2003-09-30 14:08:18 +00:00
moodler 927910f190 Changed Excel library and a few names. 2003-09-30 13:36:25 +00:00
moodler 7631d9c355 Goodbye old library! Replaced by moodle/lib/excel 2003-09-30 13:24:23 +00:00
moodler 329cbe682b Excel report now uses the new library. Conversion by Russell Jungwirth - thanks! 2003-09-30 13:23:05 +00:00
moodler 768f85c43d Excel reports now use the new libraray ... code by Russell Jungwirth - thanks! 2003-09-30 13:18:09 +00:00
stronk7 5e0f9e613a Bug 801 reopened. Problem occur when adding a new activity to a hidden
section, it's visibility defaults to 1.
Now, default visibility is "inherited" from the section visibility.
2003-09-30 12:28:22 +00:00
stronk7 866d33df9b Added to avoid one notice when no news exist !! 2003-09-30 12:25:11 +00:00
bobopinna d9170c87c1 New from Moodle1.2develop 2003-09-30 09:01:10 +00:00
bobopinna cc25b5ef9f Second step of general revision 2003-09-30 08:57:32 +00:00
willcast 703f296be2 - Multiwords concepts are now shown as a single link when they are dinymically linked.
KNOWN BUG: When a concept is contained inside another concept (i.e. HOUSE and DOLL HOUSE) only the smaller concept is shown. Any help would be appreciated.
2003-09-30 04:13:33 +00:00
willcast 4f5c5e11a5 - Multiwords concepts are now shown as a single link when they are dinymically linked.
KNOWN BUG: When a concept is contained inside another concept (i.e. HOUSE and DOLL HOUSE) only the smaller concept is shown. Any help would be appreciated.
2003-09-30 04:01:34 +00:00
les_kopari 99d83573a1 Test inserts updated for new column. 2003-09-30 04:00:18 +00:00
les_kopari eca7d6df6e Truncated names to < 30 chars for table, sequence and trigger. 2003-09-30 03:55:40 +00:00
willcast de53b9ac25 - Duplicated entries are now shown together when a dynamic link is clicked on. 2003-09-30 02:17:09 +00:00
stronk7 d8cb66a846 Included new format for glossary display "Encyclopedia" 2003-09-29 21:37:54 +00:00
stronk7 f4e08011ad Included new format for glossary display "Enciclopedia" 2003-09-29 21:25:59 +00:00
adamtpaw 988e91df6b Time format changed to 24 hour. 2003-09-29 20:51:43 +00:00
willcast 66aff5e665 *** empty log message *** 2003-09-29 19:14:14 +00:00
stronk7 1f32209ef1 Now the module template includes the XXXX_get_participants()
function too (in standard area). See bug 807 and 721.
2003-09-29 18:14:23 +00:00
willcast 466ea2349a - Implementing output text filters for glossary entries
dynalink.php::glossary_dynamic_link($courseid, $text, $glossaryid = NULL)
2003-09-29 17:45:42 +00:00
stronk7 0585509135 Simply, move the XXXX_get_participants() function from
bottom to the common function area.
See bug 807
2003-09-29 15:27:30 +00:00
willcast 3122e8f391 - Not Categorized is now the default view for category tab. 2003-09-29 13:44:07 +00:00
moodler 60c3f4ed84 Updates to French from nicolas@martignoni.net 2003-09-29 10:23:16 +00:00
moodler 9313053d8c Fixed typo on sourceglossaryid line 2003-09-29 10:06:03 +00:00
willcast ad58adac10 - Exported entries are now linked instead of copied to the main glossary.
- Short tags are gone.
- Little changes in ES language.
2003-09-29 03:06:30 +00:00
koenr e75547eb14 adjusted title to index.htm 2003-09-28 22:40:06 +00:00
koenr 655841d3a1 updated 2003-09-28 22:38:49 +00:00
koenr 08bfb7fe27 Corrected minor errors 2003-09-28 22:35:33 +00:00
koenr 0d1a280055 Translated by Koen Roggemans 2003-09-28 22:34:46 +00:00
stronk7 ddd0f4ef09 Now the JumpMenu is showed when listing activities of this module.
See Bug 803
2003-09-28 16:53:17 +00:00
stronk7 383b5c993c Take out CR+LF is some files.
Now, when listing activities, entries are dimmed if they are hidden
(teacher view). See bug 802.
2003-09-28 16:29:32 +00:00
moodler d85ce97e99 Getting there ... still working on it. 2003-09-28 15:56:58 +00:00
moodler d061d88381 MOved quiz_get_participants from the bottom to the standard functions area 2003-09-28 14:57:16 +00:00
stronk7 9ab344eebc Now, when listing activities, entries are dimmed if they are hidden
(teacher view). See bug 802.
2003-09-28 10:57:22 +00:00
jungwirr ea5ae1a70f changed icon per martin's suggestion 2003-09-27 20:40:41 +00:00
giro123 1a2a727fd6 *** empty log message *** 2003-09-27 16:56:29 +00:00
moodler 71c960d5ac Don't print city/country if there aren't any 2003-09-27 14:50:45 +00:00
moodler e02eea80e9 Changes from Mad Alex to allow better error reporting when
adding or updating modules.

See: http://moodle.org/mod/forum/discuss.php?d=2738

If a moderr.html file exists in the module, it is shown.

If a string is returned, it's shown.

Otherwise it works as before.
2003-09-27 14:06:09 +00:00
moodler 65a3ef30c9 Add slahses to raw strings before insertion into database 2003-09-27 13:56:55 +00:00
moodler 834f1c7f6f More tiny modifications to forum post headers (they now can wrap) 2003-09-27 06:25:13 +00:00
moodler 6f4bfe956d Slightly smaller font on by line for forum posts 2003-09-27 06:18:00 +00:00
rkingdon 93dcde0e53 Recent Activity fixed; Student names removed from emails. 2003-09-27 00:10:38 +00:00
rkingdon dfed3275e4 Added strings for Recent Activity 2003-09-27 00:07:04 +00:00
giro123 9759cb2cfb *** empty log message *** 2003-09-26 18:24:29 +00:00
bobopinna 55522afd04 Filled new fields 2003-09-26 13:17:59 +00:00
bobopinna e83068c4eb First step of general revision 2003-09-26 12:12:55 +00:00
moodler aa3eb05096 When getting a list of countries, check the parent language if necessary. 2003-09-26 08:21:11 +00:00
moodler 5833a6c8eb The list of countries has finally been moved into the language packs
so it can be translated.

There is now a new function get_list_of_countries() which will return a
sorted array of countries in the best current language.

get_string("AU", "countries")   will also work if needed
2003-09-26 08:04:48 +00:00
moodler ffe242df4d Attendance now uses the main Moodle version of the Excel library 2003-09-26 04:27:53 +00:00
moodler fdf4b0c1bb Upgraded gradebook to use the new Excel library.
Most of these changes are from Russell Jungwirth - thanks!

I also moved the download buttons to the top - better for BIG classes.
2003-09-26 04:19:21 +00:00
moodler 8b1fb0c66a Adding a new system for producing Excel documents that are a little
more compatible with non-Excel spreadsheets.  It also has more features
than the old system that we might take advantage of later.
2003-09-26 04:18:02 +00:00
jungwirr ec0ce75f90 updated view to show extra information re: grading, dynamic section,
automation based on logs.
2003-09-25 23:09:28 +00:00
jungwirr 29bd1e46c5 Added grading support for attendance - including settings and database
fields.

Cleaned up some function names in lib to proper naming conventions.
2003-09-25 22:47:11 +00:00
stronk7 7b6d108076 Fixed small error in overallocation field !! :-) 2003-09-25 19:40:25 +00:00
stronk7 58fb571d4d Now autoattend field is supported in backup/restore.
Ciao.
2003-09-25 19:38:28 +00:00
rkingdon 5c32d7258d Addition of the overallocation field to the workshop table. 2003-09-25 19:14:14 +00:00
jungwirr eab709a095 Added automatic attendance logging based on date and any activity by
student on that day.  NOTE - cron must be running for this to work
properly

Modified multi-page views to use arrows instead of words, added a first
page and last page link as well.  Cleaned up that nav menu a bit as well.
2003-09-25 18:54:18 +00:00
rkingdon 5edceb5b79 Changes to handling of peer assessments allocation; over allocation
option added; new assessment phase added; options added to control the
length of the league table and the display of name in the league table.
2003-09-25 17:32:58 +00:00
rkingdon 076a08c58d One missing help file added; two new help files added 2003-09-25 17:28:55 +00:00
rkingdon 87d37868d1 New Assessment Phase added. 2003-09-25 17:27:02 +00:00
rkingdon e3153bb9bf Some new strings for over allocation; the new phase, hiding names and
the league table.
2003-09-25 17:25:47 +00:00
adamtpaw 24d80a24d1 Fixed problems slash before vars 2003-09-25 10:03:51 +00:00
les_kopari ff74d85283 Initial add for Oracle. 2003-09-25 02:11:31 +00:00
les_kopari 39cb14779b Initial add for Oracle. 2003-09-25 01:11:22 +00:00
les_kopari 17ae02e5d6 Initial add for Oracle...does nothing. 2003-09-24 23:20:58 +00:00
les_kopari c5c71888bc Sorry...brainphart...corrected glossary to journal. 2003-09-24 23:15:41 +00:00
les_kopari 861a1b96bc Initial add for Oracle...does nothing. 2003-09-24 23:09:49 +00:00
les_kopari 941d835248 Added new columns and tables, but need resolution on table names > 30 in length, including mdl_glossary_entries_categories. 2003-09-24 22:46:27 +00:00
giro123 eb57630381 *** empty log message *** 2003-09-24 21:28:29 +00:00
jungwirr bff1d71664 removed demo file from library 2003-09-24 19:11:14 +00:00
jungwirr 275b48ac2b changed the excel writing library to a more fully-featured, less buggy
one.
2003-09-24 19:10:14 +00:00
jungwirr caf4bef130 added export to excel and text feature for reports. Still a bug with
export full report to excel in viewweek.php
2003-09-24 17:35:09 +00:00
jungwirr 96f63ba5cb added strings for export to excel 2003-09-24 17:32:24 +00:00
giro123 3ba9cd9c16 *** empty log message *** 2003-09-24 16:51:27 +00:00
paca70 7d53de2687 Converted files from iso-8859-1 to UTF-8 2003-09-24 16:49:10 +00:00
mits e2d5302736 New translation added. 2003-09-24 14:39:20 +00:00
les_kopari 401a81dddf Added columns indent, visible to create, inserts. 2003-09-24 02:06:34 +00:00
les_kopari 24604ce7fe Initial version for Oracle: does nothing. 2003-09-24 01:30:43 +00:00
stronk7 519ed08a44 Up abit to solve one category issue. 2003-09-23 16:51:57 +00:00
stronk7 46f1f7822d Now, to restore course category do this:
- Check if (category_id, category_name) exists.
- Check if (category_name) exists.
- Check if category_id = 1 exists.
- Create a new, initially invisible category withe the info in backup-file.

This solves a issue when restoring to a new course and category_id 1
had been removed !!
2003-09-23 16:40:44 +00:00
willcast 89d7efdb13 *** empty log message *** 2003-09-23 12:42:29 +00:00
willcast 914cb260dc - Corrections in EN language. Thanks to Przemek!
- Added a "All categories" link to the category drop-down box in Category view.
- Better display of categorized entries (more organized).
- SelectLetter, Special and All captions are now properly showed when some of the their flags are not set.
- Properly use of course module visibility (in case someone directly access the URL)
2003-09-23 12:34:47 +00:00
moodler a1f8ff87c7 Small fix to avoid warnings on empty tables 2003-09-23 12:18:27 +00:00
moodler e2b7251de9 Whoops, silly typo 2003-09-23 03:13:31 +00:00
moodler e1d1049893 Trivial change to users listing to compress display a bit 2003-09-23 03:11:36 +00:00
stronk7 57129544d1 Updated a bit (only date) 2003-09-23 00:00:00 +00:00
adamtpaw 7db8791cb5 New file 2003-09-22 21:46:17 +00:00
villate 2b696934bc Included a few missing variables. 2003-09-22 18:02:04 +00:00
villate dcfb88a70a Replace "Mova" by "Mude" 2003-09-22 17:18:26 +00:00
mits 5afc5272f5 Some new translations added. 2003-09-22 16:12:55 +00:00
moodler 0a660b03e0 Fixed a NASTY little bug that sometimes occurred when
re-grading quizzes with random questions in them.

(everyone got set to zero)
2003-09-22 16:03:30 +00:00
stronk7 543e1c58b5 Take off one notice when there is no news in a course... 2003-09-22 14:58:46 +00:00
moodler ecac660cd6 Use the new is_internal_auth function 2003-09-22 14:01:45 +00:00
moodler ba7166c377 Added is_internal_auth() function to quickly identify internal authentication 2003-09-22 13:58:20 +00:00
moodler 9f798bff9f Fixed bug when main admin was editing externally-defined accounts
(the username/password was editable)
2003-09-22 13:25:27 +00:00
willcast 2e26533562 *** empty log message *** 2003-09-22 12:35:13 +00:00
bobopinna b138512178 Updated Moodle 1.2develop 2003-09-22 10:06:43 +00:00
stronk7 bd96236e86 Solved two possibe bugs:
- Restoring to courses without section 0 (manually deleted).
    - Restoring to sections without mods and null values in its sequence field.
Thanks to Janne Mikkonen...
2003-09-22 08:30:22 +00:00
giro123 25b19994cc *** empty log message *** 2003-09-22 06:27:10 +00:00
stronk7 86db7a137d Now glossary categories are inbackup/restore too !!
Not tested !!
2003-09-22 00:06:51 +00:00
stronk7 0eb61c5e87 Some cosmetical updates plus one error selecting glossary_categories_entries
solved. No backup is working ok... I think.
2003-09-21 23:40:42 +00:00
willcast 615453c9c5 *** empty log message *** 2003-09-21 23:40:00 +00:00
willcast 71009e400d *** empty log message *** 2003-09-21 23:34:21 +00:00
stronk7 50164ebaf9 Fixed small error 2003-09-21 23:07:18 +00:00
stronk7 3f46ed14b5 No restoring categories, but working again. 2003-09-21 22:43:07 +00:00
stronk7 626aab5d67 Now, the "edited" field is included in backup/restore too. 2003-09-21 20:45:46 +00:00
adamtpaw 540fa20b31 Info about maintener and contributors 2003-09-21 19:55:07 +00:00
willcast aa1ce48512 - Backup of categories and its entries
- Working on the restore process... Eloy will gives me a hand this (hopefully!)
2003-09-21 18:09:54 +00:00
jungwirr 5b42a6a893 added field I fergot about when creating the update code. duhrrr. 2003-09-21 17:40:12 +00:00
willcast fb443f1acf - Now the entries could be categorized.
- Any entry could belongs to many categories
- Improved main page and add entry look.
- Added PostgreSQL7 squema (Thanks Janne Mikkonen!)
- Deleting entries also delete its attachments if any.
2003-09-21 17:08:41 +00:00
moodler e4576482d5 Robustness on an optional variable 2003-09-21 16:35:49 +00:00
moodler 66a51452d9 Changes from Mad Alex and Gustav Delius:
- make more of the HTML into XHTML
  - add a $usexml parameter to print_header that sets up the page as XML
    (in the first case, for MathML)
2003-09-21 15:45:24 +00:00
moodler 8bb0899949 Some improved XHTML 2003-09-21 15:32:25 +00:00
adamtpaw c18aebd06d Translation of Survey module 2003-09-21 10:58:23 +00:00
adamtpaw dde9e6ab4c Translation of Journal 2003-09-20 20:02:20 +00:00
adamtpaw 9c2d9968d7 Traltaion of resource module 2003-09-20 19:58:29 +00:00
stronk7 3bd4de22f5 Changed !empty to isset to avoid warnings. 2003-09-20 17:33:55 +00:00
stronk7 2832badf38 Added one check to avoid some notices in make_categories_list().
Commented in Moodle's forum: http://moodle.org/mod/forum/discuss.php?d=2627
2003-09-20 17:08:45 +00:00
moodler a9a070e0fd Make the "guest allowed" icon separate from the user icon. 2003-09-20 06:11:39 +00:00
moodler 30bacddc59 Fixed user display with less than 20 students 2003-09-20 05:19:02 +00:00
moodler 0d5c3f158d Fixed up Adam's tags again 2003-09-20 03:27:33 +00:00
jungwirr 254989f151 fixed a default for the 'presentshort' string 2003-09-19 23:29:14 +00:00
adamtpaw ceb8ca87af some new filesCVS: ---------------------------------------------------------------------- 2003-09-19 19:27:03 +00:00
adamtpaw 95371d813b Few new files 2003-09-19 19:23:14 +00:00
adamtpaw adafc950c1 "<? " => "<php? 2003-09-19 19:12:05 +00:00
jungwirr 028776ce07 added config.html 2003-09-19 15:43:21 +00:00
moodler 35b8e7c28d Database needs prefix 2003-09-19 11:58:24 +00:00
moodler 489b291962 When searching users don't use "LIKE" for all databases. 2003-09-19 08:33:27 +00:00
jungwirr cddc26f6fb Added preference to allow for default attendance status for unedited
rolls.  (it used to be just 'present' now it can be any of the three.
2003-09-19 04:24:28 +00:00
jungwirr 233c877c05 added new strings for attendance status preference 2003-09-19 04:22:11 +00:00
willcast 06d94a5228 - Initial changes to categorize the entries..
- A new function in lib that perhaps could be used in other modules:
   print_tabbed_table_start and print_tabbed_table_end
2003-09-18 23:53:05 +00:00
willcast 0a855df8f0 - Initial changes to categorize the entries..
- A new function in lib that perhaps could be used in other modules:
   print_tabbed_table_start and print_tabbed_table_end
2003-09-18 23:36:06 +00:00
stronk7 0249828cf9 Now restore button is always showed here too !!
Same behaviour than the restore link in main page.
(automatically creates backupdata dir)
Closed bug #741
2003-09-18 21:58:04 +00:00
jungwirr 8be3ac4473 updated to reflect changes in the module 2003-09-18 21:25:21 +00:00
jungwirr 5dc088851c viewweek.php:
Added a report to view attendance rolls by week instead of all or one -

Updated view.php and viewall.php to reflect these options as well.
2003-09-18 21:23:41 +00:00
stronk7 1becf68da2 Small typo :-) 2003-09-18 19:28:05 +00:00
stronk7 bb5eb662d0 Labels, attendances and glosaries finished.
Updated a bit info in STATUS.txt
2003-09-18 18:52:40 +00:00
stronk7 d1a551a11a Now attendance module is in backup/restore too !!
Please test.
2003-09-18 18:41:15 +00:00
stronk7 5735794924 Added attendace_get_participants(). Needed to implement
backup & restore.
2003-09-18 18:08:49 +00:00
willcast 2cc4c0b4bf - When guest or students search entries, now they are correctly displayed. 2003-09-18 17:57:31 +00:00
stronk7 3f6cc68f6a Now glossaries are included too.
And backup filename is editable.
2003-09-18 17:48:24 +00:00
stronk7 11db6f92a2 Now more characters are replaced in the backup filename.
And it's editable in the backup proccess, too.
Bug #763 closed.
2003-09-18 17:43:52 +00:00
moodler 45d525422e Somehow the version went down ... bumping it up again! 2003-09-18 17:03:40 +00:00
moodler dd301fb595 Bump 2003-09-18 17:01:27 +00:00
willcast 868cb96a47 - When guest or students search entries, now they are correctly displayed. 2003-09-18 15:54:02 +00:00
willcast 1edaf3f6f5 - When guest or students search entries, now they are correctly displayed. 2003-09-18 15:49:52 +00:00
moodler df19d0d912 Updates to dates 2003-09-18 14:41:45 +00:00
willcast 6a22879b41 - When guest or students search entries, now they are correctly displayed. 2003-09-18 14:18:04 +00:00
giro123 8202a36a21 *** empty log message *** 2003-09-18 13:59:20 +00:00
thepurpleblob 3b51e7816f Updated to reflect change in quote handling, and to document inline
file linking (which was in code but not in help)
2003-09-18 12:57:49 +00:00
thepurpleblob 299665b644 Changed replacement logic for quotes (") as some versions of Micro$oft's
(so called) browser are buggy and sometimes ignore <p> tags.
2003-09-18 12:52:14 +00:00
moodler 160e811553 Don't grab unconfirmed users in user listing 2003-09-18 11:51:05 +00:00
moodler 7a1ade1b78 Make get_course_students backward compatible 2003-09-18 04:50:22 +00:00
moodler 4969ad7400 First attempt at proper paging for the user page.
Still needs some work ...
2003-09-18 04:46:34 +00:00
moodler 7c930c46b0 Updates from Paula 2003-09-18 03:35:51 +00:00
jungwirr 4f96d7f45e Finished first version of add.php - to add multiple attendance instances
at the same time.
2003-09-17 23:46:53 +00:00
stronk7 2fbd1b81d8 Now restoring glossaries is included too !!
Please, test it !!
2003-09-17 21:27:13 +00:00
stronk7 7c0a8a1ab6 Some fields missing in backup. Fixed. 2003-09-17 21:07:20 +00:00
giro123 3af1df1670 *** empty log message *** 2003-09-17 17:04:58 +00:00
giro123 eb53588cdb *** empty log message *** 2003-09-17 16:50:28 +00:00
jungwirr 8bc37becbc just some more strings for new functionality. 2003-09-17 14:40:38 +00:00
jungwirr 7cab0ba37c fixed bugs in view.php, mod.html, viewall.php
added add.php for adding mutiple instances at once - not nearly done yet!
2003-09-17 14:37:42 +00:00
moodler fa5a5b5295 Forums in section 0 (top section) now get combined in the
"General Forums" listing on the Forums list
2003-09-17 06:20:25 +00:00
willcast cd564e5dfc - Testing new permissions... 2003-09-17 01:56:56 +00:00
moodler 6ecf2e4c87 Remove $PHP_SELF 2003-09-17 01:33:12 +00:00
willcast c3e01ed20a *** empty log message *** 2003-09-17 00:21:00 +00:00
stronk7 46ea6d74da Now entries attachments are in backup too. This module is slighty
different because when "no user info" is selected, teacher entries are
exported so, instead of copying all the moddata/glossary dir (as other
modules), files are copied selectively !!
2003-09-16 21:45:50 +00:00
stronk7 b79e51b46c Will is having problems, so I upload this... 2003-09-16 20:24:02 +00:00
willcast e179048ec1 - Display format of entries is now modular.
- Entries can have an optional file
- English help files.
- Now the alphabet is a language string so it is now usable in other languages.

KNOWN BUGS:
- It does not backup nor restore the attached files of the entries.
2003-09-16 18:51:40 +00:00
mits 83985ddaa6 New translation added. 2003-09-16 18:24:56 +00:00
les_kopari 61323671b7 Oracle version 2003-09-16 17:23:27 +00:00
villate 4e0e093696 Some language improvements 2003-09-16 14:07:14 +00:00
moodler dc158ece12 Bump! 2003-09-16 07:24:14 +00:00
moodler ce45515e7d Err ... whose idea was it to cache the strings in forum_make_mail_post? :-) 2003-09-16 06:35:37 +00:00
moodler fdfc6269ef Backupdata is now always created if it is needed.
Navigation is a little neater (no longer puts a link on the current folder)
2003-09-16 06:15:01 +00:00
moodler ffc69cd31d Move all the activity editing buttons back on the end of the activity name 2003-09-16 05:48:09 +00:00
moodler 872d7f598c New module Attendance, by Russell Jungwirth. 2003-09-16 05:33:54 +00:00
moodler 48769c6e2d Language file for new Attendance module, by Russell Jungwirth 2003-09-16 05:32:16 +00:00
moodler 0784202319 New Glossary module, version 0.1 - by Williams Castillo! 2003-09-16 03:07:21 +00:00
moodler 20e62af383 Spanish language files for new Glossary module 2003-09-16 03:06:10 +00:00
moodler 8820896338 Language files for Glossary module - help files in Spanish still! 2003-09-16 03:04:32 +00:00
moodler 2e2e71a8da New feature: "Show Parent" on all posts will take you to to the parent
of any given post.  Detects threaded mode and behaves a bit differently
though intuitively.
2003-09-16 02:42:22 +00:00
moodler ab2df10cc8 Hide labels from nav menu 2003-09-15 11:59:15 +00:00
moodler da23d41a1f FIxed some PHP tags and empty strings 2003-09-15 02:29:20 +00:00
les_kopari b36e7694a8 Oracle translation of mySQL module for label. 2003-09-14 23:41:22 +00:00
stronk7 0611af101d Now, "needed" users are included in backup/restore when
"course users" are selected.  This uses the xxxx_get_participants()
function in every module.
This solves an issue about info in modules belonging to
unenrolled users (Bug #692 closed).
Mantain compatibility with old backups (1.1 and 1.1.1).
Updated version to "1.2 development".
Included support to "label" module (by Martin)
2003-09-14 21:43:34 +00:00
koenr 623d403c66 Some Englisch text was stil in it 2003-09-14 21:27:42 +00:00
koenr 31f5cb39d2 leraars replaced with leraren 2003-09-14 21:16:56 +00:00
adamtpaw 0cdc9c53ea First translation of Workshop module 2003-09-14 21:14:02 +00:00
moodler 875ea7db1b Removed typo .php 2003-09-14 18:56:45 +00:00
moodler 809e6508db Hide labels on topic pages 2003-09-14 18:51:52 +00:00
moodler 5704a98da7 Some docs for PostgreSQL sockets users (see bug #749) 2003-09-14 17:50:07 +00:00
moodler 30222590f7 When adding a new column, set all the default values manually 2003-09-14 17:39:18 +00:00
moodler 567df7420a Reduced size of table cells ... might need to work on editing buttons 2003-09-14 17:20:40 +00:00
moodler bf1241ad96 Some tidying up of the editing icons 2003-09-14 16:43:10 +00:00
moodler 892da6a051 Strings to move activities left and right 2003-09-14 16:34:36 +00:00
moodler aac94fd0cc New field on course_modules called "indent" ... this is an integer
that tells us how far to indent the activity when it is displayed.

This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc

Backup/restore is updated as well.

There is also a bit more robustness in course/mod.php
2003-09-14 16:31:33 +00:00
stronk7 2b9f062552 Added "graphical structure".
Added label_get_participants() function.
2003-09-14 15:47:36 +00:00
moodler 27a026c7e8 Backupo / Restore for labels (untested as yet) 2003-09-14 15:20:43 +00:00
moodler a90fb36bd2 Added a course field (whoops!) and edited backuplib.php and restorelib.php 2003-09-14 15:20:09 +00:00
moodler 2c5c3e62a7 New module: Label.
This is a sort of "dummy" activity that allows HTML to be placed
anywhere in the course sections ...
2003-09-14 12:30:09 +00:00
moodler c9f6251ea8 Two things are in this checkin:
1) Support for the new "label" module has been added.  It's unfortunate
   about having to make these exceptions but this was the overall cleanest
   way I could think of.

2) All local calculation of pixpath and modpixpath has been removed and
   replaced with a single calculation which is done in setup.php and
   stored in $CFG->pixpath and #CFG->modpixpath.  All graphics should
   use these variables so that themes can easily override them.
2003-09-14 12:25:16 +00:00
moodler c7ce6d80a3 Used the wrong function to display the message (Notify, not Notice) 2003-09-14 12:22:13 +00:00
moodler ad410dd19b New help files for label module 2003-09-14 12:20:32 +00:00
moodler f9efae0e40 Put rating setup last because it's optional 2003-09-14 09:36:28 +00:00
moodler 18a97fd84d Some early phpdoc-style documentation (thanks to Russell Jungwirth!)
Fixes for use of MySQL-only CONCAT function on other databases
2003-09-14 04:04:15 +00:00
adamtpaw 4382b8f2e3 update for Moodle 1.1 2003-09-14 00:25:59 +00:00
moodler 07bc24351d Show restore icon all the time, even if there are no backups. 2003-09-13 12:59:39 +00:00
moodler cabcedda58 Time to move on! 2003-09-13 11:59:41 +00:00
moodler bb9cf93d21 Frontpage directories to ignore are called _vti_cnf .. not vti_cnf 2003-09-13 08:19:42 +00:00
les_kopari 96c1e116e6 Oracle tables, etc converted from mysql, plus test transactions. 2003-09-13 08:05:21 +00:00
les_kopari 1930ab3694 Oracle tables, etc converted from mysql. 2003-09-13 07:43:55 +00:00
moodler 9ac796a68f PLace included metadata lines above the <title> 2003-09-13 07:34:20 +00:00
mits 2237c10c84 New translation added, and polished some. 2003-09-12 10:33:58 +00:00
koenr 914b06de0a Translated by Koen Roggemans 2003-09-12 05:31:47 +00:00
koenr d81a77dddf Translated files in index; alphabetical order 2003-09-12 05:30:51 +00:00
moodler 04cc8f5c73 1.1.1 - now with less short_tags! 2003-09-11 14:02:29 +00:00
moodler 8bd0a875e0 Fixed some short tags 2003-09-11 13:53:25 +00:00
moodler 7eb7746d2d FIxed some short tags 2003-09-11 13:51:32 +00:00
moodler c884816180 Short tags 2003-09-11 13:50:02 +00:00
moodler f500dda15b Some short tags 2003-09-11 13:24:07 +00:00
moodler a2058a046c Removed short tags 2003-09-11 13:23:11 +00:00
moodler 145cb8f9ab More short tags 2003-09-11 13:21:56 +00:00
moodler 6b77de531b More short tags not found by the script :-( :-( 2003-09-11 12:43:24 +00:00
moodler 9dbdc98e6e Doh! No need to check for short_tags any more. 2003-09-11 12:09:50 +00:00
mits 81c017d199 Character code fixed shift_jis to EUC-JP 2003-09-11 04:11:43 +00:00
moodler e646a2568f Fixed a little bug that sometimes shows with empty categories 2003-09-10 17:36:15 +00:00
moodler 5fe1ba3a79 Updated 2003-09-10 16:55:22 +00:00
moodler b79979b025 Actually makes sense now 2003-09-10 16:52:01 +00:00
moodler 2e0e6a2574 Email 2003-09-10 16:48:52 +00:00
moodler a0c44f4696 Put something in it 2003-09-10 16:37:29 +00:00
moodler 2d34be8c39 Moved index.html 2003-09-10 16:23:02 +00:00
moodler 8748278c60 FIxed widths properly 2003-09-10 14:06:07 +00:00
moodler d8d7a2d107 Fixed some typos when defining tables 2003-09-10 14:00:18 +00:00
moodler 70e51cf34f Fixed a missing PostgreSQL field that had never been added! 2003-09-10 13:53:03 +00:00
moodler e71f132dc8 Added missing showrecent field to PostgreSQL 2003-09-10 13:48:19 +00:00
moodler 88487dea6d One GROUP BY -> DISTINCT 2003-09-10 13:28:27 +00:00
moodler 0db8b2e2b7 Some fixes for PostgreSQL (use DISTINCT) 2003-09-10 13:17:13 +00:00
moodler 2ab750436f Mentioned tweak about creating missing language files 2003-09-10 12:52:40 +00:00
moodler d99a684707 This is pretty much it - I'm starting packaging soon. 2003-09-10 12:51:26 +00:00
moodler 11863e8663 Try to create missing string files if possible (thanks Gustav) 2003-09-10 12:37:59 +00:00
moodler 6f4fb1cb92 No longer needed 2003-09-10 12:31:29 +00:00
moodler 4c4460b0a1 Updates from Radoslav Kalakay 2003-09-10 12:24:03 +00:00
moodler ebe8ddc1d9 Some slight improvement in aligning icons 2003-09-10 08:53:43 +00:00
moodler d7bdc08772 Admin self-edit fix and quiz no-grade fix 2003-09-10 08:25:08 +00:00
moodler 081bf74fb1 All grades are hidden now when zero grade is chosen ... even the marks.
This mode is only really useful when feedback is turned on.
2003-09-10 08:22:16 +00:00
moodler 795613884a FIxed locale 2003-09-10 06:44:48 +00:00
moodler f893d4b0f1 Updates in Thai for 1.1 2003-09-10 06:17:09 +00:00
moodler ed1daaa9d7 Quiz grades can be set to zero.
If so, then grades are not shown to students, nor is a column added to
the gradebook (although they are still stored and calculated internally)
2003-09-10 05:02:39 +00:00
anvergara 5721d84f89 *** empty log message *** 2003-09-09 20:48:21 +00:00
anvergara d0a0612158 Removing README.txt 2003-09-09 20:37:48 +00:00
moodler f03af7f3c1 Allow the primary admin to edit their own account even when external
authentication is being used.
2003-09-09 17:40:07 +00:00
moodler ccf28b7362 short_tags no longer necessary 2003-09-09 16:33:56 +00:00
villate 5293358977 Gives credit to contributors 2003-09-09 15:53:17 +00:00
villate a4781b2ebe A few typos corrected 2003-09-09 15:50:13 +00:00
villate 9b1eb94c2c Translation contributed by Paulo Figueira 2003-09-09 15:26:55 +00:00
villate f75eba7660 Initial translation 2003-09-09 15:13:21 +00:00
moodler f031cd1c7e More details in the README.txt 2003-09-09 14:39:09 +00:00
giro123 c77506a524 *** empty log message *** 2003-09-09 14:35:26 +00:00
villate 1f638036e2 A few changes plus sume updates contributed by Paulo Figueira 2003-09-09 13:44:11 +00:00
moodler 66b47098dd Don't need these anymore 2003-09-09 13:26:44 +00:00
moodler 8aeace9c9b Don't need this font 2003-09-09 13:25:06 +00:00
moodler c559bcf6f0 Fixed some PHP short_tags 2003-09-09 12:34:51 +00:00
moodler c2251033bb Fixed some short-tags 2003-09-09 12:11:12 +00:00
moodler 970099c973 print an error if data isn't there 2003-09-09 12:10:27 +00:00
moodler 6f3da5622d New string "errorwhenconfirming" used in login/confirm.php in the very
rare case that a URL is truncated
2003-09-09 11:50:46 +00:00
moodler 5bcdcb3327 Added some stuff for Moodle 1.1.1 2003-09-09 09:23:44 +00:00
moodler 4ec736daf8 About time for a bump! 2003-09-09 09:05:02 +00:00
moodler 048e638c3d Removed the language credits in favour of the new Language page 2003-09-09 09:03:51 +00:00
moodler 4c48acf01b Fixed some short PHP tags 2003-09-09 08:43:27 +00:00
moodler 76eac7a58d FIxed some short PHP tags 2003-09-09 08:38:24 +00:00
moodler e4027ac982 Use a shorter course search page on front page, for small screens 2003-09-09 08:37:48 +00:00
moodler 16b8fe5b7f Fixed some short tags 2003-09-09 05:37:39 +00:00
moodler 5b16ca8718 Fixed some short PHP tags 2003-09-09 04:15:12 +00:00
moodler b626680ead Removed some short PHP tags 2003-09-09 04:02:55 +00:00
moodler 2b09e37782 Fixes for obfuscate_text() when printing emails with numbers in them.
(Patch from Zbigniew Fiedorowicz  - thanks)
2003-09-09 02:22:36 +00:00
anvergara c1e5e14a1c Removing upgrade.html 2003-09-08 22:19:39 +00:00
anvergara 47c0365faa Removing teacher.html 2003-09-08 22:17:26 +00:00
anvergara 8177e146c1 Removing release.html 2003-09-08 22:15:22 +00:00
anvergara b086e7eb09 Removing licence.html 2003-09-08 22:12:58 +00:00
anvergara ff5ec6273c Removing install.html 2003-09-08 22:09:12 +00:00
anvergara e5e58ff155 Removing future.html 2003-09-08 22:06:54 +00:00
anvergara 7abf2dab60 Removing files.php 2003-09-08 22:04:45 +00:00
anvergara ea1e5b6d31 Removing features.html 2003-09-08 22:01:54 +00:00
anvergara 594fec46f0 Removing faq.html 2003-09-08 21:59:28 +00:00
anvergara ea2d7b91cc Removing developer.html 2003-09-08 21:57:06 +00:00
anvergara 1bb313b73d Removing cvs.html 2003-09-08 21:55:00 +00:00
koenr e9992f0acd minor error corrected 2003-09-08 21:53:41 +00:00
koenr 1b49621b22 translated by koen roggemans 2003-09-08 21:52:41 +00:00
anvergara cae00a4680 removing background.html 2003-09-08 21:52:22 +00:00
rkingdon 42fd37e574 Fix a bug in final grades when users submit more than one piece of work
(some grades were appearing as zero); workshop_user_outline now returns
number of submissions and date of last submission.
2003-09-08 17:16:23 +00:00
moodler 266d6b75d2 Slight fix for category names (too big on IE) 2003-09-08 14:46:00 +00:00
moodler bd3ac89469 Initialized showgrades 2003-09-08 13:01:47 +00:00
moodler a8990295c1 Fixed typo "options" 2003-09-08 12:59:04 +00:00
moodler 9eabdc8d2b Missing brackets on isadmin() 2003-09-08 12:57:39 +00:00
moodler 66f6cd5cfd Fixed some variables 2003-09-08 12:56:14 +00:00
stronk7 8f8e5df146 Included workshop_get_participants() function. 2003-09-07 22:21:18 +00:00
stronk7 7be61a22e8 Included survey_get_participants() function. 2003-09-07 22:09:23 +00:00
stronk7 84caf038de Included resource_get_participants() function. 2003-09-07 22:01:47 +00:00
stronk7 eb452548f5 Included quiz_get_participants() function. 2003-09-07 21:56:46 +00:00
stronk7 b32bbab698 Modified a bit the xx_get_participants() function to avoid
non existing activities warnings.
2003-09-07 21:40:52 +00:00
stronk7 058a2215ef Included journal_get_participants() function. 2003-09-07 21:36:03 +00:00
stronk7 eaa3298b07 Included forum_get_participants() function. 2003-09-07 21:28:31 +00:00
koenr 17880f080c translated by koen roggemans 2003-09-07 21:14:34 +00:00
koenr 4a13f001d4 correcting minor changes 2003-09-07 20:01:56 +00:00
koenr eecda48591 hartstikke replaced with hartelijk 2003-09-07 19:38:29 +00:00
koenr afb0e27583 leraars replaced with leraren 2003-09-07 19:37:57 +00:00
koenr d9d8407dcc translated by Koen Roggemans 2003-09-07 18:29:48 +00:00
koenr d5125275c8 woordopmaak ontbreekt vervangen door gatentekst 2003-09-07 18:26:10 +00:00
giro123 616ddc810f *** empty log message *** 2003-09-07 18:25:01 +00:00
koenr eaa94bab78 Leraars vervangen door leraren 2003-09-07 18:24:54 +00:00
giro123 29b8fcc052 *** empty log message *** 2003-09-07 03:14:26 +00:00
giro123 385fb4e887 *** empty log message *** 2003-09-07 02:08:57 +00:00
moodler d00377f584 Added hack for guest login with seeing login page 2003-09-06 03:34:52 +00:00
adamtpaw dad848cca9 Updates and new translation 2003-09-05 19:58:01 +00:00
moodler ac61544835 Any admin can assign creators 2003-09-05 14:03:22 +00:00
adamtpaw be7d86f93f ll coorection 2003-09-05 12:38:57 +00:00
adamtpaw 41f8e33f2a drobne uzupe?nienia 2003-09-05 12:23:41 +00:00
adamtpaw da6a544fdc Uzupe?nienie i korekta 2003-09-05 12:23:01 +00:00
johncaptain 0f7c6fce4c fix typo 2003-09-05 03:09:00 +00:00
johncaptain 4fa69b22df smtphost blank addition to e-mail question 2003-09-05 03:07:05 +00:00
stronk7 8033a70237 Included choice_get_participants() function. 2003-09-04 22:18:14 +00:00
stronk7 c8c9cb7bb7 Included chat_get_participants() function. 2003-09-04 22:08:06 +00:00
moodler a4634d830d TITLEs have all tags stripped ...
Downloads have a row of percentages
2003-09-04 15:52:56 +00:00
koenr ffda99808a Translated by Koen Roggemans 2003-09-03 22:37:22 +00:00
stronk7 2bae0d446c Included assignment_get_participants() function.
Please check it before continue with other modules.
2003-09-03 22:10:51 +00:00
moodler cb29b02006 Some tweaks in the category/course display (styles mostly) 2003-09-03 15:25:08 +00:00
moodler 091ebec973 Improvements in styles for category/course listings 2003-09-03 15:23:41 +00:00
moodler f1c1b17ab5 Some small fixes to the category display:
- small numbers of courses (less than 8) are displayed in full,
    unless the creator or admin is editing.

  - course counts are now accurate when all courses are removed from
    a category
2003-09-03 14:05:31 +00:00
moodler b5d5f20380 Tweaking image placement for different browsers 2003-09-03 13:21:53 +00:00
moodler 4abbfd0889 Bump - will release 1.1.1 soon to wrap up some of these minor changes that
have gone in recently.

No big checkins please!
2003-09-03 12:30:03 +00:00
moodler b48f834cfb Some cleaning up and improvement of the course listings, especially when
courses are listed under multiple categories
2003-09-03 12:13:08 +00:00
moodler 3af6e1dbb8 Allow Course creators to see all hidden categories and courses 2003-09-03 08:29:05 +00:00
moodler 5b6a1dd3ad Invisible courses get put last on the My Courses listing 2003-09-03 08:10:02 +00:00
moodler 2962233937 Fixed a little typo on PostgreSQL code 2003-09-03 08:02:01 +00:00
rkingdon 203add24ab Tidy up the handling of "hanging" assessments. 2003-09-02 20:23:29 +00:00
moodler 8b3c82ae52 New translation: Afrikaans by riaan.de.villiers@epiuse.com 2003-09-02 07:13:15 +00:00
moodler 9f50e9a667 Typo in date calculation! 2003-09-02 02:02:14 +00:00
moodler 559573a2be Default redirection time should be zero 2003-09-02 01:28:46 +00:00
moodler 603cc2631c Redirection speed is faster (use 0), also prevents page going into IE history 2003-09-02 01:20:56 +00:00
moodler 42b76b11bd Slightly different way of doing this to avoid problems with error_reporting
not working.
2003-09-01 12:07:06 +00:00
moodler 1c109ec5b6 Move the search up closer to the top 2003-09-01 08:52:51 +00:00
moodler 2f0f0271bb Bump 2003-09-01 03:53:26 +00:00
moodler cbdb4ca067 For some reason there was a target on the delete link which pops up the list
in a new window.  Gone.
2003-08-31 06:54:39 +00:00
moodler 1c10b4c5c1 Search results link use the anchor tag rather than parent for better context 2003-08-31 06:39:06 +00:00
moodler 8bd35f870c Fixed commas 2003-08-31 05:57:17 +00:00
moodler 15ccfb296b Ouch!! Missing PostgreSQL files for chat module 2003-08-31 00:40:42 +00:00
moodler 8d282c7f09 Time to start moving on to 1.2, or possibly 1.1.1 2003-08-30 06:31:33 +00:00
moodler 521d04cf97 Stripslashes off data before adding them to current USER session record 2003-08-30 06:19:44 +00:00
adamtpaw 1845df564d Removed "de" in dates. 2003-08-29 23:25:20 +00:00
adamtpaw 809dd2724c chat help files 2003-08-29 22:07:20 +00:00
adamtpaw 210cc66648 First translation of chat module 2003-08-29 22:05:29 +00:00
adamtpaw ae99bcb9c0 small corrections 2003-08-29 22:01:51 +00:00
rkingdon 4511133418 Fix bug when deleting a submission. Very recent assessments were not
deleted. Now all assessments of the deleted submission are deleted
including the "hot" ones.
2003-08-29 17:46:31 +00:00
danielfetzer 88cc4a0400 *** empty log message *** 2003-08-29 14:50:10 +00:00
danielfetzer b49b838e2e *** empty log message *** 2003-08-29 13:36:41 +00:00
moodler 7c1624355a Robustness for some variables 2003-08-29 11:48:34 +00:00
moodler f27d50b628 Removed unnecessary line 2003-08-29 11:33:20 +00:00
moodler cd5d0d7f8e Fix for switching languages in documentation 2003-08-29 04:46:28 +00:00
moodler ec180dc349 RELEASE 1.1 2003-08-29 03:24:01 +00:00
moodler 5eadc17e55 Some tweaks from Teemu 2003-08-29 02:58:07 +00:00
moodler 755287834f Version change :-) 2003-08-29 02:52:16 +00:00
moodler fe32754d45 Tidied up the images a little bit to make them a bit more consistent 2003-08-29 02:42:01 +00:00
giro123 2882ad20f1 *** empty log message *** 2003-08-29 02:39:11 +00:00
giro123 f24a8a2214 *** empty log message *** 2003-08-29 02:31:54 +00:00
moodler 4556d6dd9f Some tweaks to mention that zlib is needed on Windows 2003-08-29 01:40:25 +00:00
moodler d5f26b070c Added some missing styles from the course listing, so that the
course and category names can be tweaked.
2003-08-29 01:31:41 +00:00
moodler 39ced832ac Questions were being created here without a stamp 2003-08-29 01:14:38 +00:00
moodler 17a23873da Fixed uniitialised variable 2003-08-29 01:03:51 +00:00
giro123 8bb6ce9ba5 *** empty log message *** 2003-08-28 20:02:00 +00:00
paca70 d150f5b476 Quick (untested) fix to make table and index creation work. 2003-08-28 18:24:00 +00:00
rkingdon f05eaa902a Addition of returnto parameter to workshop_print_assessment function to
allow return to original pages when making assessemnts; clearing
(trival) unassigned variable bug in the same function.
2003-08-28 18:19:42 +00:00
anvergara 21c1d7d630 *** empty log message *** 2003-08-28 18:15:44 +00:00
paca70 577cf8991f Fixed some typos pointed by Pasha. 2003-08-28 18:00:36 +00:00
moodler d85147ccc1 Added an index to the Workshop files!!
No translators seem to have said anything about it all this time!
2003-08-28 17:40:33 +00:00
moodler defcdaa7c7 Latest tags 2003-08-28 17:13:25 +00:00
moodler 25b6ff9d3b Default quiz category must have a stamp 2003-08-28 17:07:24 +00:00
moodler d4914c6c84 Various small fixes and improvements. Nothing too serious.
Not even 1/4 of what I wanted to do today, though.  I had a lot
of other work come in today and I've just run out of steam.  :-(

I'll tackle these docs again another time.
2003-08-28 17:00:56 +00:00
giro123 7b0de9331f *** empty log message *** 2003-08-28 16:20:40 +00:00
moodler 04319b3c1c Not quite ready, but anyone trying the Beta at this stage will probably
not need to upgrade.
2003-08-28 16:19:18 +00:00
giro123 bd778c0674 *** empty log message *** 2003-08-28 15:35:41 +00:00
moodler 42de916a91 Bump - release in 12 hours 2003-08-28 12:11:28 +00:00
moodler 46054fa873 Unfinished and unlinked, but I'll check it in for hacking on 2003-08-28 12:10:03 +00:00
moodler d09f3c80ac Initialiase $totalcount to prevent warnings 2003-08-28 11:57:21 +00:00
giro123 5218563541 *** empty log message *** 2003-08-28 03:02:04 +00:00
giro123 21260c2dfa *** empty log message *** 2003-08-28 01:30:32 +00:00
stronk7 ce3ec518ea Take out two debugs !! 2003-08-28 00:50:51 +00:00
stronk7 3b16f21626 Ready !! :-) 2003-08-28 00:50:11 +00:00
stronk7 a20fdf5275 Modificaciones de docs enviadas por David Delgado.
No he guardado en el CVS las versiones que enviadas de
los siguientes ficheros:
   - coding.html
   - release.html
   - upgrade.html
ya que unas horas antes habia una version de ellos guardada
por Claudio y no he querido machacar nada.
Las versiones de estos documentos de David Delgado se pueden
encontrar en el curso "Moodle en Espanol" en el foro de traduccion.
Envio copia de esto a los dos interesados para que se pongan
de acuerdo.
2003-08-28 00:18:17 +00:00
mits e31d2d3d26 New translation. 2003-08-27 23:27:08 +00:00
anvergara e85ca76c8c Updating to version 1.1 2003-08-27 22:57:16 +00:00
anvergara abc3a131a9 *** empty log message *** 2003-08-27 22:22:02 +00:00
giro123 8a3b54de18 *** empty log message *** 2003-08-27 19:48:41 +00:00
rkingdon 630167b908 Addition of strings needed for the scale end-ponts. 2003-08-27 18:21:09 +00:00
rkingdon 7aaf6867bd Removal of hard-wired strings in Scales. 2003-08-27 18:20:03 +00:00
rkingdon c75599f4c3 Fixed unassigned variables in function workshop_print_assignment_info 2003-08-27 17:13:03 +00:00
stronk7 202ba3902e Now STAMP fiel is supported in backup & restore.
If it exists in backup-file used, else, old search-by-name is used.
When inserting new categories, stamp is filled it it doesn't exist.
Updated version to 1.1 Beta +++ !!
2003-08-27 17:09:01 +00:00
rkingdon 1c4968eb7f New help files for teacher admin page. 2003-08-27 15:48:20 +00:00
rkingdon c257097c36 Changes to the handling of example assessments; something on Rubrics. 2003-08-27 15:43:16 +00:00
rkingdon 0ae2c35f33 Mail strings for cron. 2003-08-27 15:41:45 +00:00
rkingdon 41b12a791b Addition of Mail strings to cron routine; More help in admin page; bug
clearance.
2003-08-27 15:39:21 +00:00
anvergara 341684f537 Upgrading to version 1.1 2003-08-27 14:49:54 +00:00
moodler 7612e508c0 SOme corrections 2003-08-27 13:49:24 +00:00
moodler 11326d9d56 New French Canadian translation from Jean-Fran?ois Nadeau 2003-08-27 13:47:33 +00:00
moodler fb2ecb37b7 Tweaks when searching 2003-08-27 13:42:01 +00:00
moodler d9387950cb Little tweaks to messages 2003-08-27 13:40:26 +00:00
moodler de9cbba690 Minor change to make user searches a bit better
Next time I'll put proper paging in
2003-08-27 13:36:22 +00:00
moodler 23b4848794 Quiz categories now also have a unique stamp in them.
This is to make it easier when restoring backups,
especially when the questions are in a published
category from another course that still exists.
2003-08-27 12:53:21 +00:00
anvergara e470f0733f *** empty log message *** 2003-08-27 12:41:08 +00:00
anvergara 533be29a82 *** empty log message *** 2003-08-27 12:10:52 +00:00
moodler fa01ae8be0 FIx for the display of the help window for the current scale 2003-08-27 11:27:40 +00:00
moodler d0117715f3 Added a log display for "course use reports" 2003-08-27 09:33:12 +00:00
moodler 949cf8670c More cleanups for teacher view in particular 2003-08-27 09:03:10 +00:00
moodler d1582a1233 Replacing "view" ... what happened to it?? 2003-08-27 08:29:25 +00:00
moodler 3b10decf84 Slight tidy 2003-08-27 08:28:13 +00:00
moodler 2a0d8c5b05 Fairly radical improvement to the Journal index, putting all the
information on one page.
2003-08-27 08:13:16 +00:00
hansdezwart 7625591b3b Two more missing strings translated 2003-08-27 07:22:09 +00:00
moodler 0fbd1d3c02 Keep defaults even when reediting web links that aren't using new window 2003-08-27 07:21:48 +00:00
hansdezwart 2ff1e0d112 Deleted the .tmp files 2003-08-27 07:18:22 +00:00
hansdezwart 0c65d733ce First translation of a couple of the new help files 2003-08-27 07:08:57 +00:00
moodler 7982ad7a3d Russian update 2003-08-27 06:18:14 +00:00
moodler f4e394ef27 Added mention of Library and fixed a typo 2003-08-27 06:15:58 +00:00
moodler 27326a3eb6 Move Library parsing code into text_to_html 2003-08-27 06:08:34 +00:00
moodler 9609679b76 Bump de bump.... wooo do the bump! 2003-08-27 04:19:26 +00:00
stronk7 461da6bdb6 Now existing categories are used only if their publish
field is set to yes. Else, a new "local" category is created.
Added some lines of code to mantain old compatibility when detecting
existing questions (do it by name if the stamp is not found) and insert
the stamp too !!
Please, test.
2003-08-27 00:40:14 +00:00
anvergara ae45f779c0 Updating to 1.1 version 2003-08-26 23:55:20 +00:00
moodler bf40f9c1ef Added a hook when printing recent activity. If the Library
module is activated, then a Library function is called to print a
list of recently added pages in the library.
2003-08-26 18:45:54 +00:00
moodler a751a4e56f Added a hook to the text formatting, so that if the library module
is activated, then all Moodle text is parsed by it to have links
added to words.
2003-08-26 18:44:09 +00:00
moodler 6849648f51 Deleted error_reporting(15)! Just turn debugging on, Ray! :-) 2003-08-26 17:51:07 +00:00
moodler c81696e599 Make sure that the Site never shows up in My Courses 2003-08-26 15:55:03 +00:00
moodler 7cdcb42239 Added controls for the invisible variable teacherassignteachers which
decides whether teachers can edit teachers in their own courses.
2003-08-26 15:52:22 +00:00
thepurpleblob 0518065ed5 Removed stupid Q. and A. formatting that just confused people. 2003-08-26 14:57:35 +00:00
stronk7 095ebcdc6d Small typo :-) 2003-08-26 14:27:36 +00:00
moodler 7f12f9cdd9 'Extras' in cached course modinfo activities is now returned.
This means that Resources can now employ them on the index listing.

Specifically, Resources that are popup now popup from there too.
2003-08-26 13:47:46 +00:00
moodler 5b47275684 Plain text emails now include URLs in a nice way. Thanks to Russell Jungwirth
for the code.

Also a few docs tweaks
2003-08-26 13:18:10 +00:00
hansdezwart f6b3859c49 Filling in the missing strings 2003-08-26 13:04:30 +00:00
moodler 1ca0226071 Removed useless function 2003-08-26 12:54:50 +00:00
moodler 966d5f09fe typo in variable name for teachersassignteachers 2003-08-26 12:30:48 +00:00
moodler 9997d48051 "Source" button available on Section texts 2003-08-26 12:28:26 +00:00
moodler 4cabd35565 For students, don't search invisible forums! 2003-08-26 12:18:14 +00:00
thepurpleblob 10b1b6d59a Do not allow HTML in wiki text pages. (It causes problems) 2003-08-26 11:59:32 +00:00
hansdezwart 5e4852d9ec This was an old version that has been translated to readme.txt 2003-08-26 11:11:56 +00:00
moodler dbaf630aac Some clean up and documentation for userpix, as well as a default restriction
for admins only.
2003-08-26 09:40:58 +00:00
moodler 785e29e954 Some updates and a projected release date of August 28. 2003-08-26 09:30:25 +00:00
moodler f78a945481 New FAQ and some cleanups 2003-08-26 09:03:31 +00:00
moodler a1b2bec873 Remove half-finished oracle files 2003-08-26 07:09:14 +00:00
moodler 41586fa0ca Bump - looks pretty good now 2003-08-26 07:00:20 +00:00
moodler f0bd2aeddc More language updates for pt_br 2003-08-26 06:28:34 +00:00
moodler 16ef5e7812 Some fixes so that navmenus don't jump out of frames any more.
The navmenu function now takes a third parameter that specifies
the window to change location of (default 'self', but could be "parent" or "top")
2003-08-26 06:01:13 +00:00
moodler 2ae0cc7759 Don't bother checking for magic quotes any more 2003-08-26 03:22:40 +00:00
mits ebfde31f18 New translation. 2003-08-26 03:14:08 +00:00
mits d58bf47ad8 *** empty log message *** 2003-08-26 02:58:11 +00:00
stronk7 d04983d8a3 Now restoring workshops are working too !!
Now all is ready to be 1.1 Beta 1.
Congratulations everybody !!
Anyway, some polish must be done, friends...
2003-08-25 22:40:38 +00:00
stronk7 a34e0c96c7 Now workshops backup are included too !!
Only one step to Beta !! (workshop restore)
Tomorrow, I hope.. :-)
2003-08-25 19:58:26 +00:00
stronk7 6252f5dcd3 Now workshops backup are included too !!
Only one step to Beta !! (workshop restore)
2003-08-25 19:56:42 +00:00
hansdezwart 5c59f72ffb Readme is now translated with information about the Dutch translation and the translators. 2003-08-25 19:42:51 +00:00
moodler 138def3ead Maxlength fields 2003-08-25 17:57:39 +00:00
moodler e550e2d694 Students now see a Change Password link under admin.
Guests see *nothing* now
2003-08-25 17:53:47 +00:00
moodler 61a5e1e902 Sometimes changepassword is 0 or 1 ... so deal with that 2003-08-25 17:42:21 +00:00
moodler d9be205e79 Fixed an uninitialised variable 2003-08-25 17:30:26 +00:00
moodler 0ff42b0fc9 Fixed locale problem (being overwritten by current locale) 2003-08-25 17:30:08 +00:00
stronk7 e02ff1427e Changed comment, sorry 2003-08-25 17:24:44 +00:00
stronk7 cd6232200c Changed to support "negative" values in scale field. 2003-08-25 17:23:31 +00:00
moodler 555ab2139f Very slight change to "welcometocoursetext" ... added "if you have not
done so already" ... so it makes sense with multiple courses.
2003-08-25 16:53:29 +00:00
moodler 7cd4484090 More time formatting fixups 2003-08-25 16:41:54 +00:00
moodler 50508bb88f FIxing up the 24 hr dates again 2003-08-25 16:39:20 +00:00
moodler 487d3ae84d Removed a wrong help link 2003-08-25 16:31:20 +00:00
moodler 72bb2118b6 Fixed reports using the new scales (numerical etc) 2003-08-25 15:59:39 +00:00
moodler eb06f902f4 Undoing one of the less then brilliant changes I did earlier today to Eloy's code 2003-08-25 15:47:37 +00:00
moodler 5315b6f2f0 Added a link to the PHP info page from the admin page, and cleaned
up the PHP info page a bit by using a frame.
2003-08-25 14:56:46 +00:00
moodler ed3957808b Fixed a typo 2003-08-25 13:48:23 +00:00
moodler d6bdd9d5e9 Forum grades can now be numerical as well (like the other modules).
If so, grades in the gradebook are printed as proper numbers and
contribute to the total of the course.
2003-08-25 12:47:36 +00:00
moodler f2f564066b Some improvements to the forum editing interface to make the buttons
hide/show appropriately
2003-08-25 08:04:39 +00:00
moodler 98914efdbe New mini-feature. When choosing ratings in a forum, one can now
specify a range of dates.  Only posts within this range can be rated.
If the range isn't specified then all posts can be rated.
2003-08-25 07:39:06 +00:00
moodler 34b7a42851 A bit more info 2003-08-25 04:43:09 +00:00
moodler b1bacf9c13 Some updates on the future roadmap 2003-08-25 04:38:20 +00:00
moodler 20dc89e50d Put "Source" label after checkbox ... just in case text pushes
the box off screen
2003-08-25 03:48:09 +00:00
moodler eb94392c4b Sometimes there are no answers, so check existence first 2003-08-25 02:52:19 +00:00
moodler 5884d4e2fd Fixed some array indices 2003-08-25 02:48:09 +00:00
moodler 05c47ef78e FIxed display of ratings when they are literally "0"
Also fixed default discussion display mode
2003-08-25 02:41:25 +00:00
moodler a20c109058 Fixed a bug when displaying menus with a zero in them 2003-08-25 02:32:20 +00:00
moodler 0761d83f54 Final ratings are now calculated using rounded mean rather than median.
0.5 scores go UP.
2003-08-25 02:22:35 +00:00
moodler 830ce8241b Some fixes for robustness (make sure variables exist before using them
because it flags errors when in debug mode).

Also, when specifying array values by name use quotes around the name

 eg  $array['value'] instead of $array[value]

Finally, I changed the way user restoring works (slightly).  Before, if a
restored user was found to be a course creator or an admin, then this
status was restored.  I don't think this is a good idea - it could lead
to security problems when copying a backup from one site to another,
or if that person's status has changed since the backup was made.
I think it's best to only restore what is actually part of the course,
ie teacher or student.

If this broke anything else let me know!
2003-08-25 01:44:01 +00:00
moodler 7a3ca193d6 No need to always show the resort button 2003-08-25 01:04:11 +00:00
moodler 3695f5b487 Slight fix for displaying logs for courses starting in the future 2003-08-25 00:56:38 +00:00
stronk7 4545fc3890 Solved one condition that caused some errors in Win32 when extracting. 2003-08-24 22:35:57 +00:00
stronk7 fb2fcf3af5 Added some optional_variables to avoid some NOTICES 2003-08-24 14:46:52 +00:00
stronk7 52cef09ecb Added new scales icon to theme 2003-08-23 18:37:42 +00:00
stronk7 9e31a8e49c Cambiadas un par de cadenas a gerundio. 2003-08-23 18:01:27 +00:00
stronk7 300ae26c2d Ooops I commited some debug source code in previous
versions. Going back. Sorry.
2003-08-23 17:40:27 +00:00
stronk7 41923e7511 Solved one problem when copying empty directories. 2003-08-23 17:33:34 +00:00
stronk7 bbc69d99c1 Changed one notify 2003-08-23 17:02:20 +00:00
selliott e09016006c selliott - fixed some code to allow proper sorting of assignments based on name, lastmodified, and feedback 2003-08-23 16:32:42 +00:00
moodler 1f332285b2 Bump! 2003-08-23 16:31:03 +00:00
rkingdon 0978073ffb Fixing Bug #653. 2003-08-23 15:57:42 +00:00
moodler c79f9629ed Some extra explanation so that hitting "yes" on the restore screen isn't so scary! :-) 2003-08-23 15:47:57 +00:00
moodler 258c8b09bb A few things added 2003-08-23 15:37:15 +00:00
moodler 8826c67031 New questions created via GUI or imported are now given a unique
stamp, and a default version of 1.

When questions are updated, the version number is incremented.
2003-08-23 15:26:10 +00:00
stronk7 1923285635 Now stamp and version are fully supported in backup/restore.
The process look for category, stamp and version to calculate
when to create a question or use a existing one.
This avoid duplicates in RANDOM and RANDOMSAMATCH qtypes.
2003-08-23 15:21:58 +00:00
moodler 757a0abd94 Corrected the stamp I just added and added a separate version field instead 2003-08-23 14:18:44 +00:00
moodler b5012f3eb5 COnfiguration variables can now be edited via GUI 2003-08-23 14:03:14 +00:00
moodler e9d8777ffb New "stamp" field on quiz questions with a unique identifier, as well as
some PostgreSQL fixes (Multianswer stuff had not been done on Postgres yet)
2003-08-23 13:28:32 +00:00
moodler 1ccc73ac3b Use gmdate instead 2003-08-23 12:25:50 +00:00
moodler 280faf9ff7 Added a new function to make a unique ID code, to be used in quiz
questions and elsewhere

It's based on the hostname, time, random string and a supplied version string.
These are packed using '+ separators so they can easily be unpacked if
necessary.

function make_unique_id_code($version=1)
2003-08-23 12:22:27 +00:00
moodler 82ad5e1a9f If the language is the same as the site, then default to using the
same terminology as the site does
2003-08-23 07:26:50 +00:00
moodler 1a5ab4490f Improvements to logs when looking at site logs.
Also, improvements to get_site_users (slower but it works now!)
2003-08-23 06:19:05 +00:00
moodler 742fee1111 Fixed missing "search results" string 2003-08-23 04:39:49 +00:00
stronk7 a057e13d1f Up to 0.8.9 alpha.
Now multianswer questions are working too.
Too complicated !!
2003-08-23 00:36:08 +00:00
stronk7 f53119698e Now multianswer questions are working too.
Too complicated !!
2003-08-23 00:35:21 +00:00
giro123 30c49aa87e Se suma Benito Arias :-) 2003-08-22 18:58:33 +00:00
giro123 2171727fd4 Moodle 1.1 beta 1 2003-08-22 18:55:52 +00:00
rkingdon 6c550a7296 A few addition strings for League Tables and Rubrics. 2003-08-22 18:25:47 +00:00
kaipe 5a22076b10 Correction 2003-08-22 18:20:04 +00:00
kaipe 1ecbe2c476 All question types now have help texts in Swedish 2003-08-22 18:18:09 +00:00
rkingdon a94928f2f0 Added League Table of Submissions (Final Phase); Rubric Assessment
Strategy; Grace time for new submissions; changed elementid to elementno
in rubrics table.
2003-08-22 17:31:49 +00:00
moodler eafc0b4470 Teacher forum name in the list is in fact the name of the teacher forum. 2003-08-22 16:35:04 +00:00
moodler db34bb5992 After rebuilding cache - get the course record again 2003-08-22 16:20:35 +00:00
kaipe f5626b4c6b Corrected the help text for numerical.html
and also included Numerical in questiontypes.html
2003-08-22 15:58:57 +00:00
stronk7 bbe15ef239 Changed the "graphical" representation of the mod to include
multianswer table. I start working with it now !!
2003-08-22 15:46:28 +00:00
moodler f3c40f8d3c English spelling for enrol 2003-08-22 15:04:20 +00:00
moodler 2c8cb30c38 Activities can now be drag-and-dropped within side blocks! 2003-08-22 14:55:38 +00:00
moodler 526c0f708f More asjustments to the display of the admin screen 2003-08-22 14:03:40 +00:00
moodler 1074e1ad05 more tweaks to admin menu displays 2003-08-22 13:46:21 +00:00
kaipe bb9d73d9e1 Corrected translation 2003-08-22 13:44:12 +00:00
moodler a912de3eb7 Add link on admin page about students, for completeness. In the next
version this link will link to the new enrolment subsystem.

Also reduced font size to make the admin page a bit nicer on small screens.
2003-08-22 13:42:27 +00:00
kaipe bfe3068c78 *** empty log message *** 2003-08-22 13:34:41 +00:00
moodler ae5f8de620 Added some more error messages when restoring 2003-08-22 13:20:06 +00:00
moodler 6c2adc074a New files and fixes from Hans De Zwart - thanks! 2003-08-22 13:10:34 +00:00
moodler 7a7ac154a4 Some small fixes when deleting a category 2003-08-22 12:49:37 +00:00
moodler 0ddf039078 pclzip 2.0 RC2 - hopefully better! 2003-08-22 12:35:43 +00:00
moodler 9b16d1eada More tweaks to fix on/off button for admins o ncourse listings 2003-08-22 12:26:36 +00:00
moodler c432fd3213 Put in buttons so that course creators can create courses! :-I
Also, category fix_sorting is done better now when a course is added.
2003-08-22 12:15:35 +00:00
moodler fcd0e8edc7 Upgraded the live log to use the new print_log 2003-08-22 08:42:17 +00:00
rkingdon 553894ced6 Fix bug in Workshops with no teacher submissions. 2003-08-22 08:08:16 +00:00
moodler 519d369f60 Added full paging to all displays of logs! :-) 2003-08-22 06:07:18 +00:00
stronk7 6a0e7bafd4 XML support 2003-08-21 22:54:47 +00:00
giro123 ce9331aeca Moodle 1.1 beta 1 2003-08-21 20:06:02 +00:00
moodler 4d992061f0 Bump! 2003-08-21 18:03:47 +00:00
moodler 22288704de Hidden courses are displayed hidden 2003-08-21 17:30:39 +00:00
moodler 1069e8dc3b Allow the admin to login as teachers from within courses 2003-08-21 17:28:05 +00:00
moodler 2f3499b70d Fixed up get_my_courses().
It's not a tidy SQL statement any more but it's MUCH MUCH faster
with large data sets.
2003-08-21 17:24:40 +00:00
moodler 98e9a035d7 Course category listings now have a search box in the navbar for students
and non-users
2003-08-21 16:24:29 +00:00
moodler ee44a11f06 FIxed a missing quote 2003-08-21 16:15:58 +00:00
moodler 56e34ee405 Fixed bug when moving sections with apostrophes in the summary (bug 641) 2003-08-21 15:06:32 +00:00
moodler 1de5c483cd Removed unused string 2003-08-21 14:37:55 +00:00
moodler f04dc61d72 Ellipsis at start as well 2003-08-21 14:23:31 +00:00
moodler 924cef21d5 Put an ellipsis in paging 2003-08-21 14:22:06 +00:00
moodler 0e69cd0e96 Fixed a typo 2003-08-21 14:16:44 +00:00
moodler 8130b77b40 Split get-courses_page from get-courses so they can specialise 2003-08-21 14:04:04 +00:00
moodler be20753e7e Some better paging that now works with any number of pages 2003-08-21 13:47:14 +00:00
moodler 8058858329 Tweaks to account for teacher editors 2003-08-21 12:24:16 +00:00
moodler 53b67df521 Fixed the SQL for teachers and students 2003-08-21 12:19:09 +00:00
moodler 3041490d17 Initialising $navigation. Again. :-) 2003-08-21 12:12:15 +00:00
moodler f68e5995e5 Fix for non-logged-in person 2003-08-21 09:39:07 +00:00
moodler 8ef9cb5618 Some fixes to handle very very big categories.
- paging
  - more efficient SQL
2003-08-21 09:33:07 +00:00
moodler abe2920fec New number to trigger database upgrade 2003-08-21 08:22:47 +00:00
moodler 356fea4a64 Slightly better 2003-08-21 08:20:20 +00:00
moodler 5640353876 Course search shouldn't find the "site" course. 2003-08-21 08:19:28 +00:00
moodler 3052e775c8 Added an index on courses for the category 2003-08-21 08:14:56 +00:00
mits 8d86ba60a0 Polished. 2003-08-21 06:55:32 +00:00
mits 70941c166f New translation. 2003-08-21 06:43:20 +00:00
moodler 47801ef641 No need for grades with chat 2003-08-21 03:16:32 +00:00
moodler 5128daeeda Strip tags from Excel and Text dumps 2003-08-21 03:05:50 +00:00
moodler f6c05036be Put links on the course icons 2003-08-21 02:58:55 +00:00
moodler f59a65d309 Forgot a feature 2003-08-21 02:56:16 +00:00
moodler e898a9d315 FOr the regular upgraders 2003-08-21 02:55:27 +00:00
moodler b37b6ced88 Typo when including config.html ... not sure how it was working before! 2003-08-21 02:29:16 +00:00
giro123 90e1c1eae6 Moodle 1.1 beta 1 2003-08-21 02:05:30 +00:00
moodler e3f4e47a19 More robust when a journal is unused 2003-08-20 15:01:06 +00:00
moodler d1d74247e4 Invisible courses are now properly dimmed 2003-08-20 13:44:44 +00:00
moodler 5b8540e0d5 OUCH! usegrades should be showgrades 2003-08-20 13:41:56 +00:00
moodler 3ec7dc5704 Fixed a typo in the MySQL database definition that only shows
up when adding resources to courses with IDs higher than 255
2003-08-20 13:06:11 +00:00
moodler e6ea5c0664 Fixed some bad Postgres SQL that I made! :-) 2003-08-20 12:09:15 +00:00
moodler 63d48aad57 The warning should be printed on this page 2003-08-20 12:04:18 +00:00
moodler 44d3044b77 Forgot to check this slight fix in to fix the default days 2003-08-20 12:03:26 +00:00
moodler 704d595629 Changed from DOS to Unix format 2003-08-20 11:54:45 +00:00
moodler c9fb0e180b Some mods 2003-08-20 08:25:06 +00:00
moodler fff79722e5 A new course field called "showgrades" which allows the teacher to
turn the display of the grade book on and off.
2003-08-20 07:32:24 +00:00
moodler 1f6a77c02c FIxed up formatting a little 2003-08-20 02:07:11 +00:00
moodler b6ea346a45 Accidentally had an extra heading 2003-08-20 02:04:31 +00:00
moodler 7cb6e802a5 Pretty much Beta, I'd say 2003-08-19 17:48:42 +00:00
moodler 609b4625a4 More info about the release 2003-08-19 17:46:23 +00:00
moodler b0676bdfd0 Moodle format version 2003-08-19 17:34:53 +00:00
moodler e107b5ca73 Latest changes for pt_br 2003-08-19 17:31:22 +00:00
giro123 920b11ec9c *** empty log message *** 2003-08-19 15:07:28 +00:00
moodler ff9b64d9e1 More fixes and help additions 2003-08-19 15:02:31 +00:00
moodler c572466dc4 A help file for Embedded Answers (Cloze) 2003-08-19 14:57:57 +00:00
moodler 2bf31fc6a6 FIxed line feeds 2003-08-19 14:27:49 +00:00
moodler 9936fe81ea The number of courses in the categories is now cached in the
the category, and only updated when courses are moved/added/deleted etc
or the admin looks at the category listing
2003-08-19 09:26:36 +00:00
adamtpaw 7b5ff88583 Moodle v.1.0.9 2003-08-19 08:08:42 +00:00
adamtpaw ddab82acf7 Moodle v 1.0.9 2003-08-19 08:01:06 +00:00
moodler a8b5671697 Improvements to course searching
- can search for full words or non words with +word -word
 - no longer groups by category, sorts by full name
 - prints paging as well as total number
 - search help
2003-08-19 05:32:20 +00:00
moodler 1930e95964 Even nicer interface with help 2003-08-19 04:45:29 +00:00
moodler 1ede7c03ce tweak 2003-08-19 04:40:35 +00:00
moodler b1267a180d Slightly neater help 2003-08-19 04:39:59 +00:00
moodler e27dbcc8e5 Limit pages to something sensible 2003-08-19 04:37:32 +00:00
moodler 8b9c7aa069 Searching forums now has proper paging. 2003-08-19 03:35:53 +00:00
giro123 7f67a6ed40 *** empty log message *** 2003-08-18 18:06:33 +00:00
moodler 96cd80c8b2 A warning for the settings on the module variables pages 2003-08-18 17:50:00 +00:00
moodler 6f8694bdc8 New strings for the configuration screen 2003-08-18 17:47:28 +00:00
moodler 5925d0ef5b New configuration screen for the resources module 2003-08-18 17:46:51 +00:00
moodler 42282810f8 Better set_config (give immediate results) 2003-08-18 17:41:06 +00:00
moodler 5be7800c12 Switch to using global variables instead of defined values,
controlled using the button on the "Modules" configuration page.
2003-08-18 17:33:40 +00:00
stronk7 6c22e7300e New icon for scales (I'm an artist !!) :-) 2003-08-18 17:27:01 +00:00
moodler f173a591a7 Forgot this file earlier 2003-08-18 17:22:22 +00:00
moodler bda11d2acd Code to enable config.html files in the modules. 2003-08-18 17:21:53 +00:00
rkingdon a21db785d1 Minor bug fixes; additions to teachers admin screen; minor changes to
operation of pre-submission assessments.
2003-08-18 16:43:56 +00:00
moodler c477ecb2ce A few minor changes 2003-08-18 16:41:18 +00:00
moodler 2f4d324bd7 Trying something different with the admin links ... even I was starting
to get a bit lost occasionally.
2003-08-18 16:40:27 +00:00
rkingdon 87f9573f7d A few extra strings. 2003-08-18 16:34:30 +00:00
moodler 3fd866333e Just an uninitialised variable. 2003-08-18 15:17:40 +00:00
bobopinna d0471ed0f8 Updated to Moodle 1.1 2003-08-18 13:39:24 +00:00
stronk7 93e9a4c9cd Some minor changes to restore scales in existing course
(avoid some duplications)
2003-08-18 13:07:02 +00:00
moodler 415cfdcb9a Getting much better now. 2003-08-18 12:58:39 +00:00
moodler 1f7deef685 FIxed bug that was not showing custom scales 2003-08-18 11:58:07 +00:00
stronk7 36001aa95b Now scales are restored in journals too !! 2003-08-18 10:41:34 +00:00
paca70 c46b0a23db Corrected some typos 2003-08-18 08:12:31 +00:00
moodler 5ca03851ae Bug fix: On building attempts after the first one, display question images 2003-08-18 07:45:03 +00:00
moodler ce9aeca5bd Changing that help file name to something shorter 2003-08-18 07:39:23 +00:00
moodler f4e7acb624 Removed link to ratings 2003-08-18 07:24:34 +00:00
moodler 4c71204dd2 Added help button to headings when adding/editing activities. Doh! :-) 2003-08-18 07:10:53 +00:00
moodler efabdeddef Journal grading is now also all converted over to use scales as
well as numerical grades
2003-08-18 05:47:04 +00:00
moodler 734bec5dbf Removed unnecessary database access 2003-08-18 05:33:01 +00:00
moodler 62ca135d98 More cleanups and separation of printing the grades menu into a new function 2003-08-18 05:28:30 +00:00
moodler fdc47ee6c9 New function make_grades_menu() for easily making an array of grades 2003-08-18 05:10:35 +00:00
moodler 94d0cea511 Some polishing for the case when grades are set to zero (no grades).
Also, if the date is set further than on year into the future
then the due date is not shown.
2003-08-18 04:24:12 +00:00
moodler a7d52d7449 Some tidy-ups 2003-08-18 03:47:49 +00:00
stronk7 6466b6bb56 Forgot to change one line !! :-) 2003-08-18 00:04:38 +00:00
stronk7 93d7d97fc8 Scales are now supported in forums backup and restore 2003-08-18 00:03:40 +00:00
stronk7 af847821a2 Scales are now supported in assignments restore
(when grade <0, I suppose).
2003-08-18 00:02:12 +00:00
stronk7 42f1ff47b4 Scales are now supported in backup/restore.
Updated version to 0.8.8 alpha. Please test.
2003-08-18 00:00:22 +00:00
stronk7 e38411a8e1 Strings to support scales in backup/restore 2003-08-17 23:58:48 +00:00
adamtpaw 8b95c7040a Full translation of Moodle 1.0.9 2003-08-17 22:09:49 +00:00
johncaptain dd19fed469 Added: Info re: Firewalls 2003-08-17 21:46:50 +00:00
stronk7 823e087163 Started work with scales !! 2003-08-17 20:17:41 +00:00
moodler 033bac066a Bump the number for debuggers. 2003-08-17 17:00:53 +00:00
moodler a8188c08fe Just some rewording ... (I'm fussy!) 2003-08-17 14:53:25 +00:00
moodler cc2b7ea551 Fixes bug #619 -- moving discussions wasn't moving attachments 2003-08-17 14:46:44 +00:00
moodler 12407705af Check for existence of directory as well to avoid PHP warnings 2003-08-17 14:16:08 +00:00
moodler 487c1711fe There's no point in printing the notice - if there's no directory
there's no files ... pretty simple.
2003-08-17 14:14:12 +00:00
moodler a33c4ae8c2 Cutting and pasting too quick 2003-08-17 13:14:41 +00:00
moodler 3b1bb96902 Slight regression in policy (to bring it back to exactly how it all is in 1.0.9).
Only course creators can assign teacher to courses UNLESS the config variable
teacherassignteachers is true (by default it will be off).
2003-08-17 13:06:10 +00:00
moodler 91719320a0 Fixed display of assignment results when using a scale 2003-08-17 12:45:13 +00:00
moodler 678d11c921 Upgrading to version 2.0 RC1 - hoping it will fix some Windows problems
in the older version.
2003-08-17 12:35:20 +00:00
moodler 415c0dcc70 Assignment module can now use scales for grading. 2003-08-17 10:23:44 +00:00
moodler 4fe8e0d27d More robust adding/removing of admins 2003-08-17 10:17:57 +00:00
moodler aa34b7869e More robust creator adding/removing, using new functions in moodlelib.php 2003-08-17 08:58:18 +00:00
moodler 3041b0f88a More robust teacher adding/removing 2003-08-17 08:51:55 +00:00
moodler 6b42ea66a7 Ordinary teachers can assign students 2003-08-17 07:30:31 +00:00
moodler 4d9d90c006 Tweaking student page, and also making it available to ordinary teachers 2003-08-17 07:29:36 +00:00
moodler 2333cb05b9 More tweaks ... sorts etc 2003-08-17 07:20:40 +00:00
moodler c34509b070 Some tidy-ups for the students page 2003-08-17 07:14:02 +00:00
moodler 905be758d3 Don't need a red notification if it isn't bad 2003-08-17 06:47:39 +00:00
moodler 9314d39e5b New tags file 2003-08-17 06:44:58 +00:00
moodler 6b1a7a1e18 Make the logs icon look slightly less stupid 2003-08-17 06:07:20 +00:00
moodler 92cdab5afd Put user images on teacher and student links 2003-08-17 06:06:36 +00:00
moodler 6815044f28 Exclude vti_cnf directories if they are found 2003-08-17 05:50:47 +00:00
moodler 4d312bbe0f Don't enrol student if they are already enrolled. 2003-08-17 05:48:05 +00:00
moodler 7d569d2861 Simple interface to manually add students to a course. 2003-08-17 05:46:07 +00:00
moodler 6843d309a8 Removing the students script from here 2003-08-17 05:09:26 +00:00
moodler e7952289b6 Changing this string back again 2003-08-17 05:08:07 +00:00
moodler 0c8ee4402c New confirmation step when self-enrolling 2003-08-17 04:53:44 +00:00
moodler d4f253848c Rearranged help button 2003-08-17 02:34:42 +00:00
moodler a3ba14700e Help buttons fixed 2003-08-17 02:32:24 +00:00
moodler 1f38c0e252 New help file for Scales 2003-08-17 02:31:55 +00:00
moodler 94d782eb93 Don't show feedback when running SQL 2003-08-17 01:55:03 +00:00
moodler 64cbb55c2e Make sure it's THIS course that the student is currently enrolled in 2003-08-17 01:49:15 +00:00
moodler 6c38b7e012 Use the new get_recent_enrolments() function in datalib to find users
in recent_activity
2003-08-17 01:46:00 +00:00
moodler 0a08581d61 New function get_recent_enrolments() to more efficiently get recent enrolments 2003-08-17 01:45:26 +00:00
danielfetzer 95ff2ce378 *** empty log message *** 2003-08-16 17:55:14 +00:00
johncaptain 66c7992e52 Fixed typo. 2003-08-16 17:36:28 +00:00
danielfetzer 8978fb514c *** empty log message *** 2003-08-16 17:28:51 +00:00
mits 1224424568 New translation. 2003-08-16 17:09:04 +00:00
moodler 862810dc09 No need to call isteacher and isteacheredit, just isteacheredit will do. :-) 2003-08-16 16:14:25 +00:00
stronk7 9ad580181b Updated the index to show the eachattemptbuildsonthelast.html page 2003-08-16 15:32:01 +00:00
stronk7 9de28d19c3 Help for "eachattemptbuildsonthelast" setting.
Spanish version.
2003-08-16 15:23:23 +00:00
stronk7 b4e7c5c3a1 Help for the 'Each Attempt Builds On The Last' feature.
My English is far to be perfect, so edit it at your needs.
Bug 816 closed.
2003-08-16 15:11:16 +00:00
stronk7 3953f4bdc4 Now the "restore" option is showed to isteacheredit() teachers. 2003-08-16 11:46:54 +00:00
stronk7 f3c6d21942 Show more admin links to isteacheredit() users 2003-08-16 11:44:47 +00:00
stronk7 35a14ba021 Now editall and timemodified are in
backup/restore process
2003-08-16 11:31:32 +00:00
johncaptain 3702c65e91 Added: Windows specific language and region settings info to FAQ 2003-08-16 06:45:04 +00:00
moodler b6c1273289 Only editing teachers see controls and things 2003-08-16 06:44:03 +00:00
moodler aa57804096 Only editing teachers can edit activities 2003-08-16 06:40:35 +00:00
moodler 63bcc9b55b Use isteacheredit instead of isteacher 2003-08-16 06:37:06 +00:00
moodler ec9c0d4421 Show default mode again 2003-08-16 06:20:39 +00:00
moodler d99eab3c9f Allow teacher editors to modify scales 2003-08-16 05:44:40 +00:00
moodler 21f93862bd Backed out the new configuration variable "creatornewcourses" as it
is no longer wanted or needed
2003-08-16 05:43:26 +00:00
moodler 1c54562cdb Teacher editors can edit courses, and course creators get
added as teacher-editors when they create a course
2003-08-16 05:40:27 +00:00
moodler 416d6bc892 Must be an editing teacher to be able to assign teachers 2003-08-16 05:35:08 +00:00
moodler f07c9d23fc FIxed the search 2003-08-16 05:29:29 +00:00
moodler 73047f2f76 OK, this is a new scheme to allow some teachers to edit and others to not
that is much better than the proposal to change the role of course creators.

There is a new field in user_teachers called "editall", which is
ON BY DEFAULT, and allows teachers to edit courses.  It can be modified
on the teacher editing screen (formerly assign teachers).

The value is cached in the session.

To test for it, there is a new function isteacheredit($course->id)
which works much like isteacher did.

I'm going through now and applying this new function wherever
it is needed.
2003-08-16 05:19:24 +00:00
moodler 542a6914e5 Many more mime types added - thanks to D Hawes 2003-08-16 04:33:31 +00:00
moodler 25e3c612ba New icons from dhawes@mac.com 2003-08-16 04:28:21 +00:00
moodler 5fcd1b52aa Hold the presses ... I hate doing this but after going into detail
changing the course creator account like this is the wrong way to
do this.

Instead, I'm going to be adding new fields to user_teachers

Stay tuned
2003-08-16 03:28:56 +00:00
moodler 87002b0e9f Only creators can restore courses 2003-08-16 02:48:18 +00:00
moodler 48d72fa7c9 *** empty log message *** 2003-08-16 02:45:44 +00:00
moodler 6f4f04df3e Fixed database upgrade so that forum->scale is created before the
get_scale_menu tries to use it.
2003-08-16 02:30:23 +00:00
anvergara 5179875d27 updating to new version 2003-08-15 23:41:13 +00:00
stronk7 f19f822b1a Solved one bug when restoring MATCH(5) questions if
the question is an existing one. Some mapping are done
to use after them in responses.
2003-08-15 19:11:55 +00:00
stronk7 887e908592 Solved one bug when restoring RANDOMSAMATCH(6) questions if
they haven't been responsed in the quiz. The answer field in
quiz_responses must have X-0,Y-0 format instead of null.
Curiosly, MATCH(5) questions must have null if they aren'r
responsed.
2003-08-15 18:10:11 +00:00
moodler 11402bbdbc Do a check to create the default scale if it isn't already 2003-08-15 14:30:30 +00:00
moodler d318a24d45 Fixed an admin link 2003-08-15 14:19:11 +00:00
moodler a142b3b4ba New scale table for PostgreSQL 2003-08-15 14:17:15 +00:00
moodler 37eef3ed91 WHoops - you'll need this table. :-) 2003-08-15 14:12:52 +00:00
moodler a57319b1f3 New scales editing page 2003-08-15 14:03:25 +00:00
moodler e9ae66916d A few more files... 2003-08-15 14:02:11 +00:00
moodler 02ebf404c8 WARNING: BIG CHANGES!
OK, this is a big check-in with some big changes, and needs work still.

It seems relatively stable, but I need help identifying the rough patches.

1) First grading scales support.  There is a now a new table called "scale"
   that contains grading scales.  There can be site scales (course=0) and
   custom course scales.  These can be used in modules - I've only done
   forums for now but that was the hard one.  Scales can be edited via
   the new item in the course admin menu.

   There is one default scale - the connected/separate knowing one that used
   to be in forum.  To build this I pull data from the language packs
   to create one during the upgrade, or anytime a scales menu is called
   and no scales are found.

2) New roles for course creator and teachers.  I've fixed up the course
   menus and some other things but there's a lot left to do on this to
   make it all smooth.  The idea is that teachers no longer can edit courses
   unless they are also course creators.  The interface for this needs to
   be smoothed out a fair bit and I need help with this.

   The upgrade will upgrade all teachers to be creators, but will default
   the new site config "creatornewcourses" to "no", so that effectively
   these new teachers have the same privileges.

3) Simplified teacher management.  There is no longer an "assign teachers"
   and a "teacher roles" page - it's all on one page in course/teacher.html.


Phew ... time for a shower and then back into it.
2003-08-15 13:59:24 +00:00
moodler 655f2aaf2f Temporary scales icon 2003-08-15 13:46:45 +00:00
moodler ba73065339 I had to reformat this help file. It is no longer HTML but plain Moodle format.
I"ve done this for all good translations.
2003-08-15 13:43:05 +00:00
moodler c4c9c26fc9 24 hour time 2003-08-15 13:15:14 +00:00
moodler 0177961bd7 Use 24 hour time 2003-08-15 13:09:44 +00:00
moodler 2851e8a2f0 Some fixes for time display (24 hours) 2003-08-15 13:00:45 +00:00
stronk7 37bc898199 Small typo !! :-) 2003-08-15 11:23:29 +00:00
stronk7 f43f3f65bc Solved one important bug in RANDOM(4) and RANDOMSAMATCH(6)
question types.
And modified some of the quiz_answers restore system to
allow remapping answers with existing questions.
//Detected by scott dot elliott at mchsi dot com in Bug 84
2003-08-15 11:08:51 +00:00
stronk7 d968b8e61a Included and commented one new debug 2003-08-15 11:03:07 +00:00
moodler 813d441d56 Fixed up quotes, ordering etc 2003-08-15 10:56:50 +00:00
stronk7 47a5aeef23 Added some spacer.gif to align up and down buttons... 2003-08-15 10:11:22 +00:00
stronk7 41b9b44faf Added the 'Restore' option near the 'Backup' one to course list.
See bug 616. Closed. It needs Martin confirmation.
2003-08-15 08:50:35 +00:00
moodler 2b4c64e98f Better compatibility for POstgreSQL (old regexps were case sensitive) 2003-08-15 08:16:20 +00:00
moodler a74f950c4e Improved search.
Default is now back to subwords, but words can be used with +word and -word
2003-08-15 08:04:54 +00:00
moodler df4f06706a Added get_courses_search() etc 2003-08-14 11:49:57 +00:00
moodler 5195536408 Force rebuild of course cache - just in case! 2003-08-14 10:32:51 +00:00
moodler 1b58c28d15 Removing untranslated versions or incomplete versions of this help file in
preparation for new grading scheme
2003-08-14 10:16:32 +00:00
moodler 63d99fcb1d Added (default) option to search for whole words with forums.
(SQL regular expressions from David Delgado - thanks!)
2003-08-14 06:34:56 +00:00
mits ab38fc7ae6 New translation. 2003-08-13 13:08:21 +00:00
mits f102958c87 New translation. 2003-08-13 12:40:26 +00:00
moodler ef23c7808f Significant improvements to Brazilian 2003-08-13 07:37:04 +00:00
moodler 8f8714be09 Significant updates for pt_br 2003-08-13 07:17:05 +00:00
moodler 2f0adcdb0d Bump 2003-08-13 07:09:42 +00:00
moodler 5dc3d80e29 FIxed some links to all courses 2003-08-13 06:55:57 +00:00
moodler 6e6b61635e Don't interfere if news is selected 2003-08-12 17:01:54 +00:00
moodler 7ea3bbec32 No point in offering the option for really big sites to have all the courses
on the front page.
2003-08-12 16:52:55 +00:00
moodler 3b3ab94282 Never checked this in with the course search 2003-08-12 16:44:22 +00:00
moodler c6ee38d073 Some refinements to the display of forums
- don't show intro box for teacher forum (because it can't be edited)
  - don't show intro box when the text is empty anyway
2003-08-12 16:37:52 +00:00
moodler 1ddf93298b Tweak 2003-08-12 08:29:47 +00:00
moodler 6535be8551 New, shorter intro to styles files that calls a function.
This function sets header information to improve caching (default 5 minutes)

Cookies are also prevented to improve cacheability.
2003-08-12 07:52:19 +00:00
moodler 16e4918d43 Little tweak to fix a caching problem.
User images were not being cached properly because Moodle was
sending a session cookie.  I've turned this off now for user images.
2003-08-12 07:02:34 +00:00
giro123 3bd5733800 *** empty log message *** 2003-08-12 00:27:49 +00:00
moodler 9400ee33c5 Missing picture data in forum_get_recent_posts 2003-08-11 16:56:33 +00:00
moodler 61d7378374 Slight editing 2003-08-11 15:20:31 +00:00
moodler eafd2784b4 Added a simple help popup for chat 2003-08-11 15:06:57 +00:00
moodler c960bed274 New help file for chatting 2003-08-11 15:06:21 +00:00
moodler 895e2afc7d Updated status and plans for chat module 2003-08-11 13:47:18 +00:00
moodler 9b2e1812a2 This icon was missing from the template 2003-08-11 13:31:57 +00:00
moodler 8210692dc3 Added a box to display subcategories 2003-08-11 13:02:45 +00:00
moodler 981181c9f4 Slight re-phrasing 2003-08-11 13:02:21 +00:00
kaipe 608ed9800d Debug
This fix rids warnings that used to come when a student for the first time attempts a quiz with the option "Each attempt builds on the last" = Yes (attemptonlast).
Now the option is not in effect when a student attempts a quiz for the first time, i.e. when there is no last attempt to build on.
2003-08-11 12:37:54 +00:00
moodler c571f3fc8a Little fixes for the course_sideblock 2003-08-11 11:51:08 +00:00
kaipe 85c06eab07 quiz option - "Each attempt builds on the last" 2003-08-11 11:47:30 +00:00
moodler 38a10939db Search engine for courses 2003-08-11 09:45:50 +00:00
moodler 52a554db2c Added new info popup page when courses are in listing format 2003-08-11 07:48:03 +00:00
moodler 4b908eb699 Smaller 2003-08-11 07:09:31 +00:00
moodler 646360408f New "info" icon 2003-08-11 07:00:20 +00:00
moodler 3d95bdb76f Show course access (guest, password etc) on non-editing screens 2003-08-11 05:38:28 +00:00
moodler 49d3bab8aa new resort function for courses in a category 2003-08-11 05:24:48 +00:00
moodler 241ae0d52b Bugfix when renaming 2003-08-11 02:07:17 +00:00
moodler 4e56c82dab get rid of signed parameter when upgrading columns to varchar or text 2003-08-10 14:38:47 +00:00
moodler 75c64d922f Some name changes 2003-08-10 14:37:52 +00:00
moodler 50b5487c54 Get rid of the enumerated type on the course formats, so that
we can think about adding custom course formats into course/format
2003-08-10 14:36:52 +00:00
kaipe 1754624916 Fixed bug that was pointed out by Tom Cat:
The reuse of old quiz_answers records for question type multianswer/embedded did not work properly.
2003-08-10 12:09:49 +00:00
danielfetzer 640cb17e36 *** empty log message *** 2003-08-10 11:56:23 +00:00
moodler 41a2968c28 Emoticons don't make sense. 2003-08-10 09:28:55 +00:00
moodler d47fd1ee7c Added richtext editor to site front page 2003-08-10 09:26:11 +00:00
moodler c15421f26b Tidy up the copyright notice and added a warning. 2003-08-10 09:12:17 +00:00
moodler 440eb0d79d More clean ups 2003-08-10 08:39:29 +00:00
moodler 05c195931c A little timing issue 2003-08-10 08:17:59 +00:00
moodler 55e4b5f97d Some cleanups of the admin page to make it
- more explanatory
  - more expandable

Apologies for the lost muscle memories, but I think this
will work better in the long run.
2003-08-10 08:01:14 +00:00
moodler b48ec6c3c7 New admin icon 2003-08-10 06:53:42 +00:00
moodler 413dd5d798 Can ue more than one keyword now. :-) 2003-08-10 06:47:45 +00:00
selliott 8263539f09 added icon.gif 2003-08-10 05:00:49 +00:00
selliott 9b55522872 added backup.gif 2003-08-10 04:59:13 +00:00
selliott 718cfb2b4b added restore.gif 2003-08-10 04:58:28 +00:00
moodler 6c4441e796 Use direct menu 2003-08-10 02:53:49 +00:00
johncaptain fb5f91ac4e Added link to Redhat Linux info in the "Blank Pages" question 2003-08-09 19:21:46 +00:00
moodler 2c71ddbaa8 To avoid moving to same category 2003-08-09 17:31:33 +00:00
moodler f31200247f My Courses is now shown in the course side block if the user is not
an admin.

Also, this block now appears on course main pages (under admin).
2003-08-09 17:17:21 +00:00
moodler 43da063795 Just to remind myself how fast time is passing 2003-08-09 16:58:35 +00:00
moodler f2bb0045d3 More moodling on the course categories, improving performance for
large categories and making it easier to move large numbers of
courses around.

Also cleaned up some of the navigation bars
2003-08-09 16:53:30 +00:00
moodler 7140a97ae3 Missing string, bug in call to get_string 2003-08-09 12:40:08 +00:00
moodler c6cbe2e30d Minor formatting fixes 2003-08-09 10:11:04 +00:00
moodler 05f53652f3 Displays all user pictures on one page.
This has been on moodle.org for ages, but it might as well be in the
distribution too.   It's not linked from anywhere in Moodle currently.
2003-08-09 08:37:22 +00:00
moodler ceca2ad2b0 Looks better when nothing is found 2003-08-09 07:59:39 +00:00
moodler 3f26745351 Better button behaviour 2003-08-09 06:02:01 +00:00
moodler b800ac5a10 Much improved forum searching, with independent words and paging 2003-08-09 05:35:02 +00:00
moodler 88438a5893 New highlighting function that is able to cope with HTML.
It's a bit slower, but links in forums no longer cause problems.

See bug #589
2003-08-09 03:57:46 +00:00
moodler 33428ff9ae Improved interface for course creators 2003-08-09 02:24:27 +00:00
moodler 25ac0bd195 Better links 2003-08-09 02:10:05 +00:00
moodler e9c2dc1fa0 Robust variable for attchments 2003-08-09 02:00:20 +00:00
moodler f5e8e2f6e1 Better way of specifying backupdata name 2003-08-09 01:54:52 +00:00
selliott 52dd8d7dbf selliott - Fixed mixup in feedback for true/false questions 2003-08-08 18:06:41 +00:00
moodler 28f312c09e Some fixes to make report work at least ... complete mode needs work 2003-08-08 17:38:28 +00:00
moodler 9a0b4d6c1f Fix for the bug causing an error on the user activity page - made a
new function workshop_get_student_submission() based on the version
in 'assignment' ... haven't looked at the functionality yet.
2003-08-08 17:01:38 +00:00
moodler 072426e0c1 Fixed up cancel button on module editing page to avoid error
when returning to course page.

Fix by Scott Elliott.
2003-08-08 16:46:16 +00:00
moodler ee23f384bf Some declarations just in case (for the included files). 2003-08-08 11:29:33 +00:00
moodler 125898afd2 Use the "correct" way of encoding HTML (quoted-printable) instead of
warapping it like text (which was working, but...).
2003-08-08 03:39:25 +00:00
moodler 0351b1f9f4 Language of receiver was not being set correctly 2003-08-08 03:38:18 +00:00
moodler beba8fdb9e SOme updates 2003-08-07 17:37:50 +00:00
moodler 865b2c3aca Sometimes we are blind to the obvious right way of doing things 2003-08-07 17:09:51 +00:00
moodler 973d1e62a8 Slightly nicer icon 2003-08-07 17:06:15 +00:00
moodler b99897718e Little display tweaks 2003-08-07 17:00:06 +00:00
moodler 65d5517a28 Tweaks 2003-08-07 16:49:41 +00:00
moodler 26330001bc Fixed up My Moodle 2003-08-07 16:41:33 +00:00
moodler b8d481e444 Some upper/lower case consistency 2003-08-07 16:31:03 +00:00
moodler 6f065ce390 No margins on bottom or top 2003-08-07 16:20:31 +00:00
moodler 346b820821 Remove margins on UL tag 2003-08-07 16:17:34 +00:00
moodler ee00b8b948 There's always one, isn't there? 2003-08-07 16:15:14 +00:00
moodler dc70c99199 New and updated images 2003-08-07 16:07:06 +00:00
moodler 6a2d42e6fb Changed function name 2003-08-07 16:04:54 +00:00
moodler d2b6ba704e Another big checkin.
This includes some significant cleanups to the new course categories
system.  The basic idea is that the categories/course browser is now
unified under one system, and admin features related to that have
all been moved into the browser (as little icons).

I'm much happier with this as a foundation that can scale and be
built upon.

Still to go:

  - searching
  - paging
  - polishing

Also in here are a lot of little cleanups around the place, such as
the initial setup process.
2003-08-07 16:01:31 +00:00
moodler 7b2e275106 Full name of Macedonia 2003-08-07 15:23:10 +00:00
moodler f27802ad3b Yugoslavia --> Serbia and Kosovo 2003-08-07 15:17:33 +00:00
moodler 5f14e17029 A small fix for mail boundary headers that may have been breaking some
mail programs (notably Exchange).
2003-08-07 11:42:12 +00:00
moodler 81d3268da1 Remove login link on first install 2003-08-07 06:56:34 +00:00
moodler 674416eabd Add two hours to avoid possible daylight savings time problems 2003-08-06 15:32:31 +00:00
danielfetzer b24f1462d3 *** empty log message *** 2003-08-05 16:50:31 +00:00
moodler de5f4552df Craziness. 2003-08-05 11:45:53 +00:00
kaipe 5ee8d89f65 The message "Recently added question!" is shown for questions that have been added since the reviewed attempt was finished.
Closing bug #576
2003-08-05 11:39:49 +00:00
moodler dd137191ca Added help button about cookies 2003-08-05 11:36:07 +00:00
moodler 4e200814c1 Added Cookies to index 2003-08-05 11:35:42 +00:00
moodler 55973e1139 New help file about cookies for login page 2003-08-05 11:34:31 +00:00
moodler 9e1942c056 Fixed a typo on the multianswer table definition 2003-08-05 05:11:43 +00:00
moodler 1efcfce8a3 More missing strings 2003-08-05 03:25:16 +00:00
paca70 0c70f81c0d To fix authentication issue when same ldap-attribute is used multiple fields in Moodle. 2003-08-04 19:34:32 +00:00
stronk7 03877c6c61 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 18:39:25 +00:00
moodler 27c4094294 Fixed some missing strings that no-one picked up before! 2003-08-04 16:07:17 +00:00
moodler 9db31d0df5 Quick icons 2003-08-04 16:01:09 +00:00
stronk7 22ad18b972 ATTEMPTONLAST are included in backup/restore too !! 2003-08-04 10:38:51 +00:00
stronk7 d6478d4f82 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 10:31:12 +00:00
danielfetzer 533af805b8 *** empty log message *** 2003-08-04 08:28:11 +00:00
moodler 688d06f442 Added mailformat to user data returned in class listings.
This fixes a bug where students were getting plain mail only
on forums that were force-subscribed.
2003-08-04 05:48:39 +00:00
moodler 7c4ee4c29f Allow site course to have custom words for student and teachers 2003-08-04 05:02:28 +00:00
kaipe 586b2c82ed New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
---
As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php
2003-08-03 23:00:45 +00:00
stronk7 da2ad42086 Added string necessary to backup/restore 2003-08-03 22:55:56 +00:00
kaipe 0f36ecb9ea New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
2003-08-03 22:54:02 +00:00
stronk7 80de201bfc Updated.
Now chat modules are included in backup and restore
2003-08-03 22:48:41 +00:00
stronk7 9934c7b0d6 Now chats are restored too !! :-) 2003-08-03 22:46:13 +00:00
stronk7 724db57661 Now chats are backuped too !! :-) 2003-08-03 22:24:01 +00:00
stronk7 74a0363f0c LIMIT is now working properly. 2003-08-03 21:49:19 +00:00
kaipe 5a24a01868 Resolving bug #576.
This solution shows the message "Recently added question!" and the question text for each question that has been added since the reviewed attempt.
The advantage with the chosen solution is that it will work fine for the (soon to come) "Each attempt builds on the last" quiz option.

As I don't have the karma needed for updating in lang/en/, the message does not yet look quite as I described it above.
2003-08-03 21:39:32 +00:00
kaipe bdb63d64f2 Debugged question types NUMERICAL and MULTIANSWER (known as embedded answers) as these did not do things right whenever a student had not given any response (was treated as zero etc).
For numerical there was also a need to allow typical shortanswer responses whenever there could be answers like n/a, inf, -inf, nan etc.
Further more about numerical, there can be more than one answer alternative defined (just like for shortanswer). This is not supported by numerical.html but everywhere else. MULTIANSWER included, it is up to any taker to update numerical.html. This is more than likely to lead to overlappings between numerical ranges if more than one is defined. Think of the case where the highest grade answer ranges between 0 and 2 and the half grade answer ranges between 2 and 4. How should we grade 2? We should pick the highest grade!
2003-08-03 20:02:43 +00:00
mits 5ca4f1944f New translation. 2003-08-03 17:33:17 +00:00
stronk7 e5fc599647 Forget delete some debug, sorry. :-) 2003-08-03 16:41:31 +00:00
stronk7 13d0fb4bbf Now, when a category exists, if we are restoring to a different course,
set utomatically the publish field to 1.
If a question exists in DB (by category, questiontext and qtype) it isn't
duplicated.
This produce some problems restoring answes, but avoid duplicates.
2003-08-03 16:36:29 +00:00
stronk7 51de923ed1 Reuse an existing string. 2003-08-03 15:15:23 +00:00
stronk7 38fb24921c More backup related strings... 2003-08-03 15:14:08 +00:00
stronk7 fa383df984 Solved bug. Now user files are checked againt users to backup.
Before this every thir under users was in backup.
2003-08-03 09:39:27 +00:00
paca70 fdc60fd20d Ask only naminattribute when searching for user. 2003-08-03 09:20:05 +00:00
paca70 da7b210a75 Fix from Martin Wwellard to fix PHPs case issue with attribute names. 2003-08-03 09:07:42 +00:00
stronk7 4398d023a9 Updated:
- Teachers can backup/restore their courses.
- New option "restore to existing, deleting old".
- backupdata dirname harcoded.
- backup and restore buttons in main course page.
2003-08-03 01:05:38 +00:00
stronk7 be2a6fc6ca Teacher restoring and admin restoring finished.
Allow restore into new course (only admins),
      restore into existing course deleting old and
      restore into existing course adding to old
Teachers are limited to "current course" while admins ca
select any course. :-)
2003-08-03 00:42:41 +00:00
stronk7 35ea159433 delete_dir_contents function now allows excluding a dir 2003-08-03 00:40:08 +00:00
stronk7 642ac84855 Added suport to new restoreto options 2003-08-02 23:37:41 +00:00
stronk7 ed8ee0910c Take out backupdir string due to some backup
detected problems related to it.
2003-08-02 23:36:13 +00:00
giro123 565ff246e5 *** empty log message *** 2003-08-02 19:44:16 +00:00
stronk7 03162427df The restore option in course page is only showed if th
"backupdata" dir exists
2003-08-02 18:23:58 +00:00
stronk7 0c6e10b33e Now "backupdir" string is hardcoded in backup process. 2003-08-02 16:13:44 +00:00
stronk7 9e426d54ee Added preliminary support to teachers.
Not working yet.
2003-08-02 16:06:33 +00:00
stronk7 8f7ab28112 Now "backupdir" string is hardcoded in backup process.
Backup of logs in chunks is included, but the limit
clause doesn't seem to work. I'll test it later.
2003-08-02 16:03:00 +00:00
moodler 07aeb7b0bf Move the code for clearing out a course into a new function:
remove_course_contents()
2003-08-02 11:32:59 +00:00
stronk7 1692281e40 Minor change to allow continue after upgrade_backup 2003-08-02 10:32:57 +00:00
stronk7 2bd19d60cf Restore option allowed to teachers too.
The course_id is passed to restore.php as a parameter
2003-08-02 10:08:57 +00:00
danielfetzer 47c3f0d4d9 *** empty log message *** 2003-08-02 09:39:38 +00:00
danielfetzer 07f0986e16 *** empty log message *** 2003-08-02 09:00:37 +00:00
moodler 835ad8ef7a Adding missing strings.
Instead of Multi Answers, how about "Embedded Answers" ..?
2003-08-02 05:09:04 +00:00
moodler 8883c4a885 Less fiddly looking icon 2003-08-02 05:05:09 +00:00
moodler 567b01bceb Quick icon for multiple answers 2003-08-02 05:01:02 +00:00
danielfetzer 610faab9e6 *** empty log message *** 2003-08-02 00:40:18 +00:00
stronk7 e9346b95b7 backup_release is now saved to config too. It was losed in lastest changes
to update module facility !!
2003-08-01 23:46:49 +00:00
stronk7 d37ca7c7f8 Chanfed to locate the pclzip properly. 2003-08-01 23:36:07 +00:00
danielfetzer bcd269d24d *** empty log message *** 2003-08-01 22:21:06 +00:00
danielfetzer 1ffb0f1ac3 *** empty log message *** 2003-08-01 21:06:55 +00:00
moodler 001f747fbe Detailed howto needs to be here ... 2003-08-01 15:30:08 +00:00
moodler 274bc21a11 More links 2003-08-01 15:28:53 +00:00
moodler 59d2b54235 Backup stuff 2003-08-01 15:28:07 +00:00
moodler dd167d59c9 Added a missing help file! 2003-08-01 15:26:51 +00:00
moodler 434d01398a Backup and restore buttons on home page 2003-08-01 15:19:23 +00:00
moodler f354106d46 Some tidying up 2003-08-01 15:14:49 +00:00
moodler 65c59e30b8 New restore link for admins so they can restore courses ... 2003-08-01 15:09:35 +00:00
moodler 4210bec136 A quick backup icon 2003-08-01 14:51:19 +00:00
moodler bd38123e98 Completed mods to allow teachers to make backups 2003-08-01 14:42:14 +00:00
moodler 9c1ae5ae32 Removed $moodle_home and $mods_home references.
Also removed direct references to $backup_version and $backup_release

backup.php now accepts teachers of their own course
2003-08-01 14:34:11 +00:00
moodler 10dcde409b Further integration of backup into main Moodle.
The database checks/upgrades are now done on the main
admin page like the other modules.

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

PostgreSQL support was added - BUT HAS NOT BEEN TESTED YET!!
2003-08-01 13:59:17 +00:00
kaipe 2e3e1ac76b Added the choice of 16.666% for multichoice fraction 2003-08-01 13:24:05 +00:00
kaipe 8b439f8c16 New question type - multianswer 2003-08-01 08:37:11 +00:00
moodler 4d55f46b0f More details on backups 2003-08-01 02:32:45 +00:00
danielfetzer 76a8a326cd *** empty log message *** 2003-08-01 01:02:40 +00:00
stronk7 101735cc89 Included fix_category_courses() to
adjust the new category structure
2003-07-31 18:01:45 +00:00
johncaptain 3136f5fa70 added: backup Q&A 2003-07-31 17:18:39 +00:00
stronk7 f5786441aa Changed to version.php
(to be more consistent with the rest of the modules)
2003-07-31 16:56:40 +00:00
stronk7 2c54aa080b Copied from old backup_version.php
(to be more consistent with the rest of the modules)
2003-07-31 16:55:11 +00:00
stronk7 d538d4008f Changed calls to backup_version.php to version.php
(to be more consistent with the rest of the modules)
2003-07-31 16:54:05 +00:00
stronk7 2b96840769 Variables passed by reference warning is out !! 2003-07-31 16:44:52 +00:00
danielfetzer 4712035bec *** empty log message *** 2003-07-31 13:27:25 +00:00
moodler e92fe848ab Removed needless pass-by-reference to avoid warnings BUG 573 Thanks Eloy! 2003-07-31 12:23:49 +00:00
moodler 0eeac484f3 Extended get_records so it can deal with LIMITs now 2003-07-31 12:18:22 +00:00
moodler 7e1a999c10 Moved fix_category_courses to datalib.php so it's more accessible 2003-07-31 12:09:17 +00:00
moodler ea4c2d54e7 Removing duplicate 2003-07-31 02:03:59 +00:00
danielfetzer 24e3eaefc9 *** empty log message *** 2003-07-30 22:35:10 +00:00
danielfetzer 452290cf77 *** empty log message *** 2003-07-30 21:26:02 +00:00
danielfetzer 6922fa037c *** empty log message *** 2003-07-30 19:36:18 +00:00
danielfetzer dc265cf339 *** empty log message *** 2003-07-30 18:02:38 +00:00
danielfetzer c76d690b89 *** empty log message *** 2003-07-30 17:34:18 +00:00
danielfetzer 358bbd05dc *** empty log message *** 2003-07-30 17:12:06 +00:00
stronk7 c2bc6f548a Two more backup related strings 2003-07-30 17:10:01 +00:00
stronk7 7d40e78c0d Uncommented clean_temp_data. I forgot it
in lastest tests...
2003-07-30 16:29:53 +00:00
danielfetzer 68234a3061 *** empty log message *** 2003-07-30 15:33:21 +00:00
moodler 4efea825a1 Put here just temporarily for those who might need it. Will be
replaced by the new enrolment code soon anyway.
2003-07-30 15:11:04 +00:00
moodler a6870f0c2c Slightly prettier display 2003-07-30 13:57:39 +00:00
moodler 90c2ca2e68 Fixes for course ordering in one category 2003-07-30 13:56:17 +00:00
moodler f853105459 Missing parameter 2003-07-30 13:35:20 +00:00
moodler 80bcf0a99c Bit more current now 2003-07-30 13:17:37 +00:00
moodler c9704833fa More files related to recent course display changes 2003-07-30 13:05:51 +00:00
moodler c2cb45451f COURSE DISPLAY REVAMP
OK, some big changes here to the front end, particularly in
course categories and course display.

Course categories can now be nested (to any level).

Courses and course categories can now be manually sorted
any way required.

There is a groovy front end for managing these, and a better
range of options for formatting the front page.

It all still needs some polishing, which I'll be doing over
the next couple of days, including better auto-sorting.

I would not use this on production systems just yet.
2003-07-30 13:02:45 +00:00
moodler 474fcf367e Fixed it up (accidentally set it to the journal mods.html before) 2003-07-30 10:58:56 +00:00
moodler dd85cc8189 Fixed missing slashes 2003-07-30 05:21:24 +00:00
moodler c540442ff3 Fixed some missing slashes 2003-07-30 05:20:19 +00:00
moodler 4f20f30fed Slight addition 2003-07-30 05:11:45 +00:00
moodler 3e07e9f754 Added FAQ about secureforms 2003-07-30 05:10:13 +00:00
moodler 754095d63e Secureforms now default to OFF 2003-07-30 04:59:29 +00:00
moodler 66c8c3b6cf More fixes from Daniel Fetzer daniel.fetzer@freenet.de 2003-07-30 04:02:23 +00:00
moodler 4d828270e8 Deleting the bulk of es_mx (Replaced by "es") 2003-07-30 03:25:38 +00:00
stronk7 388052cd9c Solved two importat bugs.
Numerical Questions now working.
Included support to Moodle's language system.
2003-07-29 19:48:06 +00:00
stronk7 7fae2d4809 Restore strings are included now !! 2003-07-29 19:33:33 +00:00
stronk7 a42de97187 Included language support. 2003-07-29 15:38:55 +00:00
stronk7 2aa7d92472 Added and commented some debug lines. 2003-07-29 15:37:38 +00:00
moodler b1c305a331 Changes from Daniel Fetzer daniel.fetzer@freenet.de 2003-07-29 11:02:08 +00:00
moodler 9a1c9f5398 Changes from Ursula Raab 2003-07-29 10:53:37 +00:00
kaipe 44fc346f45 Refactoring only, no new features -
Modified methods are quiz_get_answers and quiz_grade_attempt_results.
For quiz_grade_attempt_results, the switch statement has been separated out into method quiz_grade_attempt_question_result.
2003-07-29 09:11:06 +00:00
moodler 17b88d1910 Fix for POP3 by disabling TLS explicitly.
based on this: http://moodle.org/mod/forum/discuss.php?d=1884
2003-07-29 07:12:31 +00:00
moodler 48705c8d40 Latest fixes from Thomas Robb - thanks Thomas! 2003-07-29 04:18:01 +00:00
moodler 46213aa855 Improved magic_quotes routine (deals with arrays now, too) 2003-07-29 01:54:16 +00:00
stronk7 c45f0ee1cc Fixed important bug when recovering assignments or forums
with files and the moddata/courseid didn't exist.
Now force the creation of the courseid dir from the
restorelib in each module.
2003-07-28 22:31:23 +00:00
stronk7 67805f89ec Prepared to insert string in langs. Tomorrow. 2003-07-28 19:37:37 +00:00
stronk7 1b42805d61 Added chat status 2003-07-28 19:35:36 +00:00
stronk7 902142c079 Added language support 2003-07-28 19:32:51 +00:00
stronk7 a8c0abbfb1 Added language suport 2003-07-28 19:24:09 +00:00
stronk7 957a0d2196 Included every backup string (I think) :-) 2003-07-28 17:42:22 +00:00
rkingdon 0e29a0b1d8 Minor errors fixed; Student can delete submissions and assessments;
Teachers see student names; Tabbed Admin screen.
2003-07-28 17:37:16 +00:00
rkingdon db7def84b7 Some missing strings added. 2003-07-28 17:33:34 +00:00
moodler aa6af0f833 A hack to get around magic_quotes_gpc being turned off 2003-07-28 16:37:12 +00:00
moodler f406e6785e Avoid problems with quotes and so on in user records when updating users 2003-07-28 12:08:31 +00:00
moodler b7aa3aead3 Updated madewithmoodle file (same logo) 2003-07-28 11:53:42 +00:00
moodler 253c44f0fa We need to keep these old images here because old stuff may refer to them. 2003-07-28 11:47:40 +00:00
moodler 67a63a3060 Cleaned up the remaining images:
- moved user images to /pix/u folder, and changed format to .png to allow
   transparent images etc.  These can now be customised in themes.

 - removed legacy madewithmoodle logos
2003-07-28 11:42:53 +00:00
moodler 250e71d967 When a quiz is closing within the next 24 hours, a small countdown
is shown in the titlebar (drawn with javascript).

An alert is shown at ten minutes, and zero minutes.

This doesn't prevent students from doing anything, but it serves
as a reminder and just looks cool.  ;-)
2003-07-28 08:58:47 +00:00
moodler 4458c8a887 I'm hopeful this is a fix for the wrapping problem ... 2003-07-28 05:53:03 +00:00
moodler 1dbb6e5031 Added some flushes in case the indexes take too long ... 2003-07-28 03:28:43 +00:00
moodler 3a04632eb7 Fixes for file names 2003-07-28 03:26:32 +00:00
moodler a8fa25d18d Improved indexing for improved performance on the course page, when viewing
logs and when viewing lists of users ... thanks to Eloy for the one on the log file.
2003-07-28 02:51:56 +00:00
moodler 8b0ef9b0cb Improvements to simplestat (more info in HTML display plus downloads XLS an TXT) 2003-07-28 02:04:58 +00:00
moodler 49caea35c9 Small changes to the restore "continue" button and some missing strings 2003-07-28 01:38:35 +00:00
stronk7 4498d1a402 Prepared to insert string in langs. Tomorrow. 2003-07-27 21:30:24 +00:00
stronk7 92ffd629b2 Typo in course STARTDATE 2003-07-27 21:29:22 +00:00
stronk7 9bd651e876 Small typo in course STARTDATE. 2003-07-27 21:27:48 +00:00
stronk7 c11c6fed95 //Added some debug (commented in production) 2003-07-27 21:26:51 +00:00
moodler 706be21465 Upgraded phpmailer to 1.70 2003-07-27 13:26:07 +00:00
moodler 2b97bd71e3 Use the admin user as the envelope sender (to catch bounces etc) 2003-07-27 13:14:00 +00:00
moodler e561d3c2fc Add a message to help debugging 2003-07-27 12:22:05 +00:00
moodler b2ce450a6b Improved cron jobs for central clean up tasks.
- there is now a randomiser so that these jobs are only run 20% of the time

 - duplicate enrolments are now cleaned up.
2003-07-27 12:20:29 +00:00
giro123 e61611898a *** empty log message *** 2003-07-27 05:28:31 +00:00
giro123 12244e3384 *** empty log message *** 2003-07-27 03:02:50 +00:00
giro123 04c79e281c *** empty log message *** 2003-07-27 02:07:40 +00:00
giro123 7969ce5bd7 *** empty log message *** 2003-07-27 01:16:59 +00:00
moodler 1dc42c2ef8 Fix for Herzogovina 2003-07-25 16:39:14 +00:00
selliott 1ddfec1175 Replaced call to function assignment_get_submission with call to get_record. This should clean up duplicate rows in assignment_submissions table. -- selliott 2003-07-25 14:28:26 +00:00
moodler da0c90c313 Fixed user graphs for site-level, all logs 2003-07-25 13:23:28 +00:00
moodler b0dd12a912 Manual method should just use the standard 'forgot password" button 2003-07-25 13:13:36 +00:00
moodler 5a8625e459 A better way of doing chat_get_latest_message() that doesn't conflict
with the debugging in get_record_sql
2003-07-25 09:01:02 +00:00
moodler 30e72d4227 FIxed the LIMIT bug I just made ... need to find a better way
as this sets off get_record alarms
2003-07-25 08:19:33 +00:00
moodler d2c538f1fb No need for body colour 2003-07-25 08:18:27 +00:00
moodler fcd3a1ee42 New feature - chat scheduling. Can now set a time for the next chat,
as well as rotating weekly or daily period.

Also some small fixes.
2003-07-25 06:47:06 +00:00
moodler f9919efd87 Better averages when students are missing 2003-07-24 16:59:11 +00:00
moodler 40b1a22162 Further changes to tidy up reports 2003-07-24 16:48:10 +00:00
moodler c7538de679 New string for simple stats 2003-07-24 16:44:21 +00:00
moodler c90f563e39 New simplestat report module.
This is very simple so far just to do some tests on larger datasets.

Soon it will have XLS and text download, as well as more question
information.
2003-07-24 16:43:24 +00:00
moodler 351039ae34 Further fixes to the last fix ... the same thing was happening further down. 2003-07-24 14:52:41 +00:00
moodler 5f474ef98a Split up the index.html and mods.html to take advantage of the new
/help.php

Some of these are still empty and will be fixed with text soon.
2003-07-24 12:57:40 +00:00
moodler 1517c0aa4d New version of help.php that automatically constructs the index.html
and mods.html files.

Direct from Mad Alex
2003-07-24 12:56:17 +00:00
moodler 4e29914577 If modules have a config.php file in them then a link to this is
printed in the modules screen.

These config.php screens presumably allow the setting of site-wide
parameters for modules.

Thanks to Mad Alex. :-)
2003-07-24 12:09:32 +00:00
moodler 6c6def145c New FAQ about the admin account 2003-07-24 08:53:43 +00:00
moodler 3712e0b5b5 YES!!! FINALLY fixed that damn bug that was causing the admin user
to be skipped during installation!

Bug 565 has the details, but basically it was caused by not initialising
the variable $user before using it.  Some people probably had a cookie
called "user" that was polluting the variable.

YAY!
2003-07-24 08:36:43 +00:00
moodler a96610151d Latest tags file 2003-07-24 06:43:14 +00:00
moodler 779e79f438 Better string for teacher reports 2003-07-24 06:21:21 +00:00
moodler 29d5d0b40c New modular plugin structure for quiz reports.
The code for reviewing an existing attempt is now separate
in review.php and now has a log entry of it's own.

The overview and regrade reports are now in separate subdirectories
under the "report" directory.  Each has a primary "report.php" file
which implements the report as a class.

These existing reports are very simple, but now more complex ones
can easily be written.  (I am about to do one).
2003-07-24 05:18:00 +00:00
moodler 350a05c4cf Fixed a missing translation string 2003-07-24 04:55:15 +00:00
moodler 0ed00b3b7f Change default logs to be "today's logs" 2003-07-24 02:29:59 +00:00
moodler 582de679a2 Some improved popup windows / links for user pictures 2003-07-24 02:25:23 +00:00
moodler cee5ff1d04 Better layout of gathering quiz results, which mkes it easier for developers
at the cost of perhaps a little efficiency ... some more testing on this i
should be done.   Thanks to Henrick Kaipe for this.
2003-07-24 02:04:22 +00:00
moodler 7e4a64888b When displaying a user's logs for the current day, make the graph
display ALL courses (ie to match the logs printed below).
2003-07-24 01:54:06 +00:00
mits 45a71412ae New translation added. 2003-07-23 14:26:30 +00:00
moodler 699ea457f9 Slight improvement for implementing styles ... since nested styles
don't seem to work as advertised
2003-07-23 14:03:01 +00:00
moodler c28a94c0ac A missing style 2003-07-23 13:35:24 +00:00
moodler 67fab9b4df New entries 2003-07-23 07:03:04 +00:00
moodler fbc9d26e2d New language: Greek! 2003-07-23 06:35:43 +00:00
moodler 7618a8eb92 More debugging/checking on get_record_sql 2003-07-23 06:30:26 +00:00
moodler 4d7a373539 Added some additional error checking of get_record_sql when in debug mode 2003-07-23 04:33:40 +00:00
moodler a4a4b858a3 Slight fix when adding log 2003-07-23 01:44:35 +00:00
thepurpleblob 464712ec77 Yet more minor problems fixed for hyperlink/mailto: conversion
difficulties
2003-07-22 10:11:12 +00:00
moodler 08b63144b8 Fixed missing string 2003-07-22 08:09:46 +00:00
moodler 23bca2c3eb Added a missing string 2003-07-22 05:32:59 +00:00
moodler 003175124d Fixed a typo 2003-07-22 02:00:44 +00:00
moodler c05f2f763b Slightly more robust in case it can't find users. See bug 562. 2003-07-22 01:58:44 +00:00
stronk7 3960a44b62 Reviewing an attempt now works fine with NUMERICAL and SHORTANSWERS
containing the "," character. Bug #561 closed.
2003-07-21 17:25:59 +00:00
moodler 35d01c7f31 When using the "manual" method, I've disabled the external method of
changing passwords, and enabled the internal "change password" button
just like "email" and "none".

Thanks to Danilo Massa for pointing out the inconsistency.
2003-07-21 15:20:58 +00:00
moodler 3e09b6262a Added missing string nomessages 2003-07-21 14:58:07 +00:00
moodler dd0bd5088c Increase the size of the field to store sequences in course_sections 2003-07-21 14:28:04 +00:00
johncaptain 759660c9d9 Added question: Resource1 2003-07-21 13:22:12 +00:00
compuproggy a47765b654 *** empty log message *** 2003-07-21 09:18:22 +00:00
moodler 1efa27fdbb Close loophole for invisible courses by re-enrolment 2003-07-21 07:50:59 +00:00
moodler 9ee379868a New strings for hiding courses 2003-07-21 07:43:04 +00:00
moodler d4f2e3fb55 Backup the new course->visible field 2003-07-21 07:35:58 +00:00
moodler a6d82c3f49 New course parameter "visible" which makes the course available to
students.  Defaults to 1 (on).  Teacher can control this from settings page.
2003-07-21 07:31:01 +00:00
moodler 319ea04166 Better formatting on IE 2003-07-21 05:31:23 +00:00
moodler bd5c05ffa6 Spacers look funny on IE 2003-07-21 05:13:08 +00:00
moodler 1ec3c09b6b Was cropping first/last message - fixed now 2003-07-21 05:08:46 +00:00
moodler b5477371e3 Put link at the top 2003-07-21 05:05:25 +00:00
moodler c3ba081792 Add a display of current users on the view page 2003-07-21 05:03:15 +00:00
moodler d4df9200b6 Moved print_headline() to weblib.php 2003-07-21 04:53:55 +00:00
moodler d861debecc Make session link translatable 2003-07-21 04:20:01 +00:00
moodler bdb4e5e23d Some rewording 2003-07-21 04:10:45 +00:00
moodler a669b1f5f9 Ah! Now we're getting somewhere - chat reports look quite nice now! 2003-07-21 04:08:32 +00:00
moodler 9df9138a77 A bit more usable now 2003-07-21 03:37:53 +00:00
moodler 22a4491ae9 Some new code related to the new reports - uploading for testing on
other server - still very early
2003-07-21 03:16:19 +00:00
moodler cea5796545 Only show "recent activity" for chats in the current course. 2003-07-21 01:35:28 +00:00
moodler f78ae3c432 Fixed translation 2003-07-21 00:59:21 +00:00
moodler 693b57dfde Slight change to string 2003-07-20 14:19:16 +00:00
moodler 058811c1c7 Changes related to new popup capabilities for "Web Links".
TRANSLATORS PLEASE NOTE:  help/resource/resourcetype.html has changed slightly.
2003-07-20 14:07:37 +00:00
moodler 23b8ce894a Added target again for non-Javascript users (I'd taken it out while testing) 2003-07-20 14:02:00 +00:00
moodler 93faa0c4e8 Give each popup a resource a unique window 2003-07-20 13:58:01 +00:00
moodler 3ee3e01a03 Popup windows now work on side links too 2003-07-20 13:56:27 +00:00
moodler 86aa7ccfdf New feature - "Web link" resources can now specify a popup window
fullscreen is currently the only feature left out of this .. I had
trouble getting it to work consistently so I've left it out as being
more troubles than it's worth.
2003-07-20 13:53:31 +00:00
moodler d769d2ee51 Rebuild course cache using the function for it. 2003-07-20 07:56:51 +00:00
stronk7 309fbe5681 Numerical questions included in backup/restore. Up a bit. 2003-07-19 18:02:03 +00:00
stronk7 e2bad68d23 Now numerical questions are included in backup and restore too !! 2003-07-19 18:01:11 +00:00
moodler 8fa367a9fe I'm about to start on some big jobs ... 2003-07-19 13:37:09 +00:00
moodler 66716651d4 For completeness 2003-07-19 11:59:55 +00:00
stronk7 5bcd2fa872 Modified a bit the form to avoid bug 556.
Seems to work fine now (render-html bug)
2003-07-17 22:11:08 +00:00
moodler 94cb8c7d95 Fixed call to get_all_instances_in_course() 2003-07-17 01:35:29 +00:00
palojacko 605fd762e4 update for moodle 1.0.9 2003-07-16 22:09:31 +00:00
rkingdon d90f8c6a54 Removal of debugging code; fixed bug in _get_student_submissions routine 2003-07-16 19:47:24 +00:00
stronk7 9380866797 Little modification to use $CFG->directorypermissions in mkdir 2003-07-16 07:57:10 +00:00
giro123 8cbe6d4b77 en 1.35 2003-07-15 18:20:19 +00:00
giro123 cc1c2fa6f1 en 1.156 2003-07-15 18:19:37 +00:00
giro123 0fa09c7a49 en 1.5 2003-07-15 18:17:52 +00:00
giro123 61036f520a en 1.18 2003-07-15 18:16:24 +00:00
stronk7 042c19f5a5 Changed backup logs default to NO. 2003-07-15 18:12:41 +00:00
stronk7 e487376a8c Added some flushes to avoid some browsers timeouts
when calculating what to backup (check phase).
2003-07-15 18:10:15 +00:00
moodler d246da7c70 UPdates from Paula Magri 2003-07-15 15:42:27 +00:00
rkingdon bd89f04f53 Minor corrections, addition of rubics table - July 2003 2003-07-15 15:24:58 +00:00
moodler f8a51b414b Don't convert URLs into links for the plain text format because
it can mess up code sometimes
2003-07-15 02:19:12 +00:00
moodler 7c55a29b37 Text emails now have html entities translated properly
Thanks to Gustav Delius for the patch
2003-07-15 02:06:51 +00:00
mits 0f46a5f343 New translation. 2003-07-14 23:45:57 +00:00
moodler 493486c43f Removed redundant up/down arrows ... let's see how everyone feels about it 2003-07-14 16:22:42 +00:00
moodler 7977cffdb0 Arbitrary moving of activities (aka cut and paste)
Some of this code was sent by Howard Miller, but I rewrote most of it
to make it shorter and to fit in better with current code.
2003-07-14 13:08:38 +00:00
moodler 29ee5550d3 Removing Chatarea completely from Moodle.
If anyone still wants it, I've made an archive here:

    http://moodle.org/download/modules/chatarea.zip
2003-07-13 14:03:20 +00:00
moodler 263cff8b75 Print images correctly on questions included from categories in
other courses.
2003-07-12 16:24:29 +00:00
moodler 52dcc2f9e6 Some slight cleanup (optimisation) of print_section and print_section_block 2003-07-12 06:52:26 +00:00
moodler cccb016ae4 When displaying index lists of a particular module's activities,
ensure that the order they are displayed in is always the same as the
order they have been defined in.   See bug 553.

This involved API changes to the function get_all_instances_in_course()
2003-07-12 05:19:18 +00:00
moodler 4337380421 Email addresses are now well and truly obfuscated on public profile pages 2003-07-11 08:38:39 +00:00
stronk7 bc66e327c6 Small typo when creating structures in a fresh installation
(no previous backup installed)
2003-07-10 18:21:32 +00:00
moodler 9c02661096 Added a question field to numerical table for completeness 2003-07-10 14:09:43 +00:00
moodler 361f649d7a New question type: Numerical questions.
Mostly coded by Henrik Kaipe - I changed a few things on the way in.
2003-07-10 13:25:07 +00:00
moodler 60bb26021a Whoops forgot to check these babies in 2003-07-10 08:12:18 +00:00
moodler cc3655a22c Just some comments 2003-07-10 08:11:58 +00:00
moodler 3a35179587 Updated a few glaring problems (old style code) 2003-07-10 08:06:09 +00:00
moodler 132911c884 Force unique entries in list 2003-07-10 06:42:44 +00:00
moodler 7d494f1c2e Need to escape slashes here 2003-07-10 06:38:02 +00:00
moodler 4854814402 Minor formatting fix 2003-07-10 04:49:13 +00:00
moodler b7602a115e Chat now prints something useful under recent activity 2003-07-10 04:46:03 +00:00
mits 7f4f4560b9 New translationd added. 2003-07-10 02:20:42 +00:00
moodler d490d8aa15 Right ping now 2003-07-09 13:09:00 +00:00
moodler a808a06f88 A beep is a ping. ;-) 2003-07-09 13:07:53 +00:00
moodler 48bae72ffb Slightly better window name 2003-07-09 12:55:07 +00:00
moodler 7d79236935 Simple beeping is now added ... users can now beep each other
and also beep everyone using "beep all"

There are no controls as yet to disable beeping on a per-user
basis but this would come next
2003-07-09 12:53:26 +00:00
moodler 09f97c8b47 A default beep 2003-07-09 12:37:17 +00:00
compuproggy e0f96309a4 *** empty log message *** 2003-07-09 06:32:50 +00:00
compuproggy 2000cb0671 A fresh translation 2003-07-09 06:23:10 +00:00
moodler 70363f8819 Updated this link too 2003-07-09 04:56:04 +00:00
moodler 2981721b76 Updated backup link (in future perhaps it should link to a generic
page from which backup file management and restores can be done too)
2003-07-09 04:55:10 +00:00
moodler 5351f569c6 Updated paths for new location (that was easy!) 2003-07-09 04:43:10 +00:00
moodler 87828a3a99 Demolishing the old house for these guys 2003-07-09 04:42:26 +00:00
moodler d7c93ec8fa Moving the backup libraries for each module into their new homes.
There's some beer and pies in the fridge, guys, settle in.
2003-07-09 04:40:35 +00:00
moodler a2e9f1c579 Add a notification when people have left 2003-07-09 04:27:23 +00:00
moodler 9f85bed4c3 Added emoting (both the MOO style with a : and the IRC style /me ) 2003-07-09 04:17:27 +00:00
thepurpleblob 28683e6c3b Added support for mailto links 2003-07-08 09:10:22 +00:00
moodler 10696dc1f3 Timezone included in user listing, plus new recent activity stuff 2003-07-08 06:47:44 +00:00
mits 174fffd541 character check. 2003-07-07 20:52:32 +00:00
mits c5444ad7e5 New translation strings and new file chat.php added. 2003-07-07 20:51:06 +00:00
giro123 fbde3cf968 *** empty log message *** 2003-07-07 20:39:52 +00:00
stronk7 e1b3457139 Some minor cleanings 2003-07-07 19:22:52 +00:00
stronk7 04ab6cabc6 Some debug info commented 2003-07-07 19:20:52 +00:00
stronk7 11c1d52551 Added some flush 2003-07-07 18:46:36 +00:00
stronk7 040c7b7099 Changed end 2003-07-07 18:42:19 +00:00
stronk7 d48370a60b Added some flush() to the backup process (in users, questions and logs) 2003-07-07 18:26:11 +00:00
moodler 5da9e4a5ac Small bugfix to allow question categories to be changed 2003-07-07 15:08:03 +00:00
moodler 0485fe6551 Added parsing of links 2003-07-07 13:23:33 +00:00
moodler 0927b54b4d Fixes for "wierd assignment error" - Bug #549, from Scott Elliott 2003-07-07 12:45:08 +00:00
moodler 34ce8fbbf4 Stuff 2003-07-07 12:12:44 +00:00
moodler a63d100a03 Show the intro text now 2003-07-07 12:11:11 +00:00
moodler 51600d9dab Fixed some accidental lowercasing 2003-07-07 11:52:05 +00:00
moodler 1bcb0d8700 Strings 2003-07-07 09:46:00 +00:00
moodler f7e648da70 Some minor improvements 2003-07-07 09:45:08 +00:00
moodler 1515a89e2d Very early version of new chat module, made by Martin using ARSC as
an inspiration.

Works OK already on most newish browsers .. see mod/chat/README.txt for details.
2003-07-07 06:44:16 +00:00
stronk7 96e1bd4a55 Included support to DESCRIPTION qtype.
Mainly, do nothing, but it's supported now :-)
2003-07-06 09:21:56 +00:00
moodler bca64a122b Don't allow grades to ever be set for description questions 2003-07-06 04:19:11 +00:00
moodler f65ed9726a Don't shuffle quiz questions by default (confusing to newcomers) 2003-07-06 04:08:46 +00:00
moodler 575de48fc3 Description questions should not be selected randomly 2003-07-06 04:08:11 +00:00
moodler 5cbf2187ab Added Description question to overall list of question types 2003-07-06 04:02:53 +00:00
moodler 401c8de6c5 New question type called "Description". All it does is print some
text and/or an image, without requiring an answer.  Can be used
to provide text for a following group of questions, or to insert
a joke in the quiz etc ...

This code is based on code sent in by Ursula Raab.  Thanks!

See: http://moodle.org/mod/forum/discuss.php?d=508
2003-07-06 04:00:05 +00:00
stronk7 fcf74f5a80 Changed the backup output to convert every "\r\n\" and "\r"
(Windows and Mac line-break sequences) to "\n" (Unix line-break
sequence) to be treated apropiately by nl2br function.
Updated to 0.8.1 alpha
2003-07-05 23:14:16 +00:00
stronk7 ca5c2e1d3c Now xmlize is invoked with XML_OPTION_SKIP_WHITE = 0 to
avoid \n skipping.
2003-07-05 22:44:29 +00:00
moodler c99ce77b17 Recommitting because of CVS wierdness 2003-07-05 11:52:01 +00:00
moodler 0d27c9ea8b Upgraded ADOdb to 3.60 ... supposed to be faster plus has bugfixes 2003-07-05 06:23:27 +00:00
moodler 221518e109 Added a missing string 2003-07-05 04:31:57 +00:00
moodler 72d497d4ce Display images inline when attached to forum posts 2003-07-05 03:54:10 +00:00
stronk7 7f7d8c9508 Little modification to show the "Backup Course" option if
backup utility is installed (not shwown else)
2003-07-04 17:47:10 +00:00
giro123 56ca681022 *** empty log message *** 2003-07-04 17:02:12 +00:00
moodler d5ded46f61 Just because it's about time to update it, and there's some big developments
starting up.
2003-07-04 13:39:11 +00:00
moodler 163c84ef63 Made a small start on the coding guidelines 2003-07-04 13:24:10 +00:00
stronk7 b1a09588e4 Now quizzes are restored too !! 2003-07-03 23:22:58 +00:00
stronk7 9079f6448c Updated to 0.8.0 alpha. Quizzes included !!
Broken compatibility with previous backups.
2003-07-03 23:21:27 +00:00
stronk7 ad80e394a0 Some comments and debug 2003-07-03 23:18:13 +00:00
stronk7 87cdd48c5a Remove thanks to Daniel in progress :-) 2003-07-03 23:17:07 +00:00
stronk7 39851da158 Now quizzes are restored completely.
Bronken backup compatibility again !!
2003-07-03 23:15:18 +00:00
stronk7 90c2f403e2 Changed to allow correct responses (match_sub) to be restored 2003-07-03 23:04:26 +00:00
giro123 ed51459ee4 Hungarian 2003-07-03 22:01:05 +00:00
bobopinna 8ec7d88384 Fill some new blank in version 1.0.9 2003-07-03 14:09:37 +00:00
moodler 2b32bdddb9 Keep strings cached in memory during a single page to improve performance
on slow filesystems or bad file caching.   (experimental)
2003-07-03 12:19:54 +00:00
bobopinna d82c1d629d Some blank filled. 2003-07-03 09:53:39 +00:00
stronk7 9464f66f82 Solved bug when triyng to backup mod without any module files.
Thanks to Daniel Miksik.
2003-07-02 22:33:25 +00:00
stronk7 7bfa4fade3 Excluded form quiz_choose_random_questions the quiz
questions to avoid duplicates in quiz. Bug #544. Closed.
2003-07-02 17:30:42 +00:00
moodler 3405b2123f For plain format, retain multiple spaces 2003-07-02 11:59:20 +00:00
moodler 0110e35cc0 Allow default countyr to be unset again 2003-07-02 08:37:15 +00:00
moodler ea68853b7c Hungarian credits 2003-07-02 08:09:49 +00:00
moodler 468c8a0949 New translation (based on 1.0.8.1) from Istvan Bozsa (bozsa@jht.gau.hu) 2003-07-02 08:08:24 +00:00
carlesbellver e0b23d06cd *** empty log message *** 2003-07-02 06:25:25 +00:00
mits d3f31aeddf added $string['parentlanguage'] 2003-07-01 14:18:04 +00:00
stronk7 cb0d53106e Little bug in randomsamatch questions. 2003-06-30 21:44:36 +00:00
stronk7 4f93ac2254 Update version to 0.7 alpha
Changes is backup to avoid duplicate tag names !!
Broken backup/restore compatibility with previous versions
2003-06-29 23:03:49 +00:00
stronk7 f82f87d630 Begin restoring quizzes (STEP 2)
Incomplete yet
2003-06-29 22:53:39 +00:00
stronk7 4db6f3f46a Now, restoring quizzes too (STEP 2).
But incomplete, yet !!
2003-06-29 22:51:48 +00:00
stronk7 242c6fe274 Changed some tags.
Old backups are now incompatible !!
2003-06-29 22:31:59 +00:00
stronk7 546431e9b8 Now categories and questions are recovered completely (STEP1)
Go up a bit!!    :-)
2003-06-28 23:24:51 +00:00
stronk7 56f56ca0b2 Now categories and questions are recovered completely (STEP1) 2003-06-28 23:18:37 +00:00
moodler df3fd24968 Better check of server name for unusual web servers 2003-06-28 18:45:19 +00:00
gregb_cc 4de4fdfe86 performance increase for make_editing_buttons, value for 'str' stored in static variable 2003-06-27 22:25:31 +00:00
giro123 dddbc256d3 without extra header info 2003-06-26 00:14:07 +00:00
giro123 2109681d59 *** empty log message *** 2003-06-25 17:36:36 +00:00
mits 91461bb84c Polished. 2003-06-24 20:00:22 +00:00
stronk7 477da948a8 I forget to update the firstpost field in discussions.
Solved.
2003-06-23 23:33:26 +00:00
stronk7 9f61d8aab5 Bug when reassigning firstposts in discussions.
Solved !! Uff !!
2003-06-23 23:20:48 +00:00
stronk7 6dbedc7fb2 Update version. It goes up a bit :-)
(journals and forums included)
2003-06-23 22:56:18 +00:00
stronk7 78e042f1c3 Now forums are restored too 2003-06-23 22:52:02 +00:00
stronk7 4995323f75 Now FORUMs are restored too !! 2003-06-23 22:50:47 +00:00
stronk7 7c7031dd16 Added some <br>... 2003-06-23 22:49:58 +00:00
stronk7 783ab2b07c Bug in backup_getid cause return record when no record
must be returned. Solved.
2003-06-23 22:36:42 +00:00
stronk7 6e0470a646 Changed to avoid backup_name contains whitespaces !! 2003-06-23 17:50:38 +00:00
stronk7 35672383ca Comment about backup name format without spaces 2003-06-23 17:31:02 +00:00
giro123 7406aa6747 *** empty log message *** 2003-06-23 16:16:35 +00:00
moodler ea5037be16 Small fix for string 2003-06-21 23:24:12 +00:00
stronk7 4912fae11b Minor change to avoid timeouts copying user files
and course files.
2003-06-21 22:37:57 +00:00
stronk7 dafb597400 Journals are restored too 2003-06-21 19:10:41 +00:00
stronk7 475a7b8804 Journal are restored now !! 2003-06-21 19:08:20 +00:00
moodler fc093dfa9b Use top, not parent 2003-06-21 08:25:15 +00:00
moodler a47240e69a Added targets for links 2003-06-21 08:24:14 +00:00
moodler a545f04cbe Added some instructions for non-developers 2003-06-21 08:21:07 +00:00
moodler b4a348291b Primary admin should never be allowed to be deleted by sub-admins 2003-06-21 04:09:20 +00:00
moodler 475fe8d16c Removing old files 2003-06-21 02:52:03 +00:00
stronk7 5acc69451e Although a lot of changes have been done in the backup/restore process,
only minor changes in STATUS.
2003-06-20 19:47:46 +00:00
stronk7 8328766280 Changes to work with data from fs instead of db.
Show progress info
Output data to the browser to avoid timeouts.
2003-06-20 19:46:01 +00:00
stronk7 adc8b0c7fe Changes to users restore and some minor bugs detected
(when no modules were selected to restore)
2003-06-20 19:44:06 +00:00
stronk7 af9cd9552e Changes in:
- Saving temp data to fs, instead of db
     (mysql limit bug OUT)
   - Modified clean directories (moodle standard delete dir
     function seems to work wrong with large dirs
   - Send info to browser continuosly to avoid timeouts.
   - Increase php execution time limit
   - More checks.
   - Restore into existing course now works fine
   - Create course_dir if it doesn't exist in the final step
     of backup.
2003-06-20 19:42:20 +00:00
stronk7 28a1cb407a Updated to 0.6.1 alpha (tons of changes) 2003-06-20 19:38:07 +00:00
giro123 f48dce348b *** empty log message *** 2003-06-20 17:45:37 +00:00
moodler 908d7b30fb Seems to be working pretty good - removing old lines no longer needed 2003-06-20 06:58:42 +00:00
moodler f95c2a73ca Anchors on threaded posts too 2003-06-20 06:50:14 +00:00
moodler b22b0e61f0 An initial effort at making posts return to correct context 2003-06-20 06:35:09 +00:00
moodler 0650989c76 About time to update it anyway 2003-06-20 06:31:33 +00:00
moodler f81e6589d6 Removed needless reference to $ME 2003-06-20 04:41:14 +00:00
moodler 4be030098f Some clean up when deleting activity modules 2003-06-20 04:34:22 +00:00
moodler 64a97704be Closed PHP tag 2003-06-20 02:54:33 +00:00
stronk7 6d840b7cb3 Changed backupdir.
Sin espacios ni caracteres raros, por favor. Es el nombre de un directorio.
Da problemas en en proceso de backup.
2003-06-19 23:29:35 +00:00
giro123 d0c8064140 *** empty log message *** 2003-06-19 19:55:56 +00:00
giro123 d9099017d9 *** empty log message *** 2003-06-19 17:53:55 +00:00
moodler 7d064d87ff Fixed a bug affecting the zipping of files within subdirectories,
patch from Robert Hetzel.
2003-06-19 13:12:34 +00:00
moodler 9dc9273aa9 Don't allow adding of users when external authentication is being used. 2003-06-19 03:00:58 +00:00
giro123 afcd2e04c6 *** empty log message *** 2003-06-19 02:31:15 +00:00
moodler dc7e8cb582 Add LIMIT of 1 to get_record functions ... the behaviour of returning false
when there were more than one record returned was sometimes causing
problems if the data was unclean due to a bug somewhere.

For example, if there are two copies of a section, then Moodle keeps
creating new ones because it can't find ONE.  This fix prevents that.
2003-06-19 02:18:51 +00:00
thepurpleblob 6d4952f3cf Added instructions for spell checker 2003-06-18 14:35:33 +00:00
thepurpleblob 5c408aeb8c Added dreadful spell checker option
Fixed bug where formatting at end of line failed
Removed substitution for single quotes bug (ended up as double)
2003-06-18 14:33:51 +00:00
mits e5781b4eed New string translated. 2003-06-18 09:10:40 +00:00
coolbit 19f1cd243e *** empty log message *** 2003-06-17 14:54:54 +00:00
stronk7 39cc53ca83 Go previous state (1.1) 2003-06-16 22:46:24 +00:00
stronk7 090b82f813 Little bug ending script. :-) 2003-06-16 22:03:48 +00:00
koenr 71762178f0 no message 2003-06-16 19:58:40 +00:00
koenr 14da6c3f23 Small changes. 2003-06-16 19:55:45 +00:00
koenr 9207ae6667 Small changes. changed schoolbord back to Blackboard (brandname) 2003-06-16 19:55:20 +00:00
coolbit 8c67a8bc60 *** empty log message *** 2003-06-16 16:51:49 +00:00
moodler 717f40c6d8 Some fixes to avoid pointless uses of $ME 2003-06-16 14:40:51 +00:00
stronk7 f238f38694 Changed backupdir. It must be a single word !! 2003-06-15 08:59:11 +00:00
stronk7 cbc926ef19 Directory name (backup/restore) and somo observation 2003-06-15 07:36:13 +00:00
moodler b8bf90c53f Minor interim change to improve display of discussions on user page
because some of them are getting really long on moodle.org

Eventually this display will be completely different, with information
about all public data.
2003-06-15 07:11:11 +00:00
moodler d0e922a9b2 Full path for some silly Windows machines 2003-06-14 13:04:58 +00:00
moodler 6e66c22f4c Fixed icons - bug 442 2003-06-14 13:02:06 +00:00
moodler d5945ef02c Fixed path 2003-06-14 12:45:09 +00:00
moodler 584ec10ecc JUmp menu from week to week 2003-06-14 12:17:13 +00:00
moodler f43e7c6f0e Firming it up 2003-06-14 12:09:35 +00:00
moodler cb208bf2b4 Silly typo 2003-06-14 12:00:31 +00:00
moodler 5932b3aa6d Slightly nicer trimming of section summaries 2003-06-14 11:59:23 +00:00
moodler 8b00b40692 Shorter menu 2003-06-14 11:54:07 +00:00
moodler 1d0196520e Testing new jump menu for topics 2003-06-14 11:50:32 +00:00
moodler 2c93da8ceb Some info about using crontab 2003-06-14 11:26:55 +00:00
moodler bb3f200a0c Removing English versions so that German speakers don't get out-of-date
help files (some have changed)
2003-06-14 11:10:23 +00:00
moodler 71e8bd81c4 Replace script stuff with xxx instead of space to avoid repeating sequences 2003-06-14 08:41:40 +00:00
mits 98808a46a0 Fixed. 2003-06-14 08:15:38 +00:00
mits a2fff0d348 New translation. Good for managing help file translation :-) 2003-06-14 08:14:27 +00:00
mits 95ba80b830 Polished. 2003-06-14 08:12:59 +00:00
mits e93bef5c20 encode fixed. EUC-JP + LF. 2003-06-14 07:45:36 +00:00
mits 68db5875f0 Polished. 2003-06-14 06:52:57 +00:00
mits aaf6c93c9c Polished 2003-06-14 06:41:55 +00:00
mits 235b320262 New file and translation. 2003-06-14 06:36:48 +00:00
moodler 4171f9b9a8 Fixes to colorchooser 2003-06-14 06:30:04 +00:00
moodler 496f77cce2 Rearranging to make it easier to read 2003-06-14 06:03:07 +00:00
moodler 95397c094a Added link for "Other" documentation 2003-06-14 05:48:57 +00:00
moodler 2cdcb45e84 Fixed some links 2003-06-14 05:47:47 +00:00
moodler feb1b0b019 Some cleanups - translators may want to check these 2003-06-14 05:45:13 +00:00
moodler 7faca74755 Removed some PHP 2003-06-14 04:08:43 +00:00
moodler 95b500763a Added an index to all help files. :-) Manually maintained at the moment. :-( 2003-06-14 03:52:23 +00:00
moodler 2da8349712 Clarified AON format 2003-06-14 03:50:58 +00:00
moodler 7404fe0ea3 Removing duplicate copies of en files 2003-06-14 02:16:17 +00:00
moodler 0880e50d53 Wider question textareas 2003-06-13 16:16:16 +00:00
moodler 7142bc1bbd Check existence of course format 2003-06-13 16:13:51 +00:00
moodler 2136ada61e Slightly bigger window 2003-06-13 16:08:56 +00:00
moodler 19cbf6ffa1 Slightly larger posting window 2003-06-13 16:07:13 +00:00
moodler 6feed269ba Some style changes to reduce the size of the richtext toolbar 2003-06-13 16:06:55 +00:00
moodler 829e2a6de9 Clearer idea of 1.1 2003-06-13 13:43:35 +00:00
uermelin 473f6a925d authentication changed 2003-06-13 12:13:30 +00:00
uermelin 14826bb77c new bug from me removed 2003-06-13 11:04:32 +00:00
uermelin ad004cefa5 deletequestioncheck changed 2003-06-13 10:56:00 +00:00
moodler deca24d5f4 Moving course formats into subdirectory.
This is the first step towards more pluggable course formats that can
be just dropped in to the system.
2003-06-13 08:41:57 +00:00
moodler ef5db7243b <em> tag added to the list of allowed tags 2003-06-13 06:57:42 +00:00
moodler 8e487c3dca Fixed a bug when admins edit user accounts from external databases 2003-06-13 02:37:52 +00:00
stronk7 c05d9c3ee8 Bug solved restoring in existing course. 2003-06-12 22:30:20 +00:00
stronk7 59728e8d4a Modified to flush data to browser... 2003-06-12 17:41:52 +00:00
stronk7 10453b424e Updated version to 2003061100 and modify backup tables (mediumtext) 2003-06-12 17:40:55 +00:00
stronk7 13e1a20fe1 Some improvements and tons of flushes !! 2003-06-12 17:38:36 +00:00
stronk7 5c191b96ee Clear temp data working now (uncommented) 2003-06-12 17:32:22 +00:00
stronk7 60b420af99 Added the backup_flush function use to send some data to the browser
flushing output inmediately
2003-06-12 17:29:16 +00:00
stronk7 d2c94f4b5b Typoooo :-) 2003-06-12 15:37:25 +00:00
stronk7 ac6a7b144d Changed max_execution_time to 3000.
Call to backup_required_functions included.
2003-06-12 15:35:37 +00:00
stronk7 fe3c84ab46 Added backup_required_functions to pre-check required functions in
backup/restore process.
2003-06-12 15:33:25 +00:00
johncaptain bb7ca60b29 correction to loginsetting 2003-06-12 13:20:37 +00:00
johncaptain 532a6cac21 correction 2003-06-12 13:18:39 +00:00
johncaptain 32986803f4 Minor change to expression 2003-06-12 13:15:02 +00:00
johncaptain 3025985d01 fixed typo 2003-06-12 13:09:58 +00:00
johncaptain 260c1b1426 Added item: loginsetting 2003-06-12 13:08:30 +00:00
moodler a6e5c89237 Changes to includes to make it more robust on different versions of PHP
while remaining secure
2003-06-12 12:00:15 +00:00
moodler d87b74c56a Parent language is "en" :-) 2003-06-12 11:56:20 +00:00
moodler db356340d8 Use parentlanguage when printing documentation 2003-06-12 11:55:29 +00:00
moodler 686be5b077 Some fixes to display documentation better in other languages 2003-06-12 11:55:03 +00:00
moodler aa635c4727 Modifications so that help falls back on parent language too 2003-06-12 11:35:12 +00:00
moodler 3fbd5dcc5f Removing optional items ... eventually will remove city and country as well.
This stuff will all be set via the user profile, and will be customisable
by the admin or teacher as well.
2003-06-12 08:01:17 +00:00
compuproggy c3c6b3600f An alle ?bersetzer der deutschen Versionen: Lasst uns koordiniert zusammenarbeiten
To all translators of the German Versions: Let us work together coordinated
2003-06-12 07:16:44 +00:00
compuproggy 66e26415fd *** empty log message *** 2003-06-12 06:11:44 +00:00
compuproggy 097a5aff67 New German Strings added 2003-06-12 06:07:42 +00:00
moodler 8c8a042559 Rmoved dot 2003-06-12 03:42:55 +00:00
moodler ab0f0dcb50 Added definitions for parentlanguage to all Spanish dialects 2003-06-12 03:38:13 +00:00
moodler 541863759f International Spanish.
This is to be the definitive Spanish version and the parent version of all
Spanish dialects.

Claudio Tavares is the maintainer and coordinator of this version.
2003-06-12 03:37:06 +00:00
moodler b282f78294 Personal form of German.
Adapted from "de" translation by Franz Horvath

Note this is the first lannguage to use the new "parentlanguage" string

In this case of course the parent is "de".

de_du probably needs some non-du string strings removed from it
2003-06-12 03:32:05 +00:00
moodler b947c69a71 Cleaned up get_string for language strings - slicker now
Added new feature: if a string "parentlanguage" exists then that
language will be tried before defaulting to English.

Useful for dialects or other languages that are similar.

For example, all the Spanish translations can default to "es"
2003-06-12 03:27:24 +00:00
moodler 34c84a186c Extensions for grades and comments from Thomas Robb. 2003-06-12 03:01:56 +00:00
stronk7 55513d3ec5 Changed max_execution_time and memory_limit php variables
to execute long and heavy scripts (restore and backup)  :-)
Only affects current script execution
2003-06-11 19:13:07 +00:00
giro123 f911710d0f *** empty log message *** 2003-06-10 22:28:13 +00:00
stronk7 d223ada029 Need to addslashes before put summary section data to db !!!
Now restoring sections is working.
User restoring failed !! -> Too much records !!
2003-06-10 17:27:08 +00:00
stronk7 4f39d4fb3a Changed the log_check_backup function to execute a count_records
instead of selecting everyting (crash when there is a lot of log entries).
2003-06-10 16:40:36 +00:00
stronk7 025288e27e Goooo 2003-06-10 15:56:47 +00:00
moodler 25cd6a0133 Fix the up down icons again 2003-06-10 15:51:23 +00:00
stronk7 02fa0aa3b0 Up a bit 2003-06-10 15:43:58 +00:00
stronk7 54b7cd7c60 Changed get_records (every field) in user_check_backup to
get_records (only id). Possible memory shortage when a lot
of users (3999) are retrieved.
2003-06-10 15:42:51 +00:00
moodler d7b97e437f Fixed help strings 2003-06-10 15:36:13 +00:00
moodler 12905134ab Sections can now be moved up and down 2003-06-10 15:27:09 +00:00
stronk7 0aefd39fd4 More debug... 2003-06-10 15:18:48 +00:00
stronk7 e60e65ab5f Some debug 2003-06-10 15:07:12 +00:00
stronk7 fb14b23be5 Little change to avoid iterate when no users are retrieved in
user_check_backup function
2003-06-10 15:02:53 +00:00
uermelin 93628fd361 addingquestions changed 2003-06-10 14:07:38 +00:00
uermelin 6f873e1f7e added addingquestions 2003-06-10 13:57:40 +00:00
moodler ad41694c04 Allow activities to be moved from section 1 to section 0 2003-06-10 13:26:26 +00:00
stronk7 290a1b4a3e Backup quizzes COMPLETED. Two setps finished. 2003-06-10 09:25:27 +00:00
mits c3add1a38a Polished. 2003-06-10 09:21:35 +00:00
moodler 21b1125f63 Make form destinations relative (to course/mod.php) to avoid
some form problems on mis-configured servers (wwwroot not quite right)
2003-06-10 05:33:58 +00:00
moodler 7789a7d16c FIxed the ID line 2003-06-10 05:25:38 +00:00
giro123 9455322c65 *** empty log message *** 2003-06-10 00:34:52 +00:00
giro123 91b17703de *** empty log message *** 2003-06-09 23:48:35 +00:00
stronk7 a7a055fd0d Included some new workings.
Quizzes (step 2) completed.
2003-06-09 17:12:57 +00:00
stronk7 a94891a727 Now quizzes are in backup.
Only STEP 2. Read comments in source !!!
2003-06-09 16:52:09 +00:00
moodler a5f25c0165 No need to shuffle the answers of multi-choice questions 2003-06-09 14:05:37 +00:00
carlesbellver 888bc12d4a *** empty log message *** 2003-06-09 10:05:10 +00:00
mits 0f46f0a1aa Polished. 2003-06-09 10:02:27 +00:00
moodler 0cd84e67ea Added a check to disable VBSscript as well 2003-06-09 06:18:45 +00:00
moodler f1c9d90fbb Better regular expression to catch javascript triggers 2003-06-09 05:54:14 +00:00
moodler 14f593e176 Better setting of defaults 2003-06-09 05:34:24 +00:00
johncaptain d9a145fd76 *** empty log message *** 2003-06-09 04:28:41 +00:00
moodler fc1207584a Better way of stripping Javascript using regular expressions 2003-06-09 03:00:23 +00:00
mits 29a72dd107 New translation and Polish. 2003-06-08 16:58:13 +00:00
mits 98dba8d77b New file translated. 2003-06-08 16:57:42 +00:00
moodler f99329636f Forgot some string conversions 2003-06-08 11:49:25 +00:00
moodler f207d09a64 More explicit byte-order of strings to make it work on non-Intel machines 2003-06-08 11:40:29 +00:00
moodler f065b63894 Fixed pass-by-reference 2003-06-08 11:25:45 +00:00
moodler 21a15d9fae better variable name 2003-06-08 06:46:56 +00:00
coolbit 0df57af8a3 Translation of surveys.html is not completed. 2003-06-08 01:31:21 +00:00
moodler a5a3da8b75 Language file for chatarea module 2003-06-07 08:09:43 +00:00
moodler d1a3dc8867 The session is now named "MoodleSession" to prevent conflicts with
other software.
2003-06-07 06:35:12 +00:00
moodler 8e340cb0b9 Don't return assignment submissions if no sumission has been made 2003-06-07 06:23:31 +00:00
moodler 43a78d7b7c New string for quiz index 2003-06-07 06:09:08 +00:00
moodler 4fa7532c24 Improved display of quiz listing to show the closing date, as well as
direct links for the teacher to review attempts.  Thanks, Scott Elliott!
2003-06-07 06:08:45 +00:00
moodler 51bc7fba59 Changes from Scott Elliott to make the listing more useful for teachers
Thanks, Scott!
2003-06-07 05:54:48 +00:00
coolbit 05a081b141 Add teachers.html 2003-06-07 05:27:28 +00:00
moodler 9fac414498 Slightly better English phrasing 2003-06-07 02:37:39 +00:00
stronk7 5c2365fbaa Backup journals COMPLETED 2003-06-06 20:07:10 +00:00
stronk7 cd7ad30f4b Backup journals COMPLETED. 2003-06-06 20:05:09 +00:00
stronk7 88b20de862 Small typoooooo ;-) 2003-06-06 19:43:10 +00:00
coolbit 33f68a4b56 *** empty log message *** 2003-06-06 14:44:13 +00:00
moodler d5c102d2df Fixed focus 2003-06-06 13:53:55 +00:00
moodler 72e4eac6c8 Use C-version of str_ireplace() if it is defined (PHP 5 only). 2003-06-06 09:46:27 +00:00
moodler 7c3188e286 Added robustness when no courses defined yet 2003-06-06 06:20:57 +00:00
moodler a46092d2d3 Added some missing Javascript events 2003-06-06 06:17:59 +00:00
coolbit 97b3c914f5 A little modified. 2003-06-05 15:22:32 +00:00
moodler e5426203f5 Updates 2003-06-05 12:21:44 +00:00
coolbit 14bf4caa9a *** empty log message *** 2003-06-04 16:14:55 +00:00
anvergara 267829a9c8 Fixed the following mistakes:
In file assignment.php:

string assignmentmailhtml: $a->tarea replaced with $a->assignment

In file journal.php:

string journalmail: $a->diario replaced with $a->journal
string journalmailhtml: $a->diario replaced with $a->journal
2003-06-04 15:46:47 +00:00
moodler 21e0afd404 More changes 2003-06-04 09:32:02 +00:00
moodler 685018d802 More info about setting up sourceforge 2003-06-04 09:10:03 +00:00
moodler 7daee58cb3 Some minor styling ... incidentally, last change was bug 480 2003-06-04 07:15:12 +00:00
moodler 6f9d8d65f6 More robust enrolment screen 2003-06-04 07:12:26 +00:00
moodler 61948621b5 Fixed up missing strings - now on par with English 2003-06-04 06:33:54 +00:00
moodler a1472f5152 Missing file 2003-06-04 06:21:35 +00:00
moodler e20d1105d6 Added contributors 2003-06-04 06:16:52 +00:00
moodler 8bf029f071 Latest version from Antonio Navarro 2003-06-04 03:47:00 +00:00
moodler 46d43bae66 Remove translated credits 2003-06-04 03:36:22 +00:00
moodler 301b2185b9 Unenrol - > unenroll 2003-06-04 01:31:30 +00:00
koenr 6a878fd779 Translated by Koen Roggemans 2003-06-03 21:52:53 +00:00
koenr 60b2ff2144 Translated by Koen Roggemans 2003-06-03 19:51:20 +00:00
koenr a90311c152 no message 2003-06-03 19:33:19 +00:00
stronk7 df09d3f238 Backup forums COMPLETED !! 2003-06-03 18:18:45 +00:00
stronk7 d559e7825a Now backups include forums COMPLETED 2003-06-03 18:17:33 +00:00
stronk7 78bb2765bc Solved little bug counting survey_answers (due to fast copy/paste !!)
:-)
2003-06-03 16:46:12 +00:00
stronk7 686dde9e39 Correct one source tab 2003-06-03 16:33:52 +00:00
stronk7 f28aefbe4f Little bug when renaming existent courses... 2003-06-03 16:32:38 +00:00
coolbit 14b7d47965 Polishing works. 2003-06-03 13:44:56 +00:00
coolbit b1095e3214 Polishing. 2003-06-03 13:01:00 +00:00
moodler 54c1a20cba Strip tags from Window title 2003-06-03 03:23:29 +00:00
moodler e67dd40a46 Added new FAQ fixdirroot 2003-06-03 03:12:02 +00:00
moodler cb5e3cb929 Small fix to not throw up error when current path discovered to be empty 2003-06-03 03:00:37 +00:00
coolbit 647d769dd9 *** empty log message *** 2003-06-03 02:02:34 +00:00
moodler aaa2ebbb0f Add slashes to title to avoid errors with quotes - see bug 479 2003-06-02 16:16:02 +00:00
coolbit db2883ff4e polish. 2003-06-02 11:22:02 +00:00
moodler 5c716ac2b4 Prevent possible error when editing non-HTML pages 2003-06-02 08:14:24 +00:00
coolbit 4c1ced25f5 Teacher manual! 2003-06-02 07:55:37 +00:00
coolbit ebf9d006e0 Polished 2003-06-02 02:24:22 +00:00
stronk7 f2e7f34b19 Serious bug when recoding assignment files. Solved !! 2003-06-01 23:04:38 +00:00
stronk7 9a90d7dbe0 Commented some debug :-) 2003-06-01 22:13:39 +00:00
stronk7 2ffc0358aa Uncommented clean_temp_data. 2003-06-01 19:59:42 +00:00
stronk7 a9367f2644 Due to problems in the FileManager with filenames containing spaces
force a replace from spaces to underscores
2003-06-01 19:58:08 +00:00
stronk7 a474362cf0 Little change to one backup string 2003-06-01 19:51:48 +00:00
stronk7 a498fae1ee Missing phrase change :-) 2003-06-01 19:40:10 +00:00
stronk7 10ee538602 Restore surveys COMPLETED 2003-06-01 19:39:16 +00:00
stronk7 ea2280282e Restore surveys COMPLETED. 2003-06-01 19:38:14 +00:00
stronk7 1552d8b4e1 Little modification. Speed up a bit. 2003-06-01 19:37:08 +00:00
stronk7 304084d937 Restoring choices COMPLETED 2003-06-01 18:19:09 +00:00
koenr b6f6c372cf corrected some minor mistakes 2003-06-01 13:05:00 +00:00
coolbit a6714cb845 Modified quiz help files. 2003-06-01 12:52:20 +00:00
stronk7 65ec0f59d1 Restoring assignmets COMPLETED
Cleaning up temp data
2003-06-01 10:44:35 +00:00
stronk7 bd19b8fa96 Restoring assignments COMPLETED.
Added clean temp structures
Increased version info
2003-06-01 10:40:11 +00:00
stronk7 99d1a496a4 Restoring assignments COMPLETED 2003-06-01 10:39:07 +00:00
stronk7 16f77249aa Added little check 2003-06-01 10:38:39 +00:00
coolbit 486f978c4d modifing 2003-06-01 09:19:38 +00:00
coolbit 9e34c25593 *** empty log message *** 2003-06-01 01:50:25 +00:00
coolbit fe09b894b9 Add resource helps. 2003-05-31 18:12:55 +00:00
stronk7 3ad243153a Typo :-) 2003-05-31 15:27:37 +00:00
stronk7 516c30b75a Now restore resources and final checks are included !!! 2003-05-31 15:24:14 +00:00
stronk7 5146bf9f54 Now readjusting course_modules instance and course modinfo
os implemented and working
2003-05-31 15:21:39 +00:00
stronk7 d6d7461bd9 Restore IMPLEMENTED 2003-05-31 15:20:25 +00:00
stronk7 58d9f06216 Small typo 2003-05-31 15:19:59 +00:00
stronk7 907933f6ae Included course/lib.php to execute rebuild_course_cache() 2003-05-31 14:51:38 +00:00
stronk7 6d18c5a214 Added backup_todb to addslashes and decode
from UTF before inserting info in db.
2003-05-31 10:08:44 +00:00
stronk7 04b353e4d6 Return info to know what modules process... 2003-05-30 22:55:40 +00:00
stronk7 0b1473f971 Stop showing this mods to restore 2003-05-30 21:56:47 +00:00
stronk7 22c5d5271a Only save to backup_ids restoreable modules. 2003-05-30 21:56:08 +00:00
stronk7 b274cafd99 Everything is ready to begin restoring mods... 2003-05-30 21:32:45 +00:00
stronk7 e3df3ece17 Begin restoring mods. Now they are readed and saved to db
(backup_ids) in serialized form.
2003-05-30 21:32:04 +00:00
stronk7 5f94815096 Included lib/xmlize.php to use it intensively
restoring mods.
Perhaps, in a future, the rest of the reading must be
xmlized too !!! (users, course_info, header...), but not now.
2003-05-30 21:30:47 +00:00
moodler 2424845faf Let's move on, shall we? :-) 2003-05-30 13:22:52 +00:00
mits c22d1fce77 New translation. 2003-05-30 12:20:59 +00:00
stronk7 7f5b5a1d1a Bug #468 solved. Missing <? ?> tags 2003-05-29 20:59:28 +00:00
moodler 6c3c1a6fac FIxed a link to my page 2003-05-29 15:50:27 +00:00
moodler 7f9bd7b9c3 Smileys now work in all Wiki texts 2003-05-29 15:39:51 +00:00
moodler 423b77166d A very small speed improvement 2003-05-29 15:24:14 +00:00
moodler e260f95baa No need to do smilies 2003-05-29 15:08:00 +00:00
moodler b28afcdfaa Some tweaks 2003-05-29 14:41:14 +00:00
moodler 5ff38fb4c4 Fixed some links 2003-05-29 14:20:00 +00:00
moodler c2d1141792 Some improvements - still working on these files 2003-05-29 14:13:18 +00:00
thepurpleblob 963163137f Smiley support added 2003-05-29 13:42:31 +00:00
koenr 2f216c360d Translated by Koen Roggemans 2003-05-29 08:49:21 +00:00
koenr c0f353c631 Translated by Koen Roggemans / Not perfect yet. connected and separate learning not translated. 2003-05-29 07:39:29 +00:00
koenr 7c4f60530a Translated by Koen Roggemans 2003-05-29 07:37:54 +00:00
moodler b9bcadeb22 More fixes 2003-05-29 03:36:23 +00:00
moodler 12fa80ff34 Fixed heading on release notes display 2003-05-29 03:24:50 +00:00
moodler 81716d0d33 I'm going to start packaging the release this evening (in about 7 hours).
Any last-minute little bug fixes are very welcome!
2003-05-29 03:22:56 +00:00
moodler 658bf42b26 One new string! :-/ 2003-05-29 03:20:33 +00:00
moodler 3ee8f1715f Added a button on the language page that takes you to the moodle.org
page to download new language packs
2003-05-29 03:20:11 +00:00
moodler 2334e9083c Minor bug fixes 2003-05-29 03:09:37 +00:00
moodler 4a6a574f2a Robustness on finding country name 2003-05-29 03:06:10 +00:00
moodler a205123f06 Fixed page title 2003-05-29 03:02:10 +00:00
moodler a6ee2f5e7d Some minor fixes 2003-05-29 02:36:25 +00:00
moodler 8590fd913d French Canadian translation, based on French, by Jean-Fran?ois Nadeau <JFNadeau@coll-outao.qc.ca> 2003-05-29 02:33:38 +00:00
moodler e7f72d1658 Removed a typo 2003-05-29 02:27:04 +00:00
stronk7 64eed73fa2 Changed bahabior when restoring into a existing course
(don't create sections and assign to section 0 if original
section doesn't exist). Everything is saved in backup_ids
to use it when restoring modules.
2003-05-28 23:41:56 +00:00
stronk7 381ae36075 User files and course files are now working !! 2003-05-28 19:48:10 +00:00
stronk7 1bdeb2ca8e Implemented copying course_files and user_files. 2003-05-28 19:43:11 +00:00
stronk7 8af2a809fb Little modification to show course's full name and short name too. 2003-05-28 18:18:45 +00:00
coolbit 5d224d17b6 Added workshop help files. 2003-05-28 14:37:34 +00:00
coolbit f001154b33 *** empty log message *** 2003-05-28 14:21:10 +00:00
koenr bca7452938 Translated by Koen Roggemans 2003-05-28 12:42:58 +00:00
moodler b366308091 Just about there ... 2003-05-28 08:01:15 +00:00
moodler f38485140c Fixed a bug 2003-05-28 07:43:51 +00:00
moodler 258be26525 Updated translation from Stig Bjarne Haugen (Stig.B.Haugen@hinesna.no) 2003-05-28 07:42:54 +00:00
moodler 5f4c712ea8 Updated translation for 1.0.9 from Emmanuelle Gutierrez y Restrepo (emmanuelle@sidar.org) 2003-05-28 07:16:41 +00:00
moodler 6d9aa82c99 New file 2003-05-28 06:43:25 +00:00
moodler 4c5686d97f Complete 1.0.9, from Claudio Tavares (claudio@enlaceacademico.com) 2003-05-28 06:42:26 +00:00
stronk7 d688c342ad Begin restoring user files. 2003-05-27 22:37:05 +00:00
stronk7 3f676beac0 Finished restoring users.
Now, if selected, restore user files (in progress).
2003-05-27 22:34:29 +00:00
mits 978962c8bb Broken character fixed. 2003-05-27 21:41:41 +00:00
mits 87cc153beb New translation added. 2003-05-27 21:36:05 +00:00
moodler 7647e09126 Fix the version in case I forget later 2003-05-27 16:53:16 +00:00
moodler 0fcd21c3bc Updated the year 2003-05-27 15:21:14 +00:00
moodler b09069a4c7 Various updates, rewrites etc
Overall I'm trying to remove the Martin focus and make it more neutral.

More to go.
2003-05-27 15:18:20 +00:00
mits 576fd161a0 Mod 2003-05-27 14:57:05 +00:00
moodler 16cba4cf88 Latest changes from Howard Miller 2003-05-27 14:25:15 +00:00
moodler fc55b4e900 Latest changes from Howard 2003-05-27 14:24:06 +00:00
moodler ab8c78b03a Getting close now 2003-05-27 03:39:03 +00:00
moodler ba6c4a8701 Fixed a typo (thanks Mits!) 2003-05-27 02:14:44 +00:00
moodler 6337086aca New file 2003-05-27 01:53:52 +00:00
moodler 111bfff48a Latest files from Wim! 2003-05-27 01:52:48 +00:00
koenr 31d7714a84 More strings translated, based on the job by Hans De Zwart. Changed upgeload by ge?pload 2003-05-26 21:54:24 +00:00
koenr 68225f50b4 no message 2003-05-26 21:52:09 +00:00
mits b9f0af5fb0 Polished 2003-05-26 17:49:37 +00:00
mits 7fe2220fc0 New translation. 2003-05-26 17:42:50 +00:00
mits a26d994d2b New translation and Polish 2003-05-26 17:24:37 +00:00
mits e7d1f700d9 New translation. 2003-05-26 16:45:28 +00:00
mits 9fc3e0ebef Polished. 2003-05-26 16:37:12 +00:00
mits cee7b95a10 Polished. 2003-05-26 16:29:06 +00:00
minkowski f933b27c32 revised and rephrased for 1.09 2003-05-26 16:28:05 +00:00
moodler 16ba73512e Slight improvements to import of global variables
- don't globalise cookies
  - better checking of lang variables
2003-05-26 15:38:52 +00:00
mits 84a8415baf *** empty log message *** 2003-05-26 15:32:16 +00:00
mits f6590fb484 Polished 2003-05-26 15:28:57 +00:00
moodler 3662bce5b4 A few tweaks for robustness. 2003-05-26 14:43:19 +00:00
moodler 1dd2451954 Some minor cleanups and debugging of initial setup 2003-05-26 14:38:41 +00:00
moodler 8d2accb64c More robust check of argument 2003-05-26 07:54:53 +00:00
moodler 02e44e7cf4 Print better loggedin info at the top of the page 2003-05-26 07:54:34 +00:00
moodler 8df45f47bd FIxed all moodle.com links 2003-05-26 07:07:53 +00:00
moodler 399266ce40 Removed the non-breaking space &nbsp; from the section summaries because
it would cause problems when the summary ended in a URL
2003-05-26 06:58:10 +00:00
koenr 03fa434bb3 New strings translated, based on the translation by Hans De Zwart 2003-05-26 06:14:42 +00:00
moodler 644f6213f1 Removed funny line feeds? Hope so. 2003-05-26 02:44:29 +00:00
moodler 8fad496688 Still trying to get this retun situation sorted out 2003-05-26 02:42:49 +00:00
moodler c451c1f6bd Removed mystery character? 2003-05-26 02:40:26 +00:00
moodler c8ddb345b9 DOS format 2003-05-26 02:32:11 +00:00
moodler 05c7ec6f2b Trying to force DOS format 2003-05-26 02:20:39 +00:00
moodler f7a6049e57 Checking in the include error code in again, with improvements
The problems I thought were happening were in fact another problem
on someone's installation (missing files).  This code now checks
for that too.
2003-05-26 01:54:11 +00:00
mits ff27a09eca Polished. 2003-05-26 01:39:21 +00:00
mits a166e72e43 New translation. 2003-05-26 01:38:29 +00:00
stronk7 4848d55a9e Few changes to gather info to show in restore progress
(various user counts (existing, new,...)
2003-05-26 00:07:56 +00:00
stronk7 0be7c25ebe Minor bug creating newid when restorinf users 2003-05-25 23:37:07 +00:00
stronk7 2f6c832d5c Included User restore. Hard work !!! 2003-05-25 23:02:09 +00:00
stronk7 a2c7397c42 Restore into new course and existing course implemented.
Restore sections and mod implemented.
Restore users (all, course and none) implemented
2003-05-25 22:58:13 +00:00
mits 4565e9cc0a New translation. 2003-05-25 22:02:50 +00:00
mits b1106eb5ba Polished 2003-05-25 21:58:22 +00:00
koenr 5f6604b578 no message 2003-05-25 21:52:13 +00:00
koenr 018dcb996d Thanks to Kris Gonnissen and Gerd Cornelissen for help and review 2003-05-25 21:49:49 +00:00
mits 131f438648 Polished. 2003-05-25 21:45:19 +00:00
mits bbc2e4226a Polished and New translation added. 2003-05-25 21:32:09 +00:00
palojacko ab34a057ed improved menu translation 2003-05-25 19:53:40 +00:00
mits 092c819e68 Character breaking fixed. 2003-05-25 18:37:57 +00:00
mits 20598e0da3 New translation. 2003-05-25 18:34:25 +00:00
mits 06e9af99e7 New translation 2003-05-25 18:19:54 +00:00
mits df415fbf08 *** empty log message *** 2003-05-25 17:45:41 +00:00
mits 8bcabc74e2 New translation file. 2003-05-25 17:43:53 +00:00
mits 57bcdda9f5 New translation 2003-05-25 16:58:09 +00:00
mits d03e4db1b8 New translation. 2003-05-25 16:02:48 +00:00
mits 8a600d7d1d New translation. 2003-05-25 15:24:30 +00:00
moodler 3926deafe1 Removed three lines - this fixes the path problems occurring when
extracting files in Moodle on Windows platforms.

This should not affect normal use within Moodle on other platforms.
2003-05-25 12:46:17 +00:00
moodler c4ad9158e3 More robust check for $CFG->backup_version 2003-05-25 12:14:15 +00:00
moodler aa140aabfd Going back to old method, as the new one seems to have problems on some
platforms.
2003-05-25 12:11:10 +00:00
stronk7 0535cadae5 Included new "autosubscribe" fiel in users backup 2003-05-25 09:31:17 +00:00
coolbit a5eb9f335f *** empty log message *** 2003-05-25 01:26:48 +00:00
coolbit b391b14bda *** empty log message *** 2003-05-24 16:55:18 +00:00
coolbit 09026b19d9 add forum helps 2003-05-24 16:49:36 +00:00
coolbit 893e0c5c0b add shufflequestions.html 2003-05-24 15:52:02 +00:00
coolbit eefa6d6e06 add some help files. 2003-05-24 15:39:58 +00:00
mits 3c382acc28 New translation 2003-05-24 11:51:01 +00:00
mits bf442dc9d6 Polished 2003-05-24 11:40:23 +00:00
mits 0c59a23c67 text-decoration: underline problem fixed.
copy theme->standard->styles.php to theme->oceanblue->styles.php and
changed a:link, a:visited, a:hover
2003-05-24 11:30:58 +00:00
mits 7a6112792c Polished and New translation added. 2003-05-24 11:06:19 +00:00
stronk7 6a602d47e0 hanged info field in backp_ids to store text data
(used when restoring long portions of data)
2003-05-24 09:23:41 +00:00
stronk7 5881bb7e3c Changed info field in backp_ids to store text data
(used when restoring long portions of data9
2003-05-24 09:23:05 +00:00
moodler 40343df7fd Users were able to see their own user activity reports. This was a hang-over
from long time ago.  As there is no GUI for this, I'm removing it for now so
that students are not able to see their own activity reports.

This issue probably needs to be discussed, and a GUI developed for it.
2003-05-24 07:33:22 +00:00
moodler 783da26290 A bit of an audit and a clean up of require_login to add consistency.
No major problems found, just some code tidy-up
2003-05-24 07:29:17 +00:00
moodler 73fafc3886 Bad bug fixed. Non-teachers could hide/show whole sections. 2003-05-24 06:59:36 +00:00
moodler 522f608d02 Important bug fixed! Non-teachers could modify course! 2003-05-24 06:53:47 +00:00
moodler 12c55f3cd4 Fixed a few obviouos errors and excess blank lines in the language packs 2003-05-24 05:22:05 +00:00
moodler bb515027b5 The single quotes caused problem on the rare occasions that these
unset strings were being written to the database
2003-05-24 02:34:29 +00:00
moodler fe3b0f3a2f New string 2003-05-24 02:32:26 +00:00
moodler 5c0567b4cd Don't allow password changing if the user isn't confirmed yet 2003-05-24 02:25:57 +00:00
stronk7 8fdd5ab2b3 Advance a bit more.
Course, course_sections and course_modules finished.
We have to update instance (in course_modules) and modinfo
(in course) at the end of the restore. We haven't the necessary
info now.
2003-05-24 00:34:27 +00:00
stronk7 7ba7461530 Finished restoring course, course_sections and course_modules.
When ending the restore process, we've to update the instance
field of course_modules and the modinfo field of course. Now
we haven´t the necessary info to do that.
2003-05-24 00:27:45 +00:00
stronk7 47e9035598 In course_modules export the field ADDED too. 2003-05-24 00:23:35 +00:00
mits 7134ebc80b *** empty log message *** 2003-05-23 23:04:04 +00:00
mits feffd1dffe New translation 2003-05-23 22:58:24 +00:00
mits 0aa35815c4 Polished. 2003-05-23 22:47:35 +00:00
mits f897f346a3 New translation. 2003-05-23 22:18:11 +00:00
mits ac722cc42b *** empty log message *** 2003-05-23 21:58:30 +00:00
moodler 219633ea2b organised --> organized 2003-05-23 15:21:32 +00:00
moodler 5325f8b8cf A little more guidance on the quiz page. 2003-05-23 15:20:41 +00:00
moodler b39cadbfe7 Formatting fixes from Windows editor 2003-05-23 14:41:22 +00:00
moodler 020181047d Some hacks to stop the addition of blank lines on Windows machines during editing in the web forms. 2003-05-23 14:25:55 +00:00
moodler a3152e449d Fixed excess blanks using new admin/lang.php 2003-05-23 14:24:48 +00:00
coolbit 02997ce175 complete workshop.php 2003-05-23 13:37:03 +00:00
uermelin 499c23e8fc fullname changed from nachname to Bezeichnung 2003-05-23 09:09:51 +00:00
moodler d8e2e28044 Added a check to make sure CFG->dirroot is correct. 2003-05-23 08:54:36 +00:00
moodler 1cb2266ef7 Tweaking subscribe strings 2003-05-23 05:46:07 +00:00
moodler 40e5eb1b33 Slight rewording 2003-05-23 05:42:46 +00:00
moodler 7f2a3e678e New field for user: autosubscribe
This sets the default value for on-the-fly forum subscription.
Defaults to on = subscribe.

(Also fixed a bug in postgres7.sql - a missing field for htmleditor!)
2003-05-23 05:32:40 +00:00
moodler 4b2b7a7110 Full formatting looks bad (too much whitespace) but smilies are OK 2003-05-23 05:05:49 +00:00
moodler 6687be174a Improvements to the wordings for subscription 2003-05-23 05:00:58 +00:00
moodler f5ca7ebe1a Display forum intros as formatted text 2003-05-23 04:51:28 +00:00
stronk7 f698f3f394 Finished restore frontend. 2003-05-22 22:59:21 +00:00
stronk7 6157b82c7b none 2003-05-22 22:12:32 +00:00
stronk7 7c934d06ed Finished the check phase.
Tomorrow I'll start recovering course info !!
2003-05-22 22:11:17 +00:00
koenr b088919164 New strings translated. Workshop.php = new file => not complete yet 2003-05-22 20:45:12 +00:00
koenr 849f614bd1 no message 2003-05-22 19:57:56 +00:00
thepurpleblob dec96d4f2c Added question/answer formatting to wiki help 2003-05-22 10:52:26 +00:00
thepurpleblob b2878fc5ae Fixed problem with list lines not being formatted
Added CVS hooks for <hr> and Question/Answer (Q. and A.) lines
2003-05-22 10:41:40 +00:00
coolbit ab48c1bb53 *** empty log message *** 2003-05-21 17:07:57 +00:00
bobopinna ec3db5a310 New updates from Roberto Pinna 2003-05-21 15:26:28 +00:00
bobopinna 31861ff29c *** empty log message *** 2003-05-21 15:08:45 +00:00
moodler 7a1205eea9 Changed instructions for Windows to Tortoise CVS 2003-05-21 13:52:07 +00:00
moodler 70d9c95acf New updates from Roberto Pinna 2003-05-21 12:56:34 +00:00
moodler 0e3e960a33 New file for debugging purposes, simply shows phpinfo() 2003-05-21 09:50:17 +00:00
moodler d805c3462e Removed the remote debugging functions.
I used to find these quite useful for helping people debug
configuration problems. I don't think they present a security
problem, but I can see there is the possibility that it can
be PERCEIVED as an issue, and I don't want to be responsible
for that, nor blamed for any break-ins (warranty or not).

So I'll find another way to do remote debugging.
2003-05-21 09:39:51 +00:00
moodler c3219da409 Much improved favicons (transparent and more consistent)
submitted by jdell (bug 442).
2003-05-21 08:48:18 +00:00
moodler c7ba7904cb Ray prefers icon3.gif 2003-05-21 08:13:08 +00:00
moodler be23a53ca9 Some fixes, after some testing 2003-05-21 06:10:43 +00:00
moodler 79da6d8717 Change to parsing to allow answers in any order - needs testing 2003-05-21 05:00:44 +00:00
mits 931ade40e3 New translation 2003-05-20 21:43:15 +00:00
paca70 f64fb7b192 Updates from Teemu Sumi. Thanks again! 2003-05-20 17:27:25 +00:00
moodler 353d033843 get_course_users now calls get_site_users if the course is a site.
There is something wrong with this SQL still though ... it mostly works
but I'm still getting wierd behaviour with small numbers of users.

Need some help here ...  for example just look at get_site_users()
on your test site.

It's supposed to return a list of users who are admins, creators,
teachers or students
2003-05-20 09:33:30 +00:00
moodler 35d606e6fa Just incrementing 2003-05-20 08:17:45 +00:00
moodler 11697b48ea Minor code cleanups
- lowercasing
  - removing short php tags
  - adding some emoticon help here and there
2003-05-20 08:03:12 +00:00
moodler 60ffb53a7d Minor code cleanup 2003-05-20 08:01:40 +00:00
moodler b5987b0f49 Added missing style - .forumpostheadertopic 2003-05-20 06:17:06 +00:00
moodler b1f505771e Fixed the bug I introduced in the last checkin (it was related to the
re-introduction of text fields in surveys)   See bug 441
2003-05-20 04:26:57 +00:00
stronk7 91d7f813e5 Initial checks. More to do !! 2003-05-19 22:34:12 +00:00
stronk7 304d7785ca Now all the required variables are set to call restore_check.html 2003-05-19 22:33:45 +00:00
stronk7 7e092fdaed Now call restore_check.html too. 2003-05-19 22:28:39 +00:00
stronk7 3f50cab58d Checks everything is OK before lanunch the process. It allows to
select the destination course.
Initial version, it doesn't work !!
2003-05-19 19:29:51 +00:00
stronk7 8d5b052f35 Now, one more step. Call to restore_check.html 2003-05-19 19:28:14 +00:00
paca70 844bad05a9 Updates. Thanks to Teemu Sumi. 2003-05-19 17:32:45 +00:00
moodler ad03ae446e Many corrections ... more needed 2003-05-19 15:34:27 +00:00
moodler 043b94f66d Glossary file from John Captain 2003-05-19 15:08:42 +00:00
moodler b95c3ab896 Add slashes to data when setting up guest account 2003-05-19 13:14:29 +00:00
moodler 779a4a8da4 Fixed up some of the headers during installation (remove logout links). 2003-05-19 13:12:27 +00:00
moodler 54242af0d6 Changed default strings to use single-quotes and avoid possible slash problems 2003-05-19 07:41:12 +00:00
moodler e9564a5a80 Fixed previous over-zealous lowercasing 2003-05-19 06:11:56 +00:00
moodler 240aca4b34 missing closing php tag 2003-05-19 04:55:11 +00:00
moodler 5d0f5a599b Removing strings make no worky worky 2003-05-19 03:34:57 +00:00
moodler 3ee236820a Some fixes for check_gd_version -- please test this for me on every server you have! 2003-05-19 03:27:13 +00:00
moodler 17ec8eb684 Remove unnecessary check (from a lazy copy/paste) 2003-05-19 03:03:34 +00:00
moodler 8c5b0c41bb Updated docs to use php_flag instead of php_value for booleans 2003-05-19 02:31:14 +00:00
moodler 730cb6bac3 Updated docs about using php_flag settings instead of php_value 2003-05-19 02:28:47 +00:00
moodler 6a6681294a Should use php_flag, not php_value, for boolean settings!!
See bug 429
2003-05-19 02:25:11 +00:00
stronk7 96376e9a4f Finalized. Form data is displayed dinamically, depending of
every mod features and the backup file-contents.
2003-05-18 22:57:23 +00:00
stronk7 96112b5224 Initial version. Does nothing !!, but needed to show info in
restore_form.php
2003-05-18 22:55:54 +00:00
stronk7 f2deadb30c Control when cancel has been selected. Inform and finalize. 2003-05-18 22:53:11 +00:00
stronk7 87d8623181 One more string to restore. Forget it in previous commit. ;-) 2003-05-18 22:51:52 +00:00
stronk7 4c94c21b11 Some restore strings... 2003-05-18 21:43:55 +00:00
stronk7 fd2f02d4cd Initial version. Form to select where and what to restore. 2003-05-18 21:41:08 +00:00
paca70 775f689b0f Some additions for postgresql 2003-05-18 18:23:07 +00:00
stronk7 c563a9a0d1 added check login, check admin and check site to every page.
If not, it was possible to execute them...!!
2003-05-18 17:15:05 +00:00
stronk7 cc7fa0dc05 Added a 4th OPTIONAL (default "get") parameter to
"print_single_button" function. Now can make "post"
forms too.
2003-05-18 16:41:23 +00:00
stronk7 729035fdaa Advance a bit more... 2003-05-18 15:54:01 +00:00
stronk7 76bf541df8 Course Header and Backup info is showed now !!
I'll start using sessions to mange all this data.
2003-05-18 15:51:20 +00:00
moodler 41a03b45f0 Added a stub for workshop_get_submission to stop errors on activity reports 2003-05-18 14:38:12 +00:00
moodler d41947c6be Some alternative icons for the workshop module!
Any comments, votes?
2003-05-18 09:28:42 +00:00
moodler c525b27592 Strip tags from page title, and some minor code cleanups 2003-05-18 06:05:23 +00:00
moodler 713386aadb Left out a field! mailformat 2003-05-18 02:36:02 +00:00
stronk7 fd43f7d026 Now course header is retrieved too !! 2003-05-17 17:34:30 +00:00
stronk7 48cbf566bb XML generation. Included the main course data under a HEADER tag.
Needed for recover.
2003-05-17 15:58:24 +00:00
moodler cd86c938b2 Some updates from Koen Roggemans 2003-05-17 12:44:28 +00:00
stronk7 ca2129424f Reading more info... 2003-05-17 11:40:27 +00:00
stronk7 a4ad03f175 Debug a bit 2003-05-17 08:56:53 +00:00
moodler 8b50d2a76e Some fixes to make choice reports work better when used at site level.
PLus some HTML lowercasing
2003-05-17 06:17:10 +00:00
moodler 06cffaf0bb No need to get all the user data for forum_subscribed_users 2003-05-17 06:13:38 +00:00
moodler bbf9b1624d Improved get_site_users a bit for efficiency 2003-05-17 06:10:20 +00:00
moodler 2563c5ef7b Improvements to trustworthiness of the registry form (for suspicious admins!)
Hashed password is no longer sent as a key, "secret" field is used instead.

HTML code is now more readable for the View Source crowd.  :-)
2003-05-17 05:34:49 +00:00
moodler 6879123761 This seems to help too. 2003-05-17 05:06:08 +00:00
moodler eab79dc13d Hopefully this will fix the logout problems - it now specifically
checks for PHP 4.3.0 or later, and also does the unset anyway.

Sessions are not consistent in PHP versions.
2003-05-17 04:45:52 +00:00
moodler 958facf055 Better cleanup of site description meta tag 2003-05-17 03:46:31 +00:00
moodler 14159d0960 Post beta 1 stage 2003-05-17 03:16:30 +00:00
moodler 07b586eaa3 Use global variable for phpinfo debugging info 2003-05-17 03:10:22 +00:00
moodler 7170501293 Better detection of register_globals 2003-05-17 03:05:39 +00:00
moodler 4d01ada343 More on Bug 427_ on second thoughts it's better this way, now at least
the true/false entries get updated every time the question is updated.
2003-05-17 03:02:59 +00:00
moodler a6ccb416f1 This should fix the non-translatability of true/false questions bug 427 2003-05-17 02:54:20 +00:00
moodler fcb12a1e0c Every line had three blank lines after it - please be careful Ursula 2003-05-17 02:31:31 +00:00
moodler c39c66a5e8 Using new ini_get_bool function to work around a bug with ini_get where
the result is different for items set in htaccess
2003-05-17 02:05:10 +00:00
stronk7 785ae439eb Begin parsing xml data.
Info tags.
2003-05-16 23:57:35 +00:00
stronk7 d348c53f1f Simple advance. None to do in DB. 2003-05-16 22:05:50 +00:00
stronk7 880fd2146c Updated. Some preliminary steps about restoring done. 2003-05-16 22:04:06 +00:00
stronk7 b9846a9b9e Copy, expand and do preliminary checks from backup file 2003-05-16 21:52:49 +00:00
stronk7 7641819df0 Moved the check_version code to lib.php
Formatted portions of code
2003-05-16 21:51:07 +00:00
stronk7 740aa005dc Interchange delete old data and create temp structures. The first time
an error ocurred, because we were trying to access an no-existent dir.
2003-05-16 17:36:47 +00:00
mits c061b8d2a5 New translation added. 2003-05-16 12:01:41 +00:00
mits 9ba291e88d Polished and New translation added. 2003-05-16 11:19:26 +00:00
uermelin 67d5ab6dc1 Licenz changed to Lizenz 2003-05-16 11:07:58 +00:00
uermelin 05c1cfba93 changed filloutthreequestions, savemyAnswers, marks 2003-05-16 11:06:32 +00:00
uermelin 71f64e123b bug in emailpasswordsent removed 2003-05-16 09:57:21 +00:00
moodler bf2919bf84 Some stuff about workshop 2003-05-16 08:53:22 +00:00
moodler 30739c3daf Added registration info 2003-05-16 08:51:10 +00:00
moodler bfe42924da Latest tags for vi etc 2003-05-16 07:04:09 +00:00
moodler 67fb6d3aaf Added a missing string 2003-05-16 06:40:46 +00:00
moodler 69ec0a8b1d Moved info about automatic unenrolling to the top where it makes more sense
I think.
2003-05-16 06:27:23 +00:00
moodler 5c219ea46d Added hyphen (-) to the list of allowed characters in a filename 2003-05-16 06:08:42 +00:00
moodler 60a60432a1 Explicit casting to (bool) may help 4.2.3 2003-05-16 04:47:40 +00:00
moodler 3a4c2fd089 I knew there was something else I'd forgotten!
Added a check to all modules (well view.php anyway) to check whether a
module is hidden or not.  If it is, then students get a message.
2003-05-15 18:03:22 +00:00
moodler 610603be4d More tweaks 2003-05-15 17:31:56 +00:00
moodler 7adf67875d Some notices to remind people about things they need to do. 2003-05-15 17:26:59 +00:00
moodler cf565fd7cf OK, this is pretty much time to call it 1.0.9 Beta 1 ... I'm going to
do a few last checks then tag it as "Moodle_109_B1" and package it all up.
2003-05-15 17:16:15 +00:00
moodler 33de9f7bdc FIxed bug where questions weren't being shown in reviews. 2003-05-15 17:01:35 +00:00
moodler 17df1ae4bd Obsolete 2003-05-15 16:17:37 +00:00
moodler 455d308f5d Some updates 2003-05-15 16:16:53 +00:00
moodler ae384ef160 New configuration variable: secureforms (defaults to 'true')
Replaces the old $CFG->buggy_referer (reverses it, in fact) and can
now be set in the configuration page (no need for it in config.php).
2003-05-15 15:59:52 +00:00
moodler 6bebcf8d72 Some minor cleanups, nothing functional, just code-level niceness mostly.
- xhtml cleanups, mostly from Peter Bazira
   - removed all short php tags
2003-05-15 14:34:48 +00:00
moodler c6a0f9d5bf Minor touch-ups to the front page HTML 2003-05-15 14:02:13 +00:00
moodler e48feed988 Many little clean-ups for themes.
- Got rid of obvious non-XHTML code in headers and footers.
  - Got rid of all the PHP short tags
  - Added new styles for the headers
2003-05-15 13:55:22 +00:00
mits 3e54b808bc Polished. 2003-05-15 13:15:44 +00:00
mits 0817d5cac0 New translation. 2003-05-15 13:14:40 +00:00
moodler ce729f49c8 New override for Apache's LimitRequestBody parameter which may limit files. 2003-05-15 11:15:55 +00:00
stronk7 0f192e2cd6 Initial version of restore. Simply, a copy from backup.php 2003-05-14 23:25:00 +00:00
stronk7 01a16f7e5e Lib to include all backup particulary functions (came from lib.php), but
desglosed now
2003-05-14 23:24:00 +00:00
stronk7 5aca97a20a Reset to empty lib before start developing 2003-05-14 23:22:50 +00:00
stronk7 476fd9c716 Minor changes to support the "restore" option with zip files. Only
showed if the backup utility is installed ($CFG->backup_version exists)
and the user is an admin. Sent email to Martin to say him this !!
2003-05-14 23:09:34 +00:00
stronk7 52376d940f Now backuplib.php includes all the functions needed in backup, restorelib.php all
the functions needed in restore and lib.php the rest of common functions.
2003-05-14 22:09:30 +00:00
moodler d288fa5255 Better code to deal with shuffleorder.
Now feedback is always in the same order as the quiz, and
reports are always in the natural order.
2003-05-14 16:52:25 +00:00
moodler a53cef7e80 Removed obsolete get_users_search function 2003-05-14 16:29:26 +00:00
moodler d8eece23c9 Revamped "Assign Creators" page with the same code as admins and teachers 2003-05-14 16:27:27 +00:00
moodler 46a244605d Some little fixes (can only see them on a server with lots of users!) 2003-05-14 16:05:21 +00:00
moodler e808d25f56 Fixed up "Assign teacher" page, and moved it to admin directory. 2003-05-14 15:58:48 +00:00
moodler ada728e24d Fix the order of questions when shuffle is NOT being used.
See bug 423 for details: http://moodle.org/bugs/bug.php?op=show&bugid=423
2003-05-14 15:23:54 +00:00
moodler 5a74165523 FIxed up function get_user() which now takes lots of parameters and
can be used all over the place.

Also, related fixes to "add admin" (MUCH better performance) and the user listings

More to come for "add teacher" and "add creator"
2003-05-14 15:19:04 +00:00
moodler 9a2efc9fb0 Don't be so pushy about subscription 2003-05-14 07:47:04 +00:00
moodler 76c1650d02 Changed home page link to moodle.org (from moodle.com)
I did some heavy thinking about this, and I think this is
best for the community.  I had wanted to drive some traffic
past moodle.com (the moodle.com will feature very prominent
links to moodle.org).  What I'll do now, I think, is put a
advertisements on http://moodle.org pointing to moodle.com.

Also some lowercasing of HTML.
2003-05-14 05:01:01 +00:00
moodler b086c2b527 Fixed variable name 2003-05-14 03:37:47 +00:00
moodler edea91f37b Fixed links in emails 2003-05-14 03:23:01 +00:00
moodler b13f7b84ec New Taiwanese (Traditional Chinese) version by Fu-Kwun Hwang (hwang@phy.ntnu.edu.tw)!
Strings mostly done, and about half the help files.
2003-05-14 02:43:27 +00:00
adamtpaw ce3b1d1f7d small corrections 2003-05-13 21:14:28 +00:00
stronk7 4f446b2e36 Minor changes in course_files_check_backup to avoid the backup
of files under get_string("backupdir")
2003-05-13 19:53:17 +00:00
mits 21951923a5 New translation. 2003-05-13 17:00:00 +00:00
rkingdon 16a0e6f05c Addition of teacher admin features 2003-05-13 16:37:47 +00:00
moodler e9d3eca323 Re-order list for consistency 2003-05-13 16:37:34 +00:00
rkingdon 72a2547d05 Some missing strings added; plus strings for admin 2003-05-13 16:33:34 +00:00
rkingdon daec2fede2 Minor change to wording 2003-05-13 16:29:54 +00:00
moodler ae078a9809 Mail-outs for assignment and journal module are now translatable. 2003-05-13 16:02:08 +00:00
moodler 0a9f61b55f When posting a forum, users can unsubscribe/subscribe on the fly.
The flag has a memory, but it keeps pushing you to subscribe.  :-)
(so that by default it behaves like it did before)

Hopefully now subscription is a bit easier to understand.
2003-05-13 13:53:36 +00:00
moodler ac4f6d455f Images are not put in a frame, but embedded in a normal page 2003-05-13 07:51:26 +00:00
moodler fa6a30b75c Added release and version information to registration 2003-05-13 07:35:18 +00:00
moodler 4bcc7ebfd6 Slight update to a string 2003-05-13 01:18:54 +00:00
rkingdon 56a800aac5 Correcting bugs in agreement of assessment and for self assessed
submissions
2003-05-12 21:18:21 +00:00
coolbit 6cdbd5d52a some modification 2003-05-12 15:53:08 +00:00
moodler 64900c048e If you can see this - please try the new admin registration interface! 2003-05-12 15:40:11 +00:00
moodler fe930cf3ca New feature - registration page. Registration should be working,
but I'm still working on the server-side stuff.

Look for the new button on the admin page.
2003-05-12 11:30:19 +00:00
moodler a0deb5db60 Add a backdoor for match_referer ... if the referer is "nomatch" then
it always returns true.
2003-05-12 09:22:00 +00:00
moodler 6a7ce0c1ab Some new strings for the registration function 2003-05-12 09:05:43 +00:00
moodler 170a9c4612 Force subscription on a teacher's forum only includes teachers! 2003-05-12 09:01:23 +00:00
moodler 393c9b4ff4 Fixes for detect_munged_arguments() and default values for p() s() etc 2003-05-12 06:35:32 +00:00
moodler 3551966092 Added new FAQ and fixed the TOC a bit 2003-05-12 05:49:06 +00:00
stronk7 f11d6df519 Survey backup included. 2003-05-11 22:44:40 +00:00
stronk7 af478c0b2b Avoid counting files under get_string("backupdir") as course files 2003-05-11 22:17:56 +00:00
stronk7 9025fec405 Choices are now backupables 2003-05-11 21:14:50 +00:00
stronk7 05b2871dfa Change in comment 2003-05-11 21:13:45 +00:00
stronk7 d06863d95f No it's backupable too 2003-05-11 21:12:28 +00:00
stronk7 df52003fb1 Little bug ending submission tag 2003-05-11 19:47:12 +00:00
stronk7 14014fb7e1 Some backup words... 2003-05-11 17:46:55 +00:00
stronk7 4784696533 Backup finished.
Limitations:
   - Only assignment and resource mods are exported.
Little problems persit:
   - PCLZIP/UNZIP incompatibility
   - Do not count backup files in course_files_check_backup
2003-05-11 17:45:56 +00:00
stronk7 b294bc4b1d Zipping files.
Ok under command line. Bad under pcl lib
2003-05-11 11:06:23 +00:00
stronk7 543009a54d Updated. User and course files copied to backup dir 2003-05-11 00:16:32 +00:00
stronk7 667d2f2a86 User files and course files are saved selectively to backup directory 2003-05-11 00:14:11 +00:00
stronk7 23e3e468aa no comments 2003-05-10 17:49:56 +00:00
stronk7 d0ef834745 Preparing the user_files and course_files copy 2003-05-10 17:44:08 +00:00
stronk7 4f6ae69e0e Bug returning status 2003-05-10 17:31:33 +00:00
stronk7 efead3b909 Now generate mod info about assignments (with file copy to temp/backup)
and resources.
2003-05-10 17:25:20 +00:00
moodler 2f518143de Tidy up of a code - took out all the short PHP tags 2003-05-10 09:36:57 +00:00
moodler be912538fa Tidy up of code, including removal of short php tags 2003-05-10 09:29:53 +00:00
moodler 232d36dffa Some minor cleanups to this page, including removal of short php tags 2003-05-10 09:21:02 +00:00
moodler 215e628dcf Removed some debug statements I'd left in by mistake 2003-05-10 03:02:19 +00:00
stronk7 32ad57746b Avoid undefined backupable mods to be exported 2003-05-09 23:21:55 +00:00
adamtpaw 54157606e0 Few mistakes rem?ved. 2003-05-09 22:37:08 +00:00
rkingdon a3a4cd3ed6 Corrected bug in SQL for workshop_comments table 2003-05-09 22:13:03 +00:00
stronk7 537718f85a Included log generation to XML 2003-05-09 20:05:15 +00:00
moodler 9d85990f62 Some additions 2003-05-09 17:48:31 +00:00
moodler 6d3566f8d5 Black M 2003-05-09 17:43:46 +00:00
moodler 5867bfb50e New feature to manage installed code modules!
You can now hide/show individual activity modules and even delete them completely!

For example, if you hide the "choice" module, then all choice activities
will be hidden throughout the whole site, and "Choice" will not
appear on any "Add..." menu.

Deleting a module is a complete deletion of all data from the database.

If you want to try out the deletion on a real module, I suggest the
pgassignment module, since it will soon be deleted from CVS anyway
(because it's being replaced with workshop).

Look for "Manage modules" on the admin menu.
2003-05-09 17:24:17 +00:00
stronk7 cfb9c52577 User accounts are now included in XML generation 2003-05-09 14:57:41 +00:00
moodler 7e6b0b3b6e Added new 'visible' field for module management. 2003-05-09 13:32:27 +00:00
moodler 767141c19e Latest updates from Hans De Zwart 2003-05-09 12:47:56 +00:00
moodler 92ce3481fc Please don't put English docs in non-English packs ... they are changing
rapidly so these just go out of date for no reason.

Cheers,
Martin
2003-05-09 12:41:20 +00:00
compuproggy de1a5345cb Who is interested working in a free general open source translating network? Mails to
HS@interS4S,net
2003-05-09 07:18:14 +00:00
compuproggy d6be31eeed *** empty log message *** 2003-05-09 07:10:26 +00:00
moodler 6afe855886 Better tooltip help on post attachments 2003-05-09 06:03:47 +00:00
compuproggy 98a792faaf *** empty log message *** 2003-05-09 05:58:22 +00:00
moodler bbc0d9abbf IMPORTANT SECURITY FIX: prevents external PHP code from being run 2003-05-09 02:32:43 +00:00
moodler 9f71c9e713 Use the new $CFG->dbpersist variable in config.php to determine whether
to use persistent connections or not.  The default is to use them (for
speed/efficiency) but now they can be switched off with:

$CFG->dbpersist = false;
2003-05-09 02:20:03 +00:00
moodler 6c8e8b5ed4 IMPORTANT SECURITY FIX: this prevents bad characters being passed to help.php 2003-05-09 02:05:16 +00:00
moodler 3d9f0f81d6 IMPORTANT SECURITY FIX - this makes sure $CFG can not be overridden 2003-05-09 02:02:27 +00:00
rkingdon 9b09f7d0cd workshop: addition of peer agreement 2003-05-08 20:31:05 +00:00
rkingdon 319b375ecc workshop: add peer agreement 2003-05-08 20:26:51 +00:00
rkingdon 5c2ba38c45 version 1.1 with peer agreement 2003-05-08 20:24:41 +00:00
moodler 5f94c13b6b New version of Wiki stuff from Howard Miller.
Some cool new features, including linking to Moodle activities!
2003-05-08 16:20:38 +00:00
moodler e825f27967 New pop-up help page about smileys - clicking on the smiley inserts it
into the form using Javascript!

Also rationalised and patched some of the other help about text formats.

LANGUAGE EDITORS MAY WANT TO RE-CHECK:

   lang/en/help/textformat.html
2003-05-08 16:09:30 +00:00
moodler a9c2c8fd8f New "special" help file with javascript :-) 2003-05-08 16:03:57 +00:00
moodler eb7ec77d68 FIxed bug 406 - richtext setting resets! 2003-05-08 13:34:42 +00:00
compuproggy ac6e435422 *** empty log message *** 2003-05-08 06:55:32 +00:00
compuproggy a414246dc9 *** empty log message *** 2003-05-08 06:28:24 +00:00
compuproggy 729fbeee94 *** empty log message *** 2003-05-08 05:16:07 +00:00
coolbit 1f49a7b780 *** empty log message *** 2003-05-07 23:07:50 +00:00
stronk7 0915679c36 Updated. Sections included !!! 2003-05-07 22:18:05 +00:00
stronk7 52b538621e Changes to support xml sections generation.
And convert htmlentities an utf8
2003-05-07 22:15:14 +00:00
gregb_cc ea6e952d88 fix for bug 324. we are now checking to see if there is a conflict caused by
multiple teachers gradign simultaneously.
2003-05-07 20:53:24 +00:00
stronk7 95f6c01b03 Only admins can execute me !! 2003-05-07 16:09:34 +00:00
moodler e51de1e846 Fixed a typo 2003-05-07 15:08:50 +00:00
moodler ab74168b2d FIxed typo in favicon 2003-05-07 14:12:45 +00:00
moodler d94dc588ab Slightly better favicons 2003-05-07 13:04:52 +00:00
moodler d6513bbb0c Seemed like a good idea. 2003-05-07 11:57:10 +00:00
moodler 0f4f911059 Added .jpe as a JPEG (some people do it I notice! :-( ) 2003-05-07 11:43:08 +00:00
moodler e865ded4ba Don't treat Flash files (.swf) like other images. 2003-05-07 11:41:27 +00:00
moodler 0cb29cc411 Turn off PHP error reporting while connecting to database 2003-05-07 08:07:48 +00:00
moodler 4f5dbd132c Try persistent connection first, but if that fails for some reason then
automatically fall back to a non-persistent connection.
2003-05-07 08:03:43 +00:00
moodler f5fb84cee7 Small bug fixed where last question of a file wasn't detected if it
wasn't followed by a blank line
2003-05-07 05:46:01 +00:00
moodler 7aab220e4b Fixed typo 2003-05-07 02:13:24 +00:00
stronk7 fdcdc04730 Updated. XML generation (header & info only) 2003-05-06 23:01:53 +00:00
stronk7 3b8bad6ff0 Included support to clean /temp/backup automatically and to write
the xml file (header and info only)
2003-05-06 22:48:25 +00:00
stronk7 000969becd Included to get Moodle's version into xml file 2003-05-06 22:47:06 +00:00
moodler 2fb7c49f17 Undoing an accidental check-in. These were some experiments trying to
solve a Windows problem (not successful yet).
2003-05-06 16:06:56 +00:00
moodler 1f33691c86 Cleaned up the initial setup process. It looks a bit smoother now.
Hopefully this is also the end of the occasional errors we keep
hearing about to do with never getting to setup the admin user.
(I think admin/site.php had a redirect that didn't always work).

The setup process is now much better at "trapping" you until it's all done.
2003-05-06 15:58:20 +00:00
moodler 49543158f7 Upgraded to latest code, and add lots of new languages 2003-05-06 11:14:31 +00:00
moodler 851a89ff1b Minor fixes for re-inclusion and also links in email 2003-05-06 03:33:55 +00:00
moodler 813ec7ad65 Prevent guests from taking surveys 2003-05-06 03:06:06 +00:00
moodler fce1ce13c8 Hide admin links (eg grades) from guest accounts 2003-05-06 03:02:58 +00:00
moodler 266fbe1a8a Changes to improve hide/show of individual activities when the last
action was to hide/show a topic
2003-05-06 02:51:38 +00:00
moodler 5f350e8f6d Improvements for PLAIN FORMAT (links) plus some efficiency I think 2003-05-05 16:40:46 +00:00
moodler 01d799665d Better detection of URLs in brackets etc ... plus some tweaks 2003-05-05 16:28:40 +00:00
moodler b879effb4a Fixed bug that was not listing discussions that had identical subjects! 2003-05-05 16:21:45 +00:00
paca70 a918234e91 Postgres limit fix 2003-05-05 16:13:45 +00:00
moodler 11a876e1b6 Minor touches to notice() padding 2003-05-05 12:25:08 +00:00
moodler 4105fe9dd2 Added two styles: .noticebox and .noticeboxcontent 2003-05-05 12:17:34 +00:00
moodler 581d7b4959 Fixes for isadmin() 2003-05-05 11:38:54 +00:00
moodler bb19372c0f Some additions 2003-05-05 09:02:17 +00:00
moodler 068be67d83 Formatting fixes only 2003-05-05 08:31:04 +00:00
moodler 1e2fedeef0 Some additions etc 2003-05-05 08:25:53 +00:00
moodler ea23100a02 Style cleanups. Some consistency, converted all to Unix format, and
added manual setting of the MIME type.
2003-05-05 08:12:28 +00:00
moodler 2bc269fd7b Typo in javascript .... selectedindex should selectedIndex ! 2003-05-05 07:44:53 +00:00
stronk7 be4c89b86a Updated and new entries. Don't forget them !!! 2003-05-04 23:39:24 +00:00
stronk7 674b30f5f7 Begin the execute process. Created temporary structures (dir) 2003-05-04 23:24:48 +00:00
stronk7 39c4f15a40 Removed from CVS. Changed to backup_check.html and backup_form.html 2003-05-04 21:33:05 +00:00
stronk7 b0778a76c3 Changed to link with new files (backup_form.html, backup_check.html
and backup_execute.html)
2003-05-04 21:32:11 +00:00
stronk7 a615cc7bb6 Renamed from check.html, execute.html and backup.html to avoid
problems when doing restore.
Old files deleted from CVS
2003-05-04 21:29:27 +00:00
stronk7 3868b9c666 Finished the check phase. Ready to begin the execute phase. 2003-05-04 21:01:47 +00:00
paca70 465fd00e04 Lang column was missing from postgresql-files (?) 2003-05-04 16:05:59 +00:00
paca70 8a230a7d96 Better postgresql support for column creation 2003-05-04 16:03:45 +00:00
moodler 1215e52299 CVS is acting up 2003-05-04 15:18:25 +00:00
moodler d15cbab76f Remove dashes 2003-05-04 15:17:20 +00:00
moodler 93d64ea469 Get rid of dashes 2003-05-04 15:16:17 +00:00
moodler 1ea7c62794 Weeks now do show/hide too ... and some cleanups all round 2003-05-04 15:10:25 +00:00
moodler b37eb1bf00 Theme updates to suit new course formatting 2003-05-04 15:09:13 +00:00
moodler f50f74f6e4 Missed some pixels 2003-05-04 13:48:39 +00:00
moodler ff82802366 Slightly better logic 2003-05-04 13:44:56 +00:00
moodler 3bb49201b1 Some image spacing issues 2003-05-04 12:56:05 +00:00
moodler 2fe2985a53 Nicer eye :-) 2003-05-04 12:49:35 +00:00
moodler 8140c67e45 More tweaks to the topic interface ... nice light globes! 2003-05-04 12:34:43 +00:00
moodler a6d71a2199 Upgraded ADOdb to version 3.40
Works OK for me in tests under MySQL on my server
2003-05-04 11:59:49 +00:00
paca70 c0ba103ca7 Added transaction around table creation 2003-05-04 10:45:57 +00:00
mits cda45e5506 New translation added. 2003-05-04 10:28:13 +00:00
paca70 5ade559e8e updates 2003-05-04 09:56:35 +00:00
moodler 4fc61176b9 Some tweaks to some strings (hide/show) 2003-05-04 09:44:40 +00:00
moodler dfec7b013f Some clean ups - various things to do with Topics view 2003-05-04 09:43:03 +00:00
paca70 592188b42c First versions for postgres7 2003-05-04 08:56:30 +00:00
mits ffb71387cb no message 2003-05-04 08:36:53 +00:00
moodler 59345eb4ec Removed unused function 2003-05-04 08:36:32 +00:00
mits b2a47e2052 New translation added. 2003-05-04 08:31:16 +00:00
moodler 228b823898 Topic strings etc 2003-05-04 08:14:48 +00:00
moodler 59cd767a99 Beta workshop icon 2003-05-04 08:04:22 +00:00
moodler 46772d8c60 These icons are just temporary - they don't look great 2003-05-04 08:02:07 +00:00
moodler 7d99d6959e New feature: hide/show topics! 2003-05-04 07:59:46 +00:00
moodler 81ed361792 Added new style for hidden topics as well as some docs about
all the changes in this version
2003-05-04 07:58:15 +00:00
moodler 2627a658f8 Latest tags 2003-05-04 04:14:14 +00:00
moodler d342c76370 Added Wiki format as a system-wide format (forums, journals, etc)
Also, added better formatting to plain-text emails via a new function
in weblib.php  -  format_text_email
2003-05-04 04:07:36 +00:00
moodler d7c8a46bc5 Don't throw errors when deleting old logs and unsent mail 2003-05-04 03:46:15 +00:00
moodler 9f0b8269ac Fixed bug where text format of a new discussion was not being saved 2003-05-04 03:43:46 +00:00
moodler eb347b6b68 Fixes to improve the password recovery process. There is now a
confirmation step required before the password is changed and sent.

Also, many of the email texts have been cleaned up.

TRANSLATORS:  check your texts in moodle.php starting with "email.."
2003-05-04 03:00:52 +00:00
stronk7 1b502431a8 Commented the "needed users" option (too complex for this initial release).
Check all and course users.
2003-05-04 01:10:20 +00:00
stronk7 dfe5f88b3b Check mods and check users done 2003-05-04 01:05:58 +00:00
stronk7 b4bee933da Added some entries to the backup/restore utility 2003-05-04 00:01:43 +00:00
stronk7 afbe3de8cf Library to every functions related with the backup/restore matter 2003-05-03 23:20:38 +00:00
stronk7 04aa5b2de1 To mantain updated the db with the auto-update feature.
This file is for mysql installations. Every DB must have
its own file.
2003-05-03 23:19:07 +00:00
stronk7 c4c8f73c4a File that contains currect backup/restore version. To use with the
auto-update feature (copied from moodle main code).
2003-05-03 23:17:40 +00:00
stronk7 8cc242516e Changed to support the backup_ids table in all modules (to store and
convert ids in backup/restore.
Added a check_version (copied from main moodle auto-update) to mantain
changes in backup/restore system.
2003-05-03 23:15:43 +00:00
moodler 8980a4e8db Trying to unregister sessions properly and hopefully avoid the "compat"
warnings on some setups
2003-05-03 11:45:41 +00:00
adamtpaw 24a39b1761 Few corrections to inital translation. 2003-05-03 09:30:22 +00:00
moodler 984a8bf349 Two new language variables implemented.
langmenu  - turns the language menu on and off
langlist  - allows the admin to restrict and/or re-order the available language choices
2003-05-03 06:50:29 +00:00
moodler 107b010b43 Some random lowercasing 2003-05-03 06:49:37 +00:00
paca70 ea563f8f99 Postgres needs full longnames for indexes to prevent overlapping names. 2003-05-03 06:44:03 +00:00
moodler 3565715c76 Moved the "turn editing on" button and tidied some other things up a bit 2003-05-03 05:57:29 +00:00
moodler 005103e0bc Changed some function names, making room for export functions later 2003-05-03 04:31:49 +00:00
stronk7 141097ff80 Finalized every mod check 2003-05-02 23:32:02 +00:00
stronk7 d6545aefbc Check page finished (all mods except quiz). 2003-05-02 17:22:18 +00:00
moodler c6bcd06aba Tidied up the quiz imports a bit, and added AON as a format choice
Also added Scott Elliott's Blackboard module!
2003-05-02 15:31:24 +00:00
stronk7 02fee14e28 Changed the name of the backup 2003-05-02 14:48:11 +00:00
stronk7 82e8e7f569 Two new strings to backup function 2003-05-02 14:40:32 +00:00
stronk7 75da62deee changed backupnameformat 2003-05-02 14:39:54 +00:00
stronk7 519bd9342a Completed the module_check_backup_mods function (used in check.html) 2003-05-02 14:38:16 +00:00
stronk7 61ae5d36ca Modified the userdate() function. No changes needed when invoking it.
Added a new parameter (fixday->default true->old behavior) to avoid
formatting days when invoked with false value.
2003-05-02 09:37:41 +00:00
moodler b1834f2dde More tweaks 2003-05-02 08:42:31 +00:00
moodler 6f40f198d2 Tweaks 2003-05-02 08:35:02 +00:00
moodler e6622eda6a Simplified intro a bit 2003-05-02 08:29:35 +00:00
moodler c45855e551 Added FAQ about quotes 2003-05-02 01:24:27 +00:00
stronk7 7db29e6783 More strings to the backup utility 2003-05-02 00:58:34 +00:00
stronk7 10332943ca Add more things !! 2003-05-02 00:57:57 +00:00
stronk7 d67257815d Completed the module_check_backup_mods function (used in check.html) 2003-05-02 00:54:51 +00:00
stronk7 c53987bbb8 This file shows all the info gathered before launch the backup
process itself.
2003-05-02 00:53:40 +00:00
gregb_cc aa0959690c fixed isadmin so that it checks once on each page view if the user is an admin
fixed check_gd_version to properly identify bundled gd versions (old
check_gd_version was returning 0 instead of 2 for bundled gd).
2003-05-01 23:12:05 +00:00
mits 890a2cfeea New translation added. 2003-05-01 17:50:05 +00:00
stronk7 c5be7d8e8e Included Schema of evey mod (comments) and complete
assignments
2003-05-01 17:43:03 +00:00
stronk7 737c4885be Simplified a lot (I discover the variable variables in php !!) 2003-05-01 17:42:08 +00:00
stronk7 3fe1c56cdd Changed 2003-05-01 17:41:16 +00:00
moodler b3afe8244a Useful function for XML ... currently used only in Blackboard quiz importing 2003-05-01 13:57:35 +00:00
moodler 52ff6a7f44 Updates (removed Peer-graded module) 2003-05-01 13:46:11 +00:00
moodler d22d31c659 Workshop module from Ray Kingdon
This version is still beta!
2003-05-01 13:16:58 +00:00
moodler edffca1558 Changes to make forum mailouts a little more robust, and avoid duplicates
I hope, at least the ones caused by overlapping cron jobs.
2003-05-01 12:56:03 +00:00
stronk7 28408ed2ac Two more strings to backup utility 2003-05-01 12:47:52 +00:00
stronk7 d4ccfc2a2b Now all the variables are correctly transfered
Changer error to notice
2003-05-01 12:41:11 +00:00
stronk7 5f5ea8cc4c Include some entries to use in the backup utility. 2003-05-01 12:06:38 +00:00
stronk7 a36175db4c Now checks dinamically if "backuplib.php" and function "module_backup_mods"
exists !!
2003-05-01 11:19:33 +00:00
moodler 6db95aa730 new help file from Howard Miller (needs a little editing still) 2003-05-01 03:44:30 +00:00
moodler 3e9ca9fbc5 Added new Wiki code to allow Resource web pages to be created/edited using Wiki format
This code contributed by Howard Miller.  Thanks!
2003-05-01 03:43:16 +00:00
stronk7 bf32194357 Initial version. Do nothing. Just exist !! 2003-05-01 00:48:58 +00:00
stronk7 3b777608ac Continue 2003-05-01 00:46:39 +00:00
stronk7 3920667ee3 First Version. Do nothing but I saved it from accidental remove !! 2003-05-01 00:45:40 +00:00
stronk7 ea914a66ae Included possible feature
Restore into new course or existing course
2003-04-29 23:22:34 +00:00
stronk7 d565341a2f Frontend started. 2003-04-29 21:23:20 +00:00
stronk7 ea65b07cdd Included ID info. Simple. 2003-04-29 21:09:27 +00:00
stronk7 6b14fdcb1d Initial version of STATUS.txt
Used to show the detailed status of every part of the backup/restore.
2003-04-29 20:21:27 +00:00
stronk7 482fa9f6c6 Initial version of README.txt
Used for general comments about the backup/restore feature
2003-04-29 20:19:51 +00:00
moodler ca16eaeb31 Make sure all these links break out of subframes and go to mainframe 2003-04-29 13:54:53 +00:00
moodler f855f6062b Some tidying up - too much thesis wool in the head 2003-04-29 13:51:28 +00:00
moodler 5d0d5d5ac5 Images, when displayed as resources, are now centered and controlled
by a new style resourceimage
2003-04-29 13:31:47 +00:00
moodler 31d6331615 Don't go through enrolment procedure if they are already enrolled. 2003-04-29 13:04:22 +00:00
moodler dc95f4a11b Always print full number of student at the top 2003-04-29 12:51:21 +00:00
moodler 9d6f5d42eb Only retrieve records that are needed (eg description never is used) 2003-04-29 03:16:32 +00:00
stronk7 6d41991acc Little spell in word "Recursos" 2003-04-28 21:35:03 +00:00
minkowski 46956de552 no message 2003-04-28 18:08:23 +00:00
moodler a273084d7a Strange no-one has noticed this so far ... ! 2003-04-28 16:56:57 +00:00
moodler 81f186b47a I'm getting wierd numbers of records returned on moodle.org.
This fix makes the page a bit more robust even if this is
happening.
2003-04-28 16:13:46 +00:00
moodler df48be741a Minor fixes 2003-04-28 15:52:51 +00:00
moodler 8de14dc72b Print some nice feedback when a discussion has been moved, to help
prevent accidents.
2003-04-28 15:27:44 +00:00
paca70 28ba0d55cc ...And now it works 2003-04-28 15:24:13 +00:00
paca70 8809fee944 updates 2003-04-28 14:59:28 +00:00
moodler b86fc0e2a6 New feature replacing the old zoom function.
Now these are saved in a new table called course_display,
each user and each course can have independent settings.

I'm intending to expand this table later for all the other
course display stuff (like hidden topics etc)
2003-04-28 13:29:26 +00:00
paca70 9655b654a5 Now postgres works as it should, returned primarykeys are correct. 2003-04-28 12:51:19 +00:00
paca70 6492992616 I did't test previous change well, have take changes back. 2003-04-28 12:02:29 +00:00
paca70 9a652ddb2b Don't give fatal error when questions were not found. 2003-04-28 06:36:14 +00:00
moodler f343161392 Some random tidy-ups 2003-04-28 06:07:02 +00:00
moodler b72c80db7e New info 2003-04-28 05:29:26 +00:00
moodler 95abee03e6 Fixed user images 2003-04-28 04:55:31 +00:00
moodler 028677d7b2 Forgot one 2003-04-28 04:45:44 +00:00
moodler 9d2dda0f85 Added new custompix parameter 2003-04-28 04:45:15 +00:00
moodler e313ef4476 The rest of the images 2003-04-28 04:43:51 +00:00
moodler d14c1e0687 Added example of how "custompix" is to be used 2003-04-28 04:41:21 +00:00
moodler dc0dc7d5dd Tidying up the way pix images are used.
It's now also possible to override the standard pix with a set of new ones
in a theme.
2003-04-28 04:32:55 +00:00
moodler 2b83b7f98b Moving some images around - cleaning up organisation 2003-04-28 03:09:27 +00:00
moodler f0eec3b641 Whoops ... left and old line in there during the last fix 2003-04-28 02:43:18 +00:00
paca70 e8a0fc9a4f Corrected typo 2003-04-27 17:35:54 +00:00
paca70 e9ececbb1e $db->Insert_ID seems to work with postgresql too 2003-04-27 16:03:01 +00:00
paca70 5352ceba67 quiz_match was missing... 2003-04-27 15:33:31 +00:00
moodler dc2590e587 Don't process $usernew->username if it doesn't exist (prevents normal users from editing profile). 2003-04-27 14:50:03 +00:00
moodler e13d05801c Fixed rogue spaces 2003-04-27 12:45:51 +00:00
moodler 16aefd75fb New and very complete translation in Russian, from
Yakov Alperin and http://elearning.microtest.ru
2003-04-27 12:10:27 +00:00
mits 667e2e0293 New translation added. 2003-04-27 11:32:42 +00:00
mits 7716babeb2 New translation added and polished some.
I'm keeping my head above water, Martin :-)
2003-04-27 11:31:45 +00:00
moodler 6d21fd37f2 Added new format to this file ... heads up for translators! 2003-04-27 10:58:20 +00:00
moodler 6901fa7955 New plain text format.
Translates smileys and carriage returns, but prints all other tags and code
as plain text
2003-04-27 10:46:16 +00:00
paca70 e209e0b09e indexes for postgres 2003-04-27 09:54:03 +00:00
moodler f5e82bc7f4 Moved microtime_diff() to moodlelib 2003-04-27 08:13:45 +00:00
moodler 026bcf8ce1 Fixed typo 2003-04-27 06:51:44 +00:00
moodler 7aaedff8de Changed my mind about the default setting for loglifetime 2003-04-27 06:50:19 +00:00
moodler 2656b1351f Some rewording about loglifetime 2003-04-27 06:48:13 +00:00
moodler 81a383ca7a New string - saveall 2003-04-27 06:42:28 +00:00
moodler f8bccb148a iNew configuration variable delete old logs - loglifetime 2003-04-27 06:41:53 +00:00
moodler 540bab47d4 Delete old logs is required 2003-04-27 06:21:15 +00:00
moodler 30f89d6833 New delete_records_select() function 2003-04-27 06:18:03 +00:00
moodler f9d5fd3b3c Added a LIMIT to the SQL query for a bit more efficiency 2003-04-27 03:32:45 +00:00
moodler f9ce68ee7f Using multiple indexes for slightly increased performance 2003-04-27 02:58:26 +00:00
stronk7 c0605295bd Changed to dimm non-visible grades (mods). Bug #378.
Done a bit more:
  - Show dimmed entire column.
  - Difference html (for web) and text (for .xls and .txt export) in
    many variables.
  - Using the dimmed_text style to dimm.
2003-04-26 19:35:27 +00:00
stronk7 85093cf4f9 Added the dimmed_text css style to show normal text dimmed (gray #AAAAAA) 2003-04-26 18:54:37 +00:00
stronk7 0830bae4d7 Changed to hide non-visible grades (mods). Bug #378. 2003-04-26 18:16:36 +00:00
moodler 1ba3960285 Working much better with indexes - update the schema 2003-04-26 15:26:51 +00:00
moodler 6459f225b8 Update to add new indexes to MySQL tables. Speeds up the log access. 2003-04-26 15:24:04 +00:00
moodler 1b5910c4a5 Trying a different tack for recent_activity since the old way was
still producing too much data and overflowing PHP memory on busier
sites (eg moodle.org).

Now, there are more database queries, which is unfortunate, but the
data is much more specific, and no sorting needs to be done, so
this is a performance boost.

I don't know how these will cancel out ... my guess is that very
small sites may be very slightly slower on the course page, but
that large sites will be much faster.

Let's see.
2003-04-26 15:08:34 +00:00
moodler a54b8dd3af Need course module stuff 2003-04-26 14:21:42 +00:00
moodler 667ab3252b Get less logs from the database 2003-04-26 14:12:12 +00:00
moodler b1992e65cf Trying an experiment on moodle.org 2003-04-26 13:49:13 +00:00
moodler 10a95b432c Fix for use of COURSE_MAX_RECENT_PERIOD 2003-04-26 13:41:31 +00:00
moodler ad08fdc277 Performance improvements
- better checking of data before processing
  - used logs are removed to avoid re-processing by other modules
2003-04-26 12:59:41 +00:00
moodler 38e5dbf319 No changes, just rearranges 2003-04-26 12:38:53 +00:00
moodler ec2a28a607 Extended number of select fields allowed for get_field() and set_field() from 1 to 3 2003-04-26 12:38:04 +00:00
moodler 278a229c25 Slight fix to teacheronly coloring 2003-04-26 12:22:52 +00:00
moodler 3d89198946 Cleaned up definition of constant COURSE_* values in course/lib.php
Moved COURSE_TEACHER_COLOR out to style sheets where it belongs (.teacheronly)

Added some efficiency when printing recent activity

 - don't print more than one weeks worth of updates
  - don't keep re-parsing logs once they've been used
2003-04-26 12:17:30 +00:00
moodler 78e0146055 Argh! Excess quotes in CSS 2003-04-26 12:12:30 +00:00
moodler 6eb6cd8753 New style for teacher-only colour (eg when showing teacher posts in recent activity) 2003-04-26 12:07:14 +00:00
stronk7 fbca88e692 Show activity log only from visible surveys. Bug #367. 2003-04-26 11:04:46 +00:00
stronk7 2953d5e865 Show activity log only from visible journals. Bug #367. 2003-04-26 10:14:54 +00:00
stronk7 86e6076b3b Modified the instance_is_visible function. It has a bug, having
the "forum" table harcoded. Simplify a bit. Now seems to work
fine with every mod.
2003-04-26 09:34:11 +00:00
moodler c3357723de FAQ in full is too long - offends my eye :-) 2003-04-26 06:05:24 +00:00
moodler 09368e3938 Moved most-asked question to the top 2003-04-26 06:02:58 +00:00
moodler a95ae47bdf Imprved intro 2003-04-26 05:55:39 +00:00
moodler 50d673157b Long form of FAQ 2003-04-26 05:44:42 +00:00
moodler 65eed52ded Style for question links 2003-04-26 05:42:51 +00:00
moodler d1db7bee92 More cleanup 2003-04-26 05:40:24 +00:00
moodler 39b5b3fa2a more clean up 2003-04-26 05:30:00 +00:00
moodler e317d04919 Cleaned up, with additions 2003-04-26 05:24:07 +00:00
stronk7 dff0db9ad5 Show activity log only from visible forums. Bug #367. 2003-04-26 00:17:42 +00:00
stronk7 746546a8f8 Show activity log only from visible assignments. Bug #367. 2003-04-25 23:49:35 +00:00
stronk7 b3cc742cf9 Avoid showing course updates (add, update, delete) about hidden mods. Bug #367 2003-04-25 23:17:53 +00:00
paca70 c4c575979e Allow caseinsensitive search for postgesql 2003-04-25 19:32:38 +00:00
paca70 3399a22c9f Show adduser only when adding new user from moodle is posible. 2003-04-25 17:18:40 +00:00
paca70 4dd0497164 Dont allow edit username when external authentication is active. 2003-04-25 16:42:07 +00:00
moodler 826293c75b Allowed - and . during signup by email 2003-04-25 12:35:17 +00:00
moodler 5a9126f75a Renamed signup_form.php to signup_form.html (this part of the code is really old) 2003-04-25 12:32:26 +00:00
moodler a2f1ef3067 Some default values for variables 2003-04-25 12:29:52 +00:00
moodler 266cc04fe7 Footers use new styles for links 2003-04-25 09:25:25 +00:00
moodler b328523cc1 Style for "You are logged in as xxx" and the link to the course home page. 2003-04-25 09:23:08 +00:00
moodler a5c411d4c2 Smaller font 2003-04-25 09:01:01 +00:00
moodler 583a7283e9 Edit my profile link goes straight to the edit screen 2003-04-25 08:59:10 +00:00
moodler fc613dff69 Directories are now made using make_upload_directory from moodlelib 2003-04-25 08:39:11 +00:00
moodler 4d4267739c Some minor visual improvements - firstname/lastname separated, initialised some variables 2003-04-25 07:15:12 +00:00
moodler a282d0ffda Adding user's name at the top of the course page.
Just experimenting with it there for a while ... feedback welcome
2003-04-25 06:40:30 +00:00
paca70 87b490dfc6 Hide password field when password change is not supported by auth-module. 2003-04-25 06:01:59 +00:00
moodler 580f2fbc07 New function to detect visibility of a single module, and
use of this function when displaying list of forums
2003-04-25 05:24:29 +00:00
moodler 047d30d1eb MySQL code (etc) to convert all usernames to lowercase ... does a lot more
checking than it really needs to, since MySQL is not case sensitive
2003-04-25 03:54:21 +00:00
paca70 1e22bc9c04 Conver usernames to lowercase for internal use. This prevent duplicate users
when using external authentication and posgresql.
2003-04-24 20:06:40 +00:00
paca70 e40488f80c routines to convert postgeruser to lowercase. 2003-04-24 18:48:09 +00:00
stronk7 c37053ea2f Changed to show the hidden surveys dimmed (bug #364) 2003-04-24 18:28:30 +00:00
stronk7 e6c136e1bf Changed to show the hidden quizzes dimmed (bug #364) 2003-04-24 18:19:23 +00:00
paca70 1dea7ebb04 global $CFG was missing...? 2003-04-24 17:38:20 +00:00
stronk7 f99d236832 Little update to select the forum info (avoid duplicates). 2003-04-24 17:35:34 +00:00
paca70 dbe0be0059 Added missing $ 2003-04-24 17:21:54 +00:00
stronk7 3b0fb381ea Changed to show the hidden forums dimmed (bug #364) 2003-04-24 17:15:59 +00:00
moodler 61367e6417 More robust variable checking 2003-04-24 17:13:52 +00:00
moodler 719e7b04f8 Default value for alltext variable 2003-04-24 17:05:54 +00:00
stronk7 5094d166b7 Changed to show the hidden choices dimmed (bug #364) 2003-04-24 16:47:06 +00:00
stronk7 dd8d521d91 Changed to show the hidden assignments dimmed (bug #364) 2003-04-24 16:38:49 +00:00
stronk7 81cdaada93 Changed to show the hidden resources dimmed (bug #364) 2003-04-24 15:25:21 +00:00
stronk7 7cfb83477c Modified to obtain the visible property too. To use it when showing the list
of instances of every mod (bug #364)
2003-04-24 15:17:43 +00:00
moodler 638f95b1ff Latest things 2003-04-24 15:03:42 +00:00
moodler 88478a664f New authentication method - a very simple one called "manual".
Accounts have to exist in the internal database, and there is
no way to create an account on the site - admins have to do it.
2003-04-24 15:01:15 +00:00
moodler 67b0821af9 Fixed a typo, see bug 361 2003-04-24 14:37:22 +00:00
moodler e1c4617441 Added recent stuff 2003-04-24 14:28:24 +00:00
moodler 3395f2d67e Forum posts are now not allowed to have blank subjects or messages,
if a message is entered with one of these blank then the user gets
an error message and a chance to re-edit the message.
2003-04-24 14:05:47 +00:00
moodler 41ab15fba5 Added Polish info 2003-04-24 08:46:44 +00:00
moodler 1fc49f0019 New feature to allow teachers to move a discussion from one forum
to another.

A simple popup menu now appears when teachers view any discussion.

Includes a new log entry to log when a discussion is moved.
2003-04-24 08:45:27 +00:00
moodler 2a40936834 Mark the hidden ones for teachers 2003-04-23 17:25:20 +00:00
moodler 13df5aeef3 Rebuild course modinfo caches to include the visible variable 2003-04-23 17:02:24 +00:00
moodler 7acaa63d09 Tidy up a bit 2003-04-23 16:57:35 +00:00
moodler feffa4e695 chmod after mkdir (just in case) 2003-04-23 16:51:26 +00:00
stronk7 fec5a6a63f Changed the get_array_of_activities function to return the visible property too 2003-04-23 16:37:37 +00:00
stronk7 cf055081ef Changed the navmenu function to show only visible-mods on the
jumpmenu. Everything is showed when the user is a teacher.
2003-04-23 16:32:11 +00:00
stronk7 00d26a208b Changed the get_course_mods function to obtain the visible property too. 2003-04-23 16:09:56 +00:00
mits d4269e95c0 fix again. 2003-04-23 15:43:56 +00:00
mits 91162b4688 fixed :-) 2003-04-23 15:39:54 +00:00
moodler a7eedb343c Sorry, Mits, I think I broke it :-( ... can you check this file? 2003-04-23 15:34:12 +00:00
moodler f861185a4a Added dynamic display of post delay time as currently defined for the server 2003-04-23 15:30:22 +00:00
moodler b7637a30d4 Dynamic value of minutes displayed in help file 2003-04-23 15:25:27 +00:00
moodler c032b59db9 Help button about subscription on forum page 2003-04-23 15:19:01 +00:00
moodler 312447111c Got a bit slash-happy 2003-04-23 15:01:37 +00:00
moodler 3af4a3653c some HTML tags made a bit more XHTMLish 2003-04-23 14:50:44 +00:00
mits 847179dc91 New translation added and polished some. 2003-04-23 14:22:19 +00:00
moodler bc3df42048 Initial, partial translation from Adam Pawelczak <adamp@wsb.poznan.pl> 2003-04-23 11:30:14 +00:00
stronk7 c7da6f7a8f Bug #363. When everyting is hidden at main-menu, error occurs. Changed the get_all_mods function to check this. 2003-04-22 20:46:12 +00:00
stronk7 e6cf424727 Bug #261 closed. Appended course short-name to distinguish courses
when assigning teacher.
2003-04-22 19:27:11 +00:00
paca70 e05566015e More updates. Thanks to Teemu! 2003-04-22 14:38:37 +00:00
paca70 3c7f99a447 Updates 2003-04-22 14:18:03 +00:00
paca70 7d6cac54f3 New string conversion function to help with multibyte-locales 2003-04-21 16:39:43 +00:00
moodler 3ba2985594 Robustness fixes 2003-04-21 08:08:33 +00:00
moodler b369ff55fe Whoops, chmod not chown 2003-04-21 07:26:23 +00:00
moodler 718ad19f47 trying to fix up old file permissions 2003-04-21 07:21:33 +00:00
moodler 9dd0b37817 Make sure to change the ownership of uploaded files 2003-04-21 07:11:29 +00:00
moodler 3269b238a7 Updated (to make the new release notes show up for CVS people :-) 2003-04-21 06:44:13 +00:00
moodler 6b708b9844 More info about new features in the upcoming release 2003-04-21 06:43:05 +00:00
paca70 978704f095 More comments 2003-04-20 18:15:03 +00:00
paca70 d2802df553 Added mimetype and icon for avi-files. 2003-04-20 07:42:18 +00:00
paca70 44a334d874 Undoing needless change. 2003-04-19 19:09:01 +00:00
paca70 d61bf02f18 Works now also with $a->something 2003-04-19 17:45:50 +00:00
paca70 4dddd64b5f Hilite also empty stings. 2003-04-19 10:25:58 +00:00
paca70 fe8bc4c9a5 Removed two `'s 2003-04-18 21:05:12 +00:00
paca70 cefc7e817e Fix for postgresql column adding( $oldfield is always '"$oldfield"') 2003-04-18 20:50:42 +00:00
moodler 2ab968e937 Trying some optimisations 2003-04-18 09:53:41 +00:00
moodler 32dcc87484 Fixed new bug that was preventing news being shown on course page 2003-04-18 07:25:58 +00:00
moodler fc6a91994e Robustness on a variable 2003-04-18 07:25:32 +00:00
moodler 02a7699f0d Tweak for generalbox 2003-04-18 06:41:34 +00:00
moodler 03aa0dfa10 Style improvements and upgrades 2003-04-18 06:39:40 +00:00
moodler 9e0a08bd28 Discussion, not subject 2003-04-18 06:14:17 +00:00
moodler c20b762a06 Fixed location of Older discussions link 2003-04-18 05:57:45 +00:00
moodler 3c8a606d85 Added simple paging ... only top 100 are shown by default. If there
are more then "older discussions" link shows all of them.

Someday proper 1,2,3,4 paging would be nice but this will do for now.
2003-04-18 05:54:18 +00:00
moodler 546be6dd89 don't valign subjects in html 2003-04-18 05:28:08 +00:00
moodler 96e301a7c9 Undoing last checkin 2003-04-18 05:25:46 +00:00
moodler 9ddb00e600 Improved colours 2003-04-18 05:22:49 +00:00
moodler 29507631a9 First pass at a cleaner display for discussion listings 2003-04-18 03:58:12 +00:00
moodler 801e1f0a3e Set guest name in current language on login 2003-04-18 02:18:12 +00:00
moodler bf3bc898ac Assigned $strsearchresults 2003-04-18 01:57:24 +00:00
moodler a00283d6cd Clear a variable, just in case 2003-04-17 15:46:39 +00:00
moodler c1d9daca3c Clear the variable, just in case 2003-04-17 15:45:57 +00:00
moodler 7226ce02b1 Robustness for $course variable 2003-04-17 13:20:26 +00:00
moodler da63e99627 Updating version because the quiz work is finished, for now 2003-04-16 15:20:21 +00:00
moodler 3abe21ab94 Latest tags 2003-04-16 15:19:23 +00:00
moodler e1122620b5 Er, similar to the last few changes but this way seems to actually work. :-)
Need sleep ...
2003-04-16 13:48:16 +00:00
moodler 2408867e8c Improvements for shuffleorder in collections of random questions 2003-04-16 13:25:03 +00:00
moodler 96192c4459 After doing a quiz that has been shuffled, present the feedback in the
same order.  Note that shuffled ANSWERS may still appear reshuffled.

When viewing reports, all shuffling is switched off so that quizzes
always appear in the default order (for easier comparison).

Also a few tweaks, robustness etc
2003-04-16 13:10:48 +00:00
moodler 77cff58927 Fixes for bug 268 - Changing answers of questions can lose responses for
existing quizzes with those questions.

When updating a question it now checks for existing answers and updates
those instead of making new ones.
2003-04-15 14:43:29 +00:00
moodler eece3a331a Tweakin' icons 2003-04-15 14:29:09 +00:00
mits f24f17c5bb no message 2003-04-15 14:07:48 +00:00
mits 2386e97f89 New translation added. 2003-04-15 14:05:47 +00:00
moodler d6a6331129 Add category to random question names 2003-04-15 13:14:33 +00:00
moodler c9548d4a5d Slight mods ... are they better? 2003-04-15 06:20:27 +00:00
moodler de38e2621d More robust use of $_FILES['imagefile'] 2003-04-15 02:08:27 +00:00
moodler 1acfbce5b6 Hide/show individual activities in any section
Code submitted by Eloy Lafuente (thanks!) for 1.0.8 ... I hand-merged it
into 1.0.9.
2003-04-14 15:11:09 +00:00
moodler 5a25f84d25 Fix for off-by-one grade error when 'Save Grades' had not been used 2003-04-14 13:52:59 +00:00
moodler 8b72b41bf9 Better looking code 2003-04-14 05:44:47 +00:00
moodler b610b4c2fd Showall is sticky, and also you get a warning about the number 2003-04-14 03:02:25 +00:00
moodler dea49bdd6c Changed wording a little 2003-04-14 02:56:31 +00:00
moodler 99de5ed02b New string "showall" 2003-04-14 02:55:48 +00:00
moodler cb77b5b67f Better wording 2003-04-14 02:53:55 +00:00
moodler a625debc38 Simplified display - less unnecessary clutter 2003-04-14 02:52:11 +00:00
moodler 15c715211e Mucking with the formtting 2003-04-14 02:48:40 +00:00
moodler 980d545f4f Smaller info 2003-04-14 02:45:03 +00:00
moodler 9ecb1bd3a4 New strings for showing users 2003-04-14 02:43:53 +00:00
moodler c5b6666eaf Better support for large classes 2003-04-14 02:42:40 +00:00
mits 63a77d2d39 no message 2003-04-13 18:48:24 +00:00
mits c76f49060f New translation added. 2003-04-13 18:47:03 +00:00
moodler 7c81b6e273 Sort subscribers by email address (easier to find subscribers based on
bounced messages)
2003-04-12 07:52:52 +00:00
moodler 752e1c2b62 Don't pass alltext from mod.html to details.php ... more efficient this way 2003-04-12 03:42:17 +00:00
moodler 67b69ce15b No real point to changing the numbers - changing them back to the original plan 2003-04-12 03:18:50 +00:00
moodler cdb0ca8315 Update to stop it falling too far behind 2003-04-12 03:18:02 +00:00
moodler f475564878 Latest tags 2003-04-11 14:46:21 +00:00
moodler 0bf2925db8 Minor fixes 2003-04-11 14:44:12 +00:00
paca70 5e776a02ad To check string sizes 2003-04-11 12:05:21 +00:00
moodler c6eed09730 New "create multiple questions" wizard.
Improvements to the importing routine for AON
2003-04-10 17:55:57 +00:00
moodler 340191ded7 Added Danish 2003-04-10 14:17:01 +00:00
moodler 085e317dbf Danish! From S?ren Vinther Hansen <info@thenavigator.dk> 2003-04-10 14:04:30 +00:00
moodler be09831ac3 More info about admin location and a fix 2003-04-10 13:57:21 +00:00
moodler dae73c05e9 New $CFG->admin directory can override the location of the admin
directory.

Useful because some web hosts use /admin for other things.
2003-04-10 13:46:52 +00:00
moodler bc700e6559 New function swapshuffle_assoc 2003-04-10 13:45:07 +00:00
moodler c05eca327c Importing improved to include pre and post-processing.
Removal of Random Matching code from the generic case.
Implementing a particular custom import style aon.php
2003-04-10 13:12:40 +00:00
moodler da5fb074c3 Minor robustness fix 2003-04-10 13:11:34 +00:00
moodler b1db099b7e New icons 2003-04-10 13:04:20 +00:00
moodler 44ce983d45 Updated number of languages 2003-04-10 06:24:57 +00:00
moodler 66a68c1739 Updated with current thoughts about general path this year 2003-04-10 06:22:04 +00:00
moodler 1365bacde6 Correct a typo 2003-04-09 14:30:04 +00:00
moodler 52c018a0b5 More logical position for shuffle options 2003-04-09 14:27:58 +00:00
moodler 4b85b71712 New quiz switches to
- shuffle questions order
  - shuffle answers order
2003-04-09 13:57:08 +00:00
moodler f5cbbecaf5 empty() --> !isset() 2003-04-09 13:41:11 +00:00
moodler 72e5815533 More fixes resulting from random question feature 2003-04-09 08:11:20 +00:00
moodler 434802d5ce Slightly more efficient database access. 2003-04-09 07:23:42 +00:00
moodler 34d52ad7d2 First implementation of completely random questions.
When you add a random question to a quiz, then a question
is chosen randomly from the same category.

Questions are not repeated in a particular quiz attempt.

This still needs more testing, but it's looking OK so far.
2003-04-09 06:32:51 +00:00
moodler d62413e869 Use "modified" date of posts when displaying them, not the "created" date. 2003-04-08 14:09:24 +00:00
moodler 329f046798 Don't use session.path check when the server is in safe mode 2003-04-08 03:51:38 +00:00
moodler 29cbd93a45 Just much simpler way of doing the last patch. 2003-04-07 16:08:52 +00:00
moodler aa6fbca550 Use the cached admin bit if it's there!
(saves one database access per editable activity on the course page!)  :-/
2003-04-07 15:30:34 +00:00
moodler 8daaf761c3 Added code to catch runaway case when there is more than one news forum.
It shouldn't happen, but I think it can when the database is having
problems.
2003-04-07 15:20:08 +00:00
moodler 8f202463d5 New file 2003-04-07 03:30:50 +00:00
mits b4e3b12234 New translation add and modify $string['configunzip'] , $string['configzip'] :) 2003-04-06 06:15:00 +00:00
moodler e64984a0bb Modifications to allow Moodle files management page to use PclZip
instead of external zip programs.

To use the internal PclZip, the config variables "zip" and "unzip"
must be left blank.

Code for PclZip integration originally from Robert Hetzel, though
I've expanded it and modified it a lot.

The zip files seem compatible with itself and Windows XP, but I had a
compatibility problem trying to unzip a PclZip file using Zip 2.3 on Linux
(directories are unpacked as empty files)
2003-04-06 05:53:47 +00:00
moodler 8ef3483b60 Added Version 1.3 of PclZip to the distribution 2003-04-06 05:48:56 +00:00
mits f07e21dec4 no message 2003-04-06 03:29:28 +00:00
mits f561b68011 Polished 2003-04-06 03:24:49 +00:00
moodler 46d552b810 Partial translation, by Ilia Chipitsine <ilia@chel.skbkontur.ru> 2003-04-05 14:29:26 +00:00
moodler e52c4f2231 Latest improvements from Paula 2003-04-05 14:21:10 +00:00
moodler c4dfc485eb Fixes for main SQL defintions - from Juro Chlebec 2003-04-04 10:47:37 +00:00
moodler ef49e5c301 addslashes to string used for javascript link 2003-04-02 07:24:42 +00:00
moodler 8a205861e0 Added a robustness check for USER->id 2003-04-01 02:38:31 +00:00
moodler 0305fe824d Undoing recent changes 2003-04-01 02:24:58 +00:00
moodler ffb410df03 Sorry, Petri, but we need to undo these changes, because:
- they could break accounts in existing installations
  - strtolower can corrupt strings in multibyte languages

Is it really a problem that usernames are case sensitive on PostgreSQL?
2003-04-01 02:14:16 +00:00
paca70 b398d5ee2a Use always only lowercase version of username.
When using authentication module (ldap, smb, pop etc...) and postgres-database multiple moodle
users were created for usernames like 'Username' 'username' 'userName'
2003-03-31 17:05:52 +00:00
mits 73f131b7a6 New translation added and polished some. 2003-03-31 03:03:20 +00:00
moodler e4be3d5943 Renamed randommatch.html -> randomsamatch.html 2003-03-30 16:51:24 +00:00
moodler 432d39026d New template for Match questions 2003-03-30 16:48:34 +00:00
moodler 54a67a5921 First cut at adding new "fixed" Match question type, which is manually
created.  Works OK after limited testing.

I've also renamed some strings to do with "Random Match", so that this
question type is now called "Random Short-Answer Match".

Later there will be a new 'Random Match' which randomly selects one of the
existing "Match" questions.
2003-03-30 16:46:50 +00:00
moodler 03fd6a965e Fixed a slight typo 2003-03-30 13:54:28 +00:00
moodler 0d0baabf2c Fixed a missing global $CFG declaration. 2003-03-30 13:25:49 +00:00
moodler 2d0b30a028 What was I thinking? This is much cleaner (and no duplicates). 2003-03-29 04:08:51 +00:00
moodler adaf39283c Changes to activate the "force subscribe" option on the Site News forum.
By default it is OFF, but if it is turned on, then site news is emailed
to ALL enrolled students and ALL current teachers.
2003-03-29 03:39:56 +00:00
paca70 754786f1be Updates 2003-03-28 08:58:47 +00:00
paca70 a3b0dbfa80 updates from Jaana 2003-03-27 20:04:24 +00:00
moodler 90707adb7f Added Romanian author, plus some fixes 2003-03-27 03:28:25 +00:00
moodler b8a0fb13a3 Eugen Tanul <roinstitute@fx.ro> 2003-03-27 03:14:44 +00:00
moodler aa9f961b7d New language: Romanian by Eugen Tanul <roinstitute@fx.ro> 2003-03-27 03:13:36 +00:00
moodler bad357c414 Restoring Paula de Waal's versions for the time being 2003-03-26 15:14:52 +00:00
moodler ea6003eb8a New translations of the help files, from Adriana Beal 2003-03-26 15:08:46 +00:00
moodler b60aa549fc Added Bobo 2003-03-26 14:14:16 +00:00
moodler b6f64be2a5 Fixes related to AcceptPathInfo - removed need for ifDefine lines. 2003-03-26 14:13:42 +00:00
moodler 075a591656 Better regular expresssion for detecting URLs at the very start of a text.
I don't know what the old one thought it was doing!  :-)
2003-03-26 07:33:26 +00:00
moodler 0ece16e90c Added tags file for codewalkers who can't generate one.
This file will not be included in distributions.
2003-03-26 06:03:34 +00:00
moodler 036d3c1f90 Typo! 2003-03-26 05:48:21 +00:00
moodler 6eff984aee Added some new indexes on quiz tables in MySQL 2003-03-26 05:46:09 +00:00
moodler 264d4e0b9a Added two new indexes on log table to help speed it up.
See Greg's note in bug 113
2003-03-26 02:17:46 +00:00
mits 1495667946 pgassignment.php done.
needs enough polish :)
2003-03-24 16:34:21 +00:00
mits 8cc7286ccc New translation added. 2003-03-24 15:33:37 +00:00
paca70 f5cdd4d133 Corrected typo 2003-03-24 13:15:48 +00:00
moodler b2d0ca3b7c Removed some tabs :-) 2003-03-21 14:09:51 +00:00
moodler 000cc405ba Hack from Roberto Pinna (Bobo) to add sorting when viewing submissions
Might need some tidying up still but it's functional ..
2003-03-21 14:07:25 +00:00
moodler e384fb7b73 Can now count a search of users 2003-03-21 10:10:21 +00:00
moodler 49e16355c2 Improvements to display of users 2003-03-21 10:08:23 +00:00
moodler c750592ac4 Added a search form to the "edit users" admin page yay! 2003-03-21 09:42:42 +00:00
moodler 6a3461ad1c Links to admin page in header are now relative 2003-03-21 04:56:05 +00:00
moodler 746665838a More robustness on checking sequence variables 2003-03-21 04:53:08 +00:00
moodler f8430195d9 Small fix to avoid PHP warnings 2003-03-21 04:49:29 +00:00
moodler ef4145f6ae Changes to make regrading work properly if the quiz has changed
and also an exptended timelimit for when regrading is REALLLLY slow
fue to some other unknown reason (as yet)
2003-03-20 07:28:53 +00:00
mits f2cc50f192 New translation added. 2003-03-20 06:10:00 +00:00
moodler 4c0e951049 Updated credit for Slovak 2003-03-18 12:57:01 +00:00
moodler 0fdddefbaa Improved Portuguese (Brazil) version by Paula de Waal 2003-03-16 15:02:38 +00:00
moodler d4120c3d7c Added some more options for longtimenosee 2003-03-16 02:35:03 +00:00
paca70 509139373e Fixed incorrect comparison. Peter Paluch pointed this out. 2003-03-15 18:26:46 +00:00
moodler 78e72ed16b Didn't quite finish the last patch of user -> usernew 2003-03-15 09:15:44 +00:00
moodler e6829515b0 Bug fix from Ray Le Couteur ... alphanumeric check was checking old
username but not the new username
2003-03-15 08:26:00 +00:00
paca70 e582b65e30 Fixed logic error.
Now also first time users can be course creators.
2003-03-14 21:34:39 +00:00
gregb_cc a2631c99d9 This closes bug http://moodle.org/bugs/bug.php?op=show&bugid=310
assignment_get_unmailed_submissions now ensures that a student is still enrolled
2003-03-14 19:58:53 +00:00
moodler 01cf7d2ebc Added some people 2003-03-14 12:45:05 +00:00
moodler a4ef9df2d7 Initial version from Les Kopari - les_kopari@yahoo.com 2003-03-14 08:22:37 +00:00
moodler 9d5b689c8a Added vim commands at the bottom of the file to try it out 2003-03-14 07:55:22 +00:00
gregb_cc b9287b2fba Added a useful message, to make the cron output more helpful in diagnosing
"stuck" assignments.
2003-03-13 20:59:31 +00:00
mits d48f938420 New translation added. 2003-03-13 15:22:43 +00:00
mits ddde5a8c82 New translation added. 2003-03-13 14:17:21 +00:00
gregb_cc c0f728ba9e code formatting change: switched from alternative syntax to using {} 2003-03-12 21:40:47 +00:00
gregb_cc 6908193151 speed improvement in smilie_replace. It is now almost as fast (within 5-10%) of
the version that used global smilie definitions.
2003-03-12 21:37:05 +00:00
gregb_cc 617778f2d3 Added benchmark and test for replace_smilies 2003-03-12 20:36:55 +00:00
moodler 4c31e7cfba Removed main_frame 2003-03-12 08:37:42 +00:00
moodler d4be5253aa Making a consistent download link for uploaded resources (same as web page) 2003-03-12 08:02:05 +00:00
moodler 2d8cf6799a Whoops! Accidentally checked in a quick hack I did for someone. 2003-03-12 07:49:54 +00:00
moodler c9082a8c2f Integrated the default redirect message delay from Greg B 2003-03-12 07:44:29 +00:00
moodler f82c2d428a Modified Greg's work to:
- rename the main_frame variable to framename, because it
       - might have caused some confusion
       - none of the global variables have underscores
  - put the config in the config table, with a default of _top
2003-03-12 07:36:22 +00:00
gregb_cc 2ea9027bc4 Small cleanup of smilie replacement.
This change removes the smilie variable assignment from the global namespace.
This change retains the original user input as the alt text.
The main reason for this change is to make it possible for me to use my
make_class function on weblib.php (still need to do something about the defines
though).
2003-03-12 03:42:44 +00:00
gregb_cc 08b3606390 This is a first attempt to make moodle frame safe.
I've added the variable CFG->main_frame to config-dist.php, and replaced _top
targets with the variable in all the php files.  HTML files, like those in the
documentation, have not been modified, as they are not (yet) parsed.

The variable should probably get moved into the config table, and get some
documentation.

I've also included, but commented out, a slight change in weblib.php, which
would guarantee that messages would be seen before redirecting the user (unless
delay intentionally set to 0 when redirect is used).
2003-03-11 21:35:12 +00:00
moodler 754b76fe65 Whoops, paca70! You accidentally jumped a month forward in the date. :-)
We need to increment the version.php file slowly now until time catches up.
2003-03-11 06:04:28 +00:00
moodler 3ac1dedc35 Added some popup help for topic/week summaries 2003-03-11 05:57:00 +00:00
moodler 1e5a2bf584 You can now use Richtext editor to edit section texts, plus the page is a
bit more consistent now
2003-03-11 05:43:39 +00:00
mits 8f6dcdbaa4 no message 2003-03-11 04:24:32 +00:00
mits 5c34d1e3a4 New translation added. 2003-03-11 04:19:12 +00:00
moodler 8fb2f0fa1e Corrected typo 2003-03-10 14:05:10 +00:00
moodler ac234d0262 Tidied up and rearranged a little 2003-03-10 14:02:12 +00:00
moodler fe32b83bbf Improvements to explain about AcceptPathInfo 2003-03-10 13:59:06 +00:00
moodler 76a359ba93 Added something for Apache 2 (to make 'slasharguments' work)
<IfDefine APACHE2>
    AcceptPathInfo on
</IfDefine>
2003-03-10 13:39:56 +00:00
paca70 7563a073c3 rtf-editor had mixed up some files 2003-03-07 17:55:44 +00:00
villate d106f1d9ae Improved translation of "search forums". 2003-03-07 16:15:30 +00:00
moodler 9a9a2907c2 Add a target to the "made with moodle" link to avoid confusing students 2003-03-07 15:09:12 +00:00
paca70 c605097983 RitchText editor had mixed up all php code. 2003-03-07 07:04:54 +00:00
mits 25f3420857 New translation added. 2003-03-06 17:48:25 +00:00
paca70 5fcda72588 updates 2003-03-06 16:39:17 +00:00
moodler e00f0f9f51 Added missing styles and so fixed bug of display of generalbox 2003-03-06 08:54:28 +00:00
moodler 548daac7d9 Some fixes sent in by "Adriana Beal - Vydia Tecnologia" <adriana@vydia.com.br> 2003-03-06 02:01:05 +00:00
mits 19bbe230f6 Polished 2003-03-05 14:12:48 +00:00
mits 66ea5000db New translation added. 2003-03-05 13:11:05 +00:00
mits 706e019764 Polished 2003-03-05 13:10:37 +00:00
paca70 1b7f43a40a updates 2003-03-05 13:01:29 +00:00
mits 247612cfe7 New translation added. 2003-03-05 03:29:32 +00:00
mits 049100796f Polished 2003-03-05 02:06:49 +00:00
compuproggy b1ca03e9cf *** empty log message *** 2003-03-04 12:45:58 +00:00
compuproggy cdf198d345 New Translations 2003-03-04 12:30:47 +00:00
moodler 70e5e91e9e Remove some old save_sessions 2003-03-04 09:01:26 +00:00
mits 7470fb3782 New translation 2003-03-03 17:55:19 +00:00
mits d831f93c73 no message 2003-03-03 17:54:27 +00:00
mits 1862b9eb54 New translation added. 2003-03-03 17:53:40 +00:00
moodler 0d1a40f00a Updated versions only 2003-03-03 17:48:39 +00:00
moodler 31ce4b538c Fixed quotes on column 2003-03-03 17:46:53 +00:00
moodler df103e8212 Questions now have a defaultgrade column (which defaults to 1)
... this grade is used as the default grade when adding questions
to a quiz.

At the moment it's just so that some imported questions can have
different defaults, but a field should be added to all question
editing pages.
2003-03-03 17:43:13 +00:00
moodler c363d9d11f Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option 2003-03-03 17:05:35 +00:00
moodler 9314930280 Slight rewording 2003-03-03 13:23:50 +00:00
moodler 43f2302fdf Started a Frequently Asked Questions page 2003-03-03 13:18:34 +00:00
mits c4eb7e254f New translation added. 2003-03-02 06:10:16 +00:00
mits cd4b225bd0 no message 2003-03-02 01:13:47 +00:00
mits f84148d015 *** empty log message *** 2003-03-02 01:12:11 +00:00
mits d57d61e3a7 New translation added. 2003-03-02 01:10:16 +00:00
mits b365072d7c New translation added. 2003-03-01 16:54:36 +00:00
mits 687f38368e no message 2003-03-01 16:54:06 +00:00
paca70 9eee5e0559 Updates 2003-03-01 16:45:45 +00:00
mits 44ac5310a8 New translation added. 2003-03-01 14:10:43 +00:00
moodler 068e57cebc Courses are forced to have unique shortnames (see bug 299) 2003-03-01 12:52:04 +00:00
moodler b4b7572b9a new strings 2003-03-01 05:16:20 +00:00
moodler 14bdb2387a Sort question list by question type 2003-03-01 05:11:44 +00:00
moodler 02986c8002 Can now specify a number of random match questions to create automatically
during import.
2003-03-01 05:08:03 +00:00
villate 7169069bd5 Initial translation. 2003-02-27 19:27:06 +00:00
moodler 45930f2db5 Add support for Taiwan Chinese 2003-02-27 12:15:00 +00:00
moodler 3e7542449b Removed save_session() - no longer necessary 2003-02-27 02:49:18 +00:00
moodler 7a361c8b55 Removed save_session() - no longer needed. 2003-02-27 02:46:37 +00:00
moodler 55271c3047 Removed save_session() - no longer needed 2003-02-27 02:43:34 +00:00
moodler 08c17336a7 Fixed $USER and $SESSION to be pointers to the real $_SESSION
variables, so there's no longer a need for save_session  (thanks,Petri)
2003-02-27 02:38:55 +00:00
paca70 4e94d2608b updates 2003-02-26 19:18:56 +00:00
moodler ff20ee79f6 Use caching if necessary, so that teachers can't lock themselves out
accidentally during the current session.
2003-02-26 05:58:44 +00:00
moodler d92a53d182 No need for ismainteacher() ... it's enough to check that the user is
a teacher in a course, and a creator.
2003-02-26 05:55:31 +00:00
moodler c0f271aa5c Cleanups for course creator. 2003-02-26 04:18:46 +00:00
villate 12faa2684e Fixes the name of the "eachuserforum" type. 2003-02-25 17:39:06 +00:00
villate f8b8aa347b Initial translation. 2003-02-25 17:30:18 +00:00
villate 111f984300 Fixes an HTML syntas error. 2003-02-25 17:07:57 +00:00
villate ab202116b9 Initial translation. 2003-02-25 17:06:37 +00:00
moodler f02ca41cca Removed space from end of file 2003-02-25 17:04:40 +00:00
moodler 06334957fa Complete translation into Slovak! From Pavol Jackulik. 2003-02-25 16:54:07 +00:00
villate 66d323459e Translate "post" as "mensagem", "isolated knowledge" as "aprendizagem
individual" and "connected knowledge" as "aprendizagem colectiva".
2003-02-25 16:52:20 +00:00
villate 7dd3b70b10 A few changes in the translation 2003-02-25 16:08:58 +00:00
moodler 610b9de6f7 Draft-only version from Les 2003-02-25 12:43:56 +00:00
paca70 d7466bdecb Redirect teachers to course after coursecreation. 2003-02-25 10:45:37 +00:00
paca70 44996d00f9 Fixed some typos 2003-02-25 10:31:59 +00:00
paca70 38620c460b One strange 'o' jumped in.. 2003-02-25 07:24:48 +00:00
moodler 5b337cdf3b No need for course creators to have a link to the admin page. 2003-02-25 04:22:57 +00:00
moodler 38972a40a4 Some English spelling/grammar fixes. 2003-02-25 04:03:49 +00:00
moodler 8b2fc31ce0 Fix link in admin links 2003-02-25 03:57:14 +00:00
moodler 2fdb54b819 Fixed bug in table creation - (it was creating a null table!) 2003-02-25 03:53:50 +00:00
moodler 0ca1825cab Tidied up some of Petri's code :-/ 2003-02-25 03:46:06 +00:00
paca70 ea81ca5f6d README updates 2003-02-24 21:09:53 +00:00
paca70 6c891932c0 Some updates 2003-02-24 20:06:53 +00:00
paca70 9f9f92c6df Updates to Finnish translation and some correction to English one. 2003-02-24 19:00:39 +00:00
paca70 1924074c76 Added support for nonadmin course creation.
Course creators are managed by /admin/creator.php , same way that admins.
Or if authetication module have 'auth_iscreator'-function (right now only ldap-module have) ,
users are added to creators at login time.
2003-02-24 18:48:55 +00:00
moodler 38b68c5d6f More detail, clearer description 2003-02-24 10:45:49 +00:00
moodler 86bce68fa8 New table for Postgres 2003-02-24 10:42:07 +00:00
moodler 95dbc030a8 First version of code to implement new "Random Matching" type
of questions.  These use 2 or more short answer questions at
random to construct a questions where you have to match
answers to questions.  Only lightly tested so far.

Quiz questions can now be edited with Richtext editor.

Sundry little fixes along the way.
2003-02-24 10:37:56 +00:00
moodler 2b051f1c8e Changes to modify_database() so it works with string input 2003-02-24 09:36:15 +00:00
moodler ee0e5d57e2 Two new functions for randomizing arrays 2003-02-24 09:34:10 +00:00
moodler 663f70777a Restored Davide Suraci info 2003-02-21 09:19:22 +00:00
moodler 8f8e4f01b0 Updates and fixes, mostly from Paolo Lariccia. 2003-02-21 09:07:44 +00:00
paca70 652fd67246 Reverted to older version, those changes should never got to CVS. 2003-02-20 22:09:59 +00:00
paca70 f9a14cc720 Show creation option when available. 2003-02-20 21:55:14 +00:00
paca70 5f2c35db18 Added support for usercreation from Moodle to authentication module.
Works currently only with ldap-module (tested with e-directory), but
 other modules could be extended too by
adding following functions:

function auth_user_exists ($username) {
//returns true if given username  already exists on authetication database
}

function auth_user_create ($userobject,$plainpass) {
//create new user to authentication database
//in inactive state (if posible)
//returns true if user is created
}
function auth_user_activate ($username) {
//activate external user  after email-address is confirmed
//returns true if user is activated
}
2003-02-20 21:39:51 +00:00
moodler 47623d4f8f Portuguese, first version, contributed by Jaime Villate. 2003-02-19 11:12:22 +00:00
paca70 5443a18b8f Finnish installation instructions. 2003-02-18 22:52:55 +00:00
paca70 4c398dda96 updates
CV: ----------------------------------------------------------------------
2003-02-18 10:20:42 +00:00
paca70 79ba7581de Fixed some typos and making translation more consistent. 2003-02-18 08:41:49 +00:00
moodler 5a4d292bca Added changes to table_column from Petri Asikainen for Postgresql 7.3 2003-02-18 07:44:26 +00:00
moodler c2a96d6b32 Fixes for the use of LIMIT in SQL for Postgres 7.3 (from Petri Asikainen) 2003-02-18 03:16:07 +00:00
paca70 e10ed4f09f updates 2003-02-17 22:19:38 +00:00
moodler 14c7248d3c Select all 2003-02-17 18:14:06 +00:00
moodler a01b257195 Little changes 2003-02-17 18:13:41 +00:00
moodler dc1dc6e973 Added function to check everything on a page 2003-02-17 17:02:56 +00:00
paca70 035aa1848c updates 2003-02-17 13:35:55 +00:00
moodler 734d2c9887 Fixes to survey_get_responses() to make it work better with PostgreSQL
(from Petri Asikainen)
2003-02-17 08:35:51 +00:00
moodler 2f05b46ec9 Added language menus to top of login pages 2003-02-16 09:42:06 +00:00
moodler a59cbb7851 Update version 2003-02-16 09:25:02 +00:00
moodler 811c88b32f Fix short column 2003-02-16 09:24:25 +00:00
moodler 2a231ed650 Remove English word 'ago' 2003-02-16 09:22:52 +00:00
moodler c4e78a1b60 Tidy up the import screen 2003-02-16 08:03:55 +00:00
moodler 68fefdbe14 Change MC answers to letters a, b, c etc ... 2003-02-16 08:03:17 +00:00
moodler 49220fa70c Various quiz changes. Most importantly is the new framework for importing
quiz questions.   Importing works but is still being tested.
2003-02-16 07:08:57 +00:00
moodler 4270bba267 Fixed navigation link to login page 2003-02-15 02:58:34 +00:00
paca70 01a660a583 Updates 2003-02-12 10:27:21 +00:00
moodler 3f3960656d Fixed link to picture file in print_picture_file 2003-02-11 01:53:10 +00:00
moodler 434f33c00a Fixed license link 2003-02-11 01:35:31 +00:00
rkingdon 402eb657a6 peer graded assignment version 1.01 2003-02-06 21:43:57 +00:00
moodler 40f1246b14 Missing semicolon 2003-02-06 18:07:31 +00:00
moodler de2146b276 Note for something that needs to be fixed 2003-02-06 06:37:10 +00:00
moodler 73f8658c36 Provide the possibility that the format of a text is not defined properly 2003-02-05 12:41:59 +00:00
moodler bcdfe14e02 Whoops, fixed some obvious bugs when getting slash arguments 2003-02-05 10:52:55 +00:00
moodler eaa50dbc83 Removed some redundant code when looking for slash arguments (use me() function instead) 2003-02-05 10:48:13 +00:00
minkowski ac68f7ffc8 Completed Thai Translation 2003-02-04 04:35:17 +00:00
minkowski acf0f21ab1 rephrased quite a number of phrases 2003-02-04 04:12:30 +00:00
moodler ecc114ee3b Add better escaping for double quotes 2003-02-02 02:37:09 +00:00
rkingdon f879140423 peer graded assignment version 1.0 2003-02-01 22:04:27 +00:00
mits 08ffd31db1 New translation added. 2003-02-01 18:28:10 +00:00
rkingdon 49c4b1f779 Peer graded assignment - English Language file version 1.0 2003-02-01 17:53:41 +00:00
moodler 498d403283 Add some timing 2003-02-01 01:36:31 +00:00
paca70 56a4ed732a some updates 2003-01-31 11:05:43 +00:00
paca70 33ff2cca85 *** empty log message *** 2003-01-31 10:43:24 +00:00
moodler fced815cd7 Improved me() function 2003-01-30 15:52:38 +00:00
moodler db11e52dec Allow tags for embedded objects 2003-01-28 03:55:55 +00:00
moodler b35e8568ff Ignore all files and directories beginning with "." 2003-01-28 03:34:26 +00:00
moodler 7750f58e0c Explicitly set the character set 2003-01-28 03:06:52 +00:00
moodler f2e19ba41d Added some missing PHP variables to make it consistent with lib/htaccess 2003-01-28 03:06:20 +00:00
moodler d686bf500b Added some checks for PHP server variables - warnings are printed that
prevent installation until these are fixed.
2003-01-28 02:52:13 +00:00
moodler a09b86a693 Use On and Off instead of 0 and 1 2003-01-28 02:28:17 +00:00
moodler 0d3cbf4cca Changed some settings from "1" to "On" 2003-01-28 02:27:18 +00:00
moodler 1b27d92ad4 Old version of this file ... Ray will replace it shortly 2003-01-27 02:50:34 +00:00
moodler 89600ce15f Don't need this either 2003-01-26 16:59:39 +00:00
moodler 34afe40fb5 Removing English versions in the German lang pack 2003-01-26 16:58:55 +00:00
compuproggy c74a276913 *** empty log message *** 2003-01-26 12:22:09 +00:00
compuproggy a2da49f38b A better german version. Thx to a few modified translations of Michael Schneider 2003-01-26 12:08:01 +00:00
moodler 750ab759ed Slightly better robustness for notice() when there is no referer 2003-01-26 06:04:14 +00:00
compuproggy b49d73511b *** empty log message *** 2003-01-25 13:01:16 +00:00
moodler e79ddee2ad Smaller random number for smaller machines. :-) 2003-01-24 08:47:20 +00:00
moodler 03f06a1412 Remove the ampersand thing ... it was actually a Mozilla display bug. :-) 2003-01-24 08:41:18 +00:00
moodler 9223049919 Fixes to insert_record for inserting null values.
Also some unfinished changes to table_column ... not recommended for use right now
2003-01-24 07:51:55 +00:00
moodler 54d0590b47 Robustness fixes 2003-01-24 07:48:54 +00:00
moodler eb58acca4d New sessiontimeout config variable to set the timeout for sessions 2003-01-24 04:31:58 +00:00
moodler 7d8f674dea Implemented a safer version of stripslashes called stripslashes_safe.
This will only fix these three cases:

  \'
  \"
  \\

and leaves all other backslashes alone.  Should fix problems in forums
and forms where backslashes were sometimes disappearing from windows
paths like C:\temp - usually only in the richtext editor, but still.
2003-01-23 13:07:49 +00:00
moodler f3e48e6ef0 Solve this silly mpersand display problem 2003-01-23 05:03:27 +00:00
moodler 66fef9f99f If comment contains quotes then it can cause problems when
an assignment is uploaded.  Bug fixed by Ray Kingdon.
2003-01-23 04:23:05 +00:00
moodler 48d38fad63 Some robustness fixes 2003-01-23 02:50:38 +00:00
mits 878ece7eca New translation 2003-01-22 18:39:17 +00:00
mits 04222f70a3 no message 2003-01-22 18:38:19 +00:00
mits 5ca400f257 no message 2003-01-22 14:27:45 +00:00
mits 071df54ffd Modify strftime format for more natural Japanese way. 2003-01-22 14:26:35 +00:00
moodler dd98f2e261 Ignore the fonts folder 2003-01-22 12:03:22 +00:00
moodler 1042139455 Adding correct character set for Japanese.
These pages have to specify this stuff manually so that they work
even when not displayed within Moodle.

Nice job on the install translation, Mits!
2003-01-22 05:34:25 +00:00
moodler a42fcc51cb Removed all additional stuff for now 2003-01-22 04:15:29 +00:00
moodler 9f44d972c7 Add slashes to data pulled out of external source, just in case O'Brien logs in :-) 2003-01-22 01:55:54 +00:00
mits 5c71840819 New translation 2003-01-21 19:09:22 +00:00
moodler 7ba3fb64c9 More changes ... can't mess with the GPL. :-( 2003-01-21 16:13:23 +00:00
moodler cfe22ac921 Clean up 2003-01-21 13:22:05 +00:00
moodler eca6a3b781 Even better :-) 2003-01-21 12:57:10 +00:00
moodler 2d05c39303 Further rewording ... it's getting better I think. 2003-01-21 11:46:03 +00:00
moodler a43d392c69 Some info about this directory 2003-01-21 09:21:20 +00:00
moodler d60131c3c9 Changes to use fonts in language packs, and also to use a language
decoding function if necessary
2003-01-21 09:17:10 +00:00
moodler f6e653e06a Moved fonts into language pack so that other languages can have
proper displays in graphs
2003-01-21 07:27:01 +00:00
moodler bc43adf16d Slight changes to the wording of this new stuff 2003-01-21 04:52:17 +00:00
moodler b1e6dcb26c Rewritten for clarity 2003-01-21 03:08:37 +00:00
moodler ce9f2be2f9 Added new clause to Copyright about the use of Moodle logos. 2003-01-21 02:33:48 +00:00
moodler 86b32d51d9 Fixed a string 2003-01-20 15:55:41 +00:00
moodler 7d2e5b6595 Remove name on submit button 2003-01-20 15:43:09 +00:00
moodler 4e2767f8e0 Add times 2003-01-20 14:23:09 +00:00
moodler 17654e3845 Use $CFG->directorypermissions for new directories 2003-01-20 14:04:33 +00:00
moodler 63dddf351a Better control over directory permissions: $CFG->directorypermissions 2003-01-20 14:04:06 +00:00
moodler 2e6d42735f Added new configuration value $CFG->directorypermissions to set the
permissions for new directories created in dataroot
2003-01-20 14:03:11 +00:00
moodler 5a99c0de4d Fixes to make it work on safe mode servers, but also better control of
directory/file permissions.
2003-01-20 13:40:02 +00:00
moodler de5aabd2d2 Password had no default 2003-01-20 09:30:24 +00:00
moodler 0f61744597 Language editor uses current language (ie even the session language) 2003-01-20 09:28:38 +00:00
moodler 832ead4969 Fixed times 2003-01-20 09:23:06 +00:00
moodler 28e30091f0 Always. 2003-01-20 09:03:35 +00:00
moodler 25786a263a Throw away session language when logging in (use users language instead) 2003-01-20 09:00:36 +00:00
moodler caf7ccd44f Info 2003-01-20 08:51:50 +00:00
moodler 2fafa4bf31 Robustness fixes 2003-01-20 08:49:00 +00:00
moodler a53f918172 SOme more fixes - needs more 2003-01-20 08:40:41 +00:00
moodler b9fcddd16d FIxed some acutes 2003-01-20 08:38:30 +00:00
moodler 789a2500eb Slightly better formatting ... needs work still I think 2003-01-20 08:22:53 +00:00
moodler 3e9b5d5a90 Moved session lang setting into setup.php (works on all pages) 2003-01-20 08:09:25 +00:00
moodler 858156a995 Take session language into account when setting locale 2003-01-20 08:06:09 +00:00
moodler a38e24a544 Rearranged menu 2003-01-20 08:03:32 +00:00
moodler a5e3644bd2 Add setting of language to home page, and setting of new user accounts
to whatever the current language is.
2003-01-20 08:01:46 +00:00
moodler 0b949a6d0c Whoops, forgot a debug statement 2003-01-20 07:30:47 +00:00
moodler 1f3eb3191a More robustness on recover-password stuff 2003-01-20 07:16:23 +00:00
moodler 4028fcb159 Added Rodrigo 2003-01-20 07:13:25 +00:00
moodler 37208cd23a Some robustness 2003-01-20 07:13:02 +00:00
moodler dde4495df4 Update the version 2003-01-20 07:11:39 +00:00
moodler dc8791f367 Undoing recent change to insert_record() because of some problems 2003-01-20 07:10:14 +00:00
moodler 207190aa87 Make sure config array is always initialised before use 2003-01-20 06:43:44 +00:00
moodler c9d4e6da89 Remove old doclang variable 2003-01-19 12:37:56 +00:00
moodler 3db3acfb99 Instead of using doclang, use $SESSION->lang, and make it override other
language settings.  This should fix documentation display, but also will
be how setting registration languages and login languages works
2003-01-19 12:32:55 +00:00
mits 69ae05837c New translation 2003-01-19 12:00:06 +00:00
mits ecb1e78aaf no message 2003-01-19 11:26:28 +00:00
moodler a7e838796a Rogue tabs 2003-01-19 06:07:05 +00:00
moodler fe2874294c If we create a directory, then chmod it to protect the contents. 2003-01-19 05:54:08 +00:00
moodler 3c72e2f9c9 Some changes to insert_record to help Postgres 7.3 2003-01-19 05:46:49 +00:00
moodler e01b5c0e77 Small fix to make this script more usable on Multi-Byte languages like zh_hk 2003-01-19 05:25:31 +00:00
moodler b5fdd4c60a Updates 2003-01-19 05:05:45 +00:00
moodler 842b894b91 New translation Argentinian Spanish from Rodrigo Vigil 2003-01-19 04:57:25 +00:00
moodler 67c6f56f05 New updates for Spanish (esp. all-new help files) from Antonio Navarro 2003-01-19 03:42:29 +00:00
moodler 7fb92a3388 Changed Czech code 2003-01-19 01:23:53 +00:00
coolbit 59e6addbc9 add some new strings 2003-01-18 15:50:06 +00:00
moodler 2e43b5d987 Better notification and continue button is more useful 2003-01-18 14:24:40 +00:00
coolbit 319aa49306 update date formats 2003-01-18 14:20:22 +00:00
moodler 8f94fbcd4a Add slashes when printing correct Windows path to problems with backslashes 2003-01-18 14:05:52 +00:00
mits a9630e4f60 no message 2003-01-18 09:29:28 +00:00
mits ca791cb4a5 New translation added. 2003-01-18 09:26:55 +00:00
moodler cf194fc831 Latest updates - compatible with 1.0.8 2003-01-18 03:30:57 +00:00
moodler fdf5a1e2fb Changes to Course catagery editor to prevent duplicates 2003-01-17 02:03:42 +00:00
moodler 41b95af210 Strip slashes from short answers before comparing 2003-01-16 15:19:49 +00:00
moodler 536d3e22be Added Wales 2003-01-16 12:17:45 +00:00
moodler 722d4d1e14 Cleaned up the logic a bit 2003-01-16 11:57:34 +00:00
moodler d57bc55729 Updating the date 2003-01-16 04:06:23 +00:00
mits 83948780bc Update for New Date formatt. 2003-01-16 03:58:06 +00:00
moodler 2e41586e07 Added default date/time strings to all languages.
All European languages have now been changed to 24 hr time,
because AM and PM were not being displayed correctly.

Language editors should check these strings to see if there is
a more natural way to format these dates in their language.
2003-01-16 03:15:21 +00:00
moodler 7f43f576fc Updates from Hans de Zwart 2003-01-15 15:07:23 +00:00
moodler 7684f1efcc Minor fix with display of %% in language strings 2003-01-15 11:28:54 +00:00
moodler dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +00:00
moodler 9277dbd42d Bummer ... I introduced a new bug in 1.0.8.1 with pathinfo. Fixed. 2003-01-15 05:32:14 +00:00
moodler 1c418003d7 FIxed logic problem when checking has_default variable in the database
when inserting new data
2003-01-14 15:36:20 +00:00
moodler 7af6281f22 Don't bother working with empty course modules (can happen when an
module is uninstalled improperly)
2003-01-14 14:56:57 +00:00
moodler 2c104c0152 Fixed redirection when user not completed yet in some instances when
using external authentication
2003-01-14 14:54:45 +00:00
moodler ac0ac75240 Made this a bit clearer 2003-01-14 11:24:43 +00:00
moodler c078c29bb2 For assignments without a timemodified stamp, add one when graded 2003-01-14 03:01:10 +00:00
moodler dfcfb72876 Removing these files again 2003-01-14 01:47:27 +00:00
compuproggy a9a55d693e *** empty log message *** 2003-01-13 21:00:56 +00:00
moodler ab387834ab Development phase .. hold on to your hats! :-) 2003-01-13 15:26:57 +00:00
moodler 9ae687afb0 A little more robustness 2003-01-13 14:11:05 +00:00
moodler d98228e497 More checks to solve support requests before they happen. 2003-01-13 14:05:29 +00:00
moodler 13770d0c36 More fixes for robustness 2003-01-13 12:16:46 +00:00
moodler 11159c3c60 Fixed some PHP warnings 2003-01-13 12:14:47 +00:00
moodler 1063d08854 Add info that may help solve a bug on some old servers 2003-01-13 12:06:33 +00:00
moodler bcb5c5095e Fixed the default locale 2003-01-13 10:03:17 +00:00
moodler 94e3411897 Slightly more robust function 2003-01-13 02:42:57 +00:00
moodler 03c17ddfec Fix for dates (the last?) 2003-01-13 02:37:47 +00:00
moodler 3fb5b92095 RELEASE 1.0.8.1 2003-01-12 07:16:33 +00:00
moodler 29f18614e2 Updated version and release notes 2003-01-12 07:11:44 +00:00
moodler 6ed3da1da4 Cleaned up file argument processing a bit 2003-01-12 06:53:25 +00:00
moodler 1685298e60 Removed a line from config.php 2003-01-12 06:31:07 +00:00
moodler 105afdcb2e Daily changes 2003-01-12 03:35:58 +00:00
moodler 353439a354 Slight cleanup 2003-01-11 14:01:39 +00:00
moodler 6b72b9a911 A small standalone test program to test session support 2003-01-11 13:58:17 +00:00
moodler 704ac9fe76 Slightly clearer documentation 2003-01-11 05:29:49 +00:00
moodler bee00f48aa Closing sessions may fix some problems on WIndows/CGI systems ... 2003-01-11 03:03:54 +00:00
moodler 4738ab0d37 Daily changes 2003-01-10 13:47:48 +00:00
moodler f8c898243d Editing with Richtext wasn't working ... fixed now (typo) 2003-01-10 13:07:41 +00:00
moodler f978ad0acb Put in a check for the sessions directory 2003-01-10 07:33:26 +00:00
moodler d96b410816 More details about requirements 2003-01-10 07:22:34 +00:00
moodler 6c14c3948f PLease read the README.txt in this directory 2003-01-10 06:29:40 +00:00
moodler 61dcfc31e0 Updated version number 2003-01-10 05:50:34 +00:00
mits 5af670da9a no message 2003-01-10 05:44:51 +00:00
moodler 3db75c62fc Fix when making timestamps from web selector 2003-01-10 05:41:20 +00:00
moodler 39e018b338 Fix for display of date selector, and also for finding server name from
environment
2003-01-10 05:40:35 +00:00
mits a6602862fb Modified 2003-01-10 05:29:31 +00:00
moodler c897eac5e4 Some small robustness things, and a new style for quiz feedback text 2003-01-08 09:08:05 +00:00
moodler 1079c8a872 More robust when dealing with a plugin module that isn't readable 2003-01-08 09:07:07 +00:00
moodler 4e080c888a Missed something 2003-01-07 14:52:51 +00:00
moodler cd8ecdb0b9 Fixed typo 2003-01-07 14:48:06 +00:00
moodler af4542c29e Cleaned up, and improved the logic to avoid very rare case
when secret keys matched on two users
2003-01-07 14:46:12 +00:00
moodler 7dba8c384f Whoops forgot the date 2003-01-06 14:17:05 +00:00
moodler 8375fe4f88 More touch-ups 2003-01-06 14:15:45 +00:00
moodler 5cc1aff3db Robustness fixes 2003-01-06 14:01:56 +00:00
moodler ce78926df0 Small robustness fixes 2003-01-06 13:55:37 +00:00
moodler 8af3e37948 Slight increase in log field size 2003-01-06 13:40:05 +00:00
moodler 5be03da1e8 New file 2003-01-06 12:36:35 +00:00
moodler 0b963b9041 Tidying up old files 2003-01-06 12:36:08 +00:00
moodler 8d61f85e32 Update 2003-01-06 12:31:39 +00:00
moodler df8dd5f479 New strings from Fabricio 2003-01-06 12:29:52 +00:00
moodler 432809b1d6 Updating version to get ready for tonight 2003-01-06 09:29:06 +00:00
moodler 5674507b4d Slightly more rboust 2003-01-06 08:47:57 +00:00
moodler 58d6d79145 Default values 2003-01-06 08:44:03 +00:00
moodler 042a64f050 Missing file 2003-01-06 08:42:59 +00:00
moodler 72ae3a0eb4 Updates 2003-01-06 08:42:08 +00:00
moodler 20f47494ae Framed docs can now select a named anchor in a page 2003-01-06 08:23:36 +00:00
moodler bfe89310ce Link from admin page to docs 2003-01-06 08:23:13 +00:00
moodler 1b73ea5799 Link from themes page to themes docs 2003-01-06 08:22:49 +00:00
moodler c4028ac12b Garden theme by spiggy: http://phpgirl.com 2003-01-06 07:39:19 +00:00
moodler a657c48b96 A little fix to workaround what seems to be an ADOdb bug when using
database authentication
2003-01-06 05:37:26 +00:00
moodler 57b0a28bfa Latest versions from Sebastien 2003-01-06 03:28:44 +00:00
moodler f24a9b78eb String changes 2003-01-06 02:57:09 +00:00
moodler d9a9064e27 More rogue strings 2003-01-06 02:56:48 +00:00
moodler 3bd402300e Shot down some rebel strings 2003-01-06 02:43:50 +00:00
moodler 6a738db7b5 Added 4.3.0 bug compatibility 2003-01-06 01:44:49 +00:00
moodler 654eddf086 FIxed a missing quote, and fixed the highlight colour 2003-01-05 16:46:29 +00:00
moodler e2b5b53e46 READ ME ;-) 2003-01-05 16:34:34 +00:00
moodler 25a3810f01 Removing unnecessary English versions of these files (see README) 2003-01-05 16:33:52 +00:00
moodler 1ccee9fdc3 Updated 2003-01-05 16:15:25 +00:00
moodler d768dee320 Update versions 2003-01-05 14:23:30 +00:00
moodler b20f74c94a Rmove bad coursemodule error - not important enough to show 2003-01-05 14:20:33 +00:00
moodler b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler af60ea8a86 Fixed a link 2003-01-05 13:19:21 +00:00
moodler 8b3235f57f Fixes to use new mysql module with frame 2003-01-05 12:00:57 +00:00
moodler bdd2e029a0 Fixes dependency on standardlogo 2003-01-05 11:08:21 +00:00
moodler c07e87c6ee New standard white theme 2003-01-05 11:02:51 +00:00
moodler 6422da3570 Smaller image and links break out of frames 2003-01-05 10:23:49 +00:00
moodler 92a419a25c Make frame width a variable 2003-01-05 10:10:05 +00:00
moodler 5dc09fb6ee Cleaned things up somewhat and made it more generic 2003-01-05 09:53:30 +00:00
moodler 8bbba2486c Initial version of "Poweraid" theme from Bjarne Varoystrand aka Black Skorpio
with a few half-finished changes ... still needs work which I'm doing right now...
2003-01-05 07:23:04 +00:00
moodler f5789d86aa Updating to current info 2003-01-05 07:04:24 +00:00
moodler 7d0d7f4665 Initial version by Tom Murdock 2003-01-05 07:02:39 +00:00
moodler ed5e0c04ae More info 2003-01-05 06:52:55 +00:00
moodler f8b3c31f28 Update the version 2003-01-05 06:46:21 +00:00
moodler 607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler 3b7c1de95e Changes to improve robustness of uploads, and make things compatible
with PHP 4.3.0.  Also some translation fixes with upload strings.
2003-01-05 04:20:32 +00:00
moodler 8556ae8641 Language credits 2003-01-05 04:19:35 +00:00
moodler 087b81fc86 Updated Dutch strings. 2003-01-05 04:14:45 +00:00
paca70 da95fdd658 checkin for translation 2003-01-04 17:20:10 +00:00
paca70 fcbea507c4 Just checking in for translation. 2003-01-04 17:16:37 +00:00
paca70 0b9e04f07e more updates 2003-01-04 17:09:00 +00:00
moodler 70d4cf8267 Ah!! At last, the dreaded off-by-one date bug, squashed. 2003-01-03 16:58:37 +00:00
moodler 89885b582d Upgrade version for Beta Test version 2003-01-03 16:38:46 +00:00
moodler 17e6df458d Fixed display of headers while updating modules 2003-01-03 16:35:51 +00:00
moodler 1d2603b1e3 Make sure grades are always rounded 2003-01-03 16:05:44 +00:00
moodler a2fe7cc0dc Changed three fields to avoid SQL problems with PostgreSQL etc:
quiz_truefalse:  true->trueanswer  and false->falseanswer
quiz_questions:  type->qtype
2003-01-03 16:01:48 +00:00
moodler a3fb1c450a New function table_column() to add or alter a column in any database. 2003-01-03 15:31:30 +00:00
moodler d2d7c864de Mention language count 2003-01-03 14:39:13 +00:00
moodler 3cc9937d3c More stuff 2003-01-03 13:05:40 +00:00
moodler e53b0823ab More robust checking of returned $rs 2003-01-03 06:44:35 +00:00
moodler 8663bfdb08 Display months in local language for date_selector 2003-01-03 06:43:12 +00:00
moodler 15ac90653d Replaced &sect with &amp;sect to avoid some buggy browsers 2003-01-03 05:33:17 +00:00
moodler a86b60ddd9 Changed a link 2003-01-03 03:25:48 +00:00
moodler 3250c50889 Removed German help files 2003-01-03 03:03:19 +00:00
moodler 5f55de1007 New Dutch translation from Hans Zwart and Jacob Romeyn! 2003-01-03 02:54:50 +00:00
moodler 14217044a5 Some little fixes 2003-01-02 15:25:51 +00:00
moodler 5422d75fcb Hmmm database name causing some problems ... 2003-01-02 15:12:34 +00:00
moodler e1bf736ffa Fixed that damn www linking problem with words like wwwroot :-) 2003-01-02 14:54:33 +00:00
moodler 36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler fb964e0c78 Some robustness fixes. 2003-01-02 13:08:20 +00:00
paca70 ba79f7429e Some updates, more to come. 2003-01-02 12:45:39 +00:00
moodler fa3ba0f6c1 Slightly more efficient way to open the database connections 2003-01-02 11:34:00 +00:00
moodler c030ab7078 More details... 2003-01-02 11:13:01 +00:00
moodler 7adcd58f82 Prepend database name to all table names to avoid ADOdb bug when there
is multiple database connections at once.
2003-01-02 11:09:03 +00:00
moodler 24cd45467f Site news forum defaults to the "Site news" string 2003-01-02 10:54:00 +00:00
moodler 9c2c5c5bd0 Use the name of the Site News forum on the front page ... instead of the
"Site News" string ...
2003-01-02 10:48:01 +00:00
moodler 51ba6ad642 Define forum type all the time 2003-01-02 10:46:52 +00:00
moodler 42a986b23a Looking like a beta 2003-01-02 10:38:08 +00:00
moodler 61e96406df Robustness fixes 2003-01-02 10:35:11 +00:00
moodler ac5d88ebe9 Ignore guest when checking imcomplete users 2003-01-02 10:32:51 +00:00
moodler 819df380a3 Initial version of Thai translation, by M Minkowski :-) 2003-01-02 07:55:40 +00:00
moodler 5b4fd9c20a Allow phpinfo() debugging to occur even if Moodle isn't configured yet
(to help with configuration problems!).
2003-01-02 07:37:28 +00:00
moodler 33e5f52c01 Removing english versions 2003-01-02 06:52:27 +00:00
moodler 6846ee2da5 Removing files 2003-01-02 06:51:56 +00:00
moodler a44d18e70e More consistency when printing editing stuff in section 2003-01-02 06:44:20 +00:00
compuproggy 6af88ac7a2 *** empty log message *** 2003-01-02 06:38:36 +00:00
moodler 106140f7d1 New frame mode for dox 2003-01-01 15:13:56 +00:00
moodler b79f41cd42 Robust fix 2003-01-01 15:13:21 +00:00
moodler e18b68b0b6 Updates. That's it for features now. :-) 2003-01-01 15:12:29 +00:00
moodler 8e6c87ccf3 Teachers can choose to allow review of quizzes, which means that students
are allowed to see past quizzes.  This only works once the quiz is completely
closed (to perhaps prevent easy cheating).
2003-01-01 14:47:11 +00:00
coolbit d78ab28640 no message 2003-01-01 13:41:08 +00:00
moodler 8ac3158791 Robustness fixes 2003-01-01 13:17:27 +00:00
moodler 0c106cd3ab Don't try to display docs files if they don't exist. 2003-01-01 12:03:15 +00:00
moodler fdb57a7473 Updated with more info 2003-01-01 11:53:39 +00:00
moodler 2f7566090f Necessary file for documentation to work! 2003-01-01 11:26:50 +00:00
coolbit cb573b2647 no message 2003-01-01 10:16:19 +00:00
moodler b6bae251a1 If prefix isn't defined in config.php then define it as "" to avoid
problems with upgraders who don't edit config.php
2003-01-01 09:29:05 +00:00
moodler 6fbf8d8fe8 Default debugging 2003-01-01 08:48:15 +00:00
moodler e29fa0c8e2 Add default prefix (for tables) of "" for upgraders 2003-01-01 08:33:22 +00:00
moodler 1c0200e074 More little robustness things 2003-01-01 08:21:19 +00:00
moodler db70b54b62 Better log_display fixes 2003-01-01 08:15:55 +00:00
moodler 14e4a496b4 Updates for log_display stuff 2003-01-01 08:08:44 +00:00
moodler 30d6173ed6 Fixes for Log display 2003-01-01 07:37:19 +00:00
moodler 7f7f2cca29 Robustness 2003-01-01 07:18:43 +00:00
moodler 13469b820d Introduce links to personal grade page 2003-01-01 07:03:23 +00:00
moodler 1df0ab5d8d Cleaned up a bit 2003-01-01 06:53:00 +00:00
moodler b0cef1ec45 Grade display for current user 2003-01-01 06:42:11 +00:00
moodler c2045f3436 Changes for robustness 2003-01-01 06:41:35 +00:00
moodler d2cded302b New strings for publishing results 2003-01-01 06:40:55 +00:00
moodler 346b1a2483 Tweaks 2003-01-01 06:40:31 +00:00
moodler f747744495 More robustness fixes 2003-01-01 06:34:54 +00:00
moodler 6d6c938999 New feature: choices can now be published (like polls) with names
or without.
2003-01-01 06:34:13 +00:00
moodler 366287b705 Old file 2003-01-01 05:39:30 +00:00
moodler a7514c09e6 More tweaks 2002-12-31 08:50:24 +00:00
moodler 50c4bd4145 More robustness, and some little bug fixes.
Also, database module now supports md5 passwords
2002-12-31 08:45:37 +00:00
moodler f53af9410c Better checks during membership checks 2002-12-31 07:16:52 +00:00
moodler 5eda92d0e2 Little robustness fixes 2002-12-30 15:47:54 +00:00
moodler 814ada432c Fixes to XLS routines that were causing some problems 2002-12-30 15:46:15 +00:00
moodler 86d6449306 Allow "." and "-" in usernames. 2002-12-30 15:38:10 +00:00
moodler 808a3baaf8 If a user has authenticated via external authentication, then FORCE them
to fill out the user profile form (is they can't do anything else until
this is done)
2002-12-30 15:30:05 +00:00
moodler 6dd38d4656 Allow STRIKE tag 2002-12-30 13:02:21 +00:00
moodler 149f85f035 Robustness fixes 2002-12-30 06:07:03 +00:00
moodler bdece65d72 More debugging 2002-12-30 05:31:54 +00:00
moodler 47f1da80d0 More little fixups for robustness 2002-12-30 05:13:43 +00:00
moodler c04c41c7d2 Many little fixes and cleanups for robustness 2002-12-30 05:10:01 +00:00
moodler b9b8ab696f Fixed p() and s() to deal with zero better 2002-12-30 03:39:42 +00:00
moodler 0ae5e5ea2d Fix default cursor 2002-12-30 03:38:59 +00:00
moodler b3fa6684ea Fixes to insert_record (from Petri) to explicitly use field default
values if we know them from ADOdb, to avoid some problems with PostgreSQL 7.2 onwards
2002-12-30 03:25:48 +00:00
moodler 4fd7ccc0fe New "debug" variable to turn debugging on and off 2002-12-30 03:24:07 +00:00
moodler 932e472fdc Daily changes 2002-12-29 17:41:18 +00:00
moodler 9c9f7d7790 Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
2002-12-29 17:32:32 +00:00
moodler a900458749 It's now possible to choose a documentation language on the fly! 2002-12-29 16:28:41 +00:00
moodler 18496c590b New get_record_select function (for completeness) and a completely
revamped update_user_in_db() function
2002-12-29 16:28:09 +00:00
moodler cae7436602 Use session-specified language if possible 2002-12-29 16:26:44 +00:00
moodler b01597c807 Cleaned up files using new admin/lang.php 2002-12-29 16:23:48 +00:00
moodler d558a7b5d1 Cleaned up some strings without quotes 2002-12-29 16:15:41 +00:00
coolbit 8c05e98c41 remove them and wait for new translations 2002-12-29 15:33:39 +00:00
moodler 753db9ace7 Clearer info 2002-12-29 15:12:45 +00:00
moodler 3cae82fe52 Adding this back again to help brand-new installations and to keep
some old links alive.
2002-12-29 15:06:31 +00:00
moodler 235bb050c5 Better way to include initial intro.html 2002-12-29 14:43:49 +00:00
moodler 9bd2c8741c New function document_file() for fetching documentation from language
packs, and a few cleanups to reduce warnings
2002-12-29 14:41:03 +00:00
moodler f1dacb2ed0 Changes to how documentation works. A thin PHP interface now fetches
files from the language packs.  If a file isn't available in the current
language, then English is used.
2002-12-29 14:39:52 +00:00
moodler 4456254798 Added document files to English translation 2002-12-29 14:37:53 +00:00
mits ce0eedfc72 New translation added. 2002-12-29 09:13:19 +00:00
moodler 11e8f20ec4 Accidentally left debugging on 2002-12-29 04:18:09 +00:00
moodler 9d378732e4 More little fixes 2002-12-29 04:17:32 +00:00
moodler 5c63e0c4ee Some changes to remove warnings about empty variables and cleanup 2002-12-29 04:02:42 +00:00
compuproggy fa9ef12118 *** empty log message *** 2002-12-28 21:14:14 +00:00
moodler 92a4b0f180 Fixes to allow the GD detection to work on PHP 4.3.0 (with bundled GD) 2002-12-28 14:45:54 +00:00
moodler 57117c20d5 fixed user --> userid 2002-12-28 13:05:03 +00:00
moodler 05a6c03ed2 Er, unfinished code while upgrading log_display 2002-12-26 17:02:45 +00:00
coolbit 212f17dd08 new docs 2002-12-26 17:01:55 +00:00
moodler 8c8a471356 Added "source" mode in richtext editor 2002-12-26 16:27:44 +00:00
moodler 04fa59d015 Use HTML editor for editing HTML files 2002-12-26 16:26:55 +00:00
ahmed_nabil 5f7ed5ceb3 no message 2002-12-25 13:56:31 +00:00
set_lo f5ff25a482 spelling error vilkor substituted with villkor 2002-12-25 13:35:07 +00:00
set_lo 47149b438d action substituted with swedish aktion 2002-12-25 13:34:25 +00:00
ahmed_nabil d9843ab42d no message 2002-12-24 13:31:33 +00:00
moodler 4fe04be0bd Er... on the cookies I meant. 2002-12-24 10:08:24 +00:00
moodler 7185e073ed Use table prefixes on database too :-) 2002-12-24 10:07:45 +00:00
moodler c23f1c10ca Updates 2002-12-24 09:34:11 +00:00
moodler 29341af700 Updated release notes 2002-12-24 07:29:38 +00:00
moodler f7a5c8fafd Added new "Program" resource type, which allows Moodle to cooperate
with external web applications by passing info about the current
session to them.

Code contributed by Mark Kimes.
2002-12-24 07:01:03 +00:00
moodler 195ad21e96 New documentation for Moodle - new resource type called "Program" 2002-12-24 06:59:13 +00:00
moodler 7e5e076adf No need for forcetables hack any more. Moodle can now detect whether
it has already been installed in the current database (by looking
for all the main tables) and do the right thing.  It doesn't matter now
if there are other tables in the database or not.
2002-12-24 05:39:45 +00:00
moodler e494038ecb Forgot Turkish 2002-12-23 16:16:53 +00:00
moodler 1342d68a8a Tweak 2002-12-23 16:12:44 +00:00
moodler 67fcf6818a Tweak! 2002-12-23 16:10:06 +00:00
moodler d51fb96e98 More up-to-date-info 2002-12-23 16:07:38 +00:00
moodler abf90faf65 More details ... 2002-12-23 15:52:16 +00:00
moodler 97485d0726 More database tweaks and improved access to forum search engine 2002-12-23 15:33:40 +00:00
coolbit 7f8dcc6c02 no message 2002-12-23 15:08:55 +00:00
moodler 4e042a3ee9 Clearer directions. 2002-12-23 14:44:32 +00:00
moodler 99988d1a87 This version installs smoothly for me on PostgreSQL 2002-12-23 14:19:45 +00:00
moodler 31fefa636d More database tweaking ... looking pretty good with PostgreSQL now 2002-12-23 13:48:31 +00:00
moodler a3eea09cc9 More fixes for postgreSQL etc 2002-12-23 11:47:17 +00:00
moodler 6aeec7f8f8 Fixes for log display 2002-12-23 10:27:57 +00:00
moodler b6c38cec93 Slight fixes to headings 2002-12-23 10:18:51 +00:00
moodler ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler 1f48942e7d Further SQL cleanups 2002-12-23 07:01:06 +00:00
mits b0cc830305 Modified 2002-12-23 06:50:50 +00:00
mits dcc4f0e83a New translation added. 2002-12-23 06:49:48 +00:00
moodler e323955db8 Changes to use new database stuff 2002-12-23 05:57:05 +00:00
moodler 1d881d926b More moving functions around and removal of hardcoded SQL 2002-12-23 03:07:01 +00:00
mits e99f76e01d Polished 2002-12-22 15:30:58 +00:00
moodler bdc23be0ff CHanges for new database table commands 2002-12-22 13:55:30 +00:00
moodler ba54c0b8ce New Swedish translation by Set Lonnert 2002-12-22 13:32:36 +00:00
moodler 9e12b88eb9 Fixed an error in survey.php in all languages ... colles18hort should be colles18short 2002-12-22 13:26:16 +00:00
moodler 19801b2b21 More little fixups for week 0 2002-12-22 06:45:09 +00:00
moodler 1523be781f Changes to get a more reliable insert ID for any table 2002-12-22 06:33:30 +00:00
moodler d26d7ed0c3 Changes to make things work again :-) 2002-12-22 06:15:44 +00:00
coolbit 62cdef7869 no message 2002-12-21 12:48:24 +00:00
coolbit 469c2cc7d1 no message 2002-12-21 11:39:27 +00:00
moodler 9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
coolbit 03f13d2207 no message 2002-12-20 12:48:46 +00:00
moodler bdce039ca5 Slight updates such as removing old functions 2002-12-20 07:21:09 +00:00
mits 5a8415734f Polished 2002-12-19 15:54:41 +00:00
mits bfd5649fcc Polished 2002-12-18 14:19:58 +00:00
coolbit 663a621c51 Removed lots of "^M", hu!
Where do they come from?
2002-12-18 13:58:01 +00:00
moodler d5f48b1619 Preset the FULLME variable 2002-12-18 08:08:34 +00:00
mits e310476ae9 Polished 2002-12-18 06:34:40 +00:00
mits 45cbb10388 Polished 2002-12-18 03:08:09 +00:00
coolbit 84275343bd no message 2002-12-17 15:46:21 +00:00
carlesbellver 5736c5fcf4 *** empty log message *** 2002-12-17 13:21:50 +00:00
compuproggy 82fc646799 *** empty log message *** 2002-12-17 07:01:25 +00:00
moodler df28d6c5e6 Contains database functions split-off from moodlelib, just so you can see
what I'm doing ...

Some functions have been extended and cleaned up ...

I need to do more testing on it all before checking in all the other
changed files like moodlelib.php and setup.php
2002-12-17 04:41:18 +00:00
gregb_cc 8caf7e0430 Since the reimplementation of check_php_version will probably never be used, I
have removed it.
2002-12-17 03:04:07 +00:00
gregb_cc 709c0cb359 added in a commented out reimplementation of check_php_version, that will most
likely never be used.
2002-12-17 03:02:53 +00:00
ahmed_nabil fd66477c7d This files is updated after testing phase 1. and After final testing I will update this files again 2002-12-16 15:16:32 +00:00
mits 72af127890 Polished 2002-12-16 06:06:50 +00:00
moodler a4064f5755 Moved the view source button to solve problems with other languages
pushing it off the screen
2002-12-15 17:59:40 +00:00
mits af0aa10fc3 Polished 2002-12-15 17:09:02 +00:00
mits 3ac5d94015 New Translation 2002-12-15 15:31:23 +00:00
moodler 0b0260e7ba Fixes (they were causing errors) 2002-12-15 14:49:49 +00:00
moodler aaa872a9ed Minor editing ;-) 2002-12-15 10:53:36 +00:00
moodler 090e6d1959 Minor editing ;-) 2002-12-15 10:51:05 +00:00
moodler 852b18ff2b New files 2002-12-15 10:41:00 +00:00
moodler 1451da5eed Revised the text on these three pages.
These are ready to translate now.  If you have translated them
before, you may want to compare your translation because there
are some changes throughout.

Sorry if this causes any inconvenience - I try not to rewrite
the help files too much.
2002-12-15 10:31:33 +00:00
coolbit fdd417e212 New Chinese help files! 2002-12-15 10:13:28 +00:00
mits 342c546d99 Modified 2002-12-15 09:30:38 +00:00
mits 323af31737 Added 2002-12-15 09:23:13 +00:00
mits ab430cfd3d Polished 2002-12-15 08:49:15 +00:00
mits 5e22db9e23 Polished :^) 2002-12-15 07:58:08 +00:00
ahmed_nabil b75c36b802 This files is updated without testing. After testing I will update this files again 2002-12-15 06:56:36 +00:00
moodler 393cc5088b Improved course listing display when no courses 2002-12-15 06:00:58 +00:00
mits d2380ec365 Lastmodify updated 2002-12-15 05:00:24 +00:00
mits 035f8397db Polished 2002-12-15 04:58:47 +00:00
mits 33b4ba655f Polished :^) 2002-12-15 04:32:31 +00:00
moodler f6680cfa4a Put a space under the colon 2002-12-15 04:27:51 +00:00
moodler 4181fce9f9 Moved a colon (there's a joke about farts in there somewhere) 2002-12-15 04:26:44 +00:00
moodler fd790dfb55 Database and upgrade files for PostgreSQL 7 support! 2002-12-15 02:41:07 +00:00
moodler a3e175eea5 performance improvement when checking gd version 2002-12-15 02:40:25 +00:00
moodler ca3cf39ee1 Turn off time limits with big SQL commands ... some databases are really slow. 2002-12-14 18:33:37 +00:00
coolbit dee505a1c0 add new help files 2002-12-14 14:30:43 +00:00
coolbit 6d987a67cc some modify 2002-12-14 14:26:34 +00:00
coolbit fa949b2b5c New Chinese help files and update php files. 2002-12-14 09:04:05 +00:00
moodler 93f03cc436 Much cooler way to set the form focus after an error. Sent in by Greg Barnett. 2002-12-14 08:24:34 +00:00
moodler 778c28671a Added new configuration setting "country" to set a default country
for the site.  If this is set then user menus are pre-selected.
eg when signing up or filling out profile after external authentication.
2002-12-14 08:18:18 +00:00
moodler b2a2171f22 Shortened helprichtext phrase for better viewing of post forms on small
monitors
2002-12-14 07:36:19 +00:00
moodler e28a6c7378 Added LI tag (not cascading) 2002-12-13 17:01:16 +00:00
moodler 51e734b85f Some more information about buggy_referrer 2002-12-13 16:10:14 +00:00
coolbit ce3faff837 New Chinese help files! 2002-12-13 13:32:21 +00:00
mits 9c5b4e1587 Add New items. 2002-12-13 10:00:23 +00:00
moodler 8fc6971035 Updates 2002-12-13 09:57:12 +00:00
moodler 8c009049f4 Removed two old strings 2002-12-13 09:55:41 +00:00
moodler 50c5119d82 Notice up top 2002-12-13 09:37:13 +00:00
moodler e57e540ce1 Draft versions of these files ... please do not translate yet! :-) 2002-12-13 09:32:04 +00:00
moodler b0767657a6 New help files ... nothing written in them yet! 2002-12-13 09:09:19 +00:00
moodler 7be475f601 New consistent help buttons for textarea fields throughout all modules 2002-12-13 09:06:30 +00:00
moodler 2e9e77eba0 Tweaks for highlighting 2002-12-13 08:12:14 +00:00
mits 499ab3711e Changed softly :-) 2002-12-13 08:03:35 +00:00
moodler bfca4cffdc Different styles for content when week is highlighted 2002-12-13 07:37:47 +00:00
moodler 541b602d61 More tweaks ... added style for outlinecontent when highlighted (eg current week) 2002-12-13 07:37:13 +00:00
compuproggy 51b578bc6e *** empty log message *** 2002-12-13 06:42:25 +00:00
moodler 6176355393 WHoops ... I'd trashed the background 2002-12-13 04:56:10 +00:00
moodler d8c0083240 Fixed definition of standard styles 2002-12-13 04:54:29 +00:00
moodler 2e91475518 Fixed standard tags .... uses inheritance now 2002-12-13 04:51:56 +00:00
moodler 9984fe99e4 New style classes added to standard themes 2002-12-13 03:29:45 +00:00
moodler 45f21f94d7 config.php not required ... just in case themes move or something ... 2002-12-13 03:15:28 +00:00
moodler 8ab95b7186 Style hooks for print_simple_box 2002-12-13 03:14:49 +00:00
moodler 6daa3c2329 More hooks to hang styles from 2002-12-13 03:14:19 +00:00
moodler 02d35f5503 New themes under construction 2002-12-13 03:12:11 +00:00
moodler c2246cbb1e Some new names ... 2002-12-12 17:55:18 +00:00
mits 2590de4ff4 Polished :^) 2002-12-12 17:26:58 +00:00
mits f1f3b874ce Polished :^) 2002-12-12 14:18:37 +00:00
coolbit 7a6ce5df4c New Chinese help files! 2002-12-12 13:53:32 +00:00
moodler c21f835ac3 Don't even attempt to install the template module 2002-12-12 13:35:10 +00:00
coolbit 1d1b312890 Add space before and after a variable to display normally. 2002-12-12 13:18:22 +00:00
moodler 7f9b57040e Added all the missing help files etc 2002-12-12 13:10:25 +00:00
coolbit 59b888d7fb Change firstname to lastname in email for Chinese custom. 2002-12-12 13:00:40 +00:00
moodler 150e92dcf1 local = en_GB is causing my AM/PM to disappear! 2002-12-12 12:30:09 +00:00
mits 55181cf5a8 New items tralslated.
"highlights missing or empty strings" is great!!
2002-12-12 03:48:26 +00:00
moodler 06c0a76a1d Up to date with English 2002-12-12 03:33:40 +00:00
moodler e3305cc5d9 Better checks when comparing languages. Now highlights missing or
empty strings.  Quick check mode also flags strings when they exist
but are empty.  Larger form space to edit empty strings.
2002-12-12 03:33:12 +00:00
moodler f830b324cf Fixed two missing strings 2002-12-12 03:14:13 +00:00
moodler 31313bfb98 Fixed layout with multiplem categories 2002-12-12 02:58:05 +00:00
moodler 2f99e65049 Slight changes to auth_user_login ... don't accept blank username/passwords
and some minor logic changes
2002-12-12 02:37:35 +00:00
moodler 79e7f21a65 Fixed bad copyright message 2002-12-12 01:27:36 +00:00
mits ccddfeec89 Polished :^) 2002-12-11 19:57:43 +00:00
mits a23b08a360 Polished and add translation "Admin" related. 2002-12-11 19:06:45 +00:00
mits 91de0951af Date updated 2002-12-11 18:26:27 +00:00
mits a7c833d1dd Polished and translated new item "Assign admins". 2002-12-11 17:56:21 +00:00
mits be2946c27c Polished :^) 2002-12-11 17:27:21 +00:00
moodler c78a72fc5b Added a slash. Wow! 2002-12-11 16:30:53 +00:00
coolbit 836c3d0ed6 *** empty log message *** 2002-12-11 16:27:38 +00:00
moodler fbea810cf4 Updating the version for the development phase 2002-12-11 16:13:37 +00:00
coolbit fd6fbbeb0b *** empty log message *** 2002-12-11 16:02:59 +00:00
coolbit 45b1adcf20 *** empty log message *** 2002-12-11 15:46:55 +00:00
mits df6384e2b8 Polished 2002-12-11 15:23:56 +00:00
moodler d7facad81e Modifications from Greg Barnett at Crown College to add more admins.
See http://bugs.moodle.org/bug.php?op=show&bugid=202
2002-12-11 14:59:37 +00:00
ahmed_nabil cc2c8c6dc5 The last entry was translated 2002-12-11 13:50:14 +00:00
mits 5186f85951 Polished 2002-12-11 12:38:13 +00:00
coolbit e7a02c4c73 *** empty log message *** 2002-12-11 12:29:44 +00:00
mits 78774bae0d Polished 2002-12-11 12:24:44 +00:00
mits ae481044f7 Plished 2002-12-11 12:00:28 +00:00
mits a13975e028 Polished 2002-12-11 11:39:18 +00:00
moodler 21f34b5f67 Set the locale to ar_EG 2002-12-11 10:00:41 +00:00
moodler 795976b352 Added Ahmed Nabil as Arabic maintainer 2002-12-11 09:45:28 +00:00
moodler 7434d21a90 New Arabic translation by Ahmed Nabil <ana@harf.com> 2002-12-11 09:42:37 +00:00
mits af554bec95 Add lastmodify and URL(moodle.com -> Resources -> Languages) 2002-12-11 08:26:20 +00:00
mits fff61015b7 Polished 2002-12-11 08:14:05 +00:00
mits 379e2dcbae Polished 2002-12-11 08:06:21 +00:00
mits ad8aa0b9f3 Polished 2002-12-11 08:01:52 +00:00
mits 5f16e54d33 Add Local ja_JP and Polished. 2002-12-11 06:59:56 +00:00
mits 5d0a3181b0 Polished 2002-12-11 06:48:20 +00:00
moodler cf3f6bcc2c Removed makeclass stuff completely. It's now in contrib/crown_college 2002-12-11 06:31:59 +00:00
moodler eac7c90291 Names I'd forgotten 2002-12-11 06:19:50 +00:00
moodler 9e2265f707 Updated some names 2002-12-11 06:02:19 +00:00
moodler bb55809320 Another hint for the Windows users 2002-12-10 17:26:30 +00:00
mits f1d2a92c85 Save with Moodle. 2002-12-10 16:23:50 +00:00
mits 8c6cdfc613 Conflict solved 2002-12-10 16:05:22 +00:00
mits 266873247f "\r\n"(CRLF) removed 2002-12-10 15:46:43 +00:00
moodler 62c5a17de5 First version of Chinese! From Zhang Dexuan, cncoolbit@hotmail.com 2002-12-10 15:45:00 +00:00
moodler e6f10ec582 Theme not working for brand-new setup. 2002-12-10 13:37:37 +00:00
moodler 1355a93af2 Just fixing a wierd text-formatting problem. 2002-12-10 12:52:53 +00:00
mits 208307010c plished 2002-12-10 12:50:25 +00:00
moodler 9c645ce06c I was looking for bugs and reformatted as I went to make the layout
a little more consistent (with Moodle)
2002-12-10 12:08:57 +00:00
moodler 53a290ba03 Changed locale, because it was causing ADOdb to crash!! 2002-12-10 11:49:20 +00:00
moodler 673ada543a Fixed a typo - 'that' -> 'than' 2002-12-10 10:58:34 +00:00
moodler 2db0a31b69 Added locale 2002-12-10 09:59:22 +00:00
moodler 0fa6f59fbd New Turkish translation from M. Cuneyt Birkok, http://birkok.net ! 2002-12-10 09:57:59 +00:00
moodler 31861304ec Changed styles.css to styles.php ... 2002-12-10 09:50:18 +00:00
mits 913dbeb760 polished 2002-12-10 09:19:21 +00:00
mits adfd802f27 Polished 2002-12-10 08:14:56 +00:00
moodler 6ec3aaaf84 Mention all the languages 2002-12-10 07:54:10 +00:00
moodler f5f08e24c1 Fixed a typo rad -> read 2002-12-10 06:39:56 +00:00
moodler 454259a62f More links etc 2002-12-10 06:28:33 +00:00
moodler 8736d429d4 Documentation improvements for CVS and developing in general 2002-12-10 06:17:31 +00:00
compuproggy 0c8106d326 *** empty log message *** 2002-12-10 06:16:42 +00:00
moodler 8a6cafc806 Release of 1.0.7 2002-12-10 03:58:07 +00:00
moodler d34189e123 Added styles for forum posts 2002-12-10 02:48:05 +00:00
mits c6f0c3a455 polished 2002-12-09 21:06:27 +00:00
mits 8e664e00b9 Polished 2002-12-09 20:50:44 +00:00
moodler c6d09f2157 More information 2002-12-09 17:27:21 +00:00
moodler 4ba1e2d42a Increment 2002-12-09 17:08:56 +00:00
moodler bf1969570e Fixed blue a little 2002-12-09 16:21:02 +00:00
moodler 8120317e2e Changes for new styles and scheme 2002-12-09 16:10:57 +00:00
moodler e545445874 More fixes for course formats 2002-12-09 14:07:52 +00:00
moodler da00d31744 Latest Japanese files from Mits. This is now a COMPLETE TRANSLATION!
Well done, Mits.   That's LOTS of work.
2002-12-09 13:53:41 +00:00
moodler 2338465770 Tweak to etxt in box 2002-12-09 13:48:31 +00:00
moodler 920bb7ab2f Fix typo 2002-12-09 13:45:44 +00:00
moodler 1d43ffdeab Font size tweaks 2002-12-09 13:40:18 +00:00
moodler 7541bc3e87 More styles 2002-12-09 13:36:55 +00:00
moodler 21ba1d796b testing wrong thing 2002-12-09 12:12:42 +00:00
moodler 469e5eb18e More style and layout tweaking 2002-12-09 12:09:33 +00:00
moodler 4499b2e273 Slight alteration of colouring on printed posts 2002-12-09 10:49:44 +00:00
moodler 69d1973c07 New string readytosend 2002-12-09 10:48:59 +00:00
moodler 42fddf0237 Finish off topics display 2002-12-09 09:03:15 +00:00
moodler fb23e3cbb9 Slight changes 2002-12-09 08:53:49 +00:00
moodler 9307692fdf Add a javascript confirmation when submitting a quiz attempt 2002-12-09 08:20:19 +00:00
moodler 776dc2709f Allow print_all_courses to have width 2002-12-09 07:52:47 +00:00
moodler d9fd5e8b86 Allow course listing to have specified width 2002-12-09 07:51:31 +00:00
moodler 041b1712c6 Slightly adjust column width 2002-12-09 07:48:12 +00:00
moodler b27f9a32bc Slight changes 2002-12-09 07:45:45 +00:00
moodler 24a34da28c Updated version 2002-12-09 07:36:48 +00:00
moodler 5e367a2d56 Various little tweaks to improve the display of course home
pages and front page ... still have some work to do though
2002-12-09 07:35:40 +00:00
moodler 7a4c13797a Default with showrecent ON 2002-12-09 06:35:14 +00:00
moodler 64a92277da Fixed US spelling 2002-12-09 03:25:48 +00:00
moodler 1e6700a749 Restored "locale" string 2002-12-09 03:10:44 +00:00
moodler 651ba4e63c Latest changes in French, from Sebastien Nam?che 2002-12-09 03:00:54 +00:00
moodler 4be38f8bb2 CHanges from Antonio Navarro 2002-12-09 02:39:19 +00:00
moodler 2e4b204b26 Changes to make makeClassFromFile() in makeclass.php work better 2002-12-09 02:12:37 +00:00
moodler 1ed2b03af3 Fixed some names 2002-12-08 17:32:11 +00:00
moodler 339bb5599f New code to use locale information from language packs if necessary 2002-12-08 17:26:21 +00:00
moodler a8b7b66158 Use language string for "changes saved" 2002-12-08 17:21:10 +00:00
moodler 2893d91e46 Fixed name 2002-12-08 17:16:58 +00:00
moodler df0594edee Added locale codes to all languages 2002-12-08 17:01:13 +00:00
moodler 517f323637 US flavor of English to keep the yanks happy. ;-) 2002-12-08 16:49:49 +00:00
moodler 520283b4e4 Added Mitsuhiro's credit for Japanese 2002-12-08 11:28:32 +00:00
moodler 15a2a4e555 Updates for 1.0.7 and better-looking throughout 2002-12-08 03:45:03 +00:00
moodler 261be01672 More changes from Mits. 2002-12-07 16:19:58 +00:00
moodler 6ab29e19a4 Going back to simpler version numbers! 2002-12-07 08:53:07 +00:00
moodler 86400f05f5 Small changes to help display of Japanese and on Netscape 2002-12-07 08:44:21 +00:00
moodler 467aaec630 Small changes to tables to make them display better with Japanese 2002-12-07 08:39:24 +00:00
moodler a8a71844e4 If the database doesn't work then just die before anything else 2002-12-07 07:27:58 +00:00
moodler 657423c8f3 get rid of short_open_tags 2002-12-07 07:27:18 +00:00
moodler 95ea4a41ad Some info about forcetables 2002-12-07 07:19:28 +00:00
moodler 2348daf12c Updated the dox 2002-12-07 04:37:21 +00:00
moodler ec2e229a0f General purpose function to produce a class based on a library
of simple functions.  Can be used to provide a class interface
to Moodle functions.

Thanks to Greg Barnett!
2002-12-07 04:31:23 +00:00
moodler d72788c346 Added php mime type 2002-12-07 04:24:22 +00:00
moodler 81ef6a5ee5 Removed the "zero" value altogether 2002-12-07 04:20:35 +00:00
moodler ff4f23fdcc Better checking of existing value, in case it's not in the list 2002-12-07 04:00:05 +00:00
moodler 0fa2146388 More changes from Mits! 2002-12-06 12:22:59 +00:00
moodler 3e8ff7019f Fixed up CVS Id tag 2002-12-06 11:36:20 +00:00
moodler 2ccb36740b Wrapper file to make moodlelib.php functions accessible as a class
called moodlelib.  Based on idea from Greg Barnett:
http://moodle.com/mod/forum/discuss.php?d=356
2002-12-06 11:23:42 +00:00
moodler a7ce613296 First version of Japanese translation by Mitsuhiro Yoshida !
Still missing quiz.php, survey.php, auth.php and the help files

Helpers wanted!
2002-12-05 13:50:01 +00:00
moodler 035cdbff1a Improved removal of leading zeroes, but with some efficiency lost 2002-12-02 01:35:18 +00:00
moodler bea7a51e3c Slight change to get rid of leading zeroes in dates 2002-12-02 01:13:14 +00:00
moodler 8ea300947d These includes are actually required 2002-12-02 01:12:06 +00:00
moodler 666122b94b Upgraded ADOdb to 2.50 because it fixes some bugs with PHP 4.3.0 2002-11-30 13:23:39 +00:00
moodler 8da0e0e031 IMS/SCORM 2002-11-30 12:04:33 +00:00
moodler 3ad6393067 Revised 2002-11-30 12:00:47 +00:00
moodler 17820bd5bd New version of Italian translation - compatible with 1.0.6.3 2002-11-29 15:17:59 +00:00
moodler 39246b72f8 Some colour difference for my courses .... I'm not sure about it ... 2002-11-29 14:22:34 +00:00
moodler 85098089d1 Some improvements to the layout of courses when there are categories
and they are on the front page
2002-11-29 14:17:36 +00:00
moodler 3475d55ee7 Slight fix 2002-11-29 05:12:01 +00:00
moodler c1e735bb28 Added credit for Indonesian - Arfan Hidayat 2002-11-29 05:02:59 +00:00
moodler a08fe5809a Complete new Indonesian translation!
Thanks to Arfan Hidayat, http://www.kursusmaya.com, ivanh@telkom.net!
2002-11-29 04:58:27 +00:00
moodler b419cb6e28 Update version 2002-11-28 14:39:26 +00:00
moodler 3086f3f6cf With external authentication, the change password button on the user
page now does the same thing as the one on the login page.  It takes you
to the specified URL is it exists, and just doesn't appear if there is no URL
2002-11-28 12:31:46 +00:00
moodler 048ccc473a Highlight matches in post subject and discussion name too 2002-11-28 09:10:22 +00:00
moodler 88e729beed Add searching of subjects as well as messages 2002-11-28 09:04:04 +00:00
moodler d391e3b1ee First quick version of help on CVS 2002-11-28 03:05:24 +00:00
moodler 6cc0361107 Fixed heading 2002-11-28 02:53:25 +00:00
moodler c655755d92 Updates 2002-11-28 02:47:50 +00:00
moodler 64efda84b5 Fixes to increase the number of options available to limit assignment
upload size, and also to limit the list based on PHP limits
2002-11-28 02:41:56 +00:00
moodler f42cf95f3c Added missing </BODY> and </HTML> tags 2002-11-27 13:11:02 +00:00
carlesbellver 5c36a37c9f *** empty log message *** 2002-11-26 10:10:04 +00:00
moodler 0581a9f7c8 More info about database user 2002-11-26 03:19:15 +00:00
moodler b275ff65cb Additions and clean ups 2002-11-26 03:07:49 +00:00
moodler 71d552f677 Fix display of grades when there aren't any grades 2002-11-26 02:36:16 +00:00
moodler 83173d563c For the case when there are forums using ratings, but no ratings, and
the teacher is looking at grades, don't try and loop on an empty array
2002-11-26 02:29:54 +00:00
moodler fc05fccb64 Strip slashes from filenames 2002-11-26 02:11:05 +00:00
compuproggy 33651b3d3e *** empty log message *** 2002-11-25 06:45:08 +00:00
moodler 4d35cddd8a More fixes 2002-11-24 15:59:58 +00:00
moodler 2f0c25fc75 More tweaks 2002-11-24 15:44:59 +00:00
moodler 982d256d95 Yet more details 2002-11-24 15:40:07 +00:00
moodler 66fe2bb262 Updated versionm, ready for 1.0.6.4 2002-11-24 15:30:01 +00:00
moodler e746ec3416 More tweaks 2002-11-24 15:22:28 +00:00
moodler d40c314a0a More fixes 2002-11-24 15:20:29 +00:00
moodler 56b21759e5 More details 2002-11-24 15:16:49 +00:00
moodler 9ae472a374 New message about users being automatically unenrolled 2002-11-22 17:28:55 +00:00
moodler 7f1717c61e ALL LANGUAGE EDITORS PLEASE NOTICE THIS CHECKIN
I've changed htmlentities to htmlspecialchars in this file, to fix
bugs with editing multibyte languages (ie Japanese).  Please be
cautious and let me know if this causes any problems when editing
your language (it shouldn't, but I don't want to spoil your day!)
2002-11-22 17:27:56 +00:00
moodler 708964056e Update for kicks 2002-11-22 10:00:50 +00:00
moodler bcd6e7184f Hide password and unenrolment buttons from guest users 2002-11-22 09:59:31 +00:00
moodler 92710226a5 Tidy up some of the dox 2002-11-22 09:38:15 +00:00
moodler 466558e349 Changes to allow admin to control the "forgot password" function
and a bug fix for set_config
2002-11-22 08:43:35 +00:00
compuproggy caa963b03b Suche noch Lernwillige und Tutoren f?r http://www.selaction.de
Auch Mithelfer sind gerne gesehen wie ?bersetzer oder Moderatoren.
2002-11-22 07:39:08 +00:00
compuproggy 0cf3883167 Suche noch Lernwillige und Tutoren f?r http://www.selaction.de 2002-11-22 07:37:26 +00:00
paca70 ef62651f02 Fixed some typos 2002-11-21 18:40:33 +00:00
moodler b335cae1d3 Updated version 2002-11-21 16:59:41 +00:00
moodler cff8ba5a98 Moodle CVS is exactly 1 year old. :-) 2002-11-21 16:58:29 +00:00
moodler c351cf2799 For long courses reduce the text printed on x axis 2002-11-21 16:19:19 +00:00
moodler d751ddcb5d Reduce errorlevel reporting 2002-11-21 16:07:58 +00:00
moodler 372ce3d10c COnverted it to DOS format to make it easier for Windows users 2002-11-21 16:00:18 +00:00
moodler ad40c8a23c Updates 2002-11-21 15:30:53 +00:00
moodler 3b9a79f977 Fixes to allow graphs to be translated 2002-11-21 14:57:10 +00:00
moodler 89b5432563 Allow admin user to always get in, no matter what the authentication method 2002-11-21 12:39:33 +00:00
paca70 fd6a7ee524 New files for translation 2002-11-21 12:17:15 +00:00
moodler 6ae24de0e1 No longer need the getuserinfo parameter 2002-11-21 11:28:46 +00:00
moodler 7c58aee6c7 Added full configuration to LDAP (ie transferrable fields etc) 2002-11-21 11:27:44 +00:00
moodler 7ff671df29 Bug fix for dbtype menu 2002-11-21 11:12:55 +00:00
moodler b3f9585bcb Daily changes 2002-11-21 10:33:24 +00:00
moodler 02accd9c6a Fixed a bug from reusing newsubmission variable 2002-11-21 10:26:54 +00:00
moodler f10ed36d8d Error checking on image writes 2002-11-21 10:23:10 +00:00
moodler b913b369e8 Small bugfix with uploading new user images 2002-11-21 10:17:08 +00:00
paca70 f74dcc5e08 some updates 2002-11-21 08:26:27 +00:00
moodler 009b59336b Updated version (authentication tweaks) 2002-11-21 07:53:35 +00:00
moodler 34daec9b3b Tweaks to authentication system. Database method now allows other
fields to be specified so that things like email, names etc can be
pulled in from external database when new Moodle accounts are created
2002-11-21 07:37:21 +00:00
moodler 780db23080 Slight improvements to file security (scan for more bad characters) 2002-11-21 02:51:50 +00:00
moodler 6e07f68039 Fixed background colours of recent activity and news 2002-11-20 15:24:34 +00:00
moodler 1e77d2035c Update version slightly 2002-11-20 15:17:03 +00:00
moodler d26c7f1740 Forgot a comma 2002-11-20 15:16:03 +00:00
moodler bb90c4e867 Added guestloginbutton as default 2002-11-20 15:04:21 +00:00
moodler 277d2d9f3e Make sure guestloginbutton is set to 1 as a default 2002-11-20 15:03:06 +00:00
moodler 3790f3a151 New string for general form errors 2002-11-20 15:01:59 +00:00
moodler 15e4b2ecd9 User pictures no longer are links on main view page 2002-11-20 14:58:24 +00:00
moodler a406cdec66 Made the user profile a little more robust.
Uploaded images are now saved even if the rest of the form
has errors.

If errors are found in the form then a message is printed up
the top to make it clearer that they need to fix something.
2002-11-20 14:52:32 +00:00
moodler bd4707bf29 Er.. aligned center works better ;-) 2002-11-20 09:41:02 +00:00
moodler 68e1b65291 Fixed alignment on category boxes in some circumstances 2002-11-20 07:18:55 +00:00
moodler b66265fe0b Spacing 2002-11-19 16:16:37 +00:00
moodler bdbf373097 New version before release 2002-11-19 16:15:51 +00:00
moodler 8afe23aa9a New features and fixes 2002-11-19 16:14:47 +00:00
moodler 4ef1e78349 New files (not translated yet) 2002-11-19 15:54:12 +00:00
moodler 3c1cb3178b Checking in new updates from Fabricio 2002-11-19 15:52:25 +00:00
moodler b03b72770b Daily changes 2002-11-19 15:07:40 +00:00
moodler 076b229292 Changed it to DOS format to help Windows users 2002-11-19 14:35:07 +00:00
moodler 62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00
moodler 60459ef768 Added Authentication to admin_links 2002-11-19 09:55:54 +00:00
moodler 8297c9a012 More fixes 2002-11-19 09:09:11 +00:00
moodler 2827f134cf Fixed some strings 2002-11-19 09:06:42 +00:00
moodler 35a48c9ae4 A significant new system for authentication configuration that
exposes the wide array of authentication possibilities.

Authentication now has it's own page separate from other variables.

Most of this work was done by Petri Asikainen <paca@sci.fi>, who started
these changes off.

I've done some cleanups and additions which is why I'm checking it in.

It's all working pretty well at the moment but could use some testing.

Thanks, Petri!  :-)
2002-11-19 08:51:33 +00:00
moodler dfe952f2ea Small change to allow the same user (by email) be deleted more than
once.  Also some security in making deleted usernames very hard to guess.
2002-11-18 12:21:27 +00:00
compuproggy e1e499e02c An alle English-Deutsch ?bersetzer, wer hilf mit? -
To all english german translators, who wants to help me?
2002-11-18 07:00:24 +00:00
compuproggy 9127aca8cd *** empty log message *** 2002-11-18 06:57:57 +00:00
moodler 2b8d022c20 Fixed the O's 2002-11-18 01:57:32 +00:00
moodler e3234db924 Added Norwegian 2002-11-18 01:56:09 +00:00
moodler dbd019866f Removed an empty file 2002-11-18 01:42:26 +00:00
moodler c49de76319 Complete Norwegian translation by Joran Sorbo! joran.sorbo@teleweb.no 2002-11-18 01:41:20 +00:00
moodler e1fb2ab5e8 New imap type (imaptls) solved problems with TLS capable servers (eg Courier) 2002-11-17 15:11:35 +00:00
moodler da978ae4c7 Minor formatting 2002-11-17 11:03:59 +00:00
moodler b9b2750adb Added info about $CFG->buggy_referer 2002-11-17 11:00:55 +00:00
moodler 303077fdb5 Updated version for those using CVS etc 2002-11-17 10:46:02 +00:00
moodler 60f18531c8 A default format for format_text() and a workaround embedded
for sites with the buggy referer problem :

  define $CFG->buggy_referer = true in the config.php to activate it
2002-11-17 10:45:34 +00:00
moodler 123d2ebbc5 Now displays instructions for any authentication method 2002-11-17 10:07:01 +00:00
moodler 817c698e8f Slight updates 2002-11-17 09:57:34 +00:00
moodler 704da28e4d Remove { error, and move things around 2002-11-17 02:51:36 +00:00
moodler 23cbf014c0 When someone logs out, cler all sessions and send them to home page 2002-11-16 14:24:49 +00:00
moodler bf09e379a4 Some docs added 2002-11-16 04:26:54 +00:00
moodler 98bc913c2c Slight fixes with defaults etc 2002-11-16 03:56:00 +00:00
moodler df3988ea8b Separated code for IMAP into IMAP, POP3 and NNTP 2002-11-16 03:49:32 +00:00
moodler 3829c7bdd0 Added es_mx from Claudio ... :-) 2002-11-15 16:59:15 +00:00
moodler bb56980c83 Small tidy up of names 2002-11-15 12:49:21 +00:00
moodler d5b94ef46c Nothing missing, just needs testing and debugging 2002-11-15 09:13:31 +00:00
moodler d17bdf2b37 More options and faster (use IPs always) 2002-11-15 08:59:30 +00:00
moodler d1b4e17267 More authentication possibilities 2002-11-15 08:42:40 +00:00
moodler dce48fc85a First version of code to authenticate against external database.
This NOT TESTED yet, and has parameters hardcoded ... it will of
course be using Petri's config interface later when that's ready.
2002-11-15 08:25:24 +00:00
carlesbellver b2649432db *** empty log message *** 2002-11-15 07:21:56 +00:00
moodler 085bd98e7e Add option that allows students to resubmit after being graded 2002-11-15 03:32:30 +00:00
moodler 0431bd7c73 Extend the range of allowable timezones up to 13 hours ... (NZ Daylight savings) 2002-11-15 02:46:48 +00:00
moodler cc94d11b83 Some updates 2002-11-14 13:33:19 +00:00
moodler d483bcd35d Typo in variable 2002-11-14 11:48:01 +00:00
moodler 98c4eae3ac Set the character set of email to be the same as the default language 2002-11-14 11:45:14 +00:00
carlesbellver db5b2eaa17 *** empty log message *** 2002-11-14 07:59:31 +00:00
moodler 661890114b Re-rolling 1.0.6.3 2002-11-14 06:34:15 +00:00
moodler a15803d3d8 Argh ... fix for Netscape fix - was causing problems on other browsers 2002-11-14 06:22:13 +00:00
compuproggy 2f2e3a49a3 *** empty log message *** 2002-11-14 06:01:26 +00:00
moodler 82af8447ed Updated link for Antonio 2002-11-14 04:14:32 +00:00
moodler 5f29b7e9c5 Mention the fix for very large classes 2002-11-14 03:59:44 +00:00
moodler f8ef7d66a2 Getting ready for 1.0.6.3 release today 2002-11-14 03:14:10 +00:00
moodler cfc12f2d97 Changes from Antonio to bring it up to date with 1.0.6.2! 2002-11-14 02:43:01 +00:00
moodler a6fcdf98af Update course cache when creating new standard forums! 2002-11-14 02:33:48 +00:00
moodler 7e72f66016 Catalan translation by Carles Bellver (with the help of Merc? Renau,
Clara Andr?s and Jordi Adell).
2002-11-13 15:23:29 +00:00
moodler 21d7e306b1 Spanish (Spain) provided by Antonio Navarro (based on es_mx) 2002-11-13 13:49:30 +00:00
moodler 4a16445a3a Returning to previous version 2002-11-13 13:30:45 +00:00
moodler 34e46e5787 Small script to force tables to be created even if the database already
contains tables ... useful for sharing with other applications.
2002-11-13 12:09:18 +00:00
moodler fcf8e83671 WHoops bad typo ... made everyone a guest! 2002-11-13 06:26:36 +00:00
moodler 910d1731af Guest language ALWAYS the same as the current site language 2002-11-13 02:11:50 +00:00
moodler 9769da67ab Improvements in appearance for Netscape browsers 2002-11-12 17:20:36 +00:00
moodler 81b635c360 Improvements to formatting on old Netscape browsers 2002-11-12 17:20:04 +00:00
paca70 e0dfdf25f8 More updates 2002-11-12 14:19:24 +00:00
compuproggy 342f96b5a3 *** empty log message *** 2002-11-12 13:28:22 +00:00
compuproggy 54262b876f *** empty log message *** 2002-11-12 13:21:25 +00:00
paca70 05da6502ba added support for list users from ldap. 2002-11-12 12:10:08 +00:00
paca70 0aea12d689 Some updates 2002-11-12 06:00:09 +00:00
moodler ff446576af Small fix just in case numfiles isn't set ... it will still try to display
files if timemodified is set ... workaround for possible bug
2002-11-12 05:05:21 +00:00
moodler c75f5b4348 Small tweak to specify specifically number of files in an update 2002-11-12 04:59:28 +00:00
moodler b68de3e4d9 Updated version number 2002-11-12 04:29:49 +00:00
moodler 13beeacbcd New course option to enable/disable display of "recent activity" 2002-11-12 04:26:16 +00:00
moodler cbb0fee071 For very large classes don't even try to show all the participants 2002-11-12 03:02:51 +00:00
moodler 553064412d Better looking headings with right-to-left languages 2002-11-12 02:19:44 +00:00
compuproggy 469a4e8568 *** empty log message *** 2002-11-11 12:27:58 +00:00
moodler 3b5bf411db Updates 2002-11-11 08:35:09 +00:00
moodler 48e4f8bc3a Missing file 2002-11-11 08:32:31 +00:00
moodler 0aa65a3935 Slight update to release notes for clarity 2002-11-11 08:28:39 +00:00
moodler 3635d82ff3 Updated version for final release of 1.0.6.2 2002-11-11 08:25:41 +00:00
moodler 7304b852cd Slightly more info in error message 2002-11-11 08:25:05 +00:00
moodler 07358d40a4 30 per page 2002-11-11 08:03:54 +00:00
moodler ad81212ec3 Rearranged code so some output is printed before tackling the big table 2002-11-11 07:58:11 +00:00
compuproggy 8f1370c603 *** empty log message *** 2002-11-10 21:48:28 +00:00
moodler 7c0f298426 Update course cache when modules are moved up or down 2002-11-10 14:45:11 +00:00
moodler 76d6be7020 Put a menu on the documentation 2002-11-10 14:05:52 +00:00
moodler e34461f5ea Use #defines for resource types ... just esthetics 2002-11-10 14:03:25 +00:00
moodler cdc27f74a3 Added navmenu for journal edit page 2002-11-10 11:44:58 +00:00
moodler f7e4436690 Fixed front page display of modules 2002-11-10 11:14:06 +00:00
moodler 26d037e63a New info, ready for 1.0.6.2 release 2002-11-10 11:10:19 +00:00
moodler 2ee50b1a5d Added paging now, so this page is now usable with many users 2002-11-10 11:00:57 +00:00
moodler 723974203f New string 2002-11-10 10:40:02 +00:00
moodler 584f0a10ed Starting to speed up this page 2002-11-10 10:19:06 +00:00
moodler 7bee16d404 More sensible varible names 2002-11-10 08:55:39 +00:00
moodler c408b0c49b print_section now uses cached course modinfo to lessen load in database 2002-11-10 08:55:11 +00:00
moodler dfc9ba9bbe Added navmenu in more places 2002-11-10 08:43:44 +00:00
moodler 3e50a13968 Fix to break out of frames 2002-11-10 08:08:23 +00:00
moodler 4359e8f715 Typo in navmenu 2002-11-10 07:59:01 +00:00
moodler f0207959ab Bring back button to home page, update versions etc 2002-11-10 07:57:11 +00:00
moodler b1ae5fb0a8 Added menu stuff to other themes 2002-11-10 07:44:01 +00:00
moodler d897cae419 Changes to enable jumping between activity modules, using a new menu in
the upper-right corner.   Caution: Not well tested at this stage.
2002-11-10 07:37:15 +00:00
moodler 14272cdc38 Latest from Gilberto 2002-11-09 08:35:06 +00:00
moodler 4fdb415494 New version date 2002-11-09 06:52:30 +00:00
moodler f39d5f4576 Use course setting for "student" 2002-11-09 06:29:21 +00:00
moodler b309c289db WHoops typo 2002-11-09 06:24:21 +00:00
moodler f762c448ef FINALLY! Surveys are now translatable! :-) 2002-11-09 06:22:57 +00:00
moodler 8dfc9d0f19 Using LOCALE defines, not strings 2002-11-08 01:33:04 +00:00
moodler cdb56e3dc5 Modified files from Fabricio 2002-11-07 12:05:17 +00:00
moodler f426a62eff Header "login" link now breaks out of possible frame 2002-11-07 11:18:18 +00:00
moodler 8552044d4d Update for course format changes etc 2002-11-07 09:34:51 +00:00
moodler 9a22359743 Fixes to course display, tidy up of some code (could do with more)
and mainly - addition of section 0 display.
2002-11-07 09:30:41 +00:00
compuproggy 8f577101f4 *** empty log message *** 2002-11-07 08:53:53 +00:00
moodler 9fc3aa87b4 Tweaks 2002-11-07 03:01:53 +00:00
moodler 6f3ba7c93d Make a $homepage flag for use in footers 2002-11-06 15:46:12 +00:00
moodler 405ea757e6 Fixed some more missing strings 2002-11-06 09:13:19 +00:00
moodler 941dd21efb Fixes and simplification 2002-11-06 08:54:28 +00:00
moodler 4242a73f37 Bug fix on record counting 2002-11-06 08:44:44 +00:00
moodler aa96df8fef New version and release notes for 1.0.6.1 2002-11-06 08:30:33 +00:00
moodler f9f48383e3 New string 2002-11-06 08:24:54 +00:00
moodler 22710216f2 Add link to module editing ... back to module type list 2002-11-06 08:24:29 +00:00
moodler b7b4287462 Added new type of assignment - offline.
This type of assignment doesn't require anything of the student online,
it just tells them about an assignment and the teacher can provide
feedback and grades.  Useful for offline activities, and also for the
teacher to add manual columns to the grades page
2002-11-06 08:12:06 +00:00
moodler 65ccdd8cc8 When using loginas to be a student, you can now return to being
yourself using a link in the footer.  Improvements to footer display
2002-11-06 07:54:44 +00:00
moodler 7cbfca14c7 Added string for search results 2002-11-06 07:40:56 +00:00
moodler 46217d06b5 Language fixes 2002-11-06 07:40:36 +00:00
moodler 5ebe27e22c Fixed notices a bit 2002-11-05 16:47:30 +00:00
moodler cb909d74ca Fixes to prevent teachers using loginas to enter other courses as that student 2002-11-05 16:38:02 +00:00
moodler 34fdf5b933 Minor wording changes 2002-11-05 07:06:36 +00:00
moodler 3ea810dab0 Added Spanish 2002-11-05 07:04:44 +00:00
compuproggy 4249e34fbf *** empty log message *** 2002-11-05 06:34:57 +00:00
moodler 9f58537a53 Added SMTP authentication for email delivery 2002-11-05 06:06:18 +00:00
moodler 54e90f2d97 Checking in for Holger 2002-11-03 14:35:37 +00:00
moodler 9368247eb6 Simple help about assignment types 2002-11-03 09:34:17 +00:00
moodler 5331c4645b Changes from Fabricio Valadares 2002-11-02 17:34:35 +00:00
moodler 55dace4186 Updates from Claudio 2002-11-01 02:53:50 +00:00
moodler ad6c33dcaa New guest language is same as site 2002-11-01 01:11:46 +00:00
compuproggy 6f4db0e365 *** empty log message *** 2002-10-31 05:52:11 +00:00
paca70 32385d38a1 Initial Finnish translation 2002-10-30 19:20:48 +00:00
moodler b176f8e4cb Updated name of thislanguage 2002-10-30 02:40:46 +00:00
moodler 8b303d1d15 Updated version a little 2002-10-30 02:19:23 +00:00
moodler effdbf913f A very early Arabic translation 2002-10-30 02:09:19 +00:00
moodler b7808b3d97 Spanish translation (Mexican flavour) from Gilberto Rodr?guez et al 2002-10-30 02:00:40 +00:00
moodler ebaf37b55d Checking in CHanges to be part of a 1.0.6 rebuild to include the last
few days of minor changes (documentation etc)
2002-10-29 16:47:16 +00:00
moodler 7209909ec9 On second thoughts, don't apply locale to numbers because it may
affect some calculations.   Just strings and times.
2002-10-29 15:33:09 +00:00
moodler fa0c7d6d91 Use the locale to set everything (eg string conversions, comparisons,
money numbers etc instead of just the time)
2002-10-29 15:25:22 +00:00
moodler 024172be96 Fixed links back to top 2002-10-29 15:02:09 +00:00
moodler 27c82ede5e added documentation 2002-10-29 14:57:12 +00:00
moodler e149249bd2 Improvements to documentation formatting, content etc 2002-10-29 14:48:58 +00:00
moodler 533e975551 Added session.auto_start (off) ... having it turned on will break Moodle
on some versions of PHP
2002-10-29 12:30:31 +00:00
compuproggy 95152d474a *** empty log message *** 2002-10-29 06:24:12 +00:00
moodler 53f2259aa9 Added short_open_tag 2002-10-29 04:04:08 +00:00
moodler a5d34d51cb Removed UPGRADING.txt (replaced by doc/upgrade.html) and updated README.txt
to make it a bit clearer about where all the docs are.
2002-10-29 03:52:10 +00:00
moodler d6cd6ec4f6 New upgrading page (replaces the old UPGRADING.txt) 2002-10-29 03:47:43 +00:00
compuproggy 3129b66906 *** empty log message *** 2002-10-28 13:24:25 +00:00
compuproggy cb87603810 *** empty log message *** 2002-10-28 12:12:16 +00:00
moodler 41f2f344ab Show date in red if assignment date has passed 2002-10-28 02:25:18 +00:00
moodler f59d8272e8 Use translated strings for all upload feedback 2002-10-28 02:24:38 +00:00
moodler 660c20a6ba Added some new strings 2002-10-28 02:24:01 +00:00
moodler 52ab14dd82 Fixed "uploaded assignment" (uploadsuccess) string 2002-10-28 01:30:00 +00:00
compuproggy 519c5a76cd *** empty log message *** 2002-10-27 15:04:30 +00:00
moodler 627de17eda Typo (Survey mentioned twice) 2002-10-27 03:10:10 +00:00
moodler 4a3e5f7e25 Missing a bracket ) 2002-10-26 14:36:01 +00:00
moodler 97f3bedc10 I mean it!! This is 1.0.6!!!! 2002-10-26 06:16:33 +00:00
moodler 3a50203f34 Fixed small bug that was displaying fractions with too many decimal places
(eg 0.9999 instead of just 1)
2002-10-26 06:11:43 +00:00
moodler e386617506 OK, this is 1.0.6 2002-10-26 05:50:09 +00:00
moodler 06a609e91e One more thing - I' moved the RELEASE.html into the other documentation
to make it easier to find later on.
2002-10-26 05:37:31 +00:00
moodler 736458f308 Moving ../RELEASE.html to here 2002-10-26 05:32:26 +00:00
moodler 5946a43ee9 TIME TO CUT THE CORD, GENTLEMEN. THIS IS 1.0.6. 2002-10-26 05:26:06 +00:00
moodler cb62c00ad2 Fixed minor bug after creating default category. 2002-10-26 05:17:53 +00:00
moodler 960a79887b Updated version numbers in preparation for 1.0.6 release 2002-10-26 04:37:56 +00:00
moodler 67f0b4ccb0 Better formatting for the link 2002-10-26 03:37:06 +00:00
moodler a8afb411a0 OK, this should be better ... 2002-10-26 03:33:07 +00:00
moodler c585fa1707 A first try at a new shortening algorithm ... checking in to do some
tests on various servers
2002-10-26 03:21:41 +00:00
moodler 211ee674b3 Changed type of quiz_answers.feedback to TEXT (255 chars was a bit cramped) 2002-10-26 03:13:54 +00:00
moodler 0ee8d9203e Added some commented-out code that MIGHT help people with string slash problems. 2002-10-26 02:31:49 +00:00
moodler 2138dcf29d Added quiz max grade in column title, for reference 2002-10-25 15:34:05 +00:00
moodler 153cc356cb Added TARGET=_blank to links in HTML email ... apparently these links
were causing problems in Hotmail.  Normally I'd say "Good!", but ...  :-)
2002-10-25 15:27:12 +00:00
moodler 86c5e69a36 Remove "news" and "social" forums from learning forums. 2002-10-25 14:46:42 +00:00
moodler 690b1941fc About time 2002-10-25 09:14:16 +00:00
moodler e6874d9ff6 Brand-new news and social forums are now also assigned course modules and
put in section 0 of the course.
2002-10-25 09:10:40 +00:00
moodler 95e143f4cc Ugh type in string module name 2002-10-25 08:54:29 +00:00
moodler 7beb45d8a0 Upgrading all news and social forums (except those in social courses)
so that they are course modules in an (invisible) section, which means
they are now editable and parameters, names etc can be changed.
2002-10-25 08:47:53 +00:00
moodler bd823371c9 Making it clear not to overwrite old files 2002-10-25 08:42:06 +00:00
moodler e11c24bc0e Added translation for Attempt quiz now 2002-10-25 08:15:03 +00:00
moodler 256d0b7b47 Slight change to configlocale ... added examples 2002-10-25 08:01:48 +00:00
moodler 6c506ca744 Disallow people posting in forums where they arent allowed to post! 8-. 2002-10-25 07:22:59 +00:00
moodler 87a2fa0338 Tweaks 2002-10-25 07:17:23 +00:00
moodler f690562f81 Tweaks to mail formats so that unnecessary information (replies, etc)
is not printed.
2002-10-25 06:50:40 +00:00
moodler 3260de6780 Tweaks to forum formatting 2002-10-25 05:58:39 +00:00
compuproggy 4a91f52161 *** empty log message *** 2002-10-25 05:46:33 +00:00
moodler 1ea355a851 Latest updates from Fabricio 2002-10-25 03:20:59 +00:00
moodler ed4ed0939b Weekdays are now calculated using userdate, so that
- they are relative to the user
  - they should take advantage of locales etc
2002-10-25 02:11:58 +00:00
moodler 2be8b28f3d Changes to improve usability when the admin folder has been renamed,
and also a change in checking for the admin user, just in case an
old session is hanging around
2002-10-25 02:02:02 +00:00
moodler 255f2cc06e All the variables were missing! 2002-10-24 13:41:52 +00:00
moodler 4313922f65 Fix for category box display on IE 2002-10-24 12:49:53 +00:00
moodler e7b7951c0a The BR in print_post was to fix the case when embedded images are used.
However it added too much space.  I'll find a way to fix the embedded
images problem later, during the styles changeover, as it's pretty
rare.
2002-10-24 07:09:29 +00:00
moodler 23877f9407 never upgraded choice tables to six choices! 2002-10-24 03:43:37 +00:00
moodler 6673b085a9 Updated with some new features 2002-10-24 03:11:57 +00:00
moodler 3d27c2c201 Added a new debugging command so that I can see the config variables 2002-10-24 02:42:26 +00:00
moodler f6b502d246 more readable 2002-10-23 14:38:24 +00:00
moodler eb8eb6abc5 Rearranged to alphabetical order 2002-10-23 14:33:23 +00:00
moodler cef08a3a99 Forgot to mention the new LDAP functions! My deep apologies, Petri,
1.0.5 was too long ago - I forgot your plug-in was developed since then!
2002-10-23 14:30:38 +00:00
moodler e870c78bfc WHoops ... just undoing the last checkin which was premature ... 2002-10-23 12:13:47 +00:00
moodler 72c578ca4d Mail now contains Moodle version 2002-10-23 12:12:01 +00:00
moodler cc3b8c75de After saving new question, sanity checks are made to make sure the
fractional grades are correct.

Icons now have tooltips and are also a shortcut to editing page.
2002-10-23 12:10:38 +00:00
compuproggy cbb8979fa9 *** empty log message *** 2002-10-23 07:27:02 +00:00
moodler e7311a0a56 Changed name of upgrade_moodle function to main_upgrade (for consistency) 2002-10-23 04:10:10 +00:00
moodler 3bd87406ba Latest version of Italian from Davide Suraci. 2002-10-23 02:00:16 +00:00
moodler e4814d7f63 cvs update -dP
not

cvs update -d
2002-10-22 13:17:04 +00:00
compuproggy 6fad164f96 *** empty log message *** 2002-10-22 12:36:02 +00:00
moodler f6f0e53de0 Updated information for 1.0.6 Beta 1 2002-10-22 11:21:54 +00:00
moodler ffc5a2c03a More concise feedback on grading, and more efficiency (only update
attempt grades that have changed)
2002-10-22 10:56:48 +00:00
moodler cd63d77e08 Added help pages to quiz module.
A few little cleanups, such as trim() on shortanswers
2002-10-22 10:38:00 +00:00
moodler 377f3c9ee4 new function print_heading_with_help() to print a heading with a helpbutton 2002-10-22 09:54:36 +00:00
moodler f31edeeb88 Display tweaks to table of attempts 2002-10-22 07:03:36 +00:00
moodler e331eb06fd Teacher can now regrade (recalculate grades) of all quiz attempts
(in case the quiz changed somehow)
2002-10-22 06:52:23 +00:00
compuproggy 5ecb135644 *** empty log message *** 2002-10-22 05:37:42 +00:00
moodler 6d86b5dc16 Teacher can now view student attempts 2002-10-22 04:25:58 +00:00
moodler ff99ff634e German should be Deutsche 2002-10-22 02:48:05 +00:00
moodler ede685a73e Fixed name/date variables (don't translate variables!) 2002-10-22 02:34:41 +00:00
moodler 66197f51cc Removed unnecessary mentions of sel@ction 2002-10-22 02:30:36 +00:00
moodler e1c91df09b Can now delete questions. It checks that the question doesn't belong to
any quizzes first (if it's in a published category then it checks all quizzes
on the server).
2002-10-21 15:00:51 +00:00
moodler 34a4dfee10 Added log_display entries for quiz 2002-10-21 14:57:34 +00:00
moodler 2383cadbab Display tweaks 2002-10-21 13:13:33 +00:00
moodler 38f03e5a5c Round $bestgrade when storing it to avoid insert_record problems 2002-10-21 13:02:14 +00:00
moodler 20a3006529 Print intro as HTML 2002-10-21 12:49:28 +00:00
moodler 466a69bc42 Bugfix on calculating correct answers for multichoice questions 2002-10-21 12:48:13 +00:00
moodler e909c8d090 Some error checking 2002-10-21 12:39:46 +00:00
moodler 305ce2b33c Convert intro text to HTML 2002-10-21 11:41:36 +00:00
moodler 840aaba179 Added some more allowed HTML tags 2002-10-21 09:16:06 +00:00
moodler 2a3cda192e Allow teachers to look at ratings for anyone 2002-10-21 08:44:56 +00:00
moodler f166d2e295 Fixed up rating retrieval ... now gets them all seperate 2002-10-21 08:36:15 +00:00
moodler 36df40d60e Fix in forum_grades 2002-10-21 08:32:37 +00:00
moodler 4db9d14dad Don't show column grade when there's nothing to show 2002-10-21 08:19:15 +00:00
moodler caadf00909 Rearranged functions to match other modules, and added forum_grades() 2002-10-21 08:10:24 +00:00
compuproggy fa452aa6f0 *** empty log message *** 2002-10-21 08:06:42 +00:00
compuproggy 15657235ef *** empty log message *** 2002-10-21 08:02:03 +00:00
compuproggy 2ad604fe3c *** empty log message *** 2002-10-21 07:58:18 +00:00
compuproggy 8e44daa729 *** empty log message *** 2002-10-21 07:45:48 +00:00
moodler 912c058651 Grades are not always numbers, so take care in XLS writing 2002-10-21 06:55:01 +00:00
moodler be025399d8 Table header aligns to top 2002-10-21 06:51:56 +00:00
moodler 629e937352 Added journal_grades() so journals show up in the Grades page 2002-10-21 06:42:58 +00:00
moodler 09a4ce320c Changes to toolbar to position color pickers better, and
reintroduce the "select all" button.  Unfortnately, I had
to remove the "About richtext" button to make room
2002-10-21 05:42:37 +00:00
moodler 4168490e17 Added paragraphs to allowed HTML tags 2002-10-21 04:12:54 +00:00
moodler 7bcb78cee3 Modified language so that it speaks to students as well as teachers 2002-10-21 03:23:45 +00:00
moodler 51cc244d12 Added quizzes 2002-10-21 03:04:05 +00:00
moodler e5dfd0f31f Improvements to help, and addition of new "Activity modules" help
for teachers adding new modules.
2002-10-21 03:00:40 +00:00
moodler 2ee53d15ff Some more clues for new admins ... 2002-10-20 18:06:04 +00:00
compuproggy f38aa1ef23 *** empty log message *** 2002-10-20 18:02:40 +00:00
moodler f1edd1922f Updated versions 2002-10-20 17:50:20 +00:00
moodler 3bf89042f5 Whoops, forgot to check in these new icons 2002-10-20 17:42:28 +00:00
moodler b55a466b60 Fixes for display of public categories 2002-10-20 17:41:24 +00:00
moodler c74a0ca5c2 Category editing in quizzes is now supported. Some other little
cleanups along the way ...
2002-10-20 17:15:39 +00:00
moodler f9a9499a62 Guests can no longer see or attempt quizzes 2002-10-20 10:13:04 +00:00
moodler 60f49825a5 New and fixed strings 2002-10-20 10:12:36 +00:00
moodler 16c0beb00b Strip slashes from print_simple_box (just in case) 2002-10-20 10:12:12 +00:00
moodler 4b9b2f0fe4 Fixed display of "done" assignments 2002-10-20 05:35:48 +00:00
moodler 8db3eaddb2 Now shows correct answers, plus some small bug fixes 2002-10-20 05:35:25 +00:00
moodler c1d5710174 Cleaned up format a little, plus added better error checking of server
variables so that at least people will get feedback if they are missing
2002-10-19 04:58:14 +00:00
compuproggy 9b21d119c0 *** empty log message *** 2002-10-18 19:19:35 +00:00
compuproggy 7b1593f040 *** empty log message *** 2002-10-18 17:20:10 +00:00
moodler 7e67441553 Added stuff about the text editing 2002-10-18 17:17:32 +00:00
moodler 0be05df068 Find URLs at the beginning of lines ... 2002-10-18 17:05:17 +00:00
moodler 958aafe2b4 Quiz attempts are now timed. This is done by starting the quiz_attempts
record upon showing the quiz, and completing it upon submit.

Two new fields in quiz_attempts... should be upgrade friendly.
(Old attempts will show up as being of duration zero)


Also some small fixes here and there.
2002-10-18 16:05:21 +00:00
moodler 9f7fd360dd Some tidy ups 2002-10-18 16:02:12 +00:00
moodler aef47af493 Added RTE etc 2002-10-18 16:01:35 +00:00
moodler 291febf79c Improved the documentation (it has some live feedback on the state
of the Richtext functionality)
2002-10-18 11:27:14 +00:00
moodler 18a322490d Cleanup 2002-10-18 09:40:35 +00:00
moodler cf094bd4b4 Better help with text formats 2002-10-18 09:38:58 +00:00
moodler 02a72a36f1 Improved the help page 2002-10-18 09:35:20 +00:00
moodler 2166bb5d7a Language changes and help documentation additions to clearer explain richtext, html and moodle auto-format 2002-10-18 09:29:44 +00:00
moodler d2e186ed71 Revised string for formattext to make more sense 2002-10-18 09:09:54 +00:00
moodler 3fe3851d57 OK, I've rationalised the text formatting now. Basically, both Moodle and
HTML text allow the same range of HTML tags (so it doesn't matter is you
switch from one to the other).

<IMG> and <A> are now ALLOWED in Moodle text.  However, the clean_text
function now checks for and removes any embedded javascript triggers
to avoid cross-site scripting attacks that way.

clean_text() should be called on ANY text that comes in from students.
2002-10-18 09:09:19 +00:00
moodler a0bac19d81 Whoops ... typo. 2002-10-18 09:00:09 +00:00
moodler 57243ffe02 Also set default language on new user created by external authentication 2002-10-18 08:52:33 +00:00
moodler 177e50ed98 New users created by admin also now default to site language 2002-10-18 08:48:44 +00:00
moodler 369622db97 Default language for users is now the same as the site language. 2002-10-18 08:46:12 +00:00
moodler 08beb3327b Allow <IMG> tags in Moodle format text. Not having it can really mess
up smileys etc if the text has been edited at any stage using the
richtext editor.

I realise it's possible for students to really mess up forums display
etc if they wanted to include a huge picture ... I'm not sure if there
are any cross-site scripting attacks possible with images in there.

But there is also now the HTML format for most things, which is editable
using an ordinary form, so this problem is currently already exposed.

I think it's OK as long as can find a filter to strip all javascript
out of ANY format text in Moodle.
2002-10-18 06:05:56 +00:00
moodler e757af1662 Fixed the setting of answers for true-false questions 2002-10-18 05:41:24 +00:00
moodler f9ef3d77d1 Just some better formatting and info 2002-10-18 00:18:26 +00:00
moodler 11a3c89a8f Made transparent 2002-10-17 23:49:02 +00:00
moodler b0e999e646 Changes related to new module 'resource' 2002-10-17 15:32:52 +00:00
moodler 92674bf8bb Changes due to new module 'resource' 2002-10-17 15:14:54 +00:00
moodler 3a5a667386 Changes due to new resource module 2002-10-17 15:10:59 +00:00
moodler 242ee0175f Resulting from module name change 2002-10-17 15:07:22 +00:00
moodler 6c3e8758c6 Changed reading.php to resource.php 2002-10-17 15:03:20 +00:00
moodler 3d58a8b50b Moved from reading module 2002-10-17 14:32:55 +00:00
moodler 4282d7dde2 Changed string neverread to neverseen 2002-10-17 14:28:12 +00:00
moodler 2a439ba7f6 ***NOTE NOTE NOTE **********************************************************
THIS IS A BIG CHANGE!

I've renamed the "reading" module to "resource".

This meant changing quite a few references throughout Moodle.

The automatic upgrade process should work OK (it worked OK on my
development server) and there shouldn't be any problems.

BUT PLEASE PROCEED WITH CAUTION AND KEEP BACKUPS OF EVERYTHING
UNTIL I HAVE A FEW MORE TESTS!   If you upgrade please let me know.

One thing that will break are any hard-coded links within forum messages.

What I will be doing to fix this on my apache server is to add this to
httpd.conf:

Redirect /mod/reading/ http://moodle.com/mod/resource/

Sorry about any inconvenience, but it's better this is done sooner than later.
2002-10-17 14:03:59 +00:00
moodler e1ac42728d Added a 'change password' button 2002-10-17 12:25:25 +00:00
moodler 269eed6448 Changed headers so that it works seamlessly when called from user page. 2002-10-17 12:21:55 +00:00
moodler 952489e16c The grades page now supports downloading of grade data! :-) 2002-10-17 10:34:11 +00:00
moodler 417e6821bd Removed some blank lines that were causing output 2002-10-17 10:33:13 +00:00
moodler 6e770b179c Grr added transparency back again ... 2002-10-17 08:32:29 +00:00
moodler da19305885 Re-adding to overcome CVS strangeness (and my own indecision!) 2002-10-17 08:30:41 +00:00
moodler 9809249838 Better grade reports 2002-10-17 08:28:18 +00:00
moodler e34d323730 Some new strings 2002-10-17 07:58:50 +00:00
moodler 858deff0b4 Now includes maximum grades 2002-10-17 07:55:54 +00:00
moodler d0ac6bc236 Added new grading functions to work with course/grades.php 2002-10-17 07:23:51 +00:00
moodler 3486b7bee5 Added a new grading tool for teachers to see all grades on one page.
Grades are collected from each module using the module_grades function in
each mod/*/lib.php.
2002-10-17 07:23:12 +00:00
moodler 19c4f55c43 Feedback fixes 2002-10-16 15:52:29 +00:00
moodler 5f652ac38e Alt text on moodle logo 2002-10-16 15:48:22 +00:00
compuproggy c5e900c8aa *** empty log message *** 2002-10-16 10:42:35 +00:00
compuproggy 90892fd130 *** empty log message *** 2002-10-16 10:24:09 +00:00
moodler a8a372ccf7 Various fixes and additions. It now does quiz feedback pretty well
(though it doesn't show correct answers yet).
2002-10-16 09:35:04 +00:00
compuproggy 735715779b *** empty log message *** 2002-10-16 09:31:14 +00:00
compuproggy d6aa0e227e *** empty log message *** 2002-10-16 08:48:11 +00:00
moodler 18de986eb1 Actually, let's include journals that have no feedback yet as well. 2002-10-16 07:18:07 +00:00
moodler 8bff8ad835 When a teacher is giving feedback, entries that have been modified since
the last time a teacher has given feedback are highlighted.
2002-10-16 07:15:36 +00:00
moodler b425749fc3 Teacher can now use the richtext editor to edit the assignment text 2002-10-16 05:31:56 +00:00
moodler 7ce20f09cb Changes related to module editing buttons 2002-10-16 04:53:44 +00:00
moodler df2898fe3b Don't show htmleditor preference if it's disabled by admin 2002-10-16 04:52:57 +00:00
moodler 09aebc9468 Cleaned up some buttons ... 2002-10-16 04:51:55 +00:00
moodler 92a3c884f5 Small bugfixes ... (yawn) 2002-10-15 17:32:50 +00:00
moodler 7520988bb3 Fixes for grades 2002-10-15 17:13:11 +00:00
moodler 0a7994a0ba Just updated the number 2002-10-15 16:49:32 +00:00
moodler ab9d6d1e0e Some additions 2002-10-15 16:48:44 +00:00
moodler 55c2620784 Got rid of the wimpy icons in the top-right corner of pages and put some
manly buttons there.  ;-)   I think this will be much clearer for novices,
as well as being a bigger target for experts!
2002-10-15 16:47:43 +00:00
moodler 6b069ecef1 Bit of a clean up of the edit interface ... 2002-10-15 16:45:39 +00:00
moodler 49dcdd1800 Added timeopen and timeclose (instead of days) and did a few cleanups 2002-10-15 16:22:18 +00:00
moodler d197118510 Admin script to brutally delete every file and directory from the
Moodle data directory.  Will be useful for those on hosting servers
without root access.
2002-10-15 16:04:38 +00:00
moodler 8d94f5a08e OK, it seems reliable enough now for alpha testing.
If you have existing quizzes, delete them all, then
drop all the quiz tables and delete the quiz line from
the modules table.

Things to do still:

  - add/edit/remove categories
  - display question feedback on submissions ...
  - record the time they started the quiz, as well as the completion.
  - place time limits between attempts
  - add full specification of quiz open time and quiz close time
2002-10-15 12:54:11 +00:00
moodler 2a2c9725bb Can now create and re-edit all three types of questions.
Still working on grading ...
2002-10-15 10:04:28 +00:00
moodler 2834cce0d9 New strings 2002-10-15 05:31:03 +00:00
moodler 31e7516eb5 Forms now done, more or less 2002-10-15 05:29:57 +00:00
moodler d0030cf051 A little more explicit about PHP requirements 2002-10-15 03:48:04 +00:00
moodler 109613b290 Fix to clear the modform variable just in case there's one
from one module that later affects another module.
2002-10-14 16:06:19 +00:00
moodler ff80e012b0 Miscellaneous little changes from today ... 2002-10-14 16:00:55 +00:00
moodler edecd16dd2 New strings 2002-10-14 15:58:07 +00:00
moodler 10b9291c92 Checking in what I got so far .... Not working yet but I'm going to bed. 2002-10-14 15:57:33 +00:00
moodler 7bd1aa1d64 Quiz generation is working now. Just need question and category editors. 2002-10-14 12:21:18 +00:00
moodler 6a952ce7a0 Many new additions - code not quite usable yet, but getting close 2002-10-14 09:07:13 +00:00
moodler 2eaa2e2861 New strings 2002-10-14 09:04:33 +00:00
moodler 579ddad5ef Added a basic report and some clean-ups 2002-10-13 13:51:56 +00:00
moodler 5c0ee23cc3 Now uses real current language (may not be the same as $CFG->lang) 2002-10-13 10:06:01 +00:00
moodler a5e1f35c66 Just to show that something is happening!
At this stage this module:

  - prints quizzes,
  - accepts answers (for multiple attempts) and grades them,
  - stores the grades.

Really, it's usable as long as you don't mind using the database manually. :)

Next up is quiz reports, then I'll tackle quiz creation.
2002-10-13 07:17:48 +00:00
moodler 5a84640bd1 Tweaks to use new javascript-printing function etc 2002-10-12 15:01:17 +00:00
moodler 3df49694a9 New function to print richtext javascript 2002-10-12 15:00:34 +00:00
moodler 901f9f74e1 First version of German (Deutsch) translation, by Holger.Schadeck@webdesign-forum.de
Great!
2002-10-12 14:33:01 +00:00
moodler e1947876ec Moved the object code out into a function print_textarea 2002-10-12 07:23:16 +00:00
moodler aed0b713fe new string 2002-10-12 06:27:24 +00:00
moodler b2a5ee1822 Added richtext to Journal entries. 2002-10-12 06:20:56 +00:00
moodler 87aa027831 Some notes about the other new stuff. 2002-10-12 05:47:05 +00:00
moodler a5a5a129b7 Added help buttons about the richtext editor (when active) 2002-10-12 05:43:00 +00:00
moodler 66dc0c39d0 Help file for the new richtext HTML editor 2002-10-12 05:39:00 +00:00
moodler 1a072208ce Smilies are now replaced even in HTML text, and small fixes 2002-10-12 05:09:49 +00:00
moodler 75096957ca Keep this one here :-) for the interface 2002-10-12 04:19:51 +00:00
moodler d86cdde20b A bit of info 2002-10-12 04:13:39 +00:00
moodler 0c074a4f2e No longer needed ... replaced by "angry.gif" ... 2002-10-12 04:12:26 +00:00
moodler 2ec69fce6a Added a function useful for debugging Javascript problems 2002-10-12 04:09:51 +00:00
moodler 1581d9b1d8 Swapped clown icon for surprise in the layout ... looks better that way 2002-10-12 04:06:26 +00:00
moodler 696f751f7a Swapped clown for surprise - looks better that way 2002-10-12 04:04:59 +00:00
moodler c828070ac9 Deleted these icons because I'm not using them. The editor now uses
the standard Moodle icons instead.
2002-10-12 04:03:23 +00:00
moodler cd68ebfaef This page now uses the Moodle standard icons for consistency 2002-10-12 03:55:50 +00:00
moodler 84f98bc8a9 Removed references to btnPost because I don't use it 2002-10-12 03:54:56 +00:00
moodler c9dda99059 Modified text_to_html to use the new smilies, which for efficiency are
now defined in a global array, and use str_replace instead of ereg ...
2002-10-12 03:53:40 +00:00
moodler d2aad0a838 Modified this help file to describe the new smilies 2002-10-12 03:51:29 +00:00
moodler c0f4f066c2 Modified all smilies and added some new ones. 2002-10-12 03:50:45 +00:00
moodler 113bb2a26b Better placing of standard links etc when there are lots of images and
other funny formatting in HTML posts
2002-10-11 05:20:23 +00:00
moodler a9ff3d4cdf New strings to do with language direction 2002-10-11 02:32:05 +00:00
moodler 541117b6cb Changes to support choice of language direction (so that languages
like Arabic, Hebrew etc will work)
2002-10-11 02:31:37 +00:00
moodler 4b9318947c Added a new string to make it very clear how to upload assignments 2002-10-11 01:58:24 +00:00
moodler 213e8cc67d Better default options, and hiding of moodle-text help when htmlediting is operational 2002-10-10 09:27:49 +00:00
moodler c4a4cae062 Added another translator for Finnish 2002-10-10 07:29:44 +00:00
moodler da061bb457 Added option to choose HTML editor 2002-10-10 07:29:09 +00:00
moodler 73bb08357c Initial attempt at adding html text editor features to these forms. 2002-10-10 07:27:57 +00:00
moodler d2fce839b6 Updated the version (database table addition user->htmleditor) 2002-10-10 07:27:07 +00:00
moodler 0095d5cd3c Additions to cope with richtext editor being used in some forms. 2002-10-10 07:26:10 +00:00
moodler fa7d70c8c1 Added new strings 2002-10-10 07:24:59 +00:00
moodler de909d238d Adding a beta version of Rich Text Editor, for embedding into Moodle
forms (forums, readings, journals etc).  Works only on IE 5.5 and later.

Slightly customised for a slimmer toolbar.
2002-10-10 07:21:32 +00:00
moodler bc0750aaae Arg .. so much for quick hacks ... this code is so messy it's
a hassle to hack ... going back to the way it was originally, with
just a more informative error message instead.
2002-10-09 14:20:24 +00:00
moodler 0bdce31166 Changes to avoid cryptic errors 2002-10-09 14:08:33 +00:00
paca70 b54cd88f34 More corrections, documentation is coming. 2002-10-08 15:51:27 +00:00
moodler b1f2587a65 Latest changes for Italian version, by Davide Suraci 2002-10-08 02:09:43 +00:00
paca70 80f4bff33e Initial version 2002-10-07 17:17:33 +00:00
paca70 2cfd9e4dc9 Some corrections 2002-10-06 18:41:38 +00:00
paca70 66ea86f3b8 Initial version 2002-10-06 18:24:14 +00:00
moodler f3632647e7 Empty file 2002-10-06 17:31:46 +00:00
moodler 8e7ad7283b New words 2002-10-06 17:20:54 +00:00
moodler f8e4809a03 New function print_file_picture for printing a picture from the
files area, or optionally from a URL
2002-10-06 17:20:32 +00:00
moodler 14d8c0b409 Further work done. It currently can print the quiz form (including images!)
but can't mark them yet.  I've been constructing quizzes manually in the
database and it's helping to refine the database structure.  Don't count
on anything stable in the quiz module for a few days yet ...
2002-10-06 17:06:54 +00:00
moodler 55c0c75c03 A start on the page that actually prints the questions and stores the answers 2002-10-06 03:24:56 +00:00
moodler 36658798dc More or less working now 2002-10-06 03:23:34 +00:00
moodler 3a506ca299 Added some more functions 2002-10-06 03:23:16 +00:00
moodler 765814def3 Changed includes of module libraries to use full pathnames constructed
from $CFG->dirroot, rather than relative.  This is because the relative
path could sometime be a different case to the full path (on Windows)
causing include_once not to work.
2002-10-06 03:05:22 +00:00
moodler f01826ee39 Moved module upgrading functions out into database-specific files 2002-10-05 17:21:39 +00:00
moodler c0d6bcc508 Moved upgrade functions into db/mysql.sql 2002-10-05 17:20:24 +00:00
moodler 31f0900c61 Moved upgrade_moodle functions out to database-specific files, because
the SQL is not compatible (nor is it possible to make it so).
2002-10-05 17:09:31 +00:00
moodler e858f9da96 create_new_user() can now import other fields from an external source
if the function for it has been defined.  (Petri's code with additions by me)
2002-10-05 16:49:42 +00:00
paca70 2a86e7a1a5 More corrections 2002-10-04 13:07:16 +00:00
moodler 730fd187c8 Skeleton version of the quiz module. It won't break an installation,
but it doesn't do anything yet.
2002-10-04 02:59:05 +00:00
moodler 518d37151d Use main version of "maximum grade" string 2002-10-04 02:55:27 +00:00
moodler b2a82ad65c Make names into a list 2002-10-04 02:54:53 +00:00
paca70 7d3e684292 and some more.... 2002-10-03 17:10:50 +00:00
paca70 75ebf527c9 Some fixs more. 2002-10-03 17:04:15 +00:00
paca70 a08db54a84 Translated new strings and fixed some old ones. 2002-10-03 16:54:58 +00:00
paca70 68605943ae Corrected some comments. 2002-10-03 15:55:45 +00:00
paca70 fcad13730e Initial version of ldap authentication module. It have no config-interface yet. (But it's coming)
It contains also experimental auth_get_userinfo() function, what is not used by moodle yet.
If you like to try it, create following $CFG variables to /config.php or directly to config-table and activate
ldap authentication from admin-configuration page.

$CFG->ldap_bind_dn      	"If your like to use bind-user to search users, specify it here. Someting like 'cn=ldapuser,ou=public,o=org'"
$CFG->ldap_bind_pw      	"Password for bind-user."
$CFG->ldap_contexts    		"List of contexts where users are located.
				  Separate different contexts with ';'. Something like 'ou=users,o=org; ou=other,o=org'"
$CFG->ldap_host_url      	"Specify LDAP host in URL-form like 'ldap://ldap.myorg.com/' or 'ldaps//ldap.myorg.com/' ";
$CFG->ldap_search_sub   	"Put value <> 0 if  you like to search users from subcontexts.";
$CFG->ldap_user_attribute 	"What attribute is used to name/search users. Usually 'cn'. ";

More configuration optios are coming. This version is tested against Novell E-Directory without SSL and it works fine.
2002-10-03 13:45:19 +00:00
moodler abf59b15bd Fixed definition of forum->open 2002-10-03 11:17:51 +00:00
moodler 70c476a79e Fixes bug 112
Changes to expand "open" option in forums.  Now have a choice between
three options:  new discussions and new replies, new replies only and
no new discussions or new replies.

Three new options in lang/forum.php and I changed "allowdiscussions".
2002-10-03 11:15:50 +00:00
moodler 7d95ed97c7 User's name in footer is now a link 2002-10-03 11:11:53 +00:00
moodler 8dbed6be60 format_time() now supports language strings for day(s)/hour(s)/min(s)/sec(s)
String lookups are cached in user/index.php for efficiency
2002-10-03 04:04:59 +00:00
moodler 05d09aa1f9 Just making this more relevant for the CVS update junkies :-) 2002-10-03 03:55:03 +00:00
moodler a168bd029f Expanded the description and included sample commands 2002-10-03 03:35:53 +00:00
moodler 7b5baeb7de "Activities" wasn't being taken from language files 2002-10-03 02:57:36 +00:00
paca70 4b76aa52d0 Minor update to test that update rights are working. 2002-10-02 19:37:35 +00:00
moodler 5251893741 Fixes for accented characters 2002-10-02 16:23:12 +00:00
moodler 5c958cabcc Updated a word 2002-10-02 15:55:22 +00:00
moodler 168fe1427a New version number for development 2002-10-02 14:43:04 +00:00
moodler 3eb4b24fed Added 'thischarset' = "iso-8859-1", for completeness 2002-10-02 14:20:30 +00:00
moodler 59857bd7a8 Checked in initial Italian version by Davide Suraci, with help from others 2002-10-02 13:50:36 +00:00
moodler 3763e302ff Added Sebastien Nameche 2002-10-02 10:59:04 +00:00
moodler 0cb8bf3bcd Locale box is a bit bigger, since locale strings can be bigger :-) 2002-10-02 10:35:43 +00:00
moodler 3a178d04d1 Removed configcharset, but kept thischarset 2002-10-02 10:34:31 +00:00
moodler 4bfa92e714 Added new header to all pages to set the current charset, to help browsers 2002-10-02 10:33:05 +00:00
moodler 53e61ab906 Updates to the French translation, by M. Sebastien Nam?che 2002-10-02 09:37:29 +00:00
moodler 0ebe961a18 A change to test the ACLs 2002-10-02 08:23:49 +00:00
moodler a1122760d0 Changes 2002-10-02 07:59:22 +00:00
moodler 39df7c9774 Fixed links to be relative. This prevents errors on the offchance that
the current URL != $CFG->wwwroot/login
2002-10-02 07:08:56 +00:00
moodler 2e60a1ace3 Made these images transparent 2002-10-02 05:10:10 +00:00
moodler b4ab71a6db Fixed links in navigation 2002-10-02 02:24:19 +00:00
moodler 7fbd6b1c0b Don't use getenv anywhere - not necessary and breaks PHP under ISAPI 2002-10-02 02:05:29 +00:00
martin e99af4408f CHANGES UP TO 1.0.5 2002-09-27 15:14:04 +00:00
martin cc300ceb39 Mentioned newly allowed tags 2002-09-27 15:03:28 +00:00
martin 8dcea3963a Added a few more allowed HTML tags in plain text files. <dl> <h1><h2><h3> <hr> 2002-09-27 14:48:25 +00:00
martin dfb6e4ac3e Tweaks to page titles to make them more consistent 2002-09-27 14:26:02 +00:00
martin 0d399dc585 Aaaahhh I remember now why this was in here, because in future there might
be course-level themes and user-level themes.

Putting it back as before ... :-)
2002-09-27 14:19:59 +00:00
martin cd1c4d2321 Removed theme chooser from here ... moving it to admin folder 2002-09-27 14:18:06 +00:00
martin 555bdfc813 Fixed a little link to login page 2002-09-27 13:44:52 +00:00
martin d51c583d3c Updated version for 1.0.5 release 2002-09-27 13:40:17 +00:00
martin ebf2e54dd6 Mentioned the icon bug 2002-09-27 13:39:59 +00:00
martin 5ea4745d18 Updated version and release 2002-09-27 06:20:20 +00:00
martin 077f9a67d0 Add manage database link to home page admin links if necessary 2002-09-27 06:19:49 +00:00
martin 34a0cda676 Put version info on admin page 2002-09-27 06:19:18 +00:00
martin b35f948b97 Nicer way to find out the major changes since the last version.
RELEASES.html shows the changes, and these are displayed during
an upgrade.
2002-09-27 06:13:59 +00:00
martin 2802ac6ec7 Tweaks and formatting 2002-09-27 05:25:46 +00:00
martin 2a691b9439 Hoepfully made the upgrade process clearer. 2002-09-27 05:12:02 +00:00
martin 91ac0405fa A little extra error checking. 2002-09-27 04:53:27 +00:00
martin 3ef909ca58 Removed encoding setting because i suspect it may be messing with SMTP mail 2002-09-27 01:35:25 +00:00
martin b362b85e99 Better format for text version of emails 2002-09-26 16:02:13 +00:00
martin 004db95014 Changed some instances of include() to include_once() 2002-09-26 14:41:59 +00:00
martin f1f901c3ea After upgrading version, stay on admin page rather than going to home
page, just in case there is more to do.
2002-09-26 13:05:18 +00:00
martin 9450cef212 Updated version and release 2002-09-26 11:44:06 +00:00
martin f25f1e1b66 Little bug that caused the guest icon to display even when guest was turned
off (if the password was null)
2002-09-26 11:10:20 +00:00
martin 57f3a4a564 the more things change, the less they stay the same 2002-09-26 07:27:01 +00:00
martin 41e1986cdc Update the version 2002-09-26 07:25:47 +00:00
martin 8f1cba2858 The login page now shows different instructions depending on the
authentication mechanism.
2002-09-26 07:13:14 +00:00
martin faebaf0f40 First implementation of new authentication system, which can now use
pluggable modules in the 'auth' directory.

Everything is done through authentication_user_login in lib/moodlelib.php

As well as the old default "email" confirmation, I added a new type of
confirmation "none", which basically does no confirmation at all.
2002-09-26 07:03:22 +00:00
martin ab998e5d07 Check for USER->email in require_login. With external authentication
schemes it's possible that the email field could be empty, so this
will force users to update it (and the rest of their profile) any
time they log into a course.
2002-09-26 03:51:31 +00:00
martin 43dc944611 Make $a bold so it's easier to see 2002-09-26 03:36:16 +00:00
martin ef5e5d87dc New help file for language editing 2002-09-26 03:20:15 +00:00
martin 4c2bcc7a1b Much better. No slashes needed AT ALL now, not even for $a variables.
Also provided a help button at the top.
2002-09-26 03:16:40 +00:00
martin 9d389960e6 Patches from Petri 2002-09-26 02:19:53 +00:00
martin d7ea4a225d Info about lib/htaccess 2002-09-25 16:38:09 +00:00
martin 96dad0de43 Added DirectoryIndex stuff 2002-09-25 16:33:54 +00:00
martin 7104dfc9ef Added new postgres7 schema, developed by Felipe Rodrigues da Silva <felipe@pontoexe.com>. Thanks Felipe!
I've personally not tested this yet so PostgrSQL user feedback is encouraged!
2002-09-25 15:16:21 +00:00
martin b839163528 Don't redirect too early 2002-09-25 14:40:28 +00:00
martin d66ee54d8d Add some comments 2002-09-25 13:37:12 +00:00
martin 04ad372d93 Improved explanations for how to use this file 2002-09-25 12:33:21 +00:00
martin 632d640751 It's possible $USER->lang may not be defined. If so, use $CFG->lang. 2002-09-25 11:06:27 +00:00
martin 4c701e6f54 Set fromdiscussion here just in case it's not set elsewhere 2002-09-25 08:17:35 +00:00
martin 38ff0e9f1f ALL CHANGES UP TO MOODLE 1.0.5 BETA 1 2002-09-25 07:42:39 +00:00
martin 9ec9ff5dc5 Unfinished files 2002-09-25 07:41:23 +00:00
martin 89e71738b5 updated version numbers for beta 1 release 2002-09-25 07:40:07 +00:00
martin 9806ae9403 README contains author etc 2002-09-25 07:38:23 +00:00
martin d68c814679 Added README with author 2002-09-25 07:37:31 +00:00
martin d0b12add53 Author stored in README 2002-09-25 07:35:58 +00:00
martin cb011cfd0a In compare mode you can now EDIT language files directly. This should
make language development much easier.

Based on code sent to me by Petri Asikainen
2002-09-25 07:33:04 +00:00
martin f74a4a79f2 Cough typo 2002-09-25 07:31:19 +00:00
martin 6321ab8df6 Edited using language editor 2002-09-25 07:30:16 +00:00
martin 3f5331eb19 New string 2002-09-25 07:19:32 +00:00
martin 49f5bb0527 Fix for ICQ display (they've changed their URLs) 2002-09-24 12:45:06 +00:00
martin ed4567d69d Hide password during registration 2002-09-24 09:20:43 +00:00
martin 74ed07ac86 Prevent guests even seeing the edit button 2002-09-24 09:06:17 +00:00
martin 3182314d5c Prevent guests from submitting choices or assignments 2002-09-24 09:02:34 +00:00
martin 17b365f829 Updated Sebastien's address to seb@gaia.anet.fr 2002-09-24 08:54:44 +00:00
martin 3d98b29d51 Make sure site security is added when logging in via change password 2002-09-24 01:28:19 +00:00
martin 83e9a09e34 Newly formatted header.html files in themes ... still works the same
just might be easier to edit now.  index.php uses new set_config function
2002-09-23 15:42:22 +00:00
martin 8cea3a3974 Special "navigation" for home page - "home" value sets off different header
in themes
2002-09-23 15:41:06 +00:00
martin a28af1fe74 New set_config() and better use of $CFG->version 2002-09-23 15:40:16 +00:00
martin b3ac9d9b85 New standardlogo theme ... like standard but with a logo 2002-09-23 15:38:22 +00:00
martin fd8dfb5a88 Sample logo 2002-09-23 15:37:08 +00:00
martin 1e22462d01 Fixed up default-sized tables again 2002-09-23 07:02:26 +00:00
martin 7fd6bb7cf6 Whoops teacher checking was back to front 2002-09-23 06:49:30 +00:00
martin 380871ace1 Personal mentions 2002-09-23 04:04:31 +00:00
martin a46b910e00 Change to name of language 2002-09-23 02:11:08 +00:00
martin 43afb07b98 Updated name of language 2002-09-23 02:08:40 +00:00
martin 3e8540f4fe Added Portuguese (Brazilian) by Fabricio Valadares, Thanks! 2002-09-23 02:04:44 +00:00
martin 2b6277bc51 Updated credits 2002-09-23 01:47:34 +00:00
martin affb83a226 Saner format for editing profile 2002-09-22 16:24:38 +00:00
martin 1fdaab8d76 Bolder title 2002-09-22 16:19:45 +00:00
martin a58977a2a0 Forgot country display change 2002-09-22 16:17:11 +00:00
martin adcb3ac53d Better country sorting on user index in a course 2002-09-22 16:16:13 +00:00
martin 7c3cf7f3ef Better way of sorting countries 2002-09-22 16:12:49 +00:00
martin 096dc19f3b Fixes to country sorting 2002-09-22 16:03:01 +00:00
martin 8538258121 Better handling of country sorting 2002-09-22 15:57:23 +00:00
martin 66c95f3224 Don't delete a user if already deleted (reloading page, say) 2002-09-22 14:42:32 +00:00
martin 6968fd6656 Updated version 2002-09-22 14:39:09 +00:00
martin 45aa6d563c Fixes to unenrolling students, and unenrol_student() and remove_teacher()
now remove forum_subscriptions correctly
2002-09-22 14:33:21 +00:00
martin 274f62e6d5 Fixes to table widths 2002-09-22 14:11:45 +00:00
martin b4ead712f2 Arrghh ... foget to remove the debugging thing 2002-09-22 14:07:15 +00:00
martin d578afc883 Major cleanup of user administration and display, including sortable listings,
confirmation on deletions, removing deleted user from all student lists,
teacher lists and subscription lists and freeing up their username and
email to be used again.
2002-09-22 14:06:38 +00:00
martin 7684ce4b32 Changes (getting close to 1.0.5 now) 2002-09-22 06:49:38 +00:00
martin 1d3ff0711f Updated module template with module_print_recent_activity() 2002-09-22 06:47:11 +00:00
martin 3446205d44 Added assignments under "Recent Activity" 2002-09-22 06:41:56 +00:00
martin 88491cacba When redirecting to admin page go direct to index.php just in case
DirectoryIndex hasn't been fixed yet.
2002-09-22 05:33:54 +00:00
martin bbe3efd8e1 Some comments to indicate standard and other functions 2002-09-22 04:29:18 +00:00
martin 66ea15f3cc Reaaranged the functions into standard and other 2002-09-22 04:27:45 +00:00
martin 7bca79576f Fixed stupidity 2002-09-22 03:58:41 +00:00
martin a30cfe1685 Error in the SQL - fixed now 2002-09-22 03:57:56 +00:00
martin 54634efcba New function to show new surveys in recent activity box 2002-09-22 03:51:28 +00:00
martin a2b71b6d71 Whoops typo - left in some old stuff 2002-09-22 03:17:29 +00:00
martin 03af47eee3 SHow number of journal entries in the teacher link to report 2002-09-22 03:16:40 +00:00
martin 3bf90da5f6 Use log URL for link to journal 2002-09-22 03:13:10 +00:00
martin 01a086c3dd Support for new deleted field in user table 2002-09-22 03:11:05 +00:00
martin ae2e0dddad Changes to not include deleted users in some things 2002-09-22 03:05:39 +00:00
martin bb09fb1157 Changes to enable DELETION of user accounts. Accounts aren't actually
deleted, they are just marked with a deleteion flag that prevents them
from logging in, or from being listed anywhere.
2002-09-22 03:01:17 +00:00
martin 3869a2ac3d Changes to print_recent_activity in course/lib.php. It is now more
modular (at slight cost to performance) and every modules can now
have a module_print_recent_activity() function.  This function
takes a list of logs, searches for things to display and does so.

So far I've done forum and journal functions
2002-09-21 17:11:08 +00:00
martin 20aa2257dc Allow 1-minute delay (mostly good for testing) 2002-09-21 08:44:08 +00:00
martin 93e0f85d6c Need more room for language variable (eg pt_br) 2002-09-21 08:42:05 +00:00
martin a16c2180d0 Make sure user language works OK (it does now) 2002-09-21 08:40:27 +00:00
martin 562bbe9074 Make mail format explicitly 8bit 2002-09-21 08:39:54 +00:00
martin a5a4cd60cb Make sure mailouts are in the user's chosen language 2002-09-21 07:46:30 +00:00
martin 5319c6adf6 Make sure mailouts are in the chosen language of each user 2002-09-21 07:42:54 +00:00
martin bcf7ee7a97 Initial (incomplete) version of French translation by Sebastien Nameche <snameche@virtual-net.fr>
Good start!  Thanks, Sebastien.
2002-09-21 07:27:07 +00:00
martin 94cfe58b19 Initial version of Finnish translation, as done by Petri Asikainen <paca@sci.fi>
Thanks, Petri!
2002-09-21 07:22:23 +00:00
martin 1774e33325 Added single quotes around all the keys ... even though PHP works
without them, it will flag errors when errorlevel is turned up, and
I suspect this slows it all down a bit.
2002-09-21 07:18:16 +00:00
martin 13fb5ec074 Added my email address 2002-09-21 07:07:44 +00:00
martin effbcca27c Don't need to log in to see site-level course 2002-09-21 07:03:54 +00:00
martin b92ea9450c More options for longtimenosee 2002-09-21 06:45:26 +00:00
martin c69ce08b49 Don't print pictures at all for very large lists 2002-09-21 06:39:28 +00:00
martin 25fa226dac Make more room in list 2002-09-21 06:30:32 +00:00
martin 32b4b9746a more refinements to sorting display 2002-09-21 06:27:00 +00:00
martin 3f63219688 Fixed typo from testing 2002-09-21 06:13:42 +00:00
martin e6b9ee042d Much better look for user index 2002-09-21 06:12:54 +00:00
martin dccd16712a Slight additions to print_table 2002-09-21 05:43:46 +00:00
martin c07daf5bbc Added lang for users 2002-09-21 05:43:21 +00:00
martin 6b281f1fec Better display of users in shortened form, for testing 2002-09-21 05:42:16 +00:00
martin 7a702c34ea Tweak 2002-09-20 15:42:16 +00:00
martin 6abee98964 First go at an abbreviated user listing 2002-09-20 15:40:20 +00:00
martin 1e4d8ed1d2 Put sitename on debugging info (helpful when comparing two sites) 2002-09-19 14:59:47 +00:00
martin 08056730fa Improved interface for course/teachers.php ... instead of typing numbers
into a box there is now a menu for each user.   Much better!
2002-09-19 14:51:49 +00:00
martin ae7aafeb53 Got rid of errorlevel configuration - more trouble than it's worth!
Hardcoded it into setup.php now - people who are that keen can change
it there.
2002-09-19 14:07:24 +00:00
martin 1be8717562 Updated for new configuration page 2002-09-19 14:06:28 +00:00
martin 4d0dde9159 Some consistency in headers on editing forms 2002-09-19 13:55:40 +00:00
martin 74944b734d Most of the configuration variables have been moved out of the config.php
file and into a database, where they can be edited using a new admin form
called "Configure variables".
2002-09-19 12:01:55 +00:00
martin e80e60a6b2 Slight fix to error page to include site name properly 2002-09-17 14:56:18 +00:00
martin 76dbe04f4a Login link on home page 2002-09-16 13:03:31 +00:00
martin 7ff602b225 eminder about saving themes in upgrades etc 2002-09-16 07:11:31 +00:00
martin a9858957e1 Typo 2002-09-16 07:08:33 +00:00
martin 7185779262 Fixed name in popup javascript window 2002-09-16 07:03:33 +00:00
martin af90e74e59 Sample .htaccess file 2002-09-16 06:33:53 +00:00
martin 37e9df195f Fixed Id 2002-09-16 03:23:10 +00:00
martin c94e1535f8 Type on phpinfo 2002-09-16 03:20:55 +00:00
martin 7b5271354b Mentioned there's no need to use a trailing slash on the wwwroot 2002-09-15 06:09:44 +00:00
martin a7b9e8bc9f Fixes to point directly to index.php wherever it was assumed. This wasn't
a problem on most servers, but was causing some problems on IIS servers
2002-09-15 06:06:32 +00:00
martin 1a72314d0f Can now specify current language on a per-user basis 2002-09-14 03:43:24 +00:00
martin c46df33643 New help file for editing html 2002-09-13 10:22:06 +00:00
martin 73761dc9be Added a new reading type "html text". It's similar to "plain text"
except none of the auto-formatting is done, and all HTML code is
accepted.
2002-09-13 10:21:03 +00:00
martin ddd9a8969b SUrprise icon is a bit wider than 16 pixels 2002-09-12 17:08:32 +00:00
martin 7ef459ebed Fixed bug with category links on front page 2002-09-12 02:42:22 +00:00
martin e31309ed79 One more little buglet when confirming an email (added security site value) 2002-09-11 14:02:30 +00:00
martin 91d5dbf3eb CHANGES UP TO 1.0.4 (really, I mean it this time :-) ) 2002-09-11 05:11:13 +00:00
martin 122cffc938 Include guest user in list of users 2002-09-11 02:26:56 +00:00
martin 0c6561819b Changes to course display on front page when there is more than one category 2002-09-10 13:47:56 +00:00
martin 4ea0fc0f1a Removed some debugging stuff 2002-09-10 13:24:24 +00:00
martin a789fb73f4 More security for email confirmation process ... a 15-character random
"secret" key is stored the user record on account creation, sent via
email and checked again during confirmation.
2002-09-10 12:54:01 +00:00
martin ceb7ea7550 CHANGES UP TO 1.0.4 2002-09-10 03:44:09 +00:00
martin 99b5e56207 Whoops, left attachment field out of the database schema (affected
new installations of 1.0.2 and later)
2002-09-10 02:13:44 +00:00
martin 45c58cb7ad CHANGES (this is 1.0.4 unless anything comes up very soon) 2002-09-09 15:52:07 +00:00
martin 8e652a3660 Tweak to modify interface a bit (changed header and made courses a link) 2002-09-09 15:50:55 +00:00
martin db95b60308 CHANGES 2002-09-09 12:38:29 +00:00
martin 0a26320532 Tweaks to category display 2002-09-09 12:37:34 +00:00
martin ba2e5d7347 Categories upgrade. Admin can now create/edit/delete categories, and
these are diesplayed wherever courses are listed
2002-09-09 11:48:11 +00:00
martin 7aa0bb8886 Layout fixes ... much better now 2002-09-09 11:42:27 +00:00
martin d6935726ed Changed maximum number of weeks/topics up to 52 2002-09-09 11:31:48 +00:00
martin 782e7594ec Rearrange code ... accidentally placed table->head in the loop 2002-09-09 10:38:14 +00:00
martin e5c2a9e441 Whoops ... last conversion actully tampered with comment formatting
... I've fixed that now.
2002-09-09 06:23:39 +00:00
martin bc44a3a0ad Converted all the DOS format text files to UNIX format, for consistency
with the rest of Moodle and also to prevent possible mangling of
files in case they are FTP'd individually to a server.
2002-09-09 06:17:11 +00:00
martin 503eced327 Added height and width to smiley icons, to make emails look
better in circumstances where external images are blocked
(eg some webmail programs like squirrelmail).
2002-09-08 16:13:10 +00:00
martin 8f66d49a77 Added an "unsubscribe" link to emails 2002-09-08 16:04:51 +00:00
martin 28e1e8b912 Fixed a bug. When replying to an email copy, you would be forwarded
to the login screen to login first.  However, this was being saved
as the place to go back to after replying.

I added a check for this so now it behaves as you'd expect.
2002-09-08 15:39:44 +00:00
martin cdf6a3ca28 Text window a bit bigger 2002-09-08 09:47:10 +00:00
martin cd3fccff00 Choices now support up to 6 choices. Backward compatible to 2-choice format. 2002-09-08 09:42:07 +00:00
martin 2415d953f0 Tip over 'Edit profile' is the user's name 2002-09-08 09:41:17 +00:00
martin d037d3a28a Help for choices 2002-09-08 09:22:31 +00:00
martin 59a7100ccf Clarified the "participants" link ... 2002-09-08 05:29:00 +00:00
martin 2c26c98575 Link at bottom now goes to site home, not this page 2002-09-08 05:23:47 +00:00
martin 09442e5067 Added documentation to the teachers page. 2002-09-08 05:15:52 +00:00
martin 5b54db6ee4 Improved print_table() a bit (can now specify column widths) 2002-09-08 05:15:37 +00:00
martin c2bc0a4573 Need this file to go with the previous changes! 2002-09-08 03:34:45 +00:00
martin 40a1d986f9 Changes to improve display of teachers 2002-09-08 03:34:12 +00:00
martin b4d7002e66 Changes to allow much better control over what "teachers" are called
in a course.  Firstly, the course settings page now allows the teachers
to specify the word they want to use in place of "teachers" and "students"
as well as "teacher" and "student".  Secondly, a new teacher admin tool
allows any teacher to modify the order and displayed role of teachers
in that course.  This affects the display on the course listings, the
participants page and so on.
2002-09-08 03:24:38 +00:00
martin 774ab66002 Improvements to the language checker. As well as checking for missing
strings, you can now see the current language compared side-by-side
with English.
2002-09-07 14:57:33 +00:00
martin 7fb8331432 Add a link if a "manage database" directory exists 2002-09-07 14:56:19 +00:00
martin fa8e1a34ec Slight update to README 2002-09-07 05:01:55 +00:00
martin 601212b8d2 Added a README that explains the process 2002-09-07 03:54:10 +00:00
martin a48bf3ecd4 Added a template for new modules that contains the bare necessities. 2002-09-07 03:31:36 +00:00
martin 12bace2439 Checking in the current release number for CVS users 2002-09-06 15:17:44 +00:00
martin d21fef3a02 Don't try and print the last access date if it doesn't exist 2002-09-06 15:10:36 +00:00
martin c646b70d66 Added a new $release variable that shows the user-friendly version number 2002-09-06 14:06:48 +00:00
martin 7c6addde73 Cleaned up a bit 2002-09-06 14:05:43 +00:00
martin 09ba0c8a32 Fixed bug in password checking for new admin user ... 2002-09-05 17:31:08 +00:00
martin c5e66fc9da Updated the info to mention that the upgrading only works if you
are logged in as the *administrator* and visit the site home page.
2002-09-05 12:29:26 +00:00
martin 19505e1333 CHANGES UP TO 1.0.3.1 2002-09-05 12:25:08 +00:00
martin 19967d6c3d Updated version 2002-09-05 12:24:15 +00:00
martin 55b8ac3107 Better error message when invalid arguments are supplied. 2002-09-05 11:56:20 +00:00
martin e2d8972553 BUG FIX! - fixes error that could allow ANY file on the system to be read! 2002-09-05 11:53:17 +00:00
martin 45f21575aa Whoops ... little bug that stopped loginas from working ... need to
create $USER->site ...
2002-09-05 11:28:06 +00:00
martin f5e88127d8 Updated version number 2002-09-05 02:29:54 +00:00
martin f6ab73667e CHANGES UP TO MOODLE 1.0.3 2002-09-05 02:28:50 +00:00
martin e98e09150e New error when the admin user is (still) set to the default "admin". 2002-09-05 02:17:33 +00:00
martin 403bb50d7b BUG FIX: In the last version I introduced a new security feature
(keeping the site URL stored in the USER session object) but forgot
to add this to the brand new admin user - causing it to fail.

Fixed.
2002-09-05 02:04:00 +00:00
martin 97ea24e307 Updated README .. pages dir no longer exists - now "help" and "docs" 2002-09-04 13:38:38 +00:00
martin a3cbb7539d Using different logo file to avoid caching problems on changeover 2002-09-04 09:39:03 +00:00
martin a0376793c2 Sorted out moodle logos 2002-09-04 09:38:22 +00:00
martin 1903dd11d8 Tweaked the new icon 2002-09-04 06:32:50 +00:00
martin ef9955b081 Better handling of user-entered URLs (add http:// if missing) 2002-09-04 05:07:17 +00:00
martin 5e391d346d New logo that should work on more themes 2002-09-03 16:58:49 +00:00
martin 90ebcad978 Switched these around and edited a little 2002-09-03 15:16:20 +00:00
martin 31410e9a16 Added a new administration page that can check the current language
pack against the English language pack.  It prints any missing strings
or files.  This should help language pack developers.
2002-09-03 14:29:39 +00:00
martin cf38360f58 Language fixes, added english strings etc 2002-09-03 13:11:40 +00:00
martin 42389890d5 More efficient use of database in userday as well, plus the day graph now
always shows the whole current day
2002-09-02 16:35:41 +00:00
martin f08cc8bbfe usercourse bar --> line graph for better display when lots of data 2002-09-02 16:03:33 +00:00
martin e45e8d26da Alternate method of calculating usercourse logs .... is it faster? 2002-09-02 15:53:19 +00:00
martin 5be2f47cf4 Added Content-disposition header to help some browsers suggest the right
filename when saving pictures and files.
2002-09-02 09:06:43 +00:00
martin 0eae8049a0 Fixed over-zealous removal of returns from text ... 2002-09-02 07:41:39 +00:00
martin cffbaff2dc Print the user's stated city/country as well 2002-09-02 07:18:13 +00:00
6172 changed files with 456163 additions and 26592 deletions
+11873 -4099
View File
File diff suppressed because it is too large Load Diff
+51 -32
View File
@@ -1,32 +1,51 @@
README $Id$
------
Here is a basic outline of the installation process,
which normally takes me only a few minutes:
1) Move the Moodle files into your web directory.
2) Create an empty directory somewhere to store
uploaded files (NOT accessible via the web).
This directory must be writeable by the web server
process.
3) Create a single database for Moodle to store all
it's tables in.
4) Copy the file config-dist.php to config.php, and
edit it with all your own settings.
5) Visit your new home page with a web browser. Moodle
will lead you through the rest of the setup,
creating an admin account and so on.
6) Set up a cron task to call the file admin/cron.php
every five minutes or so.
For more details, I highly recommend you read the
full installation documentation, which is stored
in the "doc" directory or found at http://moodle.com/doc/.
Cheers!
Martin Dougiamas
README $Id$
------
If you are installing the first time, then you
should read the installation guide which is
part of the Moodle documentation (along with
information about upgrading etc):
http://moodle.com/doc/
There is a copy of all this documentation as part of
this Moodle distribution. You can access your local
copy of the installation guide here:
lang/en/docs/install.html
Once Moodle is installed on your machine, then
you can also access a local copy of all this
documentation (localised to your language) at:
http://yourmoodlesite.com/doc/
For the impatient, here is a basic outline of the
installation process, which normally takes me only
a few minutes:
1) Move the Moodle files into your web directory.
2) Create an empty directory somewhere to store
uploaded files (NOT accessible via the web).
This directory must be writeable by the web server
process.
3) Create a single database for Moodle to store all
it's tables in (or choose an existing database).
4) Copy the file config-dist.php to config.php, and
edit it with all your own settings.
5) Visit your new home page with a web browser. Moodle
will lead you through the rest of the setup,
creating an admin account and so on.
6) Set up a cron task to call the file admin/cron.php
every five minutes or so.
Cheers!
Martin Dougiamas
-42
View File
@@ -1,42 +0,0 @@
UPGRADING $Id$
---------
As Moodle grows, there are changes to the code and
sometimes changes to the database structures.
Moodle is able to upgrade its own databases, using
information in files called version.php. There is
one of these for the main tables (in this directory)
and one for each module.
When upgrading from any previous version of Moodle,
all you normally will need to do is this:
1) Make a backup of your current Moodle installation
in the unlikely case that something goes wrong and
you need to restore the older version.
2a) If you are using CVS, just go the root directory
and type "cvs update -d" (or whatever the equivalent
is on your non-Unix server).
OR
2b) Remove the current installation, and then unpack
the new tar or zip file in the same location.
Make sure you copy the config.php file from your
old installion to the new installation (or make a
new one by editing config-dist.php).
3) Visit the home page of your installation. Moodle
will automatically detect the new version and perform
any database upgrades that might be necessary.
If all goes well (no error messages) then you can just
go on using Moodle normally.
If you have problems with this procedure, let me know.
Cheers,
Martin
+156
View File
@@ -0,0 +1,156 @@
<?PHP // $Id$
// Admin-only script to assign administrative rights to users
require_once("../config.php");
define("MAX_USERS_PER_PAGE", 50);
optional_variable($add, "");
optional_variable($remove, "");
optional_variable($search, "");
if (! $site = get_site()) {
redirect("$CFG->wwwroot/$CFG->admin/index.php");
}
require_login();
if (!isadmin()) {
error("You must be an administrator to use this page.");
}
$primaryadmin = get_admin();
/// If you want any administrator to have the ability to assign admin
/// rights, then comment out the following if statement
if ($primaryadmin->id != $USER->id) {
error("You must be the primary administrator to use this page.");
}
/// assign all of the configurable language strings
$stringstoload = array (
"assignadmins",
"administration",
"existingadmins",
"noexistingadmins",
"potentialadmins",
"nopotentialadmins",
"addadmin",
"removeadmin",
"search",
"searchagain",
"toomanytoshow",
"users",
"searchresults"
);
foreach ($stringstoload as $stringtoload){
$strstringtoload = "str" . $stringtoload;
$$strstringtoload = get_string($stringtoload);
}
if ($search) {
$searchstring = $strsearchagain;
} else {
$searchstring = $strsearch;
}
print_header("$site->shortname: $strassignadmins",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "");
/// Add an admin if one is specified
if (!empty($_GET['add'])) {
if (! add_admin($add)) {
error("Could not add that admin!");
}
}
/// Remove an admin if one is specified.
if (!empty($_GET['remove'])) {
if (! remove_admin($remove)) {
error("Could not remove that admin!");
}
}
/// Print a help notice about this page
if (empty($add) and empty($remove) and empty($search)) {
print_simple_box("<center>".get_string("adminhelpassignadmins")."</center>", "center", "50%");
}
/// Get all existing admins
$admins = get_admins();
/// Print the lists of existing and potential admins
echo "<table cellpadding=2 cellspacing=10 align=center>";
echo "<tr><th width=50%>$strexistingadmins</th><th width=50%>$strpotentialadmins</th></tr>";
echo "<tr><td width=50% nowrap valign=top>";
/// First, show existing admins
if (! $admins) {
echo "<p align=center>$strnoexistingadmins</p>";
$adminlist = "";
} else {
$adminarray = array();
foreach ($admins as $admin) {
$adminarray[] = $admin->id;
echo "<p align=right>".fullname($admin, true).",
$admin->email &nbsp;&nbsp; ";
if ($primaryadmin->id == $admin->id){
print_spacer(10, 9, false);
} else {
echo "<a href=\"admin.php?remove=$admin->id\"
title=\"$strremoveadmin\"><img src=\"../pix/t/right.gif\"
border=0></A>";
}
echo "</p>";
}
$adminlist = implode(",",$adminarray);
unset($adminarray);
}
echo "<td width=50% nowrap valign=top>";
/// Print list of potential admins
$usercount = get_users(false, $search, true, $adminlist);
if ($usercount == 0) {
echo "<p align=center>$strnopotentialadmins</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow ($usercount) </p>";
} else {
if ($search) {
echo "<p align=center>($strsearchresults : $search)</p>";
}
if (!$users = get_users(true, $search, true, $adminlist)) {
error("Could not get users!");
}
foreach ($users as $user) {
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=admin.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
}
echo "</tr></table>";
print_footer();
?>
+175
View File
@@ -0,0 +1,175 @@
<?PHP // $Id$
// config.php - allows admin to edit all configuration variables
include("../config.php");
require_login();
if (!$site = get_site()) {
redirect("index.php");
}
if (!isadmin()) {
error("Only the admin can use this page");
}
/// If data submitted, then process and store.
if ($config = data_submitted()) {
$config = (array)$config;
validate_form($config, $err);
if (count($err) == 0) {
print_header();
foreach ($config as $name => $value) {
if (! set_config($name, $value)) {
notify("Problem saving config $name as $value");
}
}
redirect("auth.php", get_string("changessaved"), 1);
exit;
} else {
foreach ($err as $key => $value) {
$focus = "form.$key";
}
}
}
/// Otherwise fill and print the form.
if (empty($config)) {
$config = $CFG;
}
$modules = get_list_of_plugins("auth");
foreach ($modules as $module) {
$options[$module] = get_string("auth_$module"."title", "auth");
}
asort($options);
if (isset($_GET['auth'])) {
$auth = $_GET['auth'];
} else {
$auth = $config->auth;
}
require_once("$CFG->dirroot/auth/$auth/lib.php"); //just to make sure that current authentication functions are loaded
if (! isset($config->guestloginbutton)) {
$config->guestloginbutton = 1;
}
if (! isset($config->auth_instructions)) {
$config->auth_instructions = "";
}
if (! isset($config->changepassword)) {
$config->changepassword = "";
}
$user_fields = array("firstname", "lastname", "email", "phone1", "phone2", "department", "address", "city", "country", "description", "idnumber", "lang");
foreach ($user_fields as $user_field) {
$user_field = "auth_user_$user_field";
if (! isset($config->$user_field)) {
$config->$user_field = "";
}
}
if (empty($focus)) {
$focus = "";
}
$guestoptions[0] = get_string("hide");
$guestoptions[1] = get_string("show");
$createoptions[0] = get_string("no");
$createoptions[1] = get_string("yes");
$stradministration = get_string("administration");
$strauthentication = get_string("authentication");
$strauthenticationoptions = get_string("authenticationoptions","auth");
$strsettings = get_string("settings");
$strusers = get_string("users");
print_header("$site->shortname: $strauthenticationoptions", "$site->fullname",
"<A HREF=\"index.php\">$stradministration</A> -> <a href=\"users.php\">$strusers</a> -> $strauthenticationoptions", "$focus");
echo "<CENTER><P><B>";
echo "<form TARGET=\"{$CFG->framename}\" NAME=\"authmenu\" method=\"post\" action=\"auth.php\">";
print_string("chooseauthmethod","auth");
choose_from_menu ($options, "auth", $auth, "","document.location='auth.php?auth='+document.authmenu.auth.options[document.authmenu.auth.selectedIndex].value", "");
echo "</B></P></CENTER>";
print_simple_box_start("center", "100%", "$THEME->cellheading");
print_heading($options[$auth]);
print_simple_box_start("center", "60%", "$THEME->cellcontent");
print_string("auth_$auth"."description", "auth");
print_simple_box_end();
echo "<hr>";
print_heading($strsettings);
echo "<table border=\"0\" width=\"100%\" cellpadding=\"4\">";
require_once("$CFG->dirroot/auth/$auth/config.html");
if ($auth != "email" and $auth != "none" and $auth != "manual") {
echo "<tr valign=\"top\">";
echo "<td align=right nowrap><p>";
print_string("changepassword", "auth");
echo ":</p></td>";
echo "<td>";
echo "<input type=\"text\" name=\"changepassword\" size=40 value=\"$config->changepassword\">";
echo "</td>";
echo "<td>";
print_string("changepasswordhelp","auth");
echo "</td></tr>";
}
echo "<tr valign=\"top\">";
echo "<td align=right nowrap><p>";
print_string("guestloginbutton", "auth");
echo ":</p></td>";
echo "<td>";
choose_from_menu($guestoptions, "guestloginbutton", $config->guestloginbutton, "");
echo "</td>";
echo "<td>";
print_string("showguestlogin","auth");
echo "</td></tr>";
if (function_exists('auth_user_create')){
echo "<tr valign=\"top\">";
echo "<td align=right nowrap><p>";
print_string("auth_user_create", "auth");
echo ":</p></td>";
echo "<td>";
choose_from_menu($createoptions, "auth_user_create", $config->auth_user_create, "");
echo "</td>";
echo "<td>";
print_string("auth_user_creation","auth");
echo "</td></tr>";
}
echo "</table><center><p><input type=\"submit\" value=\"";
print_string("savechanges");
echo "\"></p></center></form>";
print_simple_box_end();
print_footer();
exit;
/// Functions /////////////////////////////////////////////////////////////////
function validate_form(&$form, &$err) {
// if (empty($form->fullname))
// $err["fullname"] = get_string("missingsitename");
return;
}
?>
+133
View File
@@ -0,0 +1,133 @@
<?PHP // $Id$
// backup.php - allows admin to edit all configuration variables for scheduled backups
require_once("../config.php");
require_once("../backup/lib.php");
require_once("../backup/backup_scheduled.php");
require_login();
if (!isadmin()) {
error("Only an admin can use this page");
}
if (!$site = get_site()) {
error("Site isn't defined!");
}
//Initialise error variables
$error = false;
$sche_destination_error = "";
/// If data submitted, then process and store.
if ($config = data_submitted()) {
//First of all we check that everything is correct
//Check for trailing slash and backslash in backup_sche_destination
if (!empty($backup_sche_destination) and
(substr($backup_sche_destination,-1) == "/" or substr($backup_sche_destination,-1) == "\\")) {
$error = true;
$sche_destination_error = get_string("pathslasherror");
//Now check that backup_sche_destination dir exists
} else if (!empty($backup_sche_destination) and
!is_dir($backup_sche_destination)) {
$error = true;
$sche_destination_error = get_string("pathnotexists");
}
//We need to do some weekdays conversions prior to continue
$i = 0;
$temp = "";
$a_config = (array)$config;
while ($i<7) {
$tocheck = "dayofweek_".$i;
if (isset($a_config[$tocheck])) {
$temp .= "1";
} else {
$temp .= "0";
}
unset($a_config[$tocheck]);
$i++;
}
$a_config['backup_sche_weekdays'] = $temp;
$config = (object)$a_config;
//weekdays conversions done. Continue
print_header();
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;
}
}
/// Otherwise print the form.
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$strbackup = get_string("backup");
print_header("$site->shortname: $strconfiguration: $strbackup", $site->fullname,
"<a href=\"index.php\">$stradmin</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> ".
$strbackup);
echo "<p align=right><a href=\"../backup/log.php\">".get_string("logs")."</a></p>";
print_heading($strbackup);
print_simple_box("<center>".get_string("adminhelpbackup")."</center>", "center", "50%");
echo "<br />";
print_simple_box_start("center", "", "$THEME->cellheading");
//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();
?>
+496
View File
@@ -0,0 +1,496 @@
<form method="post" action="config.php" name="form">
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><p>lang:</td>
<td>
<?php choose_from_menu (get_list_of_languages(), "lang", $config->lang, "", "", ""); ?>
</td>
<td>
<?php print_string("configlang") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>langmenu:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "langmenu", $config->langmenu, "", "", "");
?>
</td>
<td>
<?php print_string("configlangmenu") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>langlist:</td>
<td>
<input name=langlist type=text size=40 value="<?php p($config->langlist) ?>">
</td>
<td>
<?php print_string("configlanglist") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>locale:</td>
<td>
<input name=locale type=text size=10 value="<?php p($config->locale) ?>">
</td>
<td>
<?php print_string("configlocale") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>timezone:</td>
<td><?php
if (abs($config->timezone) > 13) {
$config->timezone = 99;
}
$timenow = time();
for ($tz = -26; $tz <= 26; $tz++) {
$zone = (float)$tz/2.0;
$usertime = $timenow + ($tz * 1800);
if ($tz == 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT)";
} else if ($tz < 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT$zone)";
} else {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT+$zone)";
}
}
choose_from_menu ($timezones, "timezone", $config->timezone, get_string("serverlocaltime"), "", "99");
?>
</td>
<td>
<?php print_string("configtimezone") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>country:</td>
<td><?php choose_from_menu (get_list_of_countries(), "country", $config->country, get_string("selectacountry"), "") ?>
</td>
<td>
<?php print_string("configcountry") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>smtphosts:</td>
<td>
<input name=smtphosts type=text size=30 value="<?php p($config->smtphosts)?>">
</td>
<td>
<?php print_string("configsmtphosts") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>smtpuser:</td>
<td>
<input name=smtpuser type=text size=10 value="<?php p($config->smtpuser)?>">
</td>
<td rowspan=2>
<?php print_string("configsmtpuser") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>smtppass:</td>
<td>
<input name=smtppass type=text size=10 value="<?php p($config->smtppass)?>">
</td>
</TR>
<tr valign=top>
<td align=right><p>gdversion:</td>
<td>
<?php
unset($options);
$options[0] = get_string("gdnot");
$options[1] = get_string("gd1");
$options[2] = get_string("gd2");
$installed = check_gd_version();
choose_from_menu ($options, "gdversion", $installed, "", "", "");
?>
</td>
<td>
<?php print_string("configgdversion") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>htmleditor:</td>
<td>
<?php
unset($options);
$options[0] = get_string("allownot");
$options[1] = get_string("allow");
choose_from_menu ($options, "htmleditor", $config->htmleditor, "", "", "");
?>
</td>
<td>
<?php print_string("confightmleditor") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>maxeditingtime:</td>
<td>
<?php
unset($options);
$options[3600] = get_string("numminutes", "", 60);
$options[2700] = get_string("numminutes", "", 45);
$options[1800] = get_string("numminutes", "", 30);
$options[900] = get_string("numminutes", "", 15);
$options[300] = get_string("numminutes", "", 5);
$options[60] = get_string("numminutes", "", 1);
choose_from_menu ($options, "maxeditingtime", $config->maxeditingtime, "", "", "");
?>
</td>
<td>
<?php print_string("configmaxeditingtime") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>longtimenosee:</td>
<td>
<?php
unset($options);
$options[1000] = get_string("numdays", "", 1000);
$options[365] = get_string("numdays", "", 365);
$options[180] = get_string("numdays", "", 180);
$options[150] = get_string("numdays", "", 150);
$options[120] = get_string("numdays", "", 120);
$options[90] = get_string("numdays", "", 90);
$options[60] = get_string("numdays", "", 60);
$options[30] = get_string("numdays", "", 30);
$options[21] = get_string("numdays", "", 21);
$options[14] = get_string("numdays", "", 14);
$options[7] = get_string("numdays", "", 7);
choose_from_menu ($options, "longtimenosee", $config->longtimenosee, "", "", "");
?>
</td>
<td>
<?php print_string("configlongtimenosee") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>deleteunconfirmed:</td>
<td>
<?php
unset($options);
$options[0] = get_string("never");
$options[168] = get_string("numdays", "", 7);
$options[144] = get_string("numdays", "", 6);
$options[120] = get_string("numdays", "", 5);
$options[96] = get_string("numdays", "", 4);
$options[72] = get_string("numdays", "", 3);
$options[48] = get_string("numdays", "", 2);
$options[24] = get_string("numdays", "", 1);
$options[12] = get_string("numhours", "", 12);
$options[6] = get_string("numhours", "", 6);
$options[1] = get_string("numhours", "", 1);
choose_from_menu ($options, "deleteunconfirmed", $config->deleteunconfirmed, "", "", "");
?>
</td>
<td>
<?php print_string("configdeleteunconfirmed") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>loglifetime:</td>
<td>
<?php
unset($options);
$options[0] = get_string("neverdeletelogs");
$options[1000] = get_string("numdays", "", 1000);
$options[365] = get_string("numdays", "", 365);
$options[180] = get_string("numdays", "", 180);
$options[150] = get_string("numdays", "", 150);
$options[120] = get_string("numdays", "", 120);
$options[90] = get_string("numdays", "", 90);
$options[60] = get_string("numdays", "", 60);
$options[30] = get_string("numdays", "", 30);
choose_from_menu ($options, "loglifetime", $config->loglifetime, "", "", "");
?>
</td>
<td>
<?php print_string("configloglifetime") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>sessiontimeout:</td>
<td>
<?php
unset($options);
$options[14400] = get_string("numhours", "", 4);
$options[10800] = get_string("numhours", "", 3);
$options[7200] = get_string("numhours", "", 2);
$options[5400] = get_string("numhours", "", "1.5");
$options[3600] = get_string("numminutes", "", 60);
$options[2700] = get_string("numminutes", "", 45);
$options[1800] = get_string("numminutes", "", 30);
$options[900] = get_string("numminutes", "", 15);
$options[300] = get_string("numminutes", "", 5);
choose_from_menu ($options, "sessiontimeout", $config->sessiontimeout, "", "", "");
?>
</td>
<td>
<?php print_string("configsessiontimeout") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>sessioncookie:</td>
<td>
<input name=sessioncookie type=text size=10 value="<?php p($config->sessioncookie)?>">
</td>
<td>
<?php print_string("configsessioncookie") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>zip:</td>
<td>
<input name=zip type=text size=30 value="<?php p($config->zip) ?>">
</td>
<td>
<?php print_string("configzip") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>unzip:</td>
<td>
<input name=unzip type=text size=30 value="<?php p($config->unzip) ?>">
</td>
<td>
<?php print_string("configunzip") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>slasharguments:</td>
<td>
<?php unset($options);
$options[0] = "file.php?file=/pic.jpg";
$options[1] = "file.php/pic.jpg";
choose_from_menu ($options, "slasharguments", $config->slasharguments, "", "", "");
?>
</td>
<td>
<?php print_string("configslasharguments") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>proxyhost:</td>
<td>
<input name=proxyhost type=text size=30 value="<?php p($config->proxyhost) ?>">
</td>
<td rowspan=2>
<?php print_string("configproxyhost") ?>
</td>
</TR>
<tr valign=top>
<td align=right><p>proxyport:</td>
<td>
<input name=proxyport type=text size=5 value="<?php p($config->proxyport) ?>">
</td>
</tr>
<tr valign=top>
<td align=right><p>debug:</td>
<td>
<?php
unset($options);
$options[7] = get_string("no");
$options[15] = get_string("yes");
choose_from_menu ($options, "debug", $config->debug, "", "", "");
?>
</td>
<td>
<?php print_string("configdebug") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>framename:</td>
<td>
<?php
if (empty($config->framename)) {
$config->framename = "_top";
}
?>
<input name=framename type=text size=15 value="<?php p($config->framename)?>">
</td>
<td>
<?php print_string("configframename") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>secureforms:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "secureforms", $config->secureforms, "", "", "");
?>
</td>
<td>
<?php print_string("configsecureforms") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>teacherassignteachers:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "teacherassignteachers", $config->teacherassignteachers, "", "", "");
?>
</td>
<td>
<?php print_string("configteacherassignteachers") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>allowunenroll:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "allowunenroll", $config->allowunenroll, "", "", "");
?>
</td>
<td>
<?php print_string("configallowunenroll") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>maxbytes:</td>
<td>
<?php
$options = get_max_upload_sizes();
choose_from_menu ($options, "maxbytes", $config->maxbytes, "");
?>
</td>
<td>
<?php print_string("configmaxbytes") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>fullnamedisplay:</td>
<td>
<?php
unset($options);
$options['language'] = get_string('language');
$options['firstname lastname'] = get_string('firstname') . ' + ' . get_string('lastname');
$options['lastname firstname'] = get_string('lastname') . ' + ' . get_string('firstname');
$options['firstname'] = get_string('firstname');
choose_from_menu ($options, "fullnamedisplay", $config->fullnamedisplay, "", "", "");
?>
</td>
<td>
<?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>
<?php
unset($options);
$options[0] = get_string('no');
$options[1] = get_string('yes');
choose_from_menu ($options, "forcelogin", $config->forcelogin, "", "", "");
?>
</td>
<td>
<?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>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "opentogoogle", $config->opentogoogle, "", "", "");
?>
</td>
<td>
<?php print_string("configopentogoogle") ?>
</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>
</tr>
</table>
</form>
+106
View File
@@ -0,0 +1,106 @@
<?PHP // $Id$
// config.php - allows admin to edit all configuration variables
require_once("../config.php");
if ($site = get_site()) { // If false then this is a new installation
require_login();
if (!isadmin()) {
error("Only the admin can use this page");
}
}
/// This is to overcome the "insecure forms paradox"
if (isset($secureforms) and $secureforms == 0) {
$match = "nomatch";
} else {
$match = "";
}
/// If data submitted, then process and store.
if ($config = data_submitted($match)) {
validate_form($config, $err);
if (count($err) == 0) {
print_header();
foreach ($config as $name => $value) {
if ($name == "sessioncookie") {
$value = eregi_replace("[^a-zA-Z]", "", $value);
}
unset($conf);
$conf->name = $name;
$conf->value = $value;
if ($current = get_record("config", "name", $name)) {
$conf->id = $current->id;
if (! update_record("config", $conf)) {
notify("Could not update $name to $value");
}
} else {
if (! insert_record("config", $conf)) {
notify("Error: could not add new variable $name !");
}
}
}
redirect("index.php", get_string("changessaved"), 1);
exit;
} else {
foreach ($err as $key => $value) {
$focus = "form.$key";
}
}
}
/// Otherwise fill and print the form.
if (empty($config)) {
$config = $CFG;
if (!$config->locale = get_field("config", "value", "name", "locale")) {
$config->locale = $CFG->lang;
}
}
if (empty($focus)) {
$focus = "";
}
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$strconfigvariables = get_string("configvariables");
if ($site) {
print_header("$site->shortname: $strconfigvariables", $site->fullname,
"<a href=\"index.php\">$stradmin</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $strconfigvariables", $focus);
print_heading($strconfigvariables);
} else {
print_header();
print_heading($strconfigvariables);
print_simple_box(get_string("configintro"), "center", "50%");
echo "<br />";
}
print_simple_box_start("center", "", "$THEME->cellheading");
include("config.html");
print_simple_box_end();
if ($site) {
print_footer();
}
exit;
/// Functions /////////////////////////////////////////////////////////////////
function validate_form(&$form, &$err) {
// if (empty($form->fullname))
// $err["fullname"] = get_string("missingsitename");
return;
}
?>
+50
View File
@@ -0,0 +1,50 @@
<?PHP // $Id$
require_once("../config.php");
require_login();
if (!isadmin()) {
error("Only admins can access this page");
}
if (!$site = get_site()) {
redirect("index.php");
}
$stradministration = get_string("administration");
$strconfiguration = get_string("configuration");
print_header("$site->shortname: $stradministration: $strconfiguration", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> $strconfiguration");
print_heading($strconfiguration);
$table->align = array ("right", "left");
$table->data[] = array("<b><a href=\"config.php\">".get_string("configvariables")."</a></b>",
get_string("adminhelpconfigvariables"));
$table->data[] = array("<b><a href=\"site.php\">".get_string("sitesettings")."</a></b>",
get_string("adminhelpsitesettings"));
$table->data[] = array("<b><a href=\"../theme/index.php\">".get_string("themes")."</a></b>",
get_string("adminhelpthemes"));
$table->data[] = array("<b><a href=\"lang.php\">".get_string("language")."</a></b>",
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)) {
$table->data[] = array("<b><a href=\"backup.php\">".get_string("backup")."</a></b>",
get_string("adminhelpbackup"));
}
print_table($table);
print_footer($site);
?>
+148
View File
@@ -0,0 +1,148 @@
<?PHP // $Id$
// Admin only script to assign course creator rights to users
require_once("../config.php");
define("MAX_USERS_PER_PAGE", 50);
optional_variable($search, "");
optional_variable($add, "");
optional_variable($remove, "");
if (! $site = get_site()) {
redirect("$CFG->wwwroot/$CFG->admin/index.php");
}
require_login();
if (!isadmin()) {
error("You must be an administrator to use this page.");
}
$primaryadmin = get_admin();
/// assign all of the configurable language strings
$stringstoload = array (
"assigncreators",
"administration",
"existingcreators",
"noexistingcreators",
"potentialcreators",
"nopotentialcreators",
"addcreator",
"removecreator",
"search",
"searchagain",
"users",
"toomanytoshow",
"searchresults"
);
foreach ($stringstoload as $stringtoload){
$strstringtoload = "str" . $stringtoload;
$$strstringtoload = get_string($stringtoload);
}
if ($search) {
$searchstring = $strsearchagain;
} else {
$searchstring = $strsearch;
}
print_header("$site->shortname: $strassigncreators",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> ->
$strassigncreators", "");
/// Add a creator if one is specified
if (!empty($_GET['add'])) {
if (! add_creator($add)) {
error("Could not add that creator!");
}
}
/// Remove a creator if one is specified.
if (!empty($_GET['remove'])) {
if (! remove_creator($remove)) {
error("Could not remove that creator!");
}
}
/// Print a help notice about this page
if (empty($add) and empty($remove) and empty($search)) {
print_simple_box("<center>".get_string("adminhelpassigncreators")."</center>", "center", "50%");
}
/// Get all existing creators
$creators = get_creators();
/// Print the lists of existing and potential creators
echo "<table cellpadding=2 cellspacing=10 align=center>";
echo "<tr><th width=50%>$strexistingcreators</th><th width=50%>$strpotentialcreators</th></tr>";
echo "<tr><td width=50% nowrap valign=top>";
/// First, show existing creators
if (! $creators) {
echo "<p align=center>$strnoexistingcreators</a>";
$creatorlist = "";
} else {
$creatorarray = array();
foreach ($creators as $creator) {
$creatorarray[] = $creator->id;
echo "<p align=right>".fullname($creator, true).", $creator->email &nbsp;&nbsp; ";
echo "<a href=\"creators.php?remove=$creator->id\"
title=\"$strremovecreator\"><img src=\"../pix/t/right.gif\"
border=0></a>";
echo "</p>";
}
$creatorlist = implode(",",$creatorarray);
unset($creatorarray);
}
echo "<td width=50% nowrap valign=top>";
/// Print list of potential creators
$usercount = get_users(false, $search, true, $creatorlist);
if ($usercount == 0) {
echo "<p align=center>$strnopotentialcreators</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow ($usercount) </p>";
} else {
if ($search) {
echo "<p align=center>($strsearchresults : $search)</p>";
}
if (!$users = get_users(true, $search, true, $creatorlist)) {
error("Could not get users!");
}
foreach ($users as $user) {
$fullname = fullname($user, TRUE);
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=creators.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
}
echo "</tr></table>";
print_footer();
?>
+132 -36
View File
@@ -1,25 +1,46 @@
<?PHP // $Id$
// This script looks through all the module directories for cron.php files
// and runs them. These files can contain cleanup functions, email functions
// or anything that needs to be run on a regular basis.
//
// This file is best run from cron on the host system (ie outside PHP).
// The script can either be invoked via the web server or via a standalone
// version of PHP compiled for CGI.
//
// eg wget -q -O /dev/null 'http://moodle.somewhere.edu/admin/cron.php'
// or php /web/moodle/admin/cron.php
/// This script looks through all the module directories for cron.php files
/// and runs them. These files can contain cleanup functions, email functions
/// or anything that needs to be run on a regular basis.
///
/// This file is best run from cron on the host system (ie outside PHP).
/// The script can either be invoked via the web server or via a standalone
/// version of PHP compiled for CGI.
///
/// eg wget -q -O /dev/null 'http://moodle.somewhere.edu/admin/cron.php'
/// or php /web/moodle/admin/cron.php
require("../config.php");
$FULLME = "cron";
echo "<PRE>\n";
$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");
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";
$timenow = time();
echo "Server Time: ".date('r',$timenow)."\n\n";
// Run all cron jobs for each module
/// Run all cron jobs for each module
if ($mods = get_records_sql("SELECT * FROM modules WHERE cron > 0 AND (($timenow - lastcron) > cron)")) {
if ($mods = get_records_select("modules", "cron > 0 AND (($timenow - lastcron) > cron)")) {
foreach ($mods as $mod) {
$libfile = "$CFG->dirroot/mod/$mod->name/lib.php";
if (file_exists($libfile)) {
@@ -36,42 +57,117 @@
}
}
/// Run all core cron jobs, but not every time since they aren't too important.
/// These don't have a timer to reduce load, so we'll use a random number
/// to randomly choose the percentage of times we should run these jobs.
// Unenrol users who haven't logged in for $CFG->longtimenosee
srand ((double) microtime() * 10000000);
$random100 = rand(0,100);
if ($CFG->longtimenosee) { // value in days
$cutofftime = $timenow - ($CFG->longtimenosee * 3600 * 24);
if ($users = get_records_sql("SELECT u.* FROM user u, user_students s
WHERE lastaccess > '0' AND
lastaccess < '$cutofftime' AND
u.id = s.user GROUP BY u.id")) {
foreach ($users as $user) {
if (delete_records("user_students", "user", $user->id)) {
if ($random100 < 20) { // Approximately 20% of the time.
echo "Running clean-up tasks...\n";
// Delete other things ... this should be modular than it is right now:
delete_records("forum_subscriptions", "user", $user->id);
/// Unenrol users who haven't logged in for $CFG->longtimenosee
echo "Deleted student enrolment for $user->firstname $user->lastname ($user->id)\n";
if ($CFG->longtimenosee) { // value in days
$longtime = $timenow - ($CFG->longtimenosee * 3600 * 24);
if ($students = get_users_longtimenosee($longtime)) {
foreach ($students as $student) {
if (unenrol_student($student->userid, $student->course)) {
echo "Deleted student enrolment for user $student->userid from course $student->course\n";
}
}
}
}
/// Delete users who haven't confirmed within required period
$oneweek = $timenow - ($CFG->deleteunconfirmed * 3600);
if ($users = get_users_unconfirmed($oneweek)) {
foreach ($users as $user) {
if (delete_records("user", "id", $user->id)) {
echo "Deleted unconfirmed user for ".fullname($user, true)." ($user->id)\n";
}
}
}
/// Delete duplicate enrolments (don't know what causes these yet - expired sessions?)
if ($users = get_records_select("user_students", "userid > 0 GROUP BY course, userid ".
"HAVING count(*) > 1", "", "*,count(*)")) {
foreach ($users as $user) {
delete_records_select("user_students", "userid = '$user->userid' ".
"AND course = '$user->course' AND id <> '$user->id'");
}
}
/// Delete old logs to save space (this might need a timer to slow it down...)
if (!empty($CFG->loglifetime)) { // value in days
$loglifetime = $timenow - ($CFG->loglifetime * 3600 * 24);
delete_records_select("log", "time < '$loglifetime'");
}
/// Delete old cached texts
if (!empty($CFG->cachetext)) { // Defined in config.php
$cachelifetime = time() - $CFG->cachetext;
delete_records_select("cache_text", "timemodified < '$cachelifetime'");
}
}
if (file_exists("$CFG->dataroot/cronextra.php")) {
include("$CFG->dataroot/cronextra.php");
}
// Delete users who haven't confirmed within seven days
$cutofftime = $timenow - (7 * 24 * 3600);
if ($users = get_records_sql("SELECT * FROM user
WHERE confirmed = '0' AND
firstaccess > '0' AND
firstaccess < '$cutofftime'")) {
foreach ($users as $user) {
if (delete_records("user", "id", $user->id)) {
echo "Deleted unconfirmed user for $user->firstname $user->lastname ($user->id)\n";
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);
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") 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();
if (! schedule_backup_cron()) {
echo "Something went wrong while performing backup tasks!!!\n";
} else {
echo "Backup tasks finished\n";
}
}
}
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());
echo "Execution took ".$difftime." seconds\n";
?>
+36
View File
@@ -0,0 +1,36 @@
<?PHP // $Id$
// dbperformance.php - shows latest ADOdb stats for the current server
require_once("../config.php");
require_login();
if (!isadmin()) {
error("Only the admin can use this page");
}
$strdatabaseperformance = get_string("databaseperformance");
$stradministration = get_string("administration");
$site = get_site();
if (isset($topframe)) {
print_header("$site->shortname: $strdatabaseperformance", "$site->fullname",
"<a target=\"$CFG->framename\" href=\"index.php\">$stradministration</a> -> Database performance");
exit;
}
if (isset($bottomframe) or isset($_GET['do'])) {
$perf =&NewPerfMonitor($db);
$perf->UI($pollsecs=5);
exit;
}
?>
<head>
<title><?php echo "$site->shortname: $strdatabaseperformance" ?></title>
</head>
<frameset rows="80,*">
<frame src="dbperformance.php?topframe=true">
<frame src="dbperformance.php?bottomframe=true">
</frameset>
+63
View File
@@ -0,0 +1,63 @@
<?PHP //$Id$
// Deletes the moodledata directory, COMPLETELY!!
// BE VERY CAREFUL USING THIS!
require_once("../config.php");
require_login();
if (!isadmin()) {
error("You must be admin to use this script!");
}
$deletedir = $CFG->dataroot; // The directory to delete!
if (!$sure) {
notice_yesno ("Are you completely sure you want to delete everything inside the directory $deletedir ?", "delete.php?sure=yes", "index.php");
exit;
}
if (!$reallysure) {
notice_yesno ("Are you REALLY REALLY completely sure you want to delete everything inside the directory $deletedir (this includes all user images, and any other course files that have been created) ?", "delete.php?sure=yes&reallysure=yes", "index.php");
exit;
}
/// OK, here goes ...
delete_subdirectories($deletedir);
echo "<H1 align=center>Done!</H1>";
print_continue($CFG->wwwroot);
exit;
function delete_subdirectories($rootdir) {
$dir = opendir($rootdir);
while ($file = readdir($dir)) {
if ($file != "." and $file != "..") {
$fullfile = "$rootdir/$file";
if (filetype($fullfile) == "dir") {
delete_subdirectories($fullfile);
echo "Deleting $fullfile ... ";
if (rmdir($fullfile)) {
echo "Done.<BR>";
} else {
echo "FAILED.<BR>";
}
} else {
echo "Deleting $fullfile ... ";
if (unlink("$fullfile")) {
echo "Done.<BR>";
} else {
echo "FAILED.<BR>";
}
}
}
}
closedir($dir);
}
?>
+139
View File
@@ -0,0 +1,139 @@
<?php print_simple_box_start("center", "", "$THEME->cellheading"); ?>
<form name="filters" id="filters" method="post" action="filters.php">
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top"><div align="right">
<br />
<input name="up" type="submit" id="up" value="&uarr;" />
<br />
<input name="down" type="submit" id="down" value="&darr;" />
<br />
</div></td>
<td valign="top">
<?php p($stractive) ?>
<br />
<select name="iselect" size="20" id="iselect"
onclick="document.filters.add.disabled=true;
document.filters.remove.disabled=false;
document.filters.uselect.selectedIndex=-1;">
<?php
$runscript = "";
foreach ($installedfilters as $filter) {
if ($selectedfilter == $filter) {
$selected = " selected ";
$runscript = "eval(\"document.filters.add.disabled=true\");
eval(\"document.filters.remove.disabled=false\");
eval(\"document.filters.uselect.selectedIndex=-1\");";
} else {
$selected = "";
}
echo "<option value=\"$filter\" $selected>".$allfilters[$filter]."</option>";
}
?>
</select></td>
<td valign="top">
<br />
<input name="add" type="submit" id="add" value="&larr;" />
<br />
<input name="remove" type="submit" id="remove" value="&rarr;" />
<br />
</td>
<td valign="top">
<?php p($strinactive) ?>
<br />
<select name="uselect" size="20" id="select"
onclick="document.filters.add.disabled=false;
document.filters.remove.disabled=true;
document.filters.iselect.selectedIndex=-1;">
<?php
foreach ($uninstalledfilters as $filter) {
if ($selectedfilter == $filter) {
$selected = " selected ";
$runscript = "eval(\"document.filters.add.disabled=false\");
eval(\"document.filters.remove.disabled=true\");
eval(\"document.filters.iselect.selectedIndex=-1\");";
} else {
$selected = "";
}
echo "<option value=\"$filter\" $selected>".$allfilters[$filter]."</option>";
}
?>
</select></td>
</tr>
</table>
</form>
<script language="Javascript">
<!--
<?php echo $runscript ?>
-->
</script>
<?php print_simple_box_end(); ?>
<br />
<br />
<?php print_simple_box_start("center", "", "$THEME->cellheading"); ?>
<form name="options" id="options" method="post" action="filters.php">
<input type="hidden" name="options" value="1">
<table cellpadding="20">
<tr valign=top>
<td nowrap="nowrap" align="right"><?php p($strcachetext) ?>:</td>
<td>
<?php
unset($options);
$options[10800] = get_string('numhours', '', 3);
$options[7200] = get_string('numhours', '', 2);
$options[3600] = get_string('numhours', '', 1);
$options[2700] = get_string('numminutes', '', 45);
$options[1800] = get_string('numminutes', '', 30);
$options[900] = get_string('numminutes', '', 15);
$options[600] = get_string('numminutes', '', 10);
$options[540] = get_string('numminutes', '', 9);
$options[480] = get_string('numminutes', '', 8);
$options[420] = get_string('numminutes', '', 7);
$options[360] = get_string('numminutes', '', 6);
$options[300] = get_string('numminutes', '', 5);
$options[240] = get_string('numminutes', '', 4);
$options[180] = get_string('numminutes', '', 3);
$options[120] = get_string('numminutes', '', 2);
$options[60] = get_string('numminutes', '', 1);
$options[30] = get_string('numseconds', '', 30);
$options[0] = get_string('no');
choose_from_menu ($options, "cachetext", $CFG->cachetext, "", "", "");
?>
</td>
<td>
<?php p($strconfigcachetext) ?>
</td>
</tr>
<tr valign=top>
<td nowrap="nowrap" align="right"><?php p($strfilteruploadedfiles) ?>:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
$options[1] = get_string('yes');
choose_from_menu ($options, "filteruploadedfiles", $CFG->filteruploadedfiles, "", "", "");
?>
</td>
<td>
<?php p($strconfigfilteruploadedfiles) ?>
</td>
</tr>
<tr valign=top>
<td>&nbsp;</td>
<td><input type="submit" value="<?php print_string("savechanges") ?>"></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
<?php print_simple_box_end(); ?>
+170
View File
@@ -0,0 +1,170 @@
<?PHP // $Id$
// Allows the admin to create, delete and rename course categories
require_once("../config.php");
optional_variable($iselect);
optional_variable($uselect);
optional_variable($add);
optional_variable($remove);
optional_variable($up);
optional_variable($down);
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");
$strmanagefilters = get_string("managefilters");
$strversion = get_string("version");
$strsettings = get_string("settings");
$strup = get_string("up");
$strdown = get_string("down");
$stractive = get_string("active");
$strinactive = get_string("inactive");
$strcachetext = get_string("cachetext", "admin");
$strconfigcachetext = get_string("configcachetext");
$strfilteruploadedfiles = get_string("filteruploadedfiles", "admin");
$strconfigfilteruploadedfiles = get_string("configfilteruploadedfiles");
print_header("$site->shortname: $strmanagefilters", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $strmanagefilters");
print_heading($strmanagefilters);
/// Make a list of all available filters and the best names for them we can find
$allfilters = array();
$filterlocations = array("mod", "filter");
foreach ($filterlocations as $filterlocation) {
$plugins = get_list_of_plugins($filterlocation);
foreach ($plugins as $key => $plugin) {
if (is_readable("$CFG->dirroot/$filterlocation/$plugin/filter.php")) {
$name = trim(get_string("filtername", $plugin));
if (empty($name) or $name == "[[filtername]]") {
$name = $plugin;
}
$allfilters["$filterlocation/$plugin"] = $name;
}
}
}
/// Make an array of all the currently installed filters
$installedfilters = array();
if (!empty($CFG->textfilters)) {
$installedfilters = explode(',',$CFG->textfilters);
// Do a little cleanup for robustness
foreach ($installedfilters as $key => $installedfilter) {
if (empty($installedfilter)) {
unset($installedfilters[$key]);
set_config("textfilters", implode(',', $installedfilters));
}
}
}
$selectedfilter = "none";
/// If data submitted, then process and store.
if (!empty($options)) {
if ($config = data_submitted()) {
unset($config->options);
foreach ($config as $name => $value) {
set_config($name, $value);
}
}
}
if (!empty($add) and !empty($uselect)) {
$selectedfilter = $uselect;
if (!in_array($selectedfilter, $installedfilters)) {
$installedfilters[] = $selectedfilter;
set_config("textfilters", implode(',', $installedfilters));
}
} else if (!empty($remove) and !empty($iselect)) {
$selectedfilter = $iselect;
foreach ($installedfilters as $key => $installedfilter) {
if ($installedfilter == $selectedfilter) {
unset($installedfilters[$key]);
}
}
set_config("textfilters", implode(',', $installedfilters));
} else if ((!empty($up) or !empty($down)) and !empty($iselect)) {
if (!empty($up)) {
if ($allfilters[$iselect]) {
foreach ($installedfilters as $key => $installedfilter) {
if ($installedfilter == $iselect) {
$movefilter = $key;
break;
}
$swapfilter = $key;
}
}
}
if (!empty($down)) {
if ($allfilters[$iselect]) {
$choosenext = false;
foreach ($installedfilters as $key => $installedfilter) {
if ($choosenext) {
$swapfilter = $key;
break;
}
if ($installedfilter == $iselect) {
$movefilter = $key;
$choosenext = true;
}
}
}
}
if (isset($swapfilter) and isset($movefilter)) {
$tempfilter = $installedfilters[$swapfilter];
$installedfilters[$swapfilter] = $installedfilters[$movefilter];
$installedfilters[$movefilter] = $tempfilter;
set_config("textfilters", implode(',', $installedfilters));
}
$selectedfilter = $iselect;
}
/// Make an array of all the currently uninstalled filters
$uninstalledfilters = array();
foreach ($allfilters as $filter => $name) {
$installed = false;
foreach ($installedfilters as $installedfilter) {
if ($installedfilter == $filter) {
$installed = true;
}
}
if (!$installed) {
$uninstalledfilters[] = $filter;
}
}
/// Print the current form
include("filters.html");
print_footer();
?>
+319 -59
View File
@@ -1,37 +1,116 @@
<?PHP // $Id$
require("../config.php");
/// Check that config.php exists
if (!file_exists("../config.php")) {
echo "<H2 align=center>You need to create a config.php.<BR>
See the <A HREF=\"http://moodle.com/doc/?frame=install.html\">installation instructions</A>.</H2>";
die;
}
require_once("../config.php");
/// Check that PHP is of a sufficient version
if (!check_php_version("4.1.0")) {
$version = phpversion();
print_heading("Sorry, Moodle requires PHP 4.1.0 or later (currently using version $version)");
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");
}
if (ini_get_bool('magic_quotes_runtime')) {
error("The PHP server variable 'magic_quotes_runtime' should be Off - $documentationlink");
}
if (!ini_get_bool('file_uploads')) {
error("The PHP server variable 'file_uploads' is not turned On - $documentationlink");
}
/// Check that config.php has been edited
if ($CFG->wwwroot == "http://example.com/moodle") {
error("Moodle has not been configured yet. You need to to edit config.php first.");
}
// Check databases and modules and install as needed.
if (! $db->Metatables() ) {
if (!$agreelicence) {
/// Check settings in config.php
$dirroot = dirname(realpath("../index.php"));
if (!empty($dirroot) and $dirroot != $CFG->dirroot) {
error("Please fix your settings in config.php:
<P>You have:
<P>\$CFG->dirroot = \"".addslashes($CFG->dirroot)."\";
<P>but it should be:
<P>\$CFG->dirroot = \"".addslashes($dirroot)."\";",
"./");
}
/// Set some necessary variables during set-up to avoid PHP warnings later on this page
if (!isset($CFG->framename)) {
$CFG->framename = "_top";
}
if (!isset($CFG->release)) {
$CFG->release = "";
}
if (!isset($CFG->version)) {
$CFG->version = "";
}
/// Turn off time limits, sometimes upgrades can be slow.
@set_time_limit(0);
/// Check if the main tables have been installed yet or not.
if (! $tables = $db->Metatables() ) { // No tables yet at all.
$maintables = false;
} else { // Check for missing main tables
$maintables = true;
$mtables = array("config", "course", "course_categories", "course_modules",
"course_sections", "log", "log_display", "modules",
"user", "user_admins", "user_students", "user_teachers");
foreach ($mtables as $mtable) {
if (!in_array($CFG->prefix.$mtable, $tables)) {
$maintables = false;
break;
}
}
}
if (! $maintables) {
if (empty($agreelicence)) {
$strlicense = get_string("license");
print_header($strlicense, $strlicense, $strlicense);
print_heading("<A HREF=\"http://moodle.com\">Moodle</A> - Modular Object-Oriented Dynamic Learning Environment");
print_header($strlicense, $strlicense, $strlicense, "", "", false, "&nbsp;", "&nbsp;");
print_heading("<A HREF=\"http://moodle.org\">Moodle</A> - Modular Object-Oriented Dynamic Learning Environment");
print_heading(get_string("copyrightnotice"));
print_simple_box_start("CENTER");
print_simple_box_start("center");
echo text_to_html(get_string("gpl"));
print_simple_box_end();
echo "<BR>";
echo "<br />";
notice_yesno(get_string("doyouagree"), "index.php?agreelicence=true",
"http://www.gnu.org/copyleft/gpl.html");
"http://moodle.org/doc/?frame=licence.html");
exit;
}
$strdatabasesetup = get_string("databasesetup");
$strdatabasesuccess = get_string("databasesuccess");
print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup);
print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup, "", "", false, "&nbsp;", "&nbsp;");
if (file_exists("$CFG->libdir/db/$CFG->dbtype.sql")) {
$db->debug = true;
if (modify_database("$CFG->libdir/db/$CFG->dbtype.sql")) {
$db->debug = false;
notify($strdatabasesuccess);
notify($strdatabasesuccess, "green");
} else {
$db->debug = false;
error("Error: Main databases NOT set up successfully");
@@ -43,25 +122,27 @@
die;
}
// Check version of Moodle code on disk compared with database
// and upgrade if possible.
/// Check version of Moodle code on disk compared with database
/// and upgrade if possible.
include_once("$CFG->dirroot/version.php"); # defines $version and upgrades
include_once("$CFG->dirroot/version.php"); # defines $version
include_once("$CFG->dirroot/lib/db/$CFG->dbtype.php"); # defines upgrades
if ($dversion = get_field("config", "value", "name", "version")) {
if ($version > $dversion) { // upgrade
$a->oldversion = $dversion;
if ($CFG->version) {
if ($version > $CFG->version) { // upgrade
$a->oldversion = $CFG->version;
$a->newversion = $version;
$strdatabasechecking = get_string("databasechecking", "", $a);
$strdatabasesuccess = get_string("databasesuccess");
print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades);
notify($strdatabasechecking);
print_header($strdatabasechecking, $strdatabasechecking, $strdatabasechecking,
"", "", false, "&nbsp;", "&nbsp;");
print_heading($strdatabasechecking);
$db->debug=true;
if (upgrade_moodle($dversion)) {
if (main_upgrade($CFG->version)) {
$db->debug=false;
if (set_field("config", "value", "$version", "name", "version")) {
notify($strdatabasesuccess);
print_continue("$CFG->wwwroot");
if (set_config("version", $version)) {
notify($strdatabasesuccess, "green");
print_continue("index.php");
die;
} else {
notify("Upgrade failed! (Could not update version in config table)");
@@ -70,22 +151,22 @@
$db->debug=false;
notify("Upgrade failed! See /version.php");
}
} else if ($version < $dversion) {
} else if ($version < $CFG->version) {
notify("WARNING!!! The code you are using is OLDER than the version that made these databases!");
}
} else {
$dversion->name = "version";
$dversion->value = $version;
$strdatabaseupgrades = get_string("databaseupgrades");
print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades);
if (insert_record("config", $dversion)) {
notify("You are currently using Moodle version $version");
$strcurrentversion = get_string("currentversion");
print_header($strcurrentversion, $strcurrentversion, $strcurrentversion,
"", "", false, "&nbsp;", "&nbsp;");
if (set_config("version", $version)) {
print_heading("You are currently using Moodle version $version (Release $release)");
print_continue("index.php");
die;
} else {
$db->debug=true;
if (upgrade_moodle(0)) {
if (main_upgrade(0)) {
print_continue("index.php");
} else {
error("A problem occurred inserting current version into databases");
@@ -94,32 +175,92 @@
}
}
/// Updated human-readable release version if necessary
// Find and check all modules and load them up or upgrade them if necessary
if ($release <> $CFG->release) { // Update the release version
$strcurrentrelease = get_string("currentrelease");
print_header($strcurrentrelease, $strcurrentrelease, $strcurrentrelease, "", "", false, "&nbsp;", "&nbsp;");
print_heading("Moodle $release");
if (!set_config("release", $release)) {
notify("ERROR: Could not update release version in database!!");
}
print_continue("index.php");
print_simple_box_start("CENTER");
include("$CFG->dirroot/lang/en/docs/release.html");
print_simple_box_end();
print_continue("index.php");
exit;
}
/// 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") ) {
error("No modules installed!");
}
foreach ($mods as $mod) {
if ($mod == "NEWMODULE") { // Someone has unzipped the template, ignore it
continue;
}
$fullmod = "$CFG->dirroot/mod/$mod";
unset($module);
include_once("$fullmod/version.php"); # defines $module with version etc
if ( is_readable("$fullmod/version.php")) {
include_once("$fullmod/version.php"); # defines $module with version etc
} else {
notify("Module $mod: $fullmod/version.php was not readable");
continue;
}
if ( is_readable("$fullmod/db/$CFG->dbtype.php")) {
include_once("$fullmod/db/$CFG->dbtype.php"); # defines upgrading function
} else {
notify("Module $mod: $fullmod/db/$CFG->dbtype.php was not readable");
continue;
}
if (!isset($module)) {
continue;
}
if (!empty($module->requires)) {
if ($module->requires > $CFG->version) {
$info->modulename = $mod;
$info->moduleversion = $module->version;
$info->currentmoodle = $CFG->version;
$info->requiremoodle = $module->requires;
notify(get_string('modulerequirementsnotmet', 'error', $info));
unset($info);
continue;
}
}
$module->name = $mod; // The name MUST match the directory
if ($currmodule = get_record("modules", "name", $module->name)) {
if ($currmodule->version == $module->version) {
// do nothing
} else if ($currmodule->version < $module->version) {
notify("$module->name module needs upgrading");
if (empty($updated_modules)) {
$strmodulesetup = get_string("modulesetup");
print_header($strmodulesetup, $strmodulesetup, $strmodulesetup, "", "", false, "&nbsp;", "&nbsp;");
}
print_heading("$module->name module needs upgrading");
$upgrade_function = $module->name."_upgrade";
if (function_exists($upgrade_function)) {
$db->debug=true;
@@ -130,7 +271,8 @@
if (! update_record("modules", $module)) {
error("Could not update $module->name record in modules table!");
}
notify(get_string("modulesuccess", "", $module->name));
notify(get_string("modulesuccess", "", $module->name), "green");
echo "<HR>";
} else {
$db->debug=false;
notify("Upgrading $module->name from $currmodule->version to $module->version FAILED!");
@@ -142,16 +284,19 @@
}
} else { // module not installed yet, so install it
if (!$updated_modules) {
if (empty($updated_modules)) {
$strmodulesetup = get_string("modulesetup");
print_header($strmodulesetup, $strmodulesetup, $strmodulesetup);
print_header($strmodulesetup, $strmodulesetup, $strmodulesetup, "", "", false, "&nbsp;", "&nbsp;");
}
print_heading($module->name);
$updated_modules = true;
$db->debug = true;
@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)) {
notify(get_string("modulesuccess", "", $module->name));
notify(get_string("modulesuccess", "", $module->name), "green");
echo "<HR>";
} else {
error("$module->name module could not be added to the module list!");
}
@@ -161,43 +306,158 @@
}
}
if ($updated_modules) {
if (!empty($updated_modules)) {
print_continue("index.php");
die;
}
// Set up the overall site name etc.
if (! $site = get_site()) {
redirect("$CFG->wwwroot/admin/site.php");
/// Insert default values for any important configuration variables
include_once("$CFG->dirroot/lib/defaults.php");
foreach ($defaults as $name => $value) {
if (!isset($CFG->$name)) {
$CFG->$name = $value;
set_config($name, $value);
$configchange = true;
}
}
/// If any new configurations were found then send to the config page to check
if (!empty($configchange)) {
redirect("config.php");
}
/// Set up the overall site name etc.
if (! $site = get_site()) {
redirect("site.php");
}
/// Set up the admin user
if (! record_exists("user_admins")) { // No admin user yet
redirect("user.php");
}
/// Check for valid admin user
require_login();
if (!isadmin()) {
if (! record_exists_sql("SELECT * FROM user_admins")) { // No admin user yet
redirect("$CFG->wwwroot/admin/user.php");
}
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/");
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
// At this point, the databases exist, and the user is an admin
/// At this point everything is set up and the user is an admin, so print menu
$stradministration = get_string("administration");
print_header("$site->fullname: $stradministration","$site->fullname: $stradministration", "$stradministration");
print_header("$site->shortname: $stradministration","$site->fullname", "$stradministration");
print_simple_box_start("center", "100%", "$THEME->cellcontent2", 20);
print_heading($stradministration);
$table->head = array (get_string("site"), get_string("courses"), get_string("users"));
$table->align = array ("CENTER", "CENTER", "CENTER");
$table->data[0][0] = "<P><A HREF=\"site.php\">".get_string("sitesettings")."</A></P>".
"<P><A HREF=\"../course/log.php?id=$site->id\">".get_string("sitelogs")."</A></P>".
"<P><A HREF=\"../theme/index.php\">".get_string("choosetheme")."</A></P>";
$table->data[0][1] = "<P><A HREF=\"../course/edit.php\">".get_string("addnewcourse")."</A></P>".
"<P><A HREF=\"../course/teacher.php\">".get_string("assignteachers")."</A></P>".
"<P><A HREF=\"../course/delete.php\">".get_string("deletecourse")."</A></P>";
$table->data[0][2] = "<P><A HREF=\"user.php?newuser=true\">".get_string("addnewuser")."</A></P>".
"<P><A HREF=\"user.php\">".get_string("edituser")."</A></P>";
if (!empty($CFG->upgrade)) { // Print notice about extra upgrading that needs to be done
print_simple_box(get_string("upgrade$CFG->upgrade", "admin",
"$CFG->wwwroot/$CFG->admin/upgrade$CFG->upgrade.php"), "center");
print_spacer(10,10);
}
$table->tablealign = "right";
$table->align = array ("right", "left");
$table->wrap = array ("nowrap", "nowrap");
$table->cellpadding = 4;
$table->cellspacing = 3;
$table->width = "40%";
$configdata = "<font size=+1>&nbsp;</font><a href=\"config.php\">".get_string("configvariables")."</a> - <font size=1>".
get_string("adminhelpconfigvariables")."</font><br />";
$configdata .= "<font size=+1>&nbsp;</font><a href=\"site.php\">".get_string("sitesettings")."</a> - <font size=1>".
get_string("adminhelpsitesettings")."</font><br />";
$configdata .= "<font size=+1>&nbsp;</font><a href=\"../theme/index.php\">".get_string("themes")."</a> - <font size=1>".
get_string("adminhelpthemes")."</font><br />";
$configdata .= "<font size=+1>&nbsp;</font><a href=\"lang.php\">".get_string("language")."</a> - <font size=1>".
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)) {
$configdata .= "<font size=+1>&nbsp;</font><a href=\"backup.php\">".get_string("backup")."</a> - <font size=1>".
get_string("adminhelpbackup")."</font><br />";
}
$table->data[] = array("<font size=+1><b><a href=\"configure.php\">".get_string("configuration")."</a></b>",
$configdata);
$userdata = "<font size=+1>&nbsp;</font><a href=\"auth.php\">".get_string("authentication")."</a> - <font size=1>".
get_string("adminhelpauthentication")."</font><br />";
if (is_internal_auth()) {
$userdata .= "<font size=+1>&nbsp;</font><a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true\">".
get_string("addnewuser")."</a> - <font size=1>".
get_string("adminhelpaddnewuser")."</font><br />";
$userdata .= "<font size=+1>&nbsp;</font><a href=\"$CFG->wwwroot/$CFG->admin/uploaduser.php\">".
get_string("uploadusers")."</a> - <font size=1>".
get_string("adminhelpuploadusers")."</font><br />";
}
$userdata .= "<font size=+1>&nbsp;</font><a href=\"user.php\">".get_string("edituser")."</a> - <font size=1>".
get_string("adminhelpedituser")."</font><br />";
$userdata .= "<font size=+1>&nbsp;</font><a href=\"admin.php\">".get_string("assignadmins")."</a> - <font size=1>".
get_string("adminhelpassignadmins")."</font><br />";
$userdata .= "<font size=+1>&nbsp;</font><a href=\"creators.php\">".get_string("assigncreators")."</a> - <font size=1>".
get_string("adminhelpassigncreators")."</font><br />";
$userdata .= "<font size=+1>&nbsp;</font><a href=\"../course/index.php?edit=on\">".get_string("assignteachers")."</a> - <font size=1>".
get_string("adminhelpassignteachers").
" <img src=\"../pix/t/user.gif\" height=11 width=11></font><br />";
$userdata .= "<font size=+1>&nbsp;</font><a href=\"../course/index.php?edit=off\">".get_string("assignstudents")."</a> - <font size=1>".
get_string("adminhelpassignstudents")."</font>";
$table->data[] = array("<font size=+1><b><a href=\"users.php\">".get_string("users")."</a></b>", $userdata);
$table->data[] = array("<font size=+1><b><a href=\"../course/index.php?edit=on\">".get_string("courses")."</a></b>",
"<font size=+1>&nbsp;</font>".get_string("adminhelpcourses"));
$table->data[] = array("<font size=+1><b><a href=\"../course/log.php?id=$site->id\">".get_string("logs")."</a></b>",
"<font size=+1>&nbsp;</font>".get_string("adminhelplogs"));
$table->data[] = array("<font size=+1><b><a href=\"../files/index.php?id=$site->id\">".get_string("sitefiles")."</a></b>",
"<font size=+1>&nbsp;</font>".get_string("adminhelpsitefiles"));
if (file_exists("$CFG->dirroot/$CFG->admin/$CFG->dbtype")) {
$table->data[] = array("<font size=+1><b><a href=\"$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a></b>",
"<font size=+1>&nbsp;</font>".get_string("adminhelpmanagedatabase"));
}
print_table($table);
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO REMOVE OR MODIFY THE COPYRIGHT NOTICE BELOW ////
$copyrighttext = "<a href=\"http://moodle.org/\">Moodle</a> ".
"<a href=\"../doc/?frame=release.html\">$CFG->release</a> ($CFG->version)<br />".
"Copyright &copy; 1999-2004 Martin Dougiamas<br />".
"<a href=\"../doc/?frame=licence.html\">GNU Public License</a>";
echo "<center><p><font size=1>$copyrighttext</font></p></center>";
//////////////////////////////////////////////////////////////////////////////////////////////////
echo "<table border=0 align=center width=100%><tr>";
echo "<td align=center width=33%>";
print_single_button("$CFG->wwwroot/doc", NULL, get_string("documentation"));
echo "</td>";
echo "<td align=center width=33%>";
print_single_button("phpinfo.php", NULL, get_string("phpinfo"));
echo "</td>";
echo "<td align=center width=33%>";
print_single_button("register.php", NULL, get_string("registration"));
echo "</td>";
echo "<tr></table>";
print_simple_box_end();
print_footer($site);
print_footer();
?>
+304
View File
@@ -0,0 +1,304 @@
<?PHP // $Id$
require_once("../config.php");
optional_variable($mode, "");
optional_variable($currentfile, "moodle.php");
require_login();
if (!isadmin()) {
error("You need to be admin to edit this page");
}
if (! $site = get_site()) {
error("Site not defined!");
}
$stradministration = get_string("administration");
$strconfiguration = get_string("configuration");
$strlanguage = get_string("language");
$strcurrentlanguage = get_string("currentlanguage");
$strmissingstrings = get_string("missingstrings");
$strcomparelanguage = get_string("comparelanguage");
$strthislanguage = get_string("thislanguage");
switch ($mode) {
case "missing":
$navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strmissingstrings";
$title = $strmissingstrings;
break;
case "compare":
$navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strcomparelanguage";
$title = $strcomparelanguage;
break;
default:
$title = $strlanguage;
$navigation = $strlanguage;
break;
}
$currentlang = current_language();
print_header("$site->shortname: $title", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $navigation");
if (!$mode) {
$currlang = current_language();
$langs = get_list_of_languages();
echo "<table align=center><tr><td align=\"right\">";
echo "<b>$strcurrentlanguage:</b>";
echo "</td><td>";
echo popup_form ("$CFG->wwwroot/admin/lang.php?lang=", $langs, "chooselang", $currlang, "", "", "", true);
echo "</td></tr></table>";
print_heading("<a href=\"lang.php?mode=missing\">$strmissingstrings</a>");
print_heading("<a href=\"lang.php?mode=compare\">$strcomparelanguage</a>");
echo "<center><hr noshade size=1>";
$options["lang"] = $currentlang;
print_single_button("http://moodle.org/download/lang/", $options, get_string("latestlanguagepack"));
echo "</center>";
print_footer();
exit;
}
// Get a list of all the root files in the English directory
$langdir = "$CFG->dirroot/lang/$currentlang";
$enlangdir = "$CFG->dirroot/lang/en";
if (! $stringfiles = get_directory_list($enlangdir, "", false)) {
error("Could not find English language pack!");
}
foreach ($stringfiles as $key => $file) {
if (substr($file, -4) != ".php") {
unset($stringfiles[$key]);
}
}
if ($mode == "missing") {
// For each file, check that a counterpart exists, then check all the strings
foreach ($stringfiles as $file) {
if (!file_exists("$langdir/$file")) {
if (!touch("$langdir/$file")) {
echo "<p><font color=red>".get_string("filemissing", "", "$langdir/$file")."</font></p>";
continue;
}
}
unset($string);
include("$enlangdir/$file");
$enstring = $string;
unset($string);
include("$langdir/$file");
$first = true;
foreach ($enstring as $key => $value) {
if (!isset($string[$key]) or $string[$key] == "") {
$value = htmlspecialchars($value);
$value = str_replace("$"."a", "\\$"."a", $value);
$value = str_replace("%%","%",$value);
if ($first) {
echo "</PRE><HR><P><B>".get_string("stringsnotset","","$langdir/$file")."</B></P><PRE>";
$first = false;
$somethingfound = true;
}
echo "$"."string['$key'] = \"$value\";<BR>";
}
}
}
if (! $files = get_directory_list("$CFG->dirroot/lang/en/help", "CVS")) {
error("Could not find English language help files!");
}
foreach ($files as $filekey => $file) { // check all the help files.
if (!file_exists("$langdir/help/$file")) {
echo "<p><font color=red>".get_string("filemissing", "", "$langdir/help/$file")."</font></p>";
$somethingfound = true;
continue;
}
}
if (! $files = get_directory_list("$CFG->dirroot/lang/en/docs", "CVS")) {
error("Could not find English language docs files!");
}
foreach ($files as $filekey => $file) { // check all the docs files.
if (!file_exists("$langdir/docs/$file")) {
echo "<P><FONT COLOR=red>".get_string("filemissing", "", "$langdir/docs/$file")."</FONT></P>";
$somethingfound = true;
continue;
}
}
if (!empty($somethingfound)) {
print_continue("lang.php");
} else {
notice(get_string("languagegood"), "lang.php");
}
} else if ($mode == "compare") {
if (isset($_POST['currentfile'])){ // Save a file
$newstrings = $_POST;
unset($newstrings['currentfile']);
if (lang_save_file($langdir, $currentfile, $newstrings)) {
notify(get_string("changessaved")." ($langdir/$currentfile)", "green");
} else {
error("Could not save the file '$currentfile'!", "lang.php?mode=compare&currentfile=$currentfile");
}
}
print_heading_with_help($strcomparelanguage, "langedit");
print_simple_box_start("center", "80%");
echo '<center><font size="2">';
foreach ($stringfiles as $file) {
if ($file == $currentfile) {
echo "<b>$file</b> &nbsp; ";
} else {
echo "<a href=\"lang.php?mode=compare&currentfile=$file\">$file</a> &nbsp; ";
}
}
echo '</font></center>';
print_simple_box_end();
print_heading("$currentfile", "center", 4);
if (!file_exists("$langdir/$currentfile")) {
if (!touch("$langdir/$currentfile")) {
echo "<p><font color=red>".get_string("filemissing", "", "$langdir/$currentfile")."</font></p>";
continue;
}
}
error_reporting(0);
if ($f = fopen("$langdir/$currentfile","r+")) {
$editable = true;
fclose($f);
} else {
$editable = false;
echo "<p><font size=1>".get_string("makeeditable", "", "$langdir/$currentfile")."</font></p>";
}
error_reporting(7);
unset($string);
include("$enlangdir/$currentfile");
$enstring = $string;
ksort($enstring);
unset($string);
include("$langdir/$currentfile");
if ($editable) {
echo "<form name=\"$currentfile\" action=\"lang.php\" method=\"post\">";
}
echo "<table width=\"100%\" cellpadding=2 cellspacing=3 border=0>";
foreach ($enstring as $key => $envalue) {
$envalue = nl2br(htmlspecialchars($envalue));
$envalue = preg_replace('/(\$a\-\&gt;[a-zA-Z0-9]*|\$a)/', '<b>$0</b>', $envalue); // Make variables bold.
$envalue = str_replace("%%","%",$envalue);
$envalue = str_replace("\\","",$envalue); // Delete all slashes
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 = 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 = 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>\n";
if (isset($string[$key])) {
$valuelen = strlen($value);
} else {
$valuelen = strlen($envalue);
}
$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>\n";
} else {
if ($valuelen) {
$cols = $valuelen + 2;
}
echo "<input type=\"text\" name=\"string-$key\" value=\"$value\" size=\"$cols\"></td>";
}
echo "</TD>\n";
} else {
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>$value</td>\n";
}
}
if ($editable) {
echo "<tr><td colspan=2>&nbsp;<td><br />";
echo " <input type=\"hidden\" name=\"currentfile\" value=\"$currentfile\">";
echo " <input type=\"hidden\" name=\"mode\" value=\"compare\">";
echo " <input type=\"submit\" name=\"update\" value=\"".get_string("savechanges").": $currentfile\">";
echo "</td></tr>";
}
echo "</table>";
echo "</form>";
}
print_footer();
//////////////////////////////////////////////////////////////////////
function lang_save_file($path, $file, $strings) {
// Thanks to Petri Asikainen for the original version of code
// used to save language files.
//
// $path is a full pathname to the file
// $file is the file to overwrite.
// $strings is an array of strings to write
global $CFG, $USER;
error_reporting(0);
if (!$f = fopen("$path/$file","w")) {
return false;
}
error_reporting(7);
fwrite($f, "<?PHP // \$Id\$ \n");
fwrite($f, " // $file - created with Moodle $CFG->release ($CFG->version)\n\n\n");
ksort($strings);
foreach ($strings as $key => $value) {
list($id, $stringname) = explode("-",$key);
if ($CFG->lang != "zh_hk" and $CFG->lang != "zh_tw") { // Some MB languages include backslash bytes
$value = str_replace("\\","",$value); // Delete all slashes
}
$value = str_replace("'", "\\'", $value); // Add slashes for '
$value = str_replace('"', "\\\"", $value); // Add slashes for "
$value = str_replace("%","%%",$value); // Escape % characters
$value = str_replace("\r", "",$value); // Remove linefeed characters
if ($id == "string" and $value != ""){
fwrite($f,"\$string['$stringname'] = '$value';\n");
}
}
fwrite($f,"\n?>\n");
fclose($f);
return true;
}
?>
+56
View File
@@ -0,0 +1,56 @@
<?PHP // $Id$
// module.php - allows admin to edit all local configuration variables for a module
require_once("../config.php");
require_login();
if (!isadmin()) {
error("Only an admin can use this page");
}
if (!$site = get_site()) {
error("Site isn't defined!");
}
/// If data submitted, then process and store.
if ($config = data_submitted()) {
print_header();
foreach ($config as $name => $value) {
set_config($name, $value);
}
redirect("$CFG->wwwroot/$CFG->admin/modules.php", get_string("changessaved"), 1);
exit;
}
/// Otherwise print the form.
require_variable($module);
require_once("$CFG->dirroot/mod/$module/lib.php");
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$strmanagemodules = get_string("managemodules");
$strmodulename = get_string("modulename", $module);
print_header("$site->shortname: $strmodulename: $strconfiguration", $site->fullname,
"<a href=\"index.php\">$stradmin</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> ".
"<a href=\"modules.php\">$strmanagemodules</a> -> $strmodulename");
print_heading($strmodulename);
print_simple_box("<center>".get_string("configwarning")."</center>", "center", "50%");
echo "<br />";
print_simple_box_start("center", "", "$THEME->cellheading");
include("$CFG->dirroot/mod/$module/config.html");
print_simple_box_end();
print_footer();
?>
+197
View File
@@ -0,0 +1,197 @@
<?PHP // $Id$
// Allows the admin to create, delete and rename course categories
require_once("../config.php");
require_once("../course/lib.php");
optional_variable($disable);
optional_variable($enable);
optional_variable($delete);
optional_variable($confirm);
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");
$strmanagemodules = get_string("managemodules");
$strdelete = get_string("delete");
$strversion = get_string("version");
$strhide = get_string("hide");
$strshow = get_string("show");
$strsettings = get_string("settings");
$stractivities = get_string("activities");
$stractivitymodule = get_string("activitymodule");
print_header("$site->shortname: $strmanagemodules", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $strmanagemodules");
print_heading($strmanagemodules);
/// If data submitted, then process and store.
if (!empty($hide)) {
if (!$module = get_record("modules", "name", $hide)) {
error("Module doesn't exist!");
}
set_field("modules", "visible", "0", "id", $module->id); // Hide main module
set_field("course_modules", "visible", "0", "module", $module->id); // Hide all related activity modules
}
if (!empty($show)) {
if (!$module = get_record("modules", "name", $show)) {
error("Module doesn't exist!");
}
set_field("modules", "visible", "1", "id", $module->id); // Show main module
set_field("course_modules", "visible", "1", "module", $module->id); // Show all related activity modules
}
if (!empty($delete)) {
$strmodulename = get_string("modulename", "$delete");
if (empty($confirm)) {
notice_yesno(get_string("moduledeleteconfirm", "", $strmodulename),
"modules.php?delete=$delete&confirm=$delete",
"modules.php");
print_footer();
exit;
} else { // Delete everything!!
if ($delete == "forum") {
error("You can not delete the forum module!!");
}
if (!$module = get_record("modules", "name", $delete)) {
error("Module doesn't exist!");
}
// OK, first delete all the relevant instances from all course sections
if ($coursemods = get_records("course_modules", "module", $module->id)) {
foreach ($coursemods as $coursemod) {
if (! delete_mod_from_section($coursemod->id, $coursemod->section)) {
notify("Could not delete the $strmodulename with id = $coursemod->id from section $coursemod->section");
}
}
}
// Now delete all the course module records
if (!delete_records("course_modules", "module", $module->id)) {
notify("Error occurred while deleting all $strmodulename records in course_modules table");
}
// Then delete all the logs
if (!delete_records("log", "module", $module->name)) {
notify("Error occurred while deleting all $strmodulename records in log table");
}
// And log_display information
if (!delete_records("log_display", "module", $module->name)) {
notify("Error occurred while deleting all $strmodulename records in log_display table");
}
// And the module entry itself
if (!delete_records("modules", "name", $module->name)) {
notify("Error occurred while deleting the $strmodulename record from modules table");
}
// Then the tables themselves
if ($tables = $db->Metatables()) {
$prefix = $CFG->prefix.$module->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");
}
}
}
}
rebuild_course_cache(); // Because things have changed
$a->module = $strmodulename;
$a->directory = "$CFG->dirroot/mod/$delete";
notice(get_string("moduledeletefiles", "", $a), "modules.php");
}
}
/// Get and sort the existing modules
if (!$modules = get_records("modules")) {
error("No modules found!!"); // Should never happen
}
foreach ($modules as $module) {
$strmodulename = get_string("modulename", "$module->name");
$modulebyname[$strmodulename] = $module;
}
ksort($modulebyname);
/// Print the table of all modules
if (empty($THEME->custompix)) {
$pixpath = "../pix";
$modpixpath = "../mod";
} else {
$pixpath = "../theme/$CFG->theme/pix";
$modpixpath = "../theme/$CFG->theme/pix/mod";
}
$table->head = array ($stractivitymodule, $stractivities, $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 ($modulebyname as $modulename => $module) {
$icon = "<img src=\"$modpixpath/$module->name/icon.gif\" hspace=10 height=16 width=16 border=0>";
$delete = "<a href=\"modules.php?delete=$module->name\">$strdelete</a>";
if (file_exists("$CFG->dirroot/mod/$module->name/config.html")) {
$settings = "<a href=\"module.php?module=$module->name\">$strsettings</a>";
} else {
$settings = "";
}
$count = count_records("$module->name");
if ($module->visible) {
$visible = "<a href=\"modules.php?hide=$module->name\" title=\"$strhide\">".
"<img src=\"$pixpath/i/hide.gif\" align=\"absmiddle\" height=16 width=16 border=0></a>";
$class = "";
} else {
$visible = "<a href=\"modules.php?show=$module->name\" title=\"$strshow\">".
"<img src=\"$pixpath/i/show.gif\" align=\"absmiddle\" height=16 width=16 border=0></a>";
$class = "class=\"dimmed_text\"";
}
if ($module->name == "forum") {
$delete = "";
$visible = "";
$class = "";
}
$table->data[] = array ("<p $class>$icon $modulename</p>", $count, $module->version, $visible, $delete, $settings);
}
print_table($table);
echo "<br /><br />";
print_footer();
?>
+34
View File
@@ -0,0 +1,34 @@
<?PHP // $Id$
// phpinfo.php - shows phpinfo for the current server
require_once("../config.php");
require_login();
if (!isadmin()) {
error("Only the admin can use this page");
}
if (isset($topframe)) {
$stradministration = get_string("administration");
$site = get_site();
print_header("$site->shortname: phpinfo", "$site->fullname",
"<a target=\"$CFG->framename\" href=\"index.php\">$stradministration</a> -> PHP info");
exit;
}
if (isset($bottomframe)) {
phpinfo();
exit;
}
?>
<head>
<title>PHP info</title>
</head>
<frameset rows="80,*">
<frame src="phpinfo.php?topframe=true">
<frame src="phpinfo.php?bottomframe=true">
</frameset>
+137
View File
@@ -0,0 +1,137 @@
<?PHP // $Id$
// register.php - allows admin to register their site on moodle.org
include("../config.php");
require_login();
if (!isadmin()) {
error("Only the admin can use this page");
}
if (!$site = get_site()) {
redirect("index.php");
}
if (!$admin = get_admin()) {
error("No admins");
}
if (!$admin->country and $CFG->country) {
$admin->country = $CFG->country;
}
if (!$admin->secret) { // secret field hasn't been set yet
$admin->secret = random_string(15);
if (!set_field("user", "secret", $admin->secret, "id", $admin->id)) {
error("Could not set admin's secret string!");
}
}
/// Print headings
$stradministration = get_string("administration");
$strregistration = get_string("registration");
$strregistrationinfo = get_string("registrationinfo");
print_header("$site->shortname: $strregistration", "$site->fullname",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strregistration");
print_heading($strmanagemodules);
print_simple_box($strregistrationinfo, "center", "70%");
echo "<br />";
/// Print the form
print_simple_box_start("center", "", "$THEME->cellheading");
echo "<form name=\"form\" action=\"http://moodle.org/register/\" method=post>\n";
echo "<table cellpadding=9 border=0>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p>Moodle URL:</td>\n";
echo "<td><p>$CFG->wwwroot</td>\n";
echo "<!-- The following hidden variables are to help prevent fake entries being sent. -->\n";
echo "<!-- Together they form a key. If any of these change between updates then the entry -->\n";
echo "<!-- is flagged as a new entry and will be manually checked by the list maintainer -->\n";
echo "<input type=\"hidden\" name=\"url\" value=\"$CFG->wwwroot\">\n";
echo "<input type=\"hidden\" name=\"secret\" value=\"$admin->secret\">\n";
echo "<input type=\"hidden\" name=\"host\" value=\"".$_SERVER["HTTP_HOST"]."\">\n";
echo "<input type=\"hidden\" name=\"lang\" value=\"".current_language()."\">\n";
echo "</td></tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p>".get_string("currentversion").":</td>\n";
echo "<td><p>$CFG->release ($CFG->version)</td>\n";
echo "<input type=\"hidden\" name=\"version\" value=\"$CFG->version\">\n";
echo "<input type=\"hidden\" name=\"release\" value=\"$CFG->release\">\n";
echo "</td></tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p>".get_string("fullsitename").":</td>\n";
echo "<td><p><input size=50 type=\"text\" name=\"sitename\" value=\"$site->fullname\"></td>\n";
echo "</tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p>".get_string("country").":</td>\n";
echo "<td><p>";
choose_from_menu (get_list_of_countries(), "country", $admin->country, get_string("selectacountry")."...", "", "");
echo "</td>\n";
echo "</tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p><a href=\"http://moodle.org/sites\" title=\"See the current list of sites\" target=_blank>".get_string("publicdirectory")."</a>:</td>\n";
echo "<td><p>";
$options[0] = get_string("publicdirectory0");
$options[1] = get_string("publicdirectory1");
$options[2] = get_string("publicdirectory2");
choose_from_menu ($options, "public", "2", "", "", "");
unset($options);
echo "</td>\n";
echo "</tr>\n";
echo "<tr valign=top>\n";
echo "<td colspan=2><hr size=1 noshade>\n";
echo "</tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p>".get_string("administrator").":</td>\n";
echo "<td><p><input size=50 type=\"text\" name=\"adminname\" value=\"".fullname($admin, true)."\"></td>\n";
echo "</tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p>".get_string("email").":</td>\n";
echo "<td><p><input size=50 type=\"text\" name=\"adminemail\" value=\"$admin->email\"></td>\n";
echo "</tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right><p>".get_string("registrationemail")."</a>:</td>\n";
echo "<td><p>\n";
$options[0] = get_string("registrationno");
$options[1] = get_string("registrationyes");
choose_from_menu ($options, "mailme", "1", "", "", "");
unset($options);
echo "</td>\n";
echo "</tr>\n";
echo "<tr valign=top>\n";
echo "<td align=right>&nbsp;</td>\n";
echo "<td><p><input type=\"submit\" value=\"".get_string("registrationsend")."\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</form>\n";
print_simple_box_end();
echo "<br />\n";
print_footer();
?>
+87 -29
View File
@@ -1,31 +1,56 @@
<FORM METHOD="post" action="site.php" NAME="form">
<TABLE cellpadding=9 cellspacing=0 >
<form method="post" action="site.php" name="form" <?php echo $onsubmit ?>>
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><P><? print_string("fullsitename") ?>:</td>
<td><input type="text" name="fullname" size=50 value="<? p($form->fullname) ?>">
<? formerr($err["fullname"]) ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><? print_string("shortsitename") ?>:</td>
<td><input type="text" name="shortname" size=50 value="<? p($form->shortname) ?>">
<? formerr($err["shortname"]) ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><? print_string("frontpagedescription") ?>:</P><BR>
<? helpbutton("text", get_string("helptext")) ?>
</td>
<td><TEXTAREA NAME=summary COLS=50 ROWS=10 WRAP=virtual><? p($form->summary) ?></TEXTAREA>
<? formerr($err["summary"]) ?>
<td align=right><P><?php print_string("fullsitename") ?>:</td>
<td><input type="text" name="fullname" size=50 value="<?php p($form->fullname) ?>">
<?php if (isset($err["fullname"])) formerr($err["fullname"]); ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><? print_string("frontpageformat") ?>:</td>
<td><?
<td align=right><P><?php print_string("shortsitename") ?>:</td>
<td><input type="text" name="shortname" size=50 value="<?php p($form->shortname) ?>">
<?php if (isset($err["shortname"])) formerr($err["shortname"]); ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><?php print_string("frontpagedescription") ?>:</P><br />
<font size=1>
<?PHP
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
echo "<br />";
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("html", get_string("helphtml"), "moodle", true, true);
}
?>
<br />
</font>
</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>
<td><?php
$options = array("0" => get_string("frontpagenews"),
"1" => get_string("frontpagecourselist"),
"2" => get_string("frontpagecategorynames"));
if (count_records("course") > 200) {
unset($options[1]);
if ($form->frontpage == 1) {
$form->frontpage = 2;
}
}
choose_from_menu ($options, "frontpage", "$form->frontpage", "");
?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("newsitemsnumber") ?>:</td>
<td><?php
$newsitem = get_string("newsitem");
$newsitems = get_string("newsitems");
$options = array("0" => get_string("showlistofcourses"),
$options = array("0" => "0 $newsitems",
"1" => "1 $newsitem",
"2" => "2 $newsitems",
"3" => "3 $newsitems",
@@ -37,16 +62,49 @@
"9" => "9 $newsitems",
"10" => "10 $newsitems");
choose_from_menu ($options, "newsitems", "$form->newsitems", "");
formerr($err["newsitems"]);
?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("wordforteacher") ?>:</td>
<td><input type="text" name="teacher" maxlength="100" size=25 value="<?php p($form->teacher) ?>">
(<?php print_string("wordforteachereg") ?>)
<?php if (isset($err["teacher"])) formerr($err["teacher"]); ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("wordforteachers") ?>:</td>
<td><input type="text" name="teachers" maxlength="100" size=25 value="<?php p($form->teachers) ?>">
(<?php print_string("wordforteacherseg") ?>)
<?php if (isset($err["teachers"])) formerr($err["teachers"]); ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("wordforstudent") ?>:</td>
<td><input type="text" name="student" maxlength="100" size=25 value="<?php p($form->student) ?>">
(<?php print_string("wordforstudenteg") ?>)
<?php if (isset($err["student"])) formerr($err["student"]); ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("wordforstudents") ?>:</td>
<td><input type="text" name="students" maxlength="100" size=25 value="<?php p($form->students) ?>">
(<?php print_string("wordforstudentseg") ?>)
<?php if (isset($err["students"])) formerr($err["students"]); ?>
</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="<? print_string("savechanges") ?>"></td>
<td><input type="submit" value="<?php print_string("savechanges") ?>"></td>
</tr>
</TABLE>
<INPUT type="hidden" name="id" value="<?=$form->id ?>">
<INPUT type="hidden" name="category" value="<?=$form->category ?>">
<INPUT type="hidden" name="format" value="<?=$form->format ?>">
</FORM>
</table>
<input type="hidden" name="id" value="<?php p($form->id) ?>">
<input type="hidden" name="category" value="<?php p($form->category) ?>">
<input type="hidden" name="format" value="<?php p($form->format) ?>">
</form>
<?php
if ($usehtmleditor) {
print_richedit_javascript("form", "summary", "no");
}
?>
+65 -21
View File
@@ -1,74 +1,121 @@
<?PHP // $Id$
require("../config.php");
require_once("../config.php");
if ($site = get_site()) {
require_login();
if (!isadmin()) {
error("You need to be admin to edit this page");
}
$site->format = "social"; // override
}
$site->format = "social"; // override
/// If data submitted, then process and store.
if (match_referer() && isset($HTTP_POST_VARS)) {
$form = (object)$HTTP_POST_VARS;
if ($form = data_submitted()) {
validate_form($form, $err);
if (count($err) == 0) {
set_config("frontpage", $form->frontpage);
$form->timemodified = time();
if ($form->id) {
if (update_record("course", $form)) {
redirect("$CFG->wwwroot/admin/index.php", "Changes saved");
redirect("$CFG->wwwroot/", get_string("changessaved"));
} else {
error("Serious Error! Could not update the site record! (id = $form->id)");
}
} else {
if ($newid = insert_record("course", $form)) {
$cat->name = "General";
$cat->name = get_string("miscellaneous");
if (insert_record("course_categories", $cat)) {
redirect("$CFG->wwwroot/admin/index.php", "Changes saved", "1");
redirect("$CFG->wwwroot/$CFG->admin/index.php", get_string("changessaved"), 1);
} else {
error("Serious Error! Could not set up the default categories!");
error("Serious Error! Could not set up a default course category!");
}
} else {
error("Serious Error! Could not set up the site!");
}
}
die;
die;
} else {
foreach ($err as $key => $value) {
$focus = "form.$key";
}
}
}
}
/// Otherwise fill and print the form.
if ($site && !$form) {
if ($site and empty($form)) {
$form = $site;
$course = $site;
$firsttime = false;
} else {
$form->fullname = "";
$form->shortname = "";
$form->summary = "";
$form->newsitems = 3;
$form->id = "";
$form->category = 0;
$form->format = "social";
$form->newsitems = 0;
$form->teacher = get_string("defaultcourseteacher");
$form->teachers = get_string("defaultcourseteachers");
$form->student = get_string("defaultcoursestudent");
$form->students = get_string("defaultcoursestudents");
$firsttime = true;
}
if (isset($CFG->frontpage)) {
$form->frontpage = $CFG->frontpage;
} else {
if ($form->newsitems > 0) {
$form->frontpage = 0;
} else {
$form->frontpage = 1;
}
set_config("frontpage", $form->frontpage);
}
if (empty($focus)) {
$focus = "form.fullname";
}
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$strsitesettings = get_string("sitesettings");
print_header("$site->fullname", "$site->fullname",
"<A HREF=\"$CFG->wwwroot/admin/\">$stradmin</A> -> $strsitesettings", "$focus");
if ($firsttime) {
print_header();
print_heading($strsitesettings);
print_simple_box(get_string("configintrosite"), "center", "50%");
echo "<br />";
} else {
print_header("$site->shortname: $strsitesettings", "$site->fullname",
"<a href=\"index.php\">$stradmin</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $strsitesettings", "$focus");
print_heading($strsitesettings);
}
$defaultformat = FORMAT_HTML;
if ($usehtmleditor = can_use_richtext_editor()) {
$onsubmit = "onsubmit=\"copyrichtext(form.summary);\"";
} else {
$onsubmit = "";
}
print_simple_box_start("center", "", "$THEME->cellheading");
print_heading("Editing site settings");
include("site.html");
include("site.html");
print_simple_box_end();
print_footer();
if (!$firsttime) {
print_footer();
}
exit;
@@ -82,9 +129,6 @@ function validate_form(&$form, &$err) {
if (empty($form->shortname))
$err["shortname"] = get_string("missingshortsitename");
if (empty($form->summary))
$err["summary"] = get_string("missingsitedescription");
return;
}
+57
View File
@@ -0,0 +1,57 @@
<?php // $Id$
include("../config.php");
require_login();
if (!isadmin()) {
error("You must be an admin");
}
$strtimezone = get_string("timezone");
$strsavechanges = get_string("savechanges");
$strusers = get_string("users");
$strall = get_string("all");
print_header($strtimezone, $strtimezone, $strtimezone);
print_heading("");
if (isset($zone)) {
$db->debug = true;
echo "<center>";
execute_sql("UPDATE {$CFG->prefix}user SET timezone = '$zone'");
$db->debug = false;
echo "</center>";
$USER->timezone = $zone;
}
$user = $USER;
if (abs($user->timezone) > 13) {
$user->timezone = 99;
}
$timenow = time();
for ($tz = -26; $tz <= 26; $tz++) {
$zone = (float)$tz/2.0;
$usertime = $timenow + ($tz * 1800);
if ($tz == 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT)";
} else if ($tz < 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT$zone)";
} else {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT+$zone)";
}
}
echo "<center><form action=timezone.php method=get>";
echo "$strusers ($strall): ";
choose_from_menu ($timezones, "zone", $user->timezone, get_string("serverlocaltime"), "", "99");
echo "<input type=submit value=\"$strsavechanges\">";
echo "</form>";
print_footer();
?>
+131
View File
@@ -0,0 +1,131 @@
<?PHP //$Id$
require("../config.php");
optional_variable($confirm);
require_login();
if (!isadmin()) {
error("You must be an admin to use this script");
}
if ($CFG->version < 2004013101) {
error("This script does not work with this old version of Moodle");
}
if (!$site = get_site()) {
redirect("index.php");
}
/// Turn off time limits, sometimes upgrades can be slow.
@set_time_limit(0);
/// Print header
$stradministration = get_string("administration");
$strupgradinglogs = get_string("upgradinglogs", "admin");
print_header("$site->shortname: $stradministration: $strupgradinglogs", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> $strupgradinglogs");
if (empty($_GET['confirm'])) {
notice_yesno(get_string("upgradelogsinfo", "admin"),
"upgradelogs.php?confirm=true",
"index.php");
print_footer();
exit;
}
/// Try and extract as many cmids as possible from the existing logs
if ($coursemodules = get_records_sql("SELECT cm.*, m.name
FROM {$CFG->prefix}course_modules cm,
{$CFG->prefix}modules m
WHERE cm.module = m.id")) {
$cmcount = count($coursemodules);
$count = 0;
$starttime = time();
$sleeptime = 0;
if ($CFG->dbtype == "mysql") {
$LIKE = "LIKE";
} else {
$LIKE = "ILIKE";
}
if ($cmcount > 10) {
print_simple_box('This process may take a very long time ... please be patient and let it finish.',
'center', '', '#ffcccc');
$sleeptime = 1;
}
foreach ($coursemodules as $cm) {
switch ($cm->name) {
case "forum":
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'view.php?id=$cm->id'", false);
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'view.php?f=$cm->instance'", false);
if ($discussions = get_records("forum_discussions", "forum", $cm->instance)) {
foreach ($discussions as $discussion) {
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url $LIKE 'discuss.php?d=$discussion->id%'", false);
}
}
break;
case "glossary":
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url $LIKE 'view.php?id=$cm->id%'", false);
break;
case "quiz":
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'view.php?id=$cm->id'", false);
break;
case "assignment":
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'view.php?id=$cm->id'", false);
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'view.php?a=$cm->instance'", false);
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'submissions.php?id=$cm->instance'", false);
break;
case "journal":
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'report.php?id=$cm->id'", false);
execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id'
WHERE module = '$cm->name' AND url = 'view.php?id=$cm->id'", false);
break;
}
$count++;
$elapsedtime = time() - $starttime;
$projectedtime = (int)(((float)$cmcount / (float)$count) * $elapsedtime) - $elapsedtime;
if ($cmcount > 10) {
notify("Processed $count of $cmcount coursemodules. Estimated completion: ".format_time($projectedtime));
flush();
sleep($sleeptime); // To help reduce database load
}
}
}
delete_records("config", "name", "upgrade", "value", "logs");
notify("Log upgrading was successful!");
print_footer();
?>
+284
View File
@@ -0,0 +1,284 @@
<?PHP // $Id$
/// Bulk user registration script from a comma separated file
/// Returns list of users with their user ids
require_once("../config.php");
optional_variable($numusers, 0);
require_login();
if (!isadmin()) {
error("You must be an administrator to edit users this way.");
}
if (! $site = get_site()) {
error("Could not find site-level course");
}
if (!$adminuser = get_admin()) {
error("Could not find site admin");
}
$streditmyprofile = get_string("editmyprofile");
$stradministration = get_string("administration");
$strchoose = get_string("choose");
$struser = get_string("user");
$strusers = get_string("users");
$strusersnew = get_string("usersnew");
$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
print_header("$site->shortname: $struploadusers", $site->fullname,
"<a href=\"index.php\">$stradministration</a> ->
<a href=\"users.php\">$strusers</a> -> $struploadusers");
/// If a file has been uploaded, then process it
if ($filename = valid_uploaded_file($_FILES['userfile'])) {
//Fix mac/dos newlines
$text = my_file_get_contents($filename);
$text = preg_replace('!\r\n?!',"\n",$text);
$fp = fopen($filename, "w");
fwrite($fp,$text);
fclose($fp);
$fp = fopen($filename, "r");
// make arrays of valid fields for error checking
$required = array("username" => 1,
"password" => 1,
"firstname" => 1,
"lastname" => 1,
"email" => 1);
$optionalDefaults = array("institution" => 1,
"department" => 1,
"city" => 1,
"country" => 1,
"lang" => 1,
"timezone" => 1);
$optional = array("idnumber" => 1,
"icq" => 1,
"phone1" => 1,
"phone2" => 1,
"address" => 1,
"url" => 1,
"description" => 1,
"mailformat" => 1,
"maildisplay" => 1,
"htmleditor" => 1,
"autosubscribe" => 1,
"idnumber" => 1,
"icq" => 1,
"course1" => 1,
"course2" => 1,
"course3" => 1,
"course4" => 1,
"course5" => 1,
"group1" => 1,
"group2" => 1,
"group3" => 1,
"group4" => 1,
"group5" =>1);
// --- get header (field names) ---
$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
if (!($required[$h] or $optionalDefaults[$h] or $optional[$h])) {
error(get_string('invalidfieldname', 'error', $h), 'uploaduser.php');
}
if ($required[$h]) {
$required[$h] = 2;
}
}
// check for required fields
foreach ($required as $key => $value) {
if ($value < 2) {
error(get_string('fieldrequired', 'error', $key), 'uploaduser.php');
}
}
$linenum = 2; // since header is line 1
while (!feof ($fp)) {
foreach ($optionalDefaults as $key => $value) {
$user->$key = addslashes($adminuser->$key);
}
//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($csv_encode,$csv_delimiter2,trim($value));
}
if ($record[$header[0]]) {
// add a new user to the database
optional_variable($newuser, "");
// add fields to object $user
foreach ($record as $name => $value) {
// check for required values
if ($required[$name] and !$value) {
error(get_string('missingfield', 'error', $name). " ".
get_string('erroronline', 'error', $linenum),
'uploaduser.php');
}
// password needs to be encrypted
else if ($name == "password") {
$user->password = md5($value);
}
// normal entry
else {
$user->{$name} = addslashes($value);
}
}
$user->confirmed = 1;
$user->timemodified = time();
$linenum++;
$username = $user->username;
$addcourse[0] = $user->course1;
$addcourse[1] = $user->course2;
$addcourse[2] = $user->course3;
$addcourse[3] = $user->course4;
$addcourse[4] = $user->course5;
$addgroup[0] = $user->group1;
$addgroup[1] = $user->group2;
$addgroup[2] = $user->group3;
$addgroup[3] = $user->group4;
$addgroup[4] = $user->group5;
$courses = get_courses("all");
for ($i=0; $i<5; $i++) {
$courseid[$i]=0;
}
foreach ($courses as $course) {
for ($i=0; $i<5; $i++) {
if ($course->shortname == $addcourse[$i]) {
$courseid[$i] = $course->id;
}
}
}
if (! $user->id = insert_record("user", $user)) {
if (!$user = get_record("user", "username", "changeme")) { // half finished user from another time
//Record not added - probably because user is already registered
//In this case, output userid from previous registration
//This can be used to obtain a list of userids for existing users
if ($user = get_record("user","username",$username)) {
notify("$user->id ".get_string('usernotaddedregistered', 'error', $username));
} else {
notify(get_string('usernotaddederror', 'error', $username));
}
}
} else if ($user->username != "changeme") {
notify("$struser: $user->id = $user->username");
$numusers++;
}
for ($i=0; $i<5; $i++) {
if ($addcourse[$i] && !$courseid[$i]) {
notify(get_string('unknowncourse', 'error', $addcourse[$i]));
}
}
for ($i=0; $i<5; $i++) {
$groupid[$i] = 0;
if ($addgroup[$i]) {
if (!$courseid[$i]) {
notify(get_string('coursegroupunknown','error',$addgroup[$i]));
} else {
if ($group = get_record("groups","courseid",$courseid[$i],"name",$addgroup[$i])) {
$groupid[$i] = $group->id;
} else {
notify(get_string('groupunknown','error',$addgroup[$i]));
}
}
}
}
for ($i=0; $i<5; $i++) {
if ($courseid[$i]) {
if (enrol_student($user->id, $courseid[$i])) {
notify('-->'. get_string('enrolledincourse', '', $addcourse[$i]));
} else {
notify('-->'.get_string('enrolledincoursenot', '', $addcourse[$i]));
}
}
}
for ($i=0; $i<5; $i++) {
if ($courseid[$i] && $groupid[$i]) {
if (record_exists("user_students","userid",$user->id,"course",$courseid[$i])) {
$usergroup = user_group($courseid[$i],$user->id);
if ($usergroup) {
notify('-->' . get_string('groupalready','error',$usergroup->name));
} else {
$group_member->groupid = $groupid[$i];
$group_member->userid = $user->id;
$group_member->timeadded = time();
if (insert_record("groups_members",$group_member)) {
notify('-->' . get_string('addedtogroup','',$addgroup[$i]));
} else {
notify('-->' . get_string('addedtogroupnot','',$addgroup[$i]));
}
}
} else {
notify('-->' . get_string('addedtogroupnotenrolled','',$addgroup[$i]));
}
}
}
unset ($user);
}
}
fclose($fp);
notify("$strusersnew: $numusers");
echo '<hr />';
}
/// Print the form
print_heading_with_help($struploadusers, 'uploadusers');
$maxuploadsize = get_max_upload_file_size();
echo '<center>';
echo '<form method="post" enctype="multipart/form-data" action="uploaduser.php">'.
$strchoose.':<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'">'.
'<input type="file" name="userfile" size=30>'.
'<input type="submit" value="'.$struploadusers.'">'.
'</form></br>';
echo '</center>';
print_footer($course);
function my_file_get_contents($filename, $use_include_path = 0) {
/// Returns the file as one big long string
$data = "";
$file = @fopen($filename, "rb", $use_include_path);
if ($file) {
while (!feof($file)) {
$data .= fread($file, 1024);
}
fclose($file);
}
return $data;
}
?>
+266 -29
View File
@@ -1,16 +1,32 @@
<?PHP // $Id$
require("../config.php");
require("../user/lib.php");
require("../lib/countries.php");
require_once("../config.php");
if (! record_exists_sql("SELECT * FROM user_admins")) { // No admin user yet
$user->firstname = "Admin";
$user->lastname = "User";
optional_variable($newuser, "");
optional_variable($delete, "");
optional_variable($confirm, "");
optional_variable($confirmuser, "");
optional_variable($sort, "name");
optional_variable($dir, "ASC");
optional_variable($page, 0);
optional_variable($search, "");
optional_variable($lastinitial, ""); // only show students with this last initial
optional_variable($firstinitial, ""); // only show students with this first initial
optional_variable($perpage, "30"); // how many per page
unset($user);
unset($admin);
unset($teacher);
if (! record_exists("user_admins")) { // No admin user yet
$user->firstname = get_string("admin");
$user->lastname = get_string("user");
$user->username = "admin";
$user->password = "";
$user->password = md5("admin");
$user->email = "root@localhost";
$user->confirmed = 1;
$user->lang = $CFG->lang;
$user->maildisplay = 1;
$user->timemodified = time();
@@ -18,7 +34,7 @@
error("SERIOUS ERROR: Could not create admin user record !!!");
}
$admin->user = $user->id;
$admin->userid = $user->id;
if (! insert_record("user_admins", $admin)) {
error("Could not make user $user->id an admin !!!");
@@ -32,7 +48,7 @@
error("Could not find site-level course");
}
$teacher->user = $user->id;
$teacher->userid = $user->id;
$teacher->course = $site->id;
$teacher->authority = 1;
if (! insert_record("user_teachers", $teacher)) {
@@ -41,11 +57,13 @@
$USER = $user;
$USER->loggedin = true;
$USER->site = $CFG->wwwroot;
$USER->admin = true;
$USER->teacher["$site->id"] = true;
save_session("USER");
$USER->newadminuser = true;
redirect("$CFG->wwwroot/user/edit.php?id=$user->id&course=$site->id");
exit;
} else {
if (! $site = get_site()) {
@@ -60,12 +78,12 @@
}
if ($newuser) { // Create a new user
$user->firstname = "";
$user->lastname = "";
$user->username = "changeme";
$user->password = "";
$user->email = "";
$user->lang = $CFG->lang;
$user->confirmed = 1;
$user->timemodified = time();
@@ -79,34 +97,253 @@
} else { // List all users for editing
if ($users = get_records_sql("SELECT * from user WHERE username <> 'guest' ORDER BY firstname")) {
$stredituser = get_string("edituser");
$stradministration = get_string("administration");
$stredit = get_string("edit");
$strdelete = get_string("delete");
$stredituser = get_string("edituser");
$stradministration = get_string("administration");
$strusers = get_string("users");
$stredit = get_string("edit");
$strdelete = get_string("delete");
$strdeletecheck = get_string("deletecheck");
$strsearch = get_string("search");
$strshowallusers = get_string("showallusers");
print_header("$site->fullname : $stredituser", $site->fullname,
"<A HREF=\"$CFG->wwwroot/admin\">$stradministration</A> -> $stredituser");
if ($firstinitial or $lastinitial or $search or $page) {
print_header("$site->shortname: $stredituser", $site->fullname,
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"users.php\">$strusers</a> -> ".
"<a href=\"user.php\">$stredituser</a>");
} else {
print_header("$site->shortname: $stredituser", $site->fullname,
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"users.php\">$strusers</a> -> $stredituser");
}
print_heading(get_string("chooseuser"));
if ($confirmuser) {
if (!$user = get_record("user", "id", "$confirmuser")) {
error("No such user!");
}
$table->head = array (get_string("fullname"), get_string("email"), get_string("city"),
get_string("country"), " ");
$table->align = array ("LEFT", "LEFT", "CENTER", "CENTER", "CENTER", "CENTER");
unset($confirmeduser);
$confirmeduser->id = $confirmuser;
$confirmeduser->confirmed = 1;
$confirmeduser->timemodified = time();
if (update_record("user", $confirmeduser)) {
notify(get_string("userconfirmed", "", fullname($user, true)) );
} else {
notify(get_string("usernotconfirmed", "", fullname($user, true)));
}
} else if ($delete) { // Delete a selected user, after confirmation
if (!$user = get_record("user", "id", "$delete")) {
error("No such user!");
}
$primaryadmin = get_admin();
if ($user->id == $primaryadmin->id) {
error("You are not allowed to delete the primary admin user!");
}
if ($confirm != md5($delete)) {
$fullname = fullname($user, true);
notice_yesno(get_string("deletecheckfull", "", "'$fullname'"),
"user.php?delete=$delete&confirm=".md5($delete), "user.php");
exit;
} else if (!$user->deleted) {
unset($updateuser);
$updateuser->id = $user->id;
$updateuser->deleted = "1";
$updateuser->username = "$user->email.".time(); // Remember it just in case
$updateuser->email = ""; // Clear this field to free it up
$updateuser->timemodified = time();
if (update_record("user", $updateuser)) {
unenrol_student($user->id); // From all courses
remove_teacher($user->id); // From all courses
remove_admin($user->id);
notify(get_string("deletedactivity", "", fullname($user, true)) );
} else {
notify(get_string("deletednot", "", fullname($user, true)));
}
}
}
// Carry on with the user listing
$columns = array("firstname", "lastname", "email", "city", "country", "lastaccess");
foreach ($columns as $column) {
$string[$column] = get_string("$column");
if ($sort != $column) {
$columnicon = "";
if ($column == "lastaccess") {
$columndir = "DESC";
} else {
$columndir = "ASC";
}
} else {
$columndir = $dir == "ASC" ? "DESC":"ASC";
if ($column == "lastaccess") {
$columnicon = $dir == "ASC" ? "up":"down";
} else {
$columnicon = $dir == "ASC" ? "down":"up";
}
$columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" />";
}
$$column = "<a href=\"user.php?sort=$column&dir=$columndir&search=$search&firstinitial=$firstinitial&lastinitial=$lastinitial\">".$string[$column]."</a>$columnicon";
}
if ($sort == "name") {
$sort = "firstname";
}
$users = get_users_listing($sort, $dir, $page*$perpage, $perpage, $search, $firstinitial, $lastinitial);
$usercount = get_users(false);
$usersearchcount = get_users(false, $search, true, "", "", $firstinitial, $lastinitial);
if ($search or $firstinitial or $lastinitial) {
print_heading("$usersearchcount / $usercount ".get_string("users"));
$usercount = $usersearchcount;
} else {
print_heading("$usercount ".get_string("users"));
}
$alphabet = explode(',', get_string('alphabet'));
$strall = get_string("all");
/// Bar of first initials
echo "<center><p align=\"center\">";
echo get_string("firstname")." : ";
if ($firstinitial) {
echo " <a href=\"user.php?sort=firstname&dir=ASC&".
"perpage=$perpage&lastinitial=$lastinitial\">$strall</a> ";
} else {
echo " <b>$strall</b> ";
}
foreach ($alphabet as $letter) {
if ($letter == $firstinitial) {
echo " <b>$letter</b> ";
} else {
echo " <a href=\"user.php?sort=firstname&dir=ASC&".
"perpage=$perpage&lastinitial=$lastinitial&firstinitial=$letter\">$letter</a> ";
}
}
echo "<br />";
/// Bar of last initials
echo get_string("lastname")." : ";
if ($lastinitial) {
echo " <a href=\"user.php?sort=lastname&dir=ASC&".
"perpage=$perpage&firstinitial=$firstinitial\">$strall</a> ";
} else {
echo " <b>$strall</b> ";
}
foreach ($alphabet as $letter) {
if ($letter == $lastinitial) {
echo " <b>$letter</b> ";
} else {
echo " <a href=\"user.php?sort=lastname&dir=ASC&".
"perpage=$perpage&firstinitial=$firstinitial&lastinitial=$letter\">$letter</a> ";
}
}
echo "</p>";
echo "</center>";
print_paging_bar($usercount, $page, $perpage,
"user.php?sort=$sort&dir=$dir&perpage=$perpage&firstinitial=$firstinitial&lastinitial=$lastinitial&search=$search&");
flush();
if (!$users) {
$match = array();
if ($search) {
$match[] = $search;
}
if ($firstinitial) {
$match[] = get_string("firstname").": $firstinitial"."___";
}
if ($lastinitial) {
$match[] = get_string("lastname").": $lastinitial"."___";
}
$matchstring = implode(", ", $match);
print_heading(get_string("nousersmatching", "", $matchstring));
} else {
$countries = get_list_of_countries();
foreach ($users as $key => $user) {
if (!empty($user->country)) {
$users[$key]->country = $countries[$user->country];
}
}
if ($sort == "country") { // Need to resort by full country name, not code
foreach ($users as $user) {
$susers[$user->id] = $user->country;
}
asort($susers);
foreach ($susers as $key => $value) {
$nusers[] = $users[$key];
}
$users = $nusers;
}
$table->head = array ("$firstname / $lastname", $email, $city, $country, $lastaccess, "", "", "");
$table->align = array ("left", "left", "left", "left", "left", "center", "center", "center");
$table->width = "95%";
foreach ($users as $user) {
$table->data[] = array ("<A HREF=\"../user/view.php?id=$user->id&course=$site->id\">$user->firstname $user->lastname</A>",
if ($user->id == $USER->id or $user->username == "changeme") {
$deletebutton = "";
} else {
$deletebutton = "<a href=\"user.php?delete=$user->id\">$strdelete</a>";
}
if ($user->lastaccess) {
$strlastaccess = format_time(time() - $user->lastaccess);
} else {
$strlastaccess = get_string("never");
}
if ($user->confirmed == 0) {
$confirmbutton = "<a href=\"user.php?confirmuser=$user->id\">" . get_string("confirm") . "</a>";
} else {
$confirmbutton = "";
}
$fullname = fullname($user, true);
$table->data[] = array ("<a href=\"../user/view.php?id=$user->id&course=$site->id\">$fullname</a>",
"$user->email",
"$user->city",
$COUNTRIES[$user->country],
"<A HREF=\"../user/edit.php?id=$user->id&course=$site->id\">$stredit</A>");
"$user->country",
$strlastaccess,
"<a href=\"../user/edit.php?id=$user->id&course=$site->id\">$stredit</a>",
$deletebutton,
$confirmbutton);
}
echo "<table align=center cellpadding=10><tr><td>";
echo "<form action=user.php method=post>";
echo "<input type=text name=search value=\"$search\" size=20>";
echo "<input type=submit value=\"$strsearch\">";
if ($search) {
echo "<input type=\"button\" onclick=\"document.location='user.php';\" value=\"$strshowallusers\">";
}
echo "</form>";
echo "</td></tr></table>";
print_table($table);
print_heading("<A HREF=\"user.php?newuser=true\">".get_string("addnewuser")."</A>");
} else {
error("No users found!");
print_paging_bar($usercount, $page, $perpage,
"user.php?sort=$sort&dir=$dir&perpage=$perpage".
"&firstinitial=$firstinitial&lastinitial=$lastinitial&search=$search&");
}
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
print_heading("<a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a>");
}
print_footer();
}
+51
View File
@@ -0,0 +1,51 @@
<?PHP // $Id$
require_once("../config.php");
require_login();
if (!isadmin()) {
error("Only admins can access this page");
}
if (!$site = get_site()) {
redirect("index.php");
}
$stradministration = get_string("administration");
$strusers = get_string("users");
print_header("$site->shortname: $stradministration: $strusers", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> $strusers");
print_heading($strusers);
$table->align = array ("right", "left");
$table->data[] = array("<b><a href=\"auth.php\">".get_string("authentication")."</a></b>",
get_string("adminhelpauthentication"));
if (is_internal_auth()) {
$table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true\">".get_string("addnewuser")."</a></b>",
get_string("adminhelpaddnewuser"));
$table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/uploaduser.php\">".get_string("uploadusers")."</a></b>",
get_string("adminhelpuploadusers"));
}
$table->data[] = array("<b><a href=\"user.php\">".get_string("edituser")."</a></b>",
get_string("adminhelpedituser"));
$table->data[] = array("<b><a href=\"admin.php\">".get_string("assignadmins")."</a></b>",
get_string("adminhelpassignadmins"));
$table->data[] = array("<b><a href=\"creators.php\">".get_string("assigncreators")."</a></b>",
get_string("adminhelpassigncreators"));
$table->data[] = array("<b><a href=\"../course/index.php?edit=on\">".get_string("assignteachers")."</a></b>",
get_string("adminhelpassignteachers")." <img src=\"../pix/t/user.gif\" height=11 width=11>");
$table->data[] = array("<b><a href=\"../course/index.php?edit=off\">".get_string("assignstudents")."</a></b>",
get_string("adminhelpassignstudents"));
print_table($table);
print_footer($site);
?>
+84
View File
@@ -0,0 +1,84 @@
This directory contains authentication modules.
Each of these modules describes a different way to
check that a user has provided a correct
- username, and
- password.
Even when external forms of authentication are being
used, Moodle still maintains the internal "user" table
with all the associated information about that user such
as name, email address and so on.
The active method is set by the admin on the Configuration page.
email - authentication by email (DEFAULT METHOD)
- user fills out form with email address
- email sent to user with link
- user clicks on link in email to confirm
- user account is created
- user can log in
none - no authentication at all .. very insecure!!
- user logs in using ANY username and password
- if the username doesn't already exist then
a new account is created
- when user tries to access a course they
are forced to set up their account details
manual - internal authentication only
- user logs in using username and password
- no way for user to make their own account
ldap - Uses an external LDAP server
- user logs in using username and password
- these are checked against an LDAP server
- if correct, user is logged in
- optionally, info is copied from the LDAP
database to the Moodle user database
(see the ldap/README for more details on config etc...)
imap - Uses an external IMAP server
- user logs in using username and password
- these are checked against an IMAP server
- if correct, user is logged in
- if the username doesn't already exist then
a new account is created
pop3 - Uses an external POP3 server
- user logs in using username and password
- these are checked against a POP3 server
- if correct, user is logged in
- if the username doesn't already exist then
a new account is created
nntp - Uses an external NNTP server
- user logs in using username and password
- these are checked against an NNTP server
- if correct, user is logged in
- if the username doesn't already exist then
a new account is created
db - Uses an external database to check username/password
- user logs in using username and password
- these are checked against an external database
- if correct, user is logged in
- if the username doesn't already exist then
a new Moodle account is created
+235
View File
@@ -0,0 +1,235 @@
<?PHP
if (!isset($config->auth_dbhost)) {
$config->auth_dbhost = "localhost";
}
if (!isset($config->auth_dbtype)) {
$config->auth_dbtype = "mysql";
}
if (!isset($config->auth_dbname)) {
$config->auth_dbname = "";
}
if (!isset($config->auth_dbuser)) {
$config->auth_dbuser = "";
}
if (!isset($config->auth_dbpass)) {
$config->auth_dbpass = "";
}
if (!isset($config->auth_dbtable)) {
$config->auth_dbtable = "";
}
if (!isset($config->auth_dbfielduser)) {
$config->auth_dbfielduser = "";
}
if (!isset($config->auth_dbfieldpass)) {
$config->auth_dbfieldpass = "";
}
if (!isset($config->auth_dbpasstype)) {
$config->auth_dbpasstype = "plaintext";
}
?>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbhost:</TD>
<TD>
<INPUT name=auth_dbhost TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbhost?>">
<?php if (isset($err["auth_dbhost"])) formerr($err["auth_dbhost"]); ?>
</TD>
<TD>
<?php print_string("auth_dbhost","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbtype:</TD>
<TD>
<?php $dbtypes = array("access","ado_access", "ado", "ado_mssql", "borland_ibase", "csv", "db2", "fbsql", "firebird", "ibase", "informix72", "informix", "mssql", "mysql", "mysqlt", "oci805", "oci8", "oci8po", "odbc", "odbc_mssql", "odbc_oracle", "oracle", "postgres64", "postgres7", "postgres", "proxy", "sqlanywhere", "sybase", "vfp");
foreach ($dbtypes as $dbtype) {
$dboptions[$dbtype] = $dbtype;
}
choose_from_menu($dboptions, "auth_dbtype", $config->auth_dbtype, "");
?>
</TD>
<TD>
<?php print_string("auth_dbtype","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbname:</TD>
<TD>
<INPUT name=auth_dbname TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbname?>">
<?php if (isset($err["auth_dbname"]))formerr($err["auth_dbname"]); ?>
</TD>
<TD>
<?php print_string("auth_dbname","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbuser:</TD>
<TD>
<INPUT name=auth_dbuser TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbuser?>">
<?php if (isset($err["auth_dbuser"])) formerr($err["auth_dbuser"]); ?>
</TD>
<TD>
<?php print_string("auth_dbuser","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbpass:</TD>
<TD>
<INPUT name="auth_dbpass" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbpass?>">
<?php if (isset($err["auth_dbpass"])) formerr($err["auth_dbpass"]); ?>
</TD>
<TD>
<?php print_string("auth_dbpass","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbtable:</TD>
<TD>
<INPUT name="auth_dbtable" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbtable?>">
<?php if (isset($err["auth_dbtable"])) formerr($err["auth_dbtable"]); ?>
</TD>
<TD>
<?php print_string("auth_dbtable","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbfielduser:</TD>
<TD>
<INPUT name="auth_dbfielduser" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbfielduser?>">
<?php if (isset($err["auth_dbfielduser"])) formerr($err["auth_dbfielduser"]); ?>
</TD>
<TD>
<?php print_string("auth_dbfielduser","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbfieldpass:</TD>
<TD>
<INPUT name="auth_dbfieldpass" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbfieldpass?>">
<?php if (isset($err["auth_dbfieldpass"])) formerr($err["auth_dbfieldpass"]); ?>
</TD>
<TD>
<?php print_string("auth_dbfieldpass","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbpasstype:</TD>
<TD>
<?php $passtype["plaintext"] = get_string("plaintext", "auth");
$passtype["md5"] = get_string("md5", "auth");
choose_from_menu($passtype, "auth_dbpasstype", $config->auth_dbpasstype, "");
?>
</TD>
<TD>
<?php print_string("auth_dbpasstype","auth") ?>
</TD>
</TR>
<TR>
<TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
<TD>
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
</TD>
<TD rowspan=12 VALIGN=CENTER>
<?php print_string("auth_dbextrafields","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
<TD>
<INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lastname?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
<TD>
<INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_email?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
<TD>
<INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone1?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
<TD>
<INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone2?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
<TD>
<INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_department?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
<TD>
<INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_address?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
<TD>
<INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_city?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
<TD>
<INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_country?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
<TD>
<INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_description?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
<TD>
<INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_idnumber?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
<TD>
<INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lang?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+77
View File
@@ -0,0 +1,77 @@
<?PHP // $Id$
// Authentication by looking up an external database table
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
// This is a hack to workaround what seems to be a bug in ADOdb with accessing
// two databases of the same kind ... it seems to get confused when trying to access
// the first database again, after having accessed the second.
// The following hack will make the database explicit which keeps it happy
$CFG->prefix = "$CFG->dbname.$CFG->prefix";
// Connect to the external database
$authdb = &ADONewConnection($CFG->auth_dbtype);
$authdb->PConnect($CFG->auth_dbhost,$CFG->auth_dbuser,$CFG->auth_dbpass,$CFG->auth_dbname);
switch ($CFG->auth_dbpasstype) { // Re-format password accordingly
case "md5":
$password = md5($password);
break;
}
$rs = $authdb->Execute("SELECT * FROM $CFG->auth_dbtable
WHERE $CFG->auth_dbfielduser = '$username'
AND $CFG->auth_dbfieldpass = '$password' ");
$authdb->Close();
if (!$rs) {
notify("Could not connect to the specified authentication database...");
return false;
}
if ( $rs->RecordCount() ) {
return true;
} else {
return false;
}
}
function auth_get_userinfo($username){
// Reads any other information for a user from external database,
// then returns it in an array
global $CFG;
$config = (array) $CFG;
ADOLoadCode($CFG->auth_dbtype);
$authdb = &ADONewConnection();
$authdb->PConnect($CFG->auth_dbhost,$CFG->auth_dbuser,$CFG->auth_dbpass,$CFG->auth_dbname);
$fields = array("firstname", "lastname", "email", "phone1", "phone2",
"department", "address", "city", "country", "description",
"idnumber", "lang");
$result = array();
foreach ($fields as $field) {
if ($config["auth_user_$field"]) {
if ($rs = $authdb->Execute("SELECT ".$config["auth_user_$field"]." FROM $CFG->auth_dbtable
WHERE $CFG->auth_dbfielduser = '$username'")) {
if ( $rs->RecordCount() == 1 ) {
$result["$field"] = $rs->fields[$config["auth_user_$field"]];
}
}
}
}
return $result;
}
?>
+1
View File
@@ -0,0 +1 @@
<!-- No config needed -->
+19
View File
@@ -0,0 +1,19 @@
<?PHP // $Id$
// Standard authentication function
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they don't
global $CFG;
if (! $user = get_user_info_from_db("username", $username)) {
return false;
}
return ($user->password == md5($password));
}
?>
+59
View File
@@ -0,0 +1,59 @@
<?PHP
if (!isset($config->auth_imaphost)) {
$config->auth_imaphost = "127.0.0.1";
}
if (!isset($config->auth_imaptype)) {
$config->auth_imaptype = "imap";
}
if (!isset($config->auth_imapport)) {
$config->auth_imapport = "143";
}
?>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_imaphost:</TD>
<TD>
<INPUT name=auth_imaphost TYPE=text SIZE=30 VALUE="<?php echo $config->auth_imaphost?>">
<?php if (isset($err["auth_imaphost"])) formerr($err["auth_imaphost"]); ?>
</TD>
<TD>
<?php print_string("auth_imaphost","auth") ?>
<?php print_string("auth_multiplehosts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_imaptype:</TD>
<TD>
<?php $imaptypes = array("imap","imapssl", "imapcert", "imaptls");
foreach($imaptypes as $imaptype) {
$imapoptions[$imaptype] = $imaptype;
}
choose_from_menu($imapoptions, "auth_imaptype", $config->auth_imaptype, "");
?>
</TD>
<TD>
<?php print_string("auth_imaptype","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_imapport:</TD>
<TD>
<INPUT name=auth_imapport TYPE=text SIZE=6 VALUE="<?php echo $config->auth_imapport?>">
<?php if (isset($err["auth_imapport"])) formerr($err["auth_imapport"]); ?>
</TD>
<TD>
<?php print_string("auth_imapport","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+47
View File
@@ -0,0 +1,47 @@
<?PHP // $Id$
// Authentication by looking up an IMAP server
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
$hosts = split(';', $CFG->auth_imaphost); // Could be multiple hosts
foreach ($hosts as $host) { // Try each host in turn
$host = trim($host);
switch ($CFG->auth_imaptype) {
case "imapssl":
$host = '{'.$host.":$CFG->auth_imapport/imap/ssl}";
break;
case "imapcert":
$host = '{'.$host.":$CFG->auth_imapport/imap/ssl/novalidate-cert}";
break;
case "imaptls":
$host = '{'.$host.":$CFG->auth_imapport/imap/notls}";
break;
default:
$host = '{'.$host.":$CFG->auth_imapport}";
}
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
error_reporting($CFG->debug);
if ($connection) {
imap_close($connection);
return true;
}
}
return false; // No match
}
?>
+3
View File
@@ -0,0 +1,3 @@
LDAP-module README
Please read comments from lib.php
+234
View File
@@ -0,0 +1,234 @@
<?PHP
if (!isset($config->ldap_host_url)) {
$config->ldap_host_url = "";
}
if (!isset($config->ldap_contexts)) {
$config->ldap_contexts = "";
}
if (!isset($config->ldap_user_attribute)) {
$config->ldap_user_attribute = "";
}
if (!isset($config->ldap_search_sub)) {
$config->ldap_search_sub = "";
}
if (!isset($config->ldap_bind_dn)) {
$config->ldap_bind_dn = "";
}
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>
<TD>
<INPUT name=ldap_host_url TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_host_url?>">
<?php if (isset($err["ldap_host_url"])) formerr($err["ldap_host_url"]); ?>
</TD>
<TD>
<?php print_string("auth_ldap_host_url","auth") ?>
</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>
<INPUT name=ldap_contexts TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_contexts?>">
<?php if (isset($err["ldap_contexts"])) formerr($err["ldap_contexts"]); ?>
</TD>
<TD>
<?php print_string("auth_ldap_contexts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_user_attribute:</TD>
<TD>
<INPUT name=ldap_user_attribute TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_user_attribute?>">
<?php if (isset($err["ldap_user_attribute"])) formerr($err["ldap_user_attribute"]); ?>
</TD>
<TD>
<?php print_string("auth_ldap_user_attribute","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_search_sub:</TD>
<TD>
<INPUT name=ldap_search_sub TYPE=text SIZE=1 VALUE="<?php echo $config->ldap_search_sub?>">
<?php if (isset($err["ldap_search_sub"])) formerr($err["ldap_search_sub"]); ?>
</TD>
<TD>
<?php print_string("auth_ldap_search_sub","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_bind_dn:</TD>
<TD>
<INPUT name=ldap_bind_dn TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_bind_dn?>">
<?php if (isset($err["ldap_bind_dn"])) formerr($err["ldap_bind_dn"]); ?>
</TD><TD>
<?php print_string("auth_ldap_bind_dn","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_bind_pw:</TD>
<TD>
<INPUT name=ldap_bind_pw TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_bind_pw?>">
<?php if (isset($err["ldap_bind_pw"])) formerr($err["ldap_bind_pw"]); ?>
</TD><TD>
<?php print_string("auth_ldap_bind_pw","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_memberattribute:</TD>
<TD>
<INPUT name=ldap_memberattribute TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_memberattribute?>">
<?php if (isset($err["ldap_memberattribute"])) formerr($err["ldap_memberattribute"]); ?>
</TD><TD>
<?php print_string("auth_ldap_memberattribute","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_creators:</TD>
<TD>
<INPUT name=ldap_creators TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_creators?>">
<?php if (isset($err["ldap_creators"])) formerr($err["ldap_creators"]); ?>
</TD><TD>
<?php print_string("auth_ldap_creators","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_create_context:</TD>
<TD>
<INPUT name=ldap_create_context TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_create_context?>">
<?php if (isset($err["ldap_create_context"])) formerr($err["ldap_create_context"]); ?>
</TD><TD>
<?php print_string("auth_ldap_create_context","auth") ?>
</TD>
</TR>
<TR>
<TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
<TD>
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
</TD>
<TD rowspan=12 VALIGN=CENTER>
<?php print_string("auth_ldapextrafields","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
<TD>
<INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lastname?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
<TD>
<INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_email?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
<TD>
<INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone1?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
<TD>
<INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone2?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
<TD>
<INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_department?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
<TD>
<INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_address?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
<TD>
<INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_city?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
<TD>
<INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_country?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
<TD>
<INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_description?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
<TD>
<INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_idnumber?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
<TD>
<INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lang?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+373
View File
@@ -0,0 +1,373 @@
<?PHP // $Id$
//CHANGELOG:
//24.02.2003 Added support for coursecreators
//20.02.2003 Added support for user creation
//12.10.2002 Reformatted source for consistency
//03.10.2002 First version to CVS
//29.09.2002 Clean up and splitted code to functions v. 0.02
//29.09.2002 LDAP authentication functions v. 0.01
//Distributed under GPL (c)Petri Asikainen 2002-2003
/* README!
Module is quite complete and most functinality can be configured from
configinterfave /admin/auth.php. Some of latest additions/features need to
be configured by modifying source code.
If you plan to use user creation feature, look function auth_user_create
and modify it for your needs.
You have to change all hardcoded attribute values to fit your LDAP-server.
User-creation makes posible that your current
users can authenticate with existings usernames/password and new users can
create own accounts to LDAP-directory. I'm using this feature and new users
are created to LDAP different context, without rights to other system. When
user-creation feature is set like that, there's no known security issues.
I write ldap-module on Novell E-directory / Linux & Solaris ,
so all default values are for it.
Any feedback is wellcome,
Petri Asikainen paca@sci.fi
*/
function auth_user_login ($username, $password) {
/// Returns true if the username and password work
/// and false if they don't
global $CFG;
if (!$username or !$password) { // Don't allow blank usernames or passwords
return false;
}
$ldap_connection = auth_ldap_connect();
if ($ldap_connection) {
$ldap_user_dn = auth_ldap_find_userdn($ldap_connection, $username);
//if ldap_user_dn is empty, user does not exist
if(!$ldap_user_dn){
ldap_close($ldap_connection);
return false;
}
// Try to bind with current username and password
$ldap_login = @ldap_bind($ldap_connection, $ldap_user_dn, $password);
ldap_close($ldap_connection);
if ($ldap_login) {
return true;
}
} else {
@ldap_close($ldap_connection);
error("LDAP-module cannot connect to server: $CFG->ldap_host_url");
}
return false;
}
function auth_get_userinfo($username){
/// reads userinformation from ldap and return it in array()
global $CFG;
$config = (array)$CFG;
$attrmap = auth_ldap_attributes();
$ldap_connection=auth_ldap_connect();
$result = array();
$search_attribs = array();
foreach ($attrmap as $key=>$value) {
if (!in_array($value, $search_attribs)) {
array_push($search_attribs, $value);
}
}
$user_dn = auth_ldap_find_userdn($ldap_connection, $username);
if (! isset($CFG->ldap_objectclass)) {
$CFG->ldap_objectclass="objectClass=*";
}
$user_info_result = ldap_read($ldap_connection,$user_dn,$CFG->ldap_objectclass, $search_attribs);
if ($user_info_result) {
$user_entry = ldap_get_entries($ldap_connection, $user_info_result);
foreach ($attrmap as $key=>$value){
if(isset($user_entry[0][strtolower($value)][0])){
$result[$key]=$user_entry[0][strtolower($value)][0];
}
}
}
@ldap_close($ldap_connection);
return $result;
}
function auth_get_userlist () {
global $CFG;
return auth_ldap_get_userlist("($CFG->ldap_user_attribute=*)");
}
function auth_user_exists ($username) {
global $CFG;
//returns true if given usernname exist on ldap
$users = auth_ldap_get_userlist("($CFG->ldap_user_attribute=$username)");
return count($users);
}
function auth_user_create ($userobject,$plainpass) {
//create new user to ldap
//use auth_user_exists to prevent dublicate usernames
//return true if user is created, false on error
global $CFG;
$attrmap = auth_ldap_attributes();
$ldapconnect = auth_ldap_connect();
$ldapbind = auth_ldap_bind($ldapconnect);
$newuser = array();
foreach ($attrmap as $key=>$value){
if(isset($userobject->$key) ){
$newuser[$value]=utf8_encode($userobject->$key);
}
}
//Following sets all mandatory and other forced attribute values
//this should be moved to config inteface ASAP
$newuser['objectClass']= array("inetOrgPerson","organizationalPerson","person","top");
$newuser['uniqueId']= $userobject->username;
$newuser['logindisabled']="TRUE";
$newuser['userpassword']=$plainpass;
unset($newuser[country]);
$uadd = ldap_add($ldapconnect, $CFG->ldap_user_attribute."=$userobject->username,".$CFG->ldap_create_context, $newuser);
ldap_close($ldapconnect);
return $uadd;
}
function auth_user_activate ($username) {
//activate new ldap-user after email-address is confirmed
global $CFG;
$ldapconnect = auth_ldap_connect();
$ldapbind = auth_ldap_bind($ldapconnect);
$userdn = auth_ldap_find_userdn($ldapconnect, $username);
$newinfo['loginDisabled']="FALSE";
$result = ldap_modify($ldapconnect, $userdn, $newinfo);
ldap_close($ldapconnect);
return $result;
}
function auth_user_disable ($username) {
//activate new ldap-user after email-address is confirmed
global $CFG;
$ldapconnect = auth_ldap_connect();
$ldapbind = auth_ldap_bind($ldapconnect);
$userdn = auth_ldap_find_userdn($ldapconnect, $username);
$newinfo['loginDisabled']="TRUE";
$result = ldap_modify($ldapconnect, $userdn, $newinfo);
ldap_close($ldapconnect);
return $result;
}
function auth_iscreator($username=0) {
///if user is member of creator group return true
global $CFG, $USER;
$ldapconnect = auth_ldap_connect();
$ldapbind = auth_ldap_bind($ldapconnect);
if (! $username) {
$username=$USER->username;
}
if ((! $CFG->ldap_creators) OR (! $CFG->ldap_memberattribute)) {
return false;
} else {
$groups = explode(";",$CFG->ldap_creators);
}
//build filter
$filter = "(& ($CFG->ldap_user_attribute=$username)(|";
foreach ($groups as $group){
$filter .= "($CFG->ldap_memberattribute=$group)";
}
$filter .= "))";
//search
$result = auth_ldap_get_userlist($filter);
return count($result);
}
//PRIVATE FUNCTIONS starts
//private functions are named as auth_ldap*
function auth_ldap_connect(){
/// connects to ldap-server
global $CFG;
$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 {
error("LDAP-module cannot connect to server: $CFG->ldap_host_url");
return false;
}
}
function auth_ldap_bind($ldap_connection){
/// makes bind to ldap for searching users
/// uses ldap_bind_dn or anonymous bind
global $CFG;
if ($CFG->ldap_bind_dn){
//bind with search-user
if (!ldap_bind($ldap_connection, $CFG->ldap_bind_dn,$CFG->ldap_bind_pw)){
error("Error: could not bind ldap with ldap_bind_dn/pw");
return false;
}
} else {
//bind anonymously
if ( !ldap_bind($ldap_connection)){
error("Error: could not bind ldap anonymously");
return false;
}
}
return true;
}
function auth_ldap_find_userdn ($ldap_connection, $username){
/// return dn of username
/// like: cn=username,ou=suborg,o=org
/// or false if username not found
global $CFG;
//default return value
$ldap_user_dn = FALSE;
auth_ldap_bind($ldap_connection);
//get all contexts and look for first matching user
$ldap_contexts = explode(";",$CFG->ldap_contexts);
if (!empty($CFG->ldap_create_context)){
array_push($ldap_contexts, $CFG->ldap_create_context);
}
foreach ($ldap_contexts as $context) {
$context == trim($context);
if ($CFG->ldap_search_sub){
//use ldap_search to find first user from subtree
$ldap_result = ldap_search($ldap_connection, $context, "(".$CFG->ldap_user_attribute."=".$username.")",array($CFG->ldap_user_attribute));
} else {
//search only in this context
$ldap_result = ldap_list($ldap_connection, $context, "(".$CFG->ldap_user_attribute."=".$username.")",array($CFG->ldap_user_attribute));
}
$entry = ldap_first_entry($ldap_connection,$ldap_result);
if ($entry){
$ldap_user_dn = ldap_get_dn($ldap_connection, $entry);
break ;
}
}
return $ldap_user_dn;
}
function auth_ldap_attributes (){
//returns array containg attribute mappings between Moodle and ldap
global $CFG;
$config = (array)$CFG;
$fields = array("firstname", "lastname", "email", "phone1", "phone2",
"department", "address", "city", "country", "description",
"idnumber", "lang");
$moodleattributes = array();
foreach ($fields as $field) {
if ($config["auth_user_$field"]) {
$moodleattributes[$field] = $config["auth_user_$field"];
}
}
return $moodleattributes;
}
function auth_ldap_get_userlist($filter="*") {
/// returns all users from ldap servers
global $CFG;
$fresult = array();
$ldap_connection = auth_ldap_connect();
auth_ldap_bind($ldap_connection);
if (! isset($CFG->ldap_objectclass)) {
$CFG->ldap_objectclass="objectClass=*";
}
if ($filter=="*") {
$filter = "(&(".$CFG->ldap_user_attribute."=*)(".$CFG->ldap_objectclass."))";
}
$contexts = explode(";",$CFG->ldap_contexts);
if (!empty($CFG->ldap_create_context)){
array_push($contexts, $CFG->ldap_create_context);
}
foreach ($contexts as $context) {
if ($CFG->ldap_search_sub) {
//use ldap_search to find first user from subtree
$ldap_result = ldap_search($ldap_connection, $context,
$filter,
array($CFG->ldap_user_attribute));
} else {
//search only in this context
$ldap_result = ldap_list($ldap_connection, $context,
$filter,
array($CFG->ldap_user_attribute));
}
$users = ldap_get_entries($ldap_connection, $ldap_result);
//add found users to list
for ($i=0;$i<$users['count'];$i++) {
array_push($fresult, ($users[$i][$CFG->ldap_user_attribute][0]) );
}
}
return $fresult;
}
?>
+11
View File
@@ -0,0 +1,11 @@
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+16
View File
@@ -0,0 +1,16 @@
<?PHP // $Id$
// manual method - Just does a simple check against the database
function auth_user_login ($username, $password) {
// Returns false if the username doesn't exist yet
// Returns true if the username and password work
if ($user = get_user_info_from_db("username", $username)) {
return ($user->password == md5($password));
}
return false;
}
?>
+42
View File
@@ -0,0 +1,42 @@
<?PHP
if (!isset($config->auth_nntphost)) {
$config->auth_nntphost = "127.0.0.1";
}
if (!isset($config->auth_nntpport)) {
$config->auth_nntpport = "119";
}
?>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_nntphost:</TD>
<TD>
<INPUT name="auth_nntphost" TYPE="text" SIZE=30 VALUE="<?php echo $config->auth_nntphost?>">
<?php if (isset($err["auth_nntphost"])) formerr($err["auth_nntphost"]); ?>
</TD>
<TD>
<?php print_string("auth_nntphost","auth") ?>
<?php print_string("auth_multiplehosts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_nntpport:</TD>
<TD>
<INPUT name=auth_nntpport TYPE=text SIZE=6 VALUE="<?php echo $config->auth_nntpport?>">
<?php if (isset($err["auth_nntpport"])) formerr($err["auth_nntpport"]); ?>
</TD>
<TD>
<?php print_string("auth_nntpport","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+30
View File
@@ -0,0 +1,30 @@
<?PHP // $Id$
// Authentication by looking up an NNTP server
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
$hosts = split(';', $CFG->auth_nntphost); // Could be multiple hosts
foreach ($hosts as $host) { // Try each host in turn
$host = '{'.trim($host).":$CFG->auth_nntpport/nntp}";
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
error_reporting($CFG->debug);
if ($connection) {
imap_close($connection);
return true;
}
}
return false; // No match
}
?>
+1
View File
@@ -0,0 +1 @@
<!-- No config needed -->
+17
View File
@@ -0,0 +1,17 @@
<?PHP // $Id$
// No authentication at all. This method approves everything!
function auth_user_login ($username, $password) {
// Returns true if the username doesn't exist yet
// Returns true if the username and password work
if (! $user = get_user_info_from_db("username", $username)) {
return true;
}
return ($user->password == md5($password));
}
?>
+59
View File
@@ -0,0 +1,59 @@
<?PHP
if (!isset($config->auth_pop3host)) {
$config->auth_pop3host = "127.0.0.1";
}
if (!isset($config->auth_pop3type)) {
$config->auth_pop3type = "pop3notls";
}
if (!isset($config->auth_pop3port)) {
$config->auth_pop3port = "110";
}
?>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_pop3host:</TD>
<TD>
<INPUT name=auth_pop3host TYPE=text SIZE=30 VALUE="<?php echo $config->auth_pop3host?>">
<?php if (isset($err["auth_pop3host"])) formerr($err["auth_pop3host"]); ?>
</TD>
<TD>
<?php print_string("auth_pop3host","auth") ?>
<?php print_string("auth_multiplehosts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_pop3type:</TD>
<TD>
<?php $pop3types = array("pop3","pop3cert", "pop3notls");
foreach($pop3types as $pop3type) {
$pop3options[$pop3type] = $pop3type;
}
choose_from_menu($pop3options, "auth_pop3type", $config->auth_pop3type, "");
?>
</TD>
<TD>
<?php print_string("auth_pop3type","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_pop3port:</TD>
<TD>
<INPUT name=auth_pop3port TYPE=text SIZE=6 VALUE="<?php echo $config->auth_pop3port?>">
<?php if (isset($err["auth_pop3port"])) formerr($err["auth_pop3port"]); ?>
</TD>
<TD>
<?php print_string("auth_pop3port","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+42
View File
@@ -0,0 +1,42 @@
<?PHP // $Id$
// Authentication by looking up a POP3 server
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
$hosts = split(';', $CFG->auth_pop3host); // Could be multiple hosts
foreach ($hosts as $host) { // Try each host in turn
$host = trim($host);
switch ($CFG->auth_pop3type) {
case "pop3":
$host = '{'.$host.":$CFG->auth_pop3port/pop3}INBOX";
break;
case "pop3notls":
$host = '{'.$host.":$CFG->auth_pop3port/pop3/notls}INBOX";
break;
case "pop3cert":
$host = '{'.$host.":$CFG->auth_pop3port/pop3/ssl/novalidate-cert}INBOX";
break;
}
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
error_reporting($CFG->debug);
if ($connection) {
imap_close($connection);
return true;
}
}
return false; // No matches found
}
?>
+33
View File
@@ -0,0 +1,33 @@
README $Id$
----------
This directory contains my try to create a backup/recover
admin option to moodle. I don't know when and how it'll be
finished, but I'going to try it, sure.
Some day, if this is fully functional, it could be integrated
into the main Moodle distribution (ask uncle Martin). :-)
Code here may not be tested - so there are no guarantees as
to the quality of the code in here, even if part of a stable
Moodle release.
Please, for any comment about this option, do it in Moodle
Developer Forum at:
http://moodle.org/mod/forum/view.php?id=55
(searching an "backup" topic)
or you can put tour comments in Moodel Bugs at:
http://moodle.org/bugs/bug.php?op=show&bugid=84.
All comments will be welcome. TIA.
To see the general status of the utility, take a look to
"STATUS.txt" in this directory.
And this is all, I start with it NOW.
Eloy (stronk7)
29-04-2003
+265
View File
@@ -0,0 +1,265 @@
STATUS $Id$
----------
This documment shows the current status of the backup/restore option.
Backup: WORKING. COMPLETED !!
Restore: WORKING. COMPLETED !!
========== ========== ========== ========== ========== ==========
Now I show the specific detailed status of every item in the process:
Backup Details:
===============
- Backup FrontEnd............................................DONE
- Check Security........................................DONE
- Select Info to Backup.(from mods).....................DONE
- Check (summary info)..................................DONE
- Check mods.......................................DONE
- Check logs.......................................DONE
- Check users......................................DONE
- Check User Files.................................DONE
- Check Course Files...............................DONE
- Launch Backup.........................................DONE
- Show progress.........................................DONE
- Determine Backup location.............................DONE
- Delete old entries at backup startup..................DONE
- From database....................................DONE
- From filesystem..................................DONE
- Backup Items:..............................................DONE
- Backup Info data......................................DONE
- Course................................................DONE
- Course Summary Data................................DONE
x course info.....................................DONE
x sections info...................................DONE
x mods info.......................................DONE
- User Accounts Info.................................DONE
x admins..........................................DONE
- All..........................................DONE
x course creators.................................DONE
- All..........................................DONE
x teachers........................................DONE
- Course.......................................DONE
- All..........................................DONE
x students........................................DONE
- Course.......................................DONE
- All..........................................DONE
- Logs...............................................DONE
- Scales.............................................DONE
- Events.(course)....................................DONE
- Groups.............................................DONE
- Categories and Questions.(STEP 1)..................DONE
+ categories......................................DONE
+ questions structure.............................DONE
- Mods Info..........................................DONE
x assignments.....................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
x attendances.....................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.....(NOT EXISTS).......................DONE
x chats...........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.....(NOT EXISTS).......................DONE
x choices.........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.....(NOT EXISTS).......................DONE
x forums..........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
x glosaries.......................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
x journals........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x labels..........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x quizzes.(STEP 2)................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(ARE COURSE FILES !!!).................DONE
x resources.......................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files..(ARE COURSE FILES !!!)................DONE
x surveys.........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.....(NOT EXISTS).......................DONE
x workshops.......................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
x user files to temp..............................DONE
x course files to temp............................DONE
- Compress the backup (zip)..................................DONE.
- XML File................................................DONE.
- moddata files...........................................DONE.
- Course Files............................................DONE.
- User Files..............................................DONE.
- Copy finished file to browseable dir.......................DONE
- Delete old entries at backup end...........................DONE
- From database...........................................DONE
- From filesystem.........................................DONE
- Browse backup files........................................DONE
- Download backup files......................................DONE
- Delete backup files........................................DONE
- Program scheduled backups..................................DONE
- Build a configuration inteface..........................DONE
- Create the script.......................................DONE
- Integrate it in cron....................................DONE
- 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
- From database...........................................DONE
- From filesystem.........................................DONE
- Restore FrontEnd...........................................DONE
- Check Security........................................DONE
- Select File to Restore................................DONE
- Uncompress the backup (unzip).........................DONE
- XML File..........................................DONE
- Course Files......................................DONE
- User Files........................................DONE
- Check file is a valid one.............................DONE
- Load info from file...................................DONE
- Load Backup Info......................................DONE
- Load Course Header....................................DONE
- Restore into feature..................................DONE
- New course (restore)...............................DONE
- Existing course (import)...........................DONE
- Select Info to Restore (depending from backup)........DONE
- Make decisions........................................DONE
- About existing users...............................DONE
- Launch Restore........................................DONE
- Show progress.........................................DONE
- Restore Items:.............................................DONE
- Course................................................DONE
- Course Summary Data................................DONE
- Course Table....................................DONE
- Sections Table..................................DONE
- Modules Table...................................DONE
- User Accounts Info.................................DONE
x teacheras. .....................................DONE
- None .......................................DONE
- Course.......................................DONE
- All..........................................DONE
x students........................................DONE
- None.........................................DONE
- Course.......................................DONE
- All..........................................DONE
x creators........................................DONE
- None.........................................DONE
- Course.......................................DONE
- All..........................................DONE
x admins..........................................DONE
- None.........................................DONE
- Course.......................................DONE
- All..........................................DONE
- Categories and Questions.(STEP 1)..................DONE
+ categories......................................DONE
+ questions structure.............................DONE
- Scales.............................................DONE
- Events.(course)....................................DONE
- Groups.............................................DONE
- Mods Info Prepare..................................DONE
x read modules zone...............................DONE
x separate every mod..............................DONE
x xmlize (to array) and serialize it..............DONE
x save to db (backup_ids).........................DONE
- Mods Info..........................................DONE
x assignments.....................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
x attendances.....................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x chats...........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x choices.........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x forums..........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
x glosaries.......................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
x journals........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x labels..........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x quizzes.(STEP 2)................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(ARE COURSE FILES !!!).................DONE
x resources.......................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(ARE COURSE FILES !!!).................DONE
x surveys.........................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files.(NOT EXISTS)...........................DONE
x workshops.......................................DONE
+ course data..................................DONE
+ user data....................................DONE
+ files........................................DONE
- User files from temp.......................................DONE
- Course files from temp.....................................DONE
- Log entries................................................DONE
- Readjust instance in course_modules........................DONE
- Readjust modinfo in course (serialize).....................DONE
- Delete old entries at restore end. .......................DONE
- 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
========== ========== ========== =========== =========== =========== ===
This is all. It isn't a little thing !!! :-)
Eloy (stronk7)
29-04-2003
+106
View File
@@ -0,0 +1,106 @@
<?PHP //$Id$
//This script is used to configure and execute the backup proccess.
//Define some globals for all the script
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);
optional_variable($launch);
require_login();
if (!empty($id)) {
if (!isteacheredit($id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Check necessary functions exists. Thanks to gregb@crowncollege.edu
backup_required_functions();
//Check backup_version
if ($id) {
$linkto = "backup.php?id=".$id;
} else {
$linkto = "backup.php";
}
upgrade_backup_db($linkto);
//Get strings
$strcoursebackup = get_string("coursebackup");
$stradministration = get_string("administration");
//If no course has been selected or cancel button pressed
if (!$id or $cancel) {
print_header("$site->shortname: $strcoursebackup", $site->fullname,
"<A HREF=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</A> -> $strcoursebackup");
if ($courses = get_courses()) {
print_heading(get_string("choosecourse"));
print_simple_box_start("CENTER");
foreach ($courses as $course) {
echo "<A HREF=\"backup.php?id=$course->id\">$course->fullname ($course->shortname)</A><BR>";
}
print_simple_box_end();
} else {
print_heading(get_string("nocoursesyet"));
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
}
print_footer();
exit;
}
//Get and check course
if (! $course = get_record("course", "id", $id)) {
error("Course ID was incorrect (can't find it)");
}
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
//Print header
if (isadmin()) {
print_header("$site->shortname: $strcoursebackup", $site->fullname,
"<a href=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</a> ->
<a href=\"backup.php\">$strcoursebackup</a> -> $course->fullname ($course->shortname)");
} else {
print_header("$course->shortname: $strcoursebackup", $course->fullname,
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
$strcoursebackup");
}
//Print form
print_heading("$strcoursebackup: $course->fullname ($course->shortname)");
print_simple_box_start("center", "", "$THEME->cellheading");
//Adjust some php variables to the execution of this script
ini_set("max_execution_time","3000");
ini_set("memory_limit","80M");
//Call the form, depending the step we are
if (!$launch) {
include_once("backup_form.html");
} else if ($launch == "check") {
include_once("backup_check.html");
} else if ($launch == "execute") {
include_once("backup_execute.html");
}
print_simple_box_end();
//Print footer
print_footer();
?>
+266
View File
@@ -0,0 +1,266 @@
<?PHP //$Id$
//This page prints the backup todo list to see everything
//Check login
require_login();
if (!empty($course->id)) {
if (!isteacheredit($course->id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Checks for the required files/functions to backup every mod
//And check if there is data about it
$count = 0;
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
include_once($modfile);
if (function_exists($modbackup) and function_exists($modcheckbackup)) {
$var = "exists_".$modname;
$$var = true;
$count++;
}
}
//Check data
//Check module info
$var = "backup_".$modname;
if (!isset($$var)) {
$$var = 1;
}
//Check include user info
$var = "backup_user_info_".$modname;
if (!isset($$var)) {
$$var = 1;
}
}
}
//Check other parameters
if (!isset($backup_users)) {
$backup_users = 1;
}
if (!isset($backup_logs)) {
$backup_logs = 0;
}
if (!isset($backup_user_files)) {
$backup_user_files = 1;
}
if (!isset($backup_course_files)) {
$backup_course_files = 2;
}
if ($count == 0) {
notice("No backupable modules are installed!");
}
?>
<form name="form" method="post" action="<?php echo $ME ?>">
<table cellpadding=5>
<?php
//Now print the Backup Name tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("name").":";
echo "</B></td><td>";
//Calculate the backup string
//Calculate the backup word
//Take off some characters in the filename !!
$takeoff = array(" ", ":", "/", "\\", "|");
$backup_word = str_replace($takeoff,"_",strtolower(get_string("backupfilename")));
//If non-translated, use "backup"
if (substr($backup_word,0,1) == "[") {
$backup_word= "backup";
}
//Calculate the date format string
$backup_date_format = str_replace(" ","_",get_string("backupnameformat"));
//If non-translated, use "%Y%m%d-%H%M"
if (substr($backup_date_format,0,1) == "[") {
$backup_date_format = "%%Y%%m%%d-%%H%%M";
}
//Calculate the shortname
$backup_shortname = clean_filename($course->shortname);
if (empty($backup_shortname) or $backup_shortname == '_' ) {
$backup_shortname = $course->id;
}
//Calculate the final backup filename
//The backup word
$backup_name = $backup_word."-";
//The shortname
$backup_name .= strtolower($backup_shortname)."-";
//The date format
$backup_name .= userdate(time(),$backup_date_format,99,false);
//The extension
$backup_name .= ".zip";
//Add as text field
echo "<input type=\"text\" name=\"backup_name\" size=\"40\" value=\"".$backup_name."\">";
echo "</td></tr>";
//Calculate the backup unique code to allow simultaneus backups (to define
//the temp-directory name and records in backup temp tables
$backup_unique_code = time();
//Add as hidden name
echo "<input type=\"hidden\" name=\"backup_unique_code\" value=\"".$backup_unique_code."\">";
//Line
echo "<tr><td colspan=\"2\"><hr noshade size=\"1\"></td></tr>";
//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>";
//This is tha align to every ingo table
$table->align = array ("LEFT","RIGHT");
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modbackup = $modname."_backup_mods";
//If exists the lib & function
$var = "exists_".$modname;
if (isset($$var) && $$var) {
//Add hidden fields
$var = "backup_".$modname;
echo "<input type=\"hidden\" name=\"".$var."\" value=\"".$$var."\">";
$var = "backup_user_info_".$modname;
echo "<input type=\"hidden\" name=\"".$var."\" value=\"".$$var."\">";
$var = "backup_".$modname;
//Only if selected
if ($$var == 1) {
//Print the full tr
echo "<tr>";
echo "<td colspan=\"2\"><P><B>";
//Print the mod name
echo "<li>".get_string("include")." ".get_string("modulenameplural",$modname)." ";
//Now look for user-data status
$backup_user_options[0] = get_string("withoutuserdata");
$backup_user_options[1] = get_string("withuserdata");
$var = "backup_user_info_".$modname;
//Print the user info
echo $backup_user_options[$$var]."<P>";
//Call the check function to show more info
$modcheckbackup = $modname."_check_backup_mods";
$table->data = $modcheckbackup($id,$$var,$backup_unique_code);
print_table($table);
echo "</td></tr>";
}
}
}
//Line
echo "<tr><td colspan=\"2\"><hr noshade size=\"1\"></td></tr>";
//Now print the Users tr
echo "<tr>";
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."\">";
//Print info
$table->data = user_check_backup($id,$backup_unique_code,$backup_users);
print_table($table);
echo "</td></tr>";
//Now print the Logs tr conditionally
if ($backup_logs) {
echo "<tr>";
echo "<td colspan=\"2\"><P><B>";
echo "<li>".get_string("includelogentries")."<P>";
//Print info
$table->data = log_check_backup($id);
print_table($table);
echo "</td></tr>";
}
//Add as hidden name
echo "<input type=\"hidden\" name=\"backup_logs\" value=\"".$backup_logs."\">";
//Now print the User Files tr conditionally
if ($backup_user_files) {
echo "<tr>";
echo "<td colspan=\"2\"><P><B>";
echo "<li>".get_string("includeuserfiles")."<P>";
//Print info
$table->data = user_files_check_backup($id,$backup_unique_code);
print_table($table);
echo "</td></tr>";
}
//Add as hidden name
echo "<input type=\"hidden\" name=\"backup_user_files\" value=\"".$backup_user_files."\">";
//Now print the Course Files tr conditionally
if ($backup_course_files) {
echo "<tr>";
echo "<td colspan=\"2\"><P><B>";
echo "<li>".get_string("includecoursefiles")."<P>";
//Print info
$table->data = course_files_check_backup($id,$backup_unique_code);
print_table($table);
echo "</td></tr>";
}
//Add as hidden name
echo "<input type=\"hidden\" name=\"backup_course_files\" value=\"".$backup_course_files."\">";
}
?>
</table>
<BR>
<CENTER>
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=launch value="execute">
<input type="submit" value="<?php print_string("continue") ?>">
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
</CENTER>
</FORM>
+345
View File
@@ -0,0 +1,345 @@
<?PHP //$Id$
//This page prints the backup todo list to see everything
//Check login
require_login();
if (!empty($course->id)) {
if (!isteacheredit($course->id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Checks for the required files/functions to backup every mod
//And check if there is data about it
$count = 0;
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
include_once($modfile);
if (function_exists($modbackup) and function_exists($modcheckbackup)) {
$var = "exists_".$modname;
$$var = true;
$count++;
}
}
//Check data
//Check module info
$var = "backup_".$modname;
if (!isset($$var)) {
//Every undefined backup_XXXX isn't exported
$$var = 0;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->backup = $$var;
//Check include user info
$var = "backup_user_info_".$modname;
if (!isset($$var)) {
$$var = 1;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->userinfo = $$var;
//And the name of the mod
$preferences->mods[$modname]->name = $modname;
}
}
//Check other parameters
if (!isset($backup_users)) {
$backup_users = 1;
}
$preferences->backup_users = $backup_users;
if (!isset($backup_logs)) {
$backup_logs = 0;
}
$preferences->backup_logs = $backup_logs;
if (!isset($backup_user_files)) {
$backup_user_files = 1;
}
$preferences->backup_user_files = $backup_user_files;
if (!isset($backup_course_files)) {
$backup_course_files = 2;
}
$preferences->backup_course_files = $backup_course_files;
if (!isset($id)) {
error ("Course not specified");
}
$preferences->backup_course = $id;
if (!isset($backup_name)) {
error ("Backup name not specified");
}
$preferences->backup_name = $backup_name;
if (!isset($backup_unique_code)) {
error ("Backup unique code not specified");
}
$preferences->backup_unique_code = $backup_unique_code;
//Another Info
$preferences->moodle_version = $CFG->version;
$preferences->moodle_release = $CFG->release;
$preferences->backup_version = $CFG->backup_version;
$preferences->backup_release = $CFG->backup_release;
if ($count == 0) {
notice("No backupable modules are installed!");
}
//Start the main table
echo "<table cellpadding=5>";
//Now print the Backup Name tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("name").":";
echo "</B></td><td>";
echo $backup_name;
echo "</td></tr>";
//Start the main tr, where all the backup progress is done
echo "<tr>";
echo "<td colspan=\"2\">";
//Start the main ul
echo "<ul>";
//Check for temp and backup and backup_unique_code directory
//Create them as needed
echo "<li>".get_string("creatingtemporarystructures");
$status = check_and_create_backup_dir($backup_unique_code);
//Empty dir
if ($status) {
$status = clear_backup_dir($backup_unique_code);
}
//Delete old_entries from backup tables
echo "<li>".get_string("deletingolddata");
$status = backup_delete_old_data();
if (!$status) {
error ("An error occurred deleting old backup data");
}
//Create the moodle.xml file
if ($status) {
echo "<li>".get_string("creatingxmlfile");
//Begin a new list to xml contents
echo "<ul>";
echo "<li>".get_string("writingheader");
//Obtain the xml file (create and open) and print prolog information
$backup_file = backup_open_xml($backup_unique_code);
echo "<li>".get_string("writinggeneralinfo");;
//Prints general info about backup to file
if ($backup_file) {
if (!$status = backup_general_info($backup_file,$preferences)) {
notify("An error occurred while backing up general info");
}
}
echo "<li>".get_string("writingcoursedata");
//Start new ul (for course)
echo "<ul>";
echo "<li>".get_string("courseinfo");
//Prints course start (tag and general info)
if ($status) {
if (!$status = backup_course_start($backup_file,$preferences)) {
notify("An error occurred while backing up course start");
}
}
echo "<li>".get_string("sections");
//Section info
if ($status) {
if (!$status = backup_course_sections($backup_file,$preferences)) {
notify("An error occurred while backing up course sections");
}
}
//End course contents (close ul)
echo "</ul>";
echo "<li>".get_string("writinguserinfo");
//User info
if ($status) {
if (!$status = backup_user_info($backup_file,$preferences)) {
notify("An error occurred while backing up user info");
}
}
//If we have selected to backup quizzes, backup categories and
//questions structure (step 1). See notes on mod/quiz/backuplib.php
if ($status and $preferences->mods['quiz']->backup) {
echo "<li>".get_string("writingcategoriesandquestions");
if (!$status = quiz_backup_question_categories($backup_file,$preferences)) {
notify("An error occurred while backing up quiz categories");
}
}
//Print logs if selected
if ($status) {
if ($preferences->backup_logs) {
echo "<li>".get_string("writingloginfo");
if (!$status = backup_log_info($backup_file,$preferences)) {
notify("An error occurred while backing up log info");
}
}
}
//Print scales info
if ($status) {
echo "<li>".get_string("writingscalesinfo");
if (!$status = backup_scales_info($backup_file,$preferences)) {
notify("An error occurred while backing up scales");
}
}
//Print groups info
if ($status) {
echo "<li>".get_string("writinggroupsinfo");
if (!$status = backup_groups_info($backup_file,$preferences)) {
notify("An error occurred while backing up groups");
}
}
//Print events info
if ($status) {
echo "<li>".get_string("writingeventsinfo");
if (!$status = backup_events_info($backup_file,$preferences)) {
notify("An error occurred while backing up events");
}
}
//Module info, this unique function makes all the work!!
//db export and module fileis copy
if ($status) {
$mods_to_backup = false;
//Check if we have any mod to backup
foreach ($preferences->mods as $module) {
if ($module->backup) {
$mods_to_backup = true;
}
}
//If we have to backup some module
if ($mods_to_backup) {
echo "<li>".get_string("writingmoduleinfo");
//Start modules tag
if (!$status = backup_modules_start ($backup_file,$preferences)) {
notify("An error occurred while backing up module info");
}
//Open ul for module list
echo "<ul>";
//Iterate over modules and call backup
foreach ($preferences->mods as $module) {
if ($module->backup and $status) {
echo "<li>".get_string("modulenameplural",$module->name);
if (!$status = backup_module($backup_file,$preferences,$module->name)) {
notify("An error occurred while backing up '$module->name'");
}
}
}
//Close ul for module list
echo "</ul>";
//Close modules tag
if (!$status = backup_modules_end ($backup_file,$preferences)) {
notify("An error occurred while finishing the module backups");
}
}
}
//Prints course end
if ($status) {
if (!$status = backup_course_end($backup_file,$preferences)) {
notify("An error occurred while closing the course backup");
}
}
//Close the xml file and xml data
if ($backup_file) {
backup_close_xml($backup_file);
}
//End xml contents (close ul)
echo "</ul>";
}
//Now, if selected, copy user files
if ($status) {
if ($preferences->backup_user_files) {
echo "<li>".get_string("copyinguserfiles");
if (!$status = backup_copy_user_files ($preferences)) {
notify("An error occurred while copying user files");
}
}
}
//Now, if selected, copy course files
if ($status) {
if ($preferences->backup_course_files) {
echo "<li>".get_string("copyingcoursefiles");
if (!$status = backup_copy_course_files ($preferences)) {
notify("An error occurred while copying course files");
}
}
}
//Now, zip all the backup directory contents
if ($status) {
echo "<li>".get_string("zippingbackup");
if (!$status = backup_zip ($preferences)) {
notify("An error occurred while zipping the backup");
}
}
//Now, copy the zip file to course directory
if ($status) {
echo "<li>".get_string("copyingzipfile");
if (!$status = copy_zip_to_course_dir ($preferences)) {
notify("An error occurred while copying the zip file to the course directory");
}
}
//Now, clean temporary data (db and filesystem)
if ($status) {
echo "<li>".get_string("cleaningtempdata");
if (!$status = clean_temp_data ($preferences)) {
notify("An error occurred while cleaning up temporary data");
}
}
//Ends th main ul
echo "</ul>";
//End the main tr, where all the backup is done
echo "</td></tr>";
//End the main table
echo "</table>";
if (!$status) {
error ("The backup did not complete successfully",
"$CFG->wwwroot/course/view.php?id=$course->id");
}
//Print final message
print_simple_box(get_string("backupfinished"),"CENTER");
print_continue("$CFG->wwwroot/files/index.php?id=".$preferences->backup_course."&wdir=/backupdata");
?>
+155
View File
@@ -0,0 +1,155 @@
<?PHP //$Id$
//This page prints the backup form to select everything
//Check login
require_login();
if (!empty($course->id)) {
if (!isteacheredit($course->id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Checks for the required files/functions to backup every mod
//And check if there is data about it
$count = 0;
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
include_once($modfile);
if (function_exists($modbackup) and function_exists($modcheckbackup)) {
$var = "exists_".$modname;
$$var = true;
$count++;
}
}
//Check data
//Check module info
$var = "backup_".$modname;
if (!isset($$var)) {
$$var = 1;
}
//Check include user info
$var = "backup_user_info_".$modname;
if (!isset($$var)) {
$$var = 1;
}
}
}
//Check other parameters
if (!isset($backup_users)) {
$backup_users = 1;
}
if (!isset($backup_logs)) {
$backup_logs = 0;
}
if (!isset($backup_user_files)) {
$backup_user_files = 1;
}
if (!isset($backup_course_files)) {
$backup_course_files = 1;
}
if ($count == 0) {
notice("No backupable modules are installed!");
}
?>
<form name="form" method="post" action="<?php echo $ME ?>">
<table cellpadding=5>
<?php
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modbackup = $modname."_backup_mods";
//If exists the lib & function
$var = "exists_".$modname;
if (isset($$var) && $$var) {
//Print the full tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("include")." ". get_string("modulenameplural",$modname).":";
echo "</td><td>";
$backup_options[0] = get_string("no");
$backup_options[1] = get_string("yes");
$var = "backup_".$modname;
choose_from_menu($backup_options, $var, $$var, "");
$backup_user_options[0] = get_string("withoutuserdata");
$backup_user_options[1] = get_string("withuserdata");
$var = "backup_user_info_".$modname;
choose_from_menu($backup_user_options, $var, $$var, "");
echo "</td></tr>";
}
}
//Line
echo "<tr><td colspan=\"2\"><hr noshade size=\"1\"></td></tr>";
//Now print the Users tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("users").":";
echo "</td><td>";
$user_options[0] = get_string("all");
$user_options[1] = get_string("course");
$user_options[2] = get_string("none");
choose_from_menu($user_options, "backup_users", $backup_users, "");
echo "</td></tr>";
//Now print the Logs tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("logs").":";
echo "</td><td>";
$log_options[0] = get_string("no");
$log_options[1] = get_string("yes");
choose_from_menu($log_options, "backup_logs", $backup_logs, "");
echo "</td></tr>";
//Now print the User Files tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string ("userfiles").":";
echo "</td><td>";
$user_file_options[0] = get_string("no");
$user_file_options[1] = get_string("yes");
choose_from_menu($user_file_options, "backup_user_files", $backup_user_files, "");
echo "</td></tr>";
//Now print the Course Files tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string ("coursefiles").":";
echo "</td><td>";
$course_file_options[0] = get_string("no");
$course_file_options[1] = get_string("yes");
choose_from_menu($course_file_options, "backup_course_files", $backup_course_files, "");
echo "</td></tr>";
}
?>
</table>
<BR>
<CENTER>
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=launch value="check">
<input type="submit" value="<?php print_string("continue") ?>">
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
</CENTER>
</FORM>
+691
View File
@@ -0,0 +1,691 @@
<?PHP //$Id$
//This file contains all the code needed to execute scheduled backups
//This function is executed via moodle cron
//It prepares all the info and execute backups as necessary
function schedule_backup_cron() {
global $CFG;
$status = true;
$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();
//First of all, we have to see if the scheduled is active and detect
//that there isn't another cron running
echo " Checking backup status";
$backup_config = backup_get_config();
if(!isset($backup_config->backup_sche_active) || !$backup_config->backup_sche_active) {
echo "...INACTIVE\n";
return true;
} else if (isset($backup_config->backup_sche_running) && $backup_config->backup_sche_running) {
echo "...RUNNING\n";
//Now check if it's a really running task or something very old looking
//for info in backup_logs to unlock status as necessary
$timetosee = 1800; //Half an hour looking for activity
$timeafter = time() - $timetosee;
$numofrec = count_records_select ("backup_log","time > $timeafter");
if (!$numofrec) {
$timetoseemin = $timetosee/60;
echo " No activity in last ".$timetoseemin." minutes. Unlocking status\n";
} else {
echo " Scheduled backup seems to be running. Execution delayed\n";
return true;
}
} else {
echo "...OK\n";
//Mark backup_sche_running
backup_set_config("backup_sche_running","1");
}
//Now we get the main admin user (we'll use his timezone, mail...)
echo " Getting admin info\n";
$admin = get_admin();
if (!$admin) {
$status = false;
}
//Now we get a list of courses in the server
if ($status) {
echo " Checking courses\n";
$courses = get_records("course");
//For each course, we check (insert, update) the backup_course table
//with needed data
foreach ($courses as $course) {
if ($status) {
echo " $course->fullname\n";
//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);
}
//If it doesn't exist now, error
if (!$backup_course) {
echo " ERROR (in backup_courses detection)\n";
$status = false;
}
//Now we backup every course with nextstarttime < now
if ($backup_course->nextstarttime > 0 && $backup_course->nextstarttime < $now) {
//Set laststarttime
$starttime = time();
set_field("backup_courses","laststarttime",$starttime,"courseid",$backup_course->courseid);
//Launch backup
$course_status = schedule_backup_launch_backup($course,$starttime);
//We have to send a email because we have included at least one backup
$emailpending = true;
//Set lastendtime
set_field("backup_courses","lastendtime",time(),"courseid",$backup_course->courseid);
//Set laststatus
if ($course_status) {
set_field("backup_courses","laststatus","1","courseid",$backup_course->courseid);
} else {
set_field("backup_courses","laststatus","0","courseid",$backup_course->courseid);
}
}
//Now, calculate next execution of the course
$nextstarttime = schedule_backup_next_execution ($backup_course,$backup_config,$now,$admin->timezone);
//Save it to db
set_field("backup_courses","nextstarttime",$nextstarttime,"courseid",$backup_course->courseid);
//Print it to screen as necessary
$showtime = "undefined";
if ($nextstarttime > 0) {
$showtime = userdate($nextstarttime,"",$admin->timezone);
}
echo " Next execution: $showtime\n";
}
}
}
//Delete old logs
if (!empty($CFG->loglifetime)) {
echo " Deleting old logs\n";
$loglifetime = $now - ($CFG->loglifetime * 86400);
delete_records_select("backup_log", "laststarttime < '$loglifetime'");
}
//Send email to admin
if ($emailpending) {
echo " Sending email to admin\n";
$message = "";
//Build the message text (future versions should handle html messages too!!)
$logs = get_records_select ("backup_log","laststarttime >= '$now'","id");
if ($logs) {
$currentcourse = 1;
foreach ($logs as $log) {
if ($currentcourse != $log->courseid) {
$message .= "\n==================================================\n\n";
$currentcourse = $log->courseid;
}
$message .= userdate($log->time,"%T",$admin->timezone)." ".$log->info."\n";
}
}
//Send the message
$site = get_site();
email_to_user($admin,$admin,"$site->shortname: ".get_string("scheduledbackupstatus"),$message);
}
//Everything is finished stop backup_sche_running
backup_set_config("backup_sche_running","0");
return $status;
}
//This function executes the ENTIRE backup of a course (passed as parameter)
//using all the scheduled backup preferences
function schedule_backup_launch_backup($course,$starttime = 0) {
$preferences = false;
$status = false;
echo " Executing backup\n";
schedule_backup_log($starttime,$course->id,"Start backup course $course->fullname");
schedule_backup_log($starttime,$course->id," Phase 1: Checking and counting:");
$preferences = schedule_backup_course_configure($course,$starttime);
if ($preferences) {
schedule_backup_log($starttime,$course->id," Phase 2: Executing and copying:");
$status = schedule_backup_course_execute($preferences,$starttime);
}
if ($status && $preferences) {
//Only if the backup_sche_keep is set
if ($preferences->backup_keep) {
schedule_backup_log($starttime,$course->id," Phase 3: Deleting old backup files:");
$status = schedule_backup_course_delete_old_files($preferences,$starttime);
}
}
if ($status && $preferences) {
echo " End backup OK\n";
schedule_backup_log($starttime,$course->id,"End backup course $course->fullname - OK");
} else {
echo " End backup with ERROR\n";
schedule_backup_log($starttime,$course->id,"End backup course $course->fullname - ERROR!!");
}
return $status && $preferences;
}
//This function saves to backup_log all the needed process info
//to use it later. NOTE: If $starttime = 0 no info in saved
function schedule_backup_log($starttime,$courseid,$message) {
if ($starttime) {
$log->courseid = $courseid;
$log->time = time();
$log->laststarttime = $starttime;
$log->info = $message;
insert_record ("backup_log",$log);
}
}
//This function returns the next future GMT time to execute the course based in the
//configuration of the scheduled backups
function schedule_backup_next_execution ($backup_course,$backup_config,$now,$timezone) {
$result = -1;
//Get today's midnight GMT
$midnight = usergetmidnight($now,$timezone);
//Get today's day of week (0=Sunday...6=Saturday)
$date = usergetdate($now,$timezone);
$dayofweek = $date['wday'];
//Get number of days (from today) to execute backups
$scheduled_days = substr($backup_config->backup_sche_weekdays,$dayofweek).
$backup_config->backup_sche_weekdays;
$daysfromtoday = strpos($scheduled_days, "1");
//If some day has been found
if ($daysfromtoday !== false) {
//Calculate distance
$dist = ($daysfromtoday * 86400) + //Days distance
($backup_config->backup_sche_hour*3600) + //Hours distance
($backup_config->backup_sche_minute*60); //Minutes distance
$result = $midnight + $dist;
}
//If that time is past, call the function recursively to obtain the next valid day
if ($result > 0 && $result < time()) {
$result = schedule_backup_next_execution ($backup_course,$backup_config,$now + 86400,$timezone);
}
return $result;
}
//This function implements all the needed code to prepare a course
//to be in backup (insert temp info into backup temp tables).
function schedule_backup_course_configure($course,$starttime = 0) {
global $CFG;
$status = true;
schedule_backup_log($starttime,$course->id," checking parameters");
//Check the required variable
if (empty($course->id)) {
$status = false;
}
//Get scheduled backup preferences
$backup_config = backup_get_config();
//Checks backup_config pairs exist
if ($status) {
if (!isset($backup_config->backup_sche_modules)) {
$backup_config->backup_sche_modules = 1;
}
if (!isset($backup_config->backup_sche_withuserdata)) {
$backup_config->backup_sche_withuserdata = 1;
}
if (!isset($backup_config->backup_sche_users)) {
$backup_config->backup_sche_users = 1;
}
if (!isset($backup_config->backup_sche_logs)) {
$backup_config->backup_sche_logs = 0;
}
if (!isset($backup_config->backup_sche_userfiles)) {
$backup_config->backup_sche_userfiles = 1;
}
if (!isset($backup_config->backup_sche_coursefiles)) {
$backup_config->backup_sche_coursefiles = 1;
}
if (!isset($backup_config->backup_sche_active)) {
$backup_config->backup_sche_active = 0;
}
if (!isset($backup_config->backup_sche_weekdays)) {
$backup_config->backup_sche_weekdays = "0000000";
}
if (!isset($backup_config->backup_sche_hour)) {
$backup_config->backup_sche_hour = 00;
}
if (!isset($backup_config->backup_sche_minute)) {
$backup_config->backup_sche_minute = 00;
}
if (!isset($backup_config->backup_sche_destination)) {
$backup_config->backup_sche_destination = "";
}
if (!isset($backup_config->backup_sche_keep)) {
$backup_config->backup_sche_keep = 1;
}
}
if ($status) {
//Checks for the required files/functions to backup every mod
//And check if there is data about it
$count = 0;
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
include_once($modfile);
if (function_exists($modbackup) and function_exists($modcheckbackup)) {
$var = "exists_".$modname;
$$var = true;
$count++;
}
}
//Check data
//Check module info
$var = "backup_".$modname;
if (!isset($$var)) {
$$var = $backup_config->backup_sche_modules;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->backup = $$var;
//Check include user info
$var = "backup_user_info_".$modname;
if (!isset($$var)) {
$$var = $backup_config->backup_sche_withuserdata;
}
//Now stores all the mods preferences into an array into preferences
$preferences->mods[$modname]->userinfo = $$var;
//And the name of the mod
$preferences->mods[$modname]->name = $modname;
}
}
}
//Convert other parameters
if ($status) {
$preferences->backup_users = $backup_config->backup_sche_users;
$preferences->backup_logs = $backup_config->backup_sche_logs;
$preferences->backup_user_files = $backup_config->backup_sche_userfiles;
$preferences->backup_course_files = $backup_config->backup_sche_coursefiles;
$preferences->backup_course = $course->id;
$preferences->backup_destination = $backup_config->backup_sche_destination;
$preferences->backup_keep = $backup_config->backup_sche_keep;
}
//Calculate the backup string
if ($status) {
schedule_backup_log($starttime,$course->id," calculating backup name");
//Calculate the backup word
//Take off some characters in the filename !!
$takeoff = array(" ", ":", "/", "\\", "|");
$backup_word = str_replace($takeoff,"_",strtolower(get_string("backupfilename")));
//If non-translated, use "backup"
if (substr($backup_word,0,1) == "[") {
$backup_word= "backup";
}
//Calculate the date format string
$backup_date_format = str_replace(" ","_",get_string("backupnameformat"));
//If non-translated, use "%Y%m%d-%H%M"
if (substr($backup_date_format,0,1) == "[") {
$backup_date_format = "%%Y%%m%%d-%%H%%M";
}
//Calculate the shortname
$backup_shortname = clean_filename($course->shortname);
if (empty($backup_shortname) or $backup_shortname == '_' ) {
$backup_shortname = $course->id;
}
//Calculate the final backup filename
//The backup word
$backup_name = $backup_word."-";
//The shortname
$backup_name .= strtolower($backup_shortname)."-";
//The date format
$backup_name .= userdate(time(),$backup_date_format,99,false);
//The extension
$backup_name .= ".zip";
//Calculate the string to match the keep preference
$keep_name = $backup_word."-";
//The shortname
$keep_name .= strtolower($backup_shortname)."-";
$preferences->backup_name = $backup_name;
$preferences->keep_name = $keep_name;
}
//Calculate the backup unique code to allow simultaneus backups (to define
//the temp-directory name and records in backup temp tables
if ($status) {
$backup_unique_code = time();
$preferences->backup_unique_code = $backup_unique_code;
}
//Calculate necesary info to backup modules
if ($status) {
schedule_backup_log($starttime,$course->id," calculating modules data");
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modbackup = $modname."_backup_mods";
//If exists the lib & function
$var = "exists_".$modname;
if (isset($$var) && $$var) {
//Add hidden fields
$var = "backup_".$modname;
//Only if selected
if ($$var == 1) {
$var = "backup_user_info_".$modname;
//Call the check function to show more info
$modcheckbackup = $modname."_check_backup_mods";
schedule_backup_log($starttime,$course->id," $modname");
$modcheckbackup($course->id,$$var,$backup_unique_code);
}
}
}
}
}
//Now calculate the users
if ($status) {
schedule_backup_log($starttime,$course->id," calculating users");
user_check_backup($course->id,$backup_unique_code,$preferences->backup_users);
}
//Now calculate the logs
if ($status) {
if ($preferences->backup_logs) {
schedule_backup_log($starttime,$course->id," calculating logs");
log_check_backup($course->id);
}
}
//Now calculate the userfiles
if ($status) {
if ($preferences->backup_user_files) {
schedule_backup_log($starttime,$course->id," calculating user files");
user_files_check_backup($course->id,$preferences->backup_unique_code);
}
}
//Now calculate the coursefiles
if ($status) {
if ($preferences->backup_course_files) {
schedule_backup_log($starttime,$course->id," calculating course files");
course_files_check_backup($course->id,$preferences->backup_unique_code);
}
}
//If everything is ok, return calculated preferences
if ($status) {
$status = $preferences;
}
return $status;
}
//This function implements all the needed code to backup a course
//copying it to the desired destination (default if not specified)
function schedule_backup_course_execute($preferences,$starttime = 0) {
global $CFG;
$status = true;
//Another Info to add
$preferences->moodle_version = $CFG->version;
$preferences->moodle_release = $CFG->release;
$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 backup dir
if ($status) {
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();
}
//Create the moodle.xml file
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," creating backup file");
//Obtain the xml file (create and open) and print prolog information
$backup_file = backup_open_xml($preferences->backup_unique_code);
//Prints general info about backup to file
if ($backup_file) {
schedule_backup_log($starttime,$preferences->backup_course," general info");
$status = backup_general_info($backup_file,$preferences);
} else {
$status = false;
}
//Prints course start (tag and general info)
if ($status) {
$status = backup_course_start($backup_file,$preferences);
}
//Section info
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," sections info");
$status = backup_course_sections($backup_file,$preferences);
}
//User info
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," user info");
$status = backup_user_info($backup_file,$preferences);
}
//If we have selected to backup quizzes, backup categories and
//questions structure (step 1). See notes on mod/quiz/backuplib.php
if ($status and $preferences->mods['quiz']->backup) {
schedule_backup_log($starttime,$preferences->backup_course," categories & questions");
$status = quiz_backup_question_categories($backup_file,$preferences);
}
//Print logs if selected
if ($status) {
if ($preferences->backup_logs) {
schedule_backup_log($starttime,$preferences->backup_course," logs");
$status = backup_log_info($backup_file,$preferences);
}
}
//Print scales info
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," scales");
$status = backup_scales_info($backup_file,$preferences);
}
//Print groups info
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," groups");
$status = backup_groups_info($backup_file,$preferences);
}
//Print events info
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," events");
$status = backup_events_info($backup_file,$preferences);
}
//Module info, this unique function makes all the work!!
//db export and module fileis copy
if ($status) {
$mods_to_backup = false;
//Check if we have any mod to backup
foreach ($preferences->mods as $module) {
if ($module->backup) {
$mods_to_backup = true;
}
}
//If we have to backup some module
if ($mods_to_backup) {
schedule_backup_log($starttime,$preferences->backup_course," modules");
//Start modules tag
$status = backup_modules_start ($backup_file,$preferences);
//Iterate over modules and call backup
foreach ($preferences->mods as $module) {
if ($module->backup and $status) {
schedule_backup_log($starttime,$preferences->backup_course," $module->name");
$status = backup_module($backup_file,$preferences,$module->name);
}
}
//Close modules tag
$status = backup_modules_end ($backup_file,$preferences);
}
}
//Prints course end
if ($status) {
$status = backup_course_end($backup_file,$preferences);
}
//Close the xml file and xml data
if ($backup_file) {
backup_close_xml($backup_file);
}
}
//Now, if selected, copy user files
if ($status) {
if ($preferences->backup_user_files) {
schedule_backup_log($starttime,$preferences->backup_course," copying user files");
$status = backup_copy_user_files ($preferences);
}
}
//Now, if selected, copy course files
if ($status) {
if ($preferences->backup_course_files) {
schedule_backup_log($starttime,$preferences->backup_course," copying course files");
$status = backup_copy_course_files ($preferences);
}
}
//Now, zip all the backup directory contents
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," zipping files");
$status = backup_zip ($preferences);
}
//Now, copy the zip file to course directory
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," copying backup");
$status = copy_zip_to_course_dir ($preferences);
}
//Now, clean temporary data (db and filesystem)
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," cleaning temp data");
$status = clean_temp_data ($preferences);
}
//Unset CFG->backup_preferences only needed in scheduled backups
unset ($CFG->backup_preferences);
return $status;
}
//This function deletes old backup files when the "keep" limit has been reached
//in the destination directory.
function schedule_backup_course_delete_old_files($preferences,$starttime=0) {
global $CFG;
$status = true;
//Calculate the directory to check
$dirtocheck = "";
//if $preferences->backup_destination isn't empty, then check that directory
if (!empty($preferences->backup_destination)) {
$dirtocheck = $preferences->backup_destination;
//else calculate standard backup directory location
} else {
$dirtocheck = $CFG->dataroot."/".$preferences->backup_course."/backupdata";
}
schedule_backup_log($starttime,$preferences->backup_course," checking $dirtocheck");
echo " Keeping backup files in $dirtocheck\n";
//Get all the files in $dirtocheck
$files = get_directory_list($dirtocheck,"",false);
//Get all matching files ($preferences->keep_name) from $files
$matchingfiles = array();
foreach ($files as $file) {
if (substr($file, 0, strlen($preferences->keep_name)) == $preferences->keep_name) {
$modifieddate = filemtime($dirtocheck."/".$file);
$matchingfiles[$modifieddate] = $file;
}
}
//Sort by key (modified date) to get the oldest first (instead of doing that by name
//because it could give us problems in some languages with different format names).
ksort($matchingfiles);
//Count matching files
$countmatching = count($matchingfiles);
schedule_backup_log($starttime,$preferences->backup_course," found $countmatching backup files");
echo " found $countmatching backup files\n";
if ($preferences->backup_keep < $countmatching) {
schedule_backup_log($starttime,$preferences->backup_course," keep limit ($preferences->backup_keep) reached. Deleting old files");
echo " keep limit ($preferences->backup_keep) reached. Deleting old files\n";
$filestodelete = $countmatching - $preferences->backup_keep;
$filesdeleted = 0;
foreach ($matchingfiles as $matchfile) {
if ($filesdeleted < $filestodelete) {
schedule_backup_log($starttime,$preferences->backup_course," $matchfile deleted");
echo " $matchfile deleted\n";
$filetodelete = $dirtocheck."/".$matchfile;
unlink($filetodelete);
$filesdeleted++;
}
}
}
return $status;
}
?>
+1357
View File
File diff suppressed because it is too large Load Diff
+208
View File
@@ -0,0 +1,208 @@
<?php
//Get some strings
$yes = get_string("yes");
$no = get_string("no");
$withuserdata = get_string("withuserdata");
$withoutuserdata = get_string("withoutuserdata");
$course = get_string("course");
$all = get_string("all");
$include = get_string("include");
$modules = get_string("modules");
//Get backup_config pairs
$backup_config = backup_get_config();
//Checks backup_config pairs exist
if (!isset($backup_config->backup_sche_modules)) {
$backup_config->backup_sche_modules = 1;
}
if (!isset($backup_config->backup_sche_withuserdata)) {
$backup_config->backup_sche_withuserdata = 1;
}
if (!isset($backup_config->backup_sche_users)) {
$backup_config->backup_sche_users = 1;
}
if (!isset($backup_config->backup_sche_logs)) {
$backup_config->backup_sche_logs = 0;
}
if (!isset($backup_config->backup_sche_userfiles)) {
$backup_config->backup_sche_userfiles = 1;
}
if (!isset($backup_config->backup_sche_coursefiles)) {
$backup_config->backup_sche_coursefiles = 1;
}
if (!isset($backup_config->backup_sche_active)) {
$backup_config->backup_sche_active = 0;
}
if (!isset($backup_config->backup_sche_weekdays)) {
$backup_config->backup_sche_weekdays = "0000000";
}
if (!isset($backup_config->backup_sche_hour)) {
$backup_config->backup_sche_hour = 00;
}
if (!isset($backup_config->backup_sche_minute)) {
$backup_config->backup_sche_minute = 00;
}
if (!isset($backup_config->backup_sche_destination)) {
$backup_config->backup_sche_destination = "";
}
if (!isset($backup_config->backup_sche_keep)) {
$backup_config->backup_sche_keep = 1;
}
//print_object($backup_config); //Debug
//Yes/no array for use in yes/no menu
$yesno_array[0] = $no;
$yesno_array[1] = $yes;
//With user data/without user data array for use in menu
$withwithout_array[0] = $withoutuserdata;
$withwithout_array[1] = $withuserdata;
//Course/alla array for use in course/all menu
$courseall_array[0] = $all;
$courseall_array[1] = $course;
//Keep array for use in keep menu
$keep_array[0] = $all;
$keep_array[1] = "1";
$keep_array[2] = "2";
$keep_array[5] = "5";
$keep_array[10] = "10";
$keep_array[20] = "20";
$keep_array[30] = "30";
$keep_array[40] = "40";
$keep_array[50] = "50";
$keep_array[100] = "100";
$keep_array[200] = "200";
$keep_array[300] = "300";
$keep_array[400] = "400";
$keep_array[500] = "500";
?>
<form method="post" action="backup.php" name="form">
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td colspan = 3 align=center><strong><?php print_string("settings") ?></strong></td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("includemodules") ?>:</td>
<td nowrap>
<?php choose_from_menu($yesno_array, "backup_sche_modules", $backup_config->backup_sche_modules, "") ?>
<?php choose_from_menu($withwithout_array, "backup_sche_withuserdata", $backup_config->backup_sche_withuserdata, "") ?>
</td>
<td>
<?php print_string("backupincludemoduleshelp") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("users") ?>:</td>
<td>
<?php choose_from_menu($courseall_array, "backup_sche_users", $backup_config->backup_sche_users, "") ?>
</td>
<td>
<?php print_string("backupusershelp") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("logs") ?>:</td>
<td>
<?php choose_from_menu($yesno_array, "backup_sche_logs", $backup_config->backup_sche_logs, "") ?>
</td>
<td>
<?php print_string("backuplogshelp") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("userfiles") ?>:</td>
<td>
<?php choose_from_menu($yesno_array, "backup_sche_userfiles", $backup_config->backup_sche_userfiles, "") ?>
</td>
<td>
<?php print_string("backupuserfileshelp") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("coursefiles") ?>:</td>
<td>
<?php choose_from_menu($yesno_array, "backup_sche_coursefiles", $backup_config->backup_sche_coursefiles, "") ?>
</td>
<td>
<?php print_string("backupcoursefileshelp") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><?php print_string("keep") ?>:</td>
<td>
<?php
choose_from_menu($keep_array, "backup_sche_keep", $backup_config->backup_sche_keep, "");
print_string("files");
?>
</td>
<td>
<?php print_string("backupkeephelp") ?>
</td>
</tr>
<tr valign=top>
<td colspan = 3 align=center><strong><?php print_string("schedule") ?></strong></td>
</tr>
<tr valign=top>
<td colspan = 3 align=center>
<?php print_string("active") ?>: <?php choose_from_menu($yesno_array, "backup_sche_active", $backup_config->backup_sche_active, "") ?>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<?php
//Get first day of week from languaje files
//after searching the web I haven't find a sytem to retrieve it in php from locale info
$firstdayofweek = get_string("firstdayofweek");
//If it is empty ot it is different of 1, default to 0
if (!isset($firstdayofweek) || $firstdayofweek != 1) {
$firstdayofweek = 0;
}
//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[] = 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;
//Calculate the status of the checkbox
if (substr($backup_config->backup_sche_weekdays,$stddayofweek,1) == "1") {
$strchecked = " checked";
} else {
$strchecked = "";
}
$check_names[] = "<input type=\"checkbox\" name=\"dayofweek_$stddayofweek\" value=\"1\"$strchecked>";
$i++;
}
$table->align = array("center","center","center","center","center","center","center");
$table->head = $day_names;
$table->data[] = $check_names;
print_table($table);
?>
</td>
</tr>
<tr valign=top>
<td colspan = 3 align=center>
<?php print_string("executeat") ?>: <?php print_time_selector("backup_sche_hour","backup_sche_minute",make_timestamp(2000,1,1,$backup_config->backup_sche_hour,$backup_config->backup_sche_minute)) ?>
</td>
</tr>
<tr valign=top>
<td colspan = 3 align=center>
<?php print_string("saveto") ?>: <input name="backup_sche_destination" type="text" size="40" value="<?php p($backup_config->backup_sche_destination) ?>"><br><?php if (!empty($sche_destination_error)) { formerr($sche_destination_error); echo "<br>"; } ?><?php print_string("backupsavetohelp") ?>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
</tr>
</table>
</form>
+112
View File
@@ -0,0 +1,112 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// backup/restore utility.
//
// 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 backup_upgrade($oldversion=0) {
global $CFG;
$result = true;
if ($oldversion < 2003050300 and $result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_ids` (
`backup_code` INT(12) UNSIGNED NOT NULL,
`table_name` VARCHAR(30) NOT NULL,
`old_id` INT(10) UNSIGNED NOT NULL,
`new_id` INT(10) UNSIGNED,
PRIMARY KEY (`backup_code`, `table_name`, `old_id`)
)
COMMENT = 'To store and convert ids in backup/restore'");
}
if ($oldversion < 2003050301 and $result) {
$result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids`
ADD `info` VARCHAR(30)");
}
if ($oldversion < 2003050400 and $result) {
$result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids`
MODIFY `info` VARCHAR(255)");
}
if ($oldversion < 2003050401 and $result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_files` (
`backup_code` INT( 10 ) UNSIGNED NOT NULL ,
`file_type` VARCHAR( 10 ) NOT NULL ,
`path` VARCHAR( 255 ) NOT NULL ,
`old_id` INT( 10 ) UNSIGNED,
`new_id` INT( 10 ) UNSIGNED,
PRIMARY KEY ( `backup_code` , `file_type` , `path` )
) COMMENT = 'To store and recode ids to user & course files.'");
}
if ($oldversion < 2003052000 and $result) {
$result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids`
MODIFY `info` TEXT");
}
if ($oldversion < 2003061100 and $result) {
$result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids`
MODIFY `info` MEDIUMTEXT");
}
if ($oldversion < 2003082600 and $result) {
print_simple_box("This is the first non-alpha release of the Backup/Restore module.<p>Thanks for upgrading!","center", "50%", "$THEME->cellheading", "20", "noticebox");
}
if ($oldversion < 2003112700 and $result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_config` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`value` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) TYPE=MyISAM COMMENT='To store backup configuration variables'");
}
if ($oldversion < 2003120800 and $result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_courses` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`laststarttime` int(10) unsigned NOT NULL default '0',
`lastendtime` int(10) unsigned NOT NULL default '0',
`laststatus` varchar(1) NOT NULL default '0',
`nextstarttime` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `courseid` (`courseid`)
) TYPE=MyISAM COMMENT='To store every course backup status'");
if ($result) {
$result = execute_sql("CREATE TABLE `{$CFG->prefix}backup_log` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`time` int(10) unsigned NOT NULL default '0',
`laststarttime` int(10) unsigned NOT NULL default '0',
`info` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='To store every course backup log info'");
}
}
//Finally, return result
return $result;
}
?>
+71
View File
@@ -0,0 +1,71 @@
#
# Table structure for table `prefix_backup_files`
#
CREATE TABLE `prefix_backup_files` (
`backup_code` int(10) unsigned NOT NULL default '0',
`file_type` varchar(10) NOT NULL default '',
`path` varchar(255) NOT NULL default '',
`old_id` int(10) unsigned default NULL,
`new_id` int(10) unsigned default NULL,
PRIMARY KEY (`backup_code`,`file_type`,`path`)
) TYPE=MyISAM COMMENT='To store and recode ids to user and course files.';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_ids`
#
CREATE TABLE `prefix_backup_ids` (
`backup_code` int(12) unsigned NOT NULL default '0',
`table_name` varchar(30) NOT NULL default '',
`old_id` int(10) unsigned NOT NULL default '0',
`new_id` int(10) unsigned default NULL,
`info` mediumtext,
PRIMARY KEY (`backup_code`,`table_name`,`old_id`)
) TYPE=MyISAM COMMENT='To store and convert ids in backup/restore';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_config`
#
CREATE TABLE `prefix_backup_config` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`value` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) TYPE=MyISAM COMMENT='To store backup configuration variables';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_courses`
#
CREATE TABLE `prefix_backup_courses` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`laststarttime` int(10) unsigned NOT NULL default '0',
`lastendtime` int(10) unsigned NOT NULL default '0',
`laststatus` varchar(1) NOT NULL default '0',
`nextstarttime` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `courseid` (`courseid`)
) TYPE=MyISAM COMMENT='To store every course backup status';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_log`
#
CREATE TABLE `prefix_backup_log` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`time` int(10) unsigned NOT NULL default '0',
`laststarttime` int(10) unsigned NOT NULL default '0',
`info` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='To store every course backup log info';
# --------------------------------------------------------
+130
View File
@@ -0,0 +1,130 @@
rem
rem Table structure for table prefix_backup_files
rem
drop table prefix_backup_files;
CREATE TABLE prefix_backup_files (
backup_code number(10) default '0' NOT NULL,
file_type varchar2(10) default '' NOT NULL,
path varchar2(255) default '' NOT NULL,
old_id number(10) default NULL,
new_id number(10) default NULL
);
ALTER TABLE prefix_backup_files
ADD CONSTRAINT pbf_pk
PRIMARY KEY (backup_code,file_type,path);
COMMENT on table prefix_backup_files is 'To store and recode ids to user and course files.';
rem --------------------------------------------------------
rem
rem Table structure for table prefix_backup_ids
rem
drop table prefix_backup_ids;
CREATE TABLE prefix_backup_ids (
backup_code number(12) default '0' NOT NULL,
table_name varchar2(30) default '' NOT NULL,
old_id number(10) default '0' NOT NULL,
new_id number(10) default NULL,
info varchar2(20)
);
ALTER TABLE prefix_backup_ids
ADD CONSTRAINT pbi_pk
PRIMARY KEY (backup_code,table_name,old_id);
COMMENT on table prefix_backup_ids is 'To store and convert ids in backup/restore';
rem --------------------------------------------------------
rem
rem Table structure for table prefix_backup_config
rem
drop TABLE prefix_backup_config;
CREATE TABLE prefix_backup_config (
id number(10) not null,
name varchar2(255) not null,
value varchar2(255) not null,
constraint pk_baco primary key (id),
constraint uk_baco_name unique (name)
);
COMMENT on table prefix_backup_config is 'To store backup configuration variables';
drop sequence p_backup_config_seq;
create sequence p_backup_config_seq;
create or replace trigger p_backup_config_trig
before insert on prefix_backup_config
referencing new as new_row
for each row
begin
select p_backup_config_seq.nextval into :new_row.id from dual;
end;
rem --------------------------------------------------------
rem
rem Table structure for table prefix_backup_courses
rem
drop TABLE prefix_backup_courses;
CREATE TABLE prefix_backup_courses (
id number(10) default '0' NOT NULL,
courseid number(10) default '0' NOT NULL,
laststarttime number(10) default '0' NOT NULL,
lastendtime number(10) default '0' NOT NULL,
laststatus varchar2(1) default '0' NOT NULL,
nextstarttime number(10) default '0' NOT NULL,
constraint pk_bacu primary key (id),
constraint uk_bacu_courseid unique (courseid)
);
COMMENT on table prefix_backup_courses is 'To store every course backup status';
drop sequence p_backup_courses_seq;
create sequence p_backup_courses_seq;
create or replace trigger p_backup_courses_trig
before insert on prefix_backup_courses
referencing new as new_row
for each row
begin
select p_backup_courses_seq.nextval into :new_row.id from dual;
end;
rem --------------------------------------------------------
rem
rem Table structure for table prefix_backup_log
rem
drop TABLE prefix_backup_log;
CREATE TABLE prefix_backup_log (
id number(10) default '0' NOT NULL,
courseid number(10) default '0' NOT NULL,
time number(10) default '0' NOT NULL,
laststarttime number(10) default '0' NOT NULL,
info varchar2(255) default '0' NOT NULL,
constraint pk_balo primary key (id)
);
COMMENT on table prefix_backup_log is 'To store every course backup log info';
drop sequence p_backup_log_seq;
create sequence p_backup_log_seq;
create or replace trigger p_backup_log_trig
before insert on prefix_backup_log
referencing new as new_row
for each row
begin
select p_backup_log_seq.nextval into :new_row.id from dual;
end;
/
+34
View File
@@ -0,0 +1,34 @@
<?PHP //$Id$
//
// This file keeps track of upgrades to Moodle's
// backup/restore utility.
//
// 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
//
function backup_upgrade($oldversion=0) {
global $CFG;
$result = true;
return $result;
}
?>
+67
View File
@@ -0,0 +1,67 @@
# THIS FILE IS UNTESTED!!!
# PLEASE HELP TEST/FIX IT AND CONTACT MARTIN OR ELOY!
#
# Table structure for table prefix_backup_files
#
CREATE TABLE prefix_backup_files (
backup_code integer NOT NULL default '0',
file_type varchar(10) NOT NULL default '',
path varchar(255) NOT NULL default '',
old_id integer default NULL,
new_id integer default NULL
);
# --------------------------------------------------------
CREATE INDEX prefix_backup_codetypepath_idx ON prefix_backup_files (backup_code,file_type,path);
#
# Table structure for table prefix_backup_ids
#
CREATE TABLE prefix_backup_ids (
backup_code int8 NOT NULL default '0',
table_name varchar(30) NOT NULL default '',
old_id int8 NOT NULL default '0',
new_id int8 default NULL,
info text
);
CREATE INDEX prefix_backup_codenameid_idx ON prefix_backup_ids (backup_code,table_name,old_id);
#
# Table structure for table prefix_backup_config
#
CREATE TABLE prefix_backup_config (
id SERIAL PRIMARY KEY,
name varchar(255) UNIQUE NOT NULL default '',
value varchar(255) NOT NULL default ''
);
#
# Table structure for table prefix_backup_courses
#
CREATE TABLE prefix_backup_courses (
id SERIAL PRIMARY KEY,
courseid int8 UNIQUE NOT NULL default '0',
laststarttime int8 NOT NULL default '0',
lastendtime int8 NOT NULL default '0',
laststatus varchar(1) NOT NULL default '0',
nextstarttime int8 NOT NULL default '0'
);
#
# Table structure for table prefix_backup_log
#
CREATE TABLE prefix_backup_log (
id SERIAL PRIMARY KEY,
courseid int8 NOT NULL default '0',
time int8 NOT NULL default '0',
laststarttime int8 NOT NULL default '0',
info varchar(255) NOT NULL default ''
);
+536
View File
@@ -0,0 +1,536 @@
<?PHP //$Id$
//This file contains all the general function needed (file manipulation...)
//not directly part of the backup/restore utility
//Sets a name/value pair in backup_config table
function backup_set_config($name, $value) {
if (get_field("backup_config", "name", "name", $name)) {
return set_field("backup_config", "value", $value, "name", $name);
} else {
$config->name = $name;
$config->value = $value;
return insert_record("backup_config", $config);
}
}
//Gets all the information from backup_config table
function backup_get_config() {
$backup_config = null;
if ($configs = get_records("backup_config")) {
foreach ($configs as $config) {
$backup_config[$config->name] = $config->value;
}
}
return (object)$backup_config;
}
//Delete old data in backup tables (if exists)
//Four hours seem to be appropiate now that backup is stable
function backup_delete_old_data() {
global $CFG;
//Change this if you want !!
$hours = 4;
//End change this
$seconds = $hours * 60 * 60;
$delete_from = time()-$seconds;
//Now delete from tables
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_ids
WHERE backup_code < '$delete_from'",false);
if ($status) {
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_files
WHERE backup_code < '$delete_from'",false);
}
//Now, delete old directory (if exists)
if ($status) {
$status = backup_delete_old_dirs($delete_from);
}
return($status);
}
//Function to delete dirs/files into temp/backup directory
//older than $delete_from
function backup_delete_old_dirs($delete_from) {
global $CFG;
$status = true;
$list = get_directory_list($CFG->dataroot."/temp/backup", "", false);
foreach ($list as $file) {
$file_path = $CFG->dataroot."/temp/backup/".$file;
$moddate = filemtime($file_path);
if ($status && $moddate < $delete_from) {
//If directory, recurse
if (is_dir($file_path)) {
$status = delete_dir_contents($file_path);
//There is nothing, delete the directory itself
if ($status) {
$status = rmdir($file_path);
}
//If file
} else {
unlink("$file_path");
}
}
}
return $status;
}
//Function to check if a directory exists
//and, optionally, create it
function check_dir_exists($dir,$create=false) {
global $CFG;
$status = true;
if(!is_dir($dir)) {
if (!$create) {
$status = false;
} else {
umask(0000);
$status = mkdir ($dir,$CFG->directorypermissions);
}
}
return $status;
}
//Function to check and create the needed dir to
//save all the backup
function check_and_create_backup_dir($backup_unique_code) {
global $CFG;
$status = check_dir_exists($CFG->dataroot."/temp",true);
if ($status) {
$status = check_dir_exists($CFG->dataroot."/temp/backup",true);
}
if ($status) {
$status = check_dir_exists($CFG->dataroot."/temp/backup/".$backup_unique_code,true);
}
return $status;
}
//Function to delete all the directory contents recursively
//it supports a excluded dit too
//Copied from the web !!
function delete_dir_contents ($dir,$excludeddir="") {
$slash = "/";
// Create arrays to store files and directories
$dir_files = array();
$dir_subdirs = array();
// Make sure we can delete it
chmod($dir, 0777);
if ((($handle = opendir($dir))) == FALSE) {
// The directory could not be opened
return false;
}
// Loop through all directory entries, and construct two temporary arrays containing files and sub directories
while($entry = readdir($handle)) {
if (is_dir($dir. $slash .$entry) && $entry != ".." && $entry != "." && $entry != $excludeddir) {
$dir_subdirs[] = $dir. $slash .$entry;
}
else if ($entry != ".." && $entry != "." && $entry != $excludeddir) {
$dir_files[] = $dir. $slash .$entry;
}
}
// Delete all files in the curent directory return false and halt if a file cannot be removed
for($i=0; $i<count($dir_files); $i++) {
chmod($dir_files[$i], 0777);
if (((unlink($dir_files[$i]))) == FALSE) {
return false;
}
}
// Empty sub directories and then remove the directory
for($i=0; $i<count($dir_subdirs); $i++) {
chmod($dir_subdirs[$i], 0777);
if (delete_dir_contents($dir_subdirs[$i]) == FALSE) {
return false;
}
else {
if (rmdir($dir_subdirs[$i]) == FALSE) {
return false;
}
}
}
// Close directory
closedir($handle);
// Success, every thing is gone return true
return true;
}
//Function to clear (empty) the contents of the backup_dir
function clear_backup_dir($backup_unique_code) {
global $CFG;
$rootdir = $CFG->dataroot."/temp/backup/".$backup_unique_code;
//Delete recursively
$status = delete_dir_contents($rootdir);
return $status;
}
//Returns the module type of a course_module's id in a course
function get_module_type ($courseid,$moduleid) {
global $CFG;
$results = get_records_sql ("SELECT cm.id, m.name
FROM {$CFG->prefix}course_modules cm,
{$CFG->prefix}modules m
WHERE cm.course = '$courseid' AND
cm.id = '$moduleid' AND
m.id = cm.module");
if ($results) {
$name = $results[$moduleid]->name;
} else {
$name = false;
}
return $name;
}
//This function return the names of all directories under a give directory
//Not recursive
function list_directories ($rootdir) {
$results = null;
$dir = opendir($rootdir);
while ($file=readdir($dir)) {
if ($file=="." || $file=="..") {
continue;
}
if (is_dir($rootdir."/".$file)) {
$results[$file] = $file;
}
}
closedir($dir);
return $results;
}
//This function return the names of all directories and files under a give directory
//Not recursive
function list_directories_and_files ($rootdir) {
$results = "";
$dir = opendir($rootdir);
while ($file=readdir($dir)) {
if ($file=="." || $file=="..") {
continue;
}
$results[$file] = $file;
}
closedir($dir);
return $results;
}
//This function clean data from backup tables and
//delete all temp files used
function clean_temp_data ($preferences) {
global $CFG;
$status = true;
//true->do it, false->don't do it. To debug if necessary.
if (true) {
//Now delete from tables
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_ids
WHERE backup_code = '$preferences->backup_unique_code'",false);
if ($status) {
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_files
WHERE backup_code = '$preferences->backup_unique_code'",false);
}
//Now, delete temp directory (if exists)
$file_path = $CFG->dataroot."/temp/backup/".$preferences->backup_unique_code;
if (is_dir($file_path)) {
$status = delete_dir_contents($file_path);
//There is nothing, delete the directory itself
if ($status) {
$status = rmdir($file_path);
}
}
}
return $status;
}
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//This functions are used to copy any file or directory ($from_file)
//to a new file or directory ($to_file). It works recursively and
//mantains file perms.
//I've copied it from: http://www.php.net/manual/en/function.copy.php
//Little modifications done
function backup_copy_file ($from_file,$to_file) {
global $CFG;
if (is_file($from_file)) {
//echo "<br>Copying ".$from_file." to ".$to_file; //Debug
//$perms=fileperms($from_file);
//return copy($from_file,$to_file) && chmod($to_file,$perms);
umask(0000);
return copy($from_file,$to_file) && chmod($to_file,$CFG->directorypermissions);
}
else if (is_dir($from_file)) {
return backup_copy_dir($from_file,$to_file);
}
else{
//echo "<br>Error: not file or dir ".$from_file; //Debug
return false;
}
}
function backup_copy_dir($from_file,$to_file) {
global $CFG;
if (!is_dir($to_file)) {
//echo "<br>Creating ".$to_file; //Debug
umask(0000);
$status = mkdir($to_file,$CFG->directorypermissions);
}
$dir = opendir($from_file);
while ($file=readdir($dir)) {
if ($file=="." || $file=="..") {
continue;
}
$status = backup_copy_file ("$from_file/$file","$to_file/$file");
}
closedir($dir);
return $status;
}
///Ends copy file/dirs functions
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function upgrade_backup_db($continueto) {
/// This function upgrades the backup tables, if necessary
/// It's called from admin/index.php, also backup.php and restore.php
global $CFG, $db;
require_once ("$CFG->dirroot/backup/version.php"); // Get code versions
if (empty($CFG->backup_version)) { // Backup has never been installed.
$strdatabaseupgrades = get_string("databaseupgrades");
print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades,
"", "", false, "&nbsp;", "&nbsp;");
$db->debug=true;
if (modify_database("$CFG->dirroot/backup/db/$CFG->dbtype.sql")) {
$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_version));
print_continue($continueto);
exit;
} else {
error("Upgrade of backup system failed! (Could not update version in config table)");
}
} else {
error("Backup tables could NOT be set up successfully!");
}
}
if ($backup_version > $CFG->backup_version) { // Upgrade tables
$strdatabaseupgrades = get_string("databaseupgrades");
print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades);
require_once ("$CFG->dirroot/backup/db/$CFG->dbtype.php");
$db->debug=true;
if (backup_upgrade($CFG->backup_version)) {
$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_version));
print_continue($continueto);
exit;
} else {
error("Upgrade of backup system failed! (Could not update version in config table)");
}
} else {
$db->debug=false;
error("Upgrade failed! See backup/version.php");
}
} else if ($backup_version < $CFG->backup_version) {
notify("WARNING!!! The code you are using is OLDER than the version that made these databases!");
}
}
//This function is used to insert records in the backup_ids table
//If the info field is greater than max_db_storage, then its info
//is saved to filesystem
function backup_putid ($backup_unique_code, $table, $old_id, $new_id, $info="") {
global $CFG;
$max_db_storage = 128; //Max bytes to save to db, else save to file
$status = true;
//First delete to avoid PK duplicates
$status = backup_delid($backup_unique_code, $table, $old_id);
//Now, serialize info
$info_ser = serialize($info);
//Now, if the size of $info_ser > $max_db_storage, save it to filesystem and
//insert a "infile" in the info field
if (strlen($info_ser) > $max_db_storage) {
//Calculate filename (in current_backup_dir, $backup_unique_code_$table_$old_id.info)
$filename = $CFG->dataroot."/temp/backup/".$backup_unique_code."/".$backup_unique_code."_".$table."_".$old_id.".info";
//Save data to file
$status = backup_data2file($filename,$info_ser);
//Set info_to save
$info_to_save = "infile";
} else {
//Saving to db, addslashes
$info_to_save = addslashes($info_ser);
}
//Now, insert the record
if ($status) {
//Build the record
$rec->backup_code = $backup_unique_code;
$rec->table_name = $table;
$rec->old_id = $old_id;
$rec->new_id =$new_id;
$rec->info = $info_to_save;
$status = insert_record ("backup_ids", $rec, false,"backup_code");
}
return $status;
}
//This function is used to delete recods from the backup_ids table
//If the info field is "infile" then the file is deleted too
function backup_delid ($backup_unique_code, $table, $old_id) {
global $CFG;
$status = true;
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_ids
WHERE backup_code = $backup_unique_code AND
table_name = '$table' AND
old_id = '$old_id'",false);
return $status;
}
//This function is used to get a record from the backup_ids table
//If the info field is "infile" then its info
//is read from filesystem
function backup_getid ($backup_unique_code, $table, $old_id) {
global $CFG;
$status = true;
$status2 = true;
$status = get_record ("backup_ids","backup_code",$backup_unique_code,
"table_name",$table,
"old_id", $old_id);
//If info field = "infile", get file contents
if ($status->info == "infile") {
$filename = $CFG->dataroot."/temp/backup/".$backup_unique_code."/".$backup_unique_code."_".$table."_".$old_id.".info";
//Read data from file
$status2 = backup_file2data($filename,$info);
if ($status2) {
//unserialize data
$status->info = unserialize($info);
} else {
$status = false;
}
} else {
//Only if status (record exists)
if ($status) {
////First strip slashes
$temp = stripslashes($status->info);
//Now unserialize
$status->info = unserialize($temp);
}
}
return $status;
}
//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 restore_decode_absolute_links(addslashes(utf8_decode($data)));
}
//This function is used to check that every necessary function to
//backup/restore exists in the current php installation. Thanks to
//gregb@crowncollege.edu by the idea.
function backup_required_functions() {
if(!function_exists('utf8_encode')) {
error('You need to add XML support to your PHP installation');
}
}
//This function send n white characters to the browser and flush the
//output buffer. Used to avoid browser timeouts and to show the progress.
function backup_flush($n=0,$time=false) {
if ($time) {
$ti = strftime("%X",time());
} else {
$ti = "";
}
echo str_repeat(" ", $n) . $ti . "\n";
flush();
}
//This function creates the filename and write data to it
//returning status as result
function backup_data2file ($file,&$data) {
$status = true;
$status2 = true;
$f = fopen($file,"w");
$status = fwrite($f,$data);
$status2 = fclose($f);
return ($status && $status2);
}
//This function read the filename and read data from it
function backup_file2data ($file,&$data) {
$status = true;
$status2 = true;
$f = fopen($file,"r");
$data = fread ($f,filesize($file));
$status2 = fclose($f);
return ($status && $status2);
}
?>
+138
View File
@@ -0,0 +1,138 @@
<?PHP // $Id$
// backup.php - allows admin to edit all configuration variables for scheduled backups
require_once("../config.php");
require_once("../backup/lib.php");
optional_variable($courseid);
require_login();
if (!isadmin()) {
error("Only an admin can use this page");
}
if (!$site = get_site()) {
error("Site isn't defined!");
}
//Get needed strings
$backuploglaststatus = get_string("backuploglaststatus");
$backuplogdetailed = get_string("backuplogdetailed");
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$strbackup = get_string("backup");
$strbackupdetails = get_string("backupdetails");
$strlogs = get_string("logs");
$strftimedatetime = get_string("strftimerecent");
$strftimetime = get_string("strftimetime").":%S";
$strerror = get_string("error");
$strok = get_string("ok");
$strcourse = get_string("course");
$strtimetaken = get_string("timetaken","quiz");
$strstatus = get_string("status");
$strnext = get_string("next");
//Decide when to show last execution logs or detailed logs
//Lastlog view
if (!$courseid) {
print_header("$site->shortname: $strconfiguration: $strbackup", $site->fullname,
"<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);
print_simple_box_start("center", "", "$THEME->cellheading");
//Now, get every record from backup_courses
$courses = get_records("backup_courses");
if (!$courses) {
notify("No logs found!");
} else {
echo "<table border=0 align=center cellpadding=3 cellspacing=3>";
//Print table header
echo "<tr nowrap>";
echo "<td nowrap align=center><font size=3>$strcourse</font></td>";
echo "<td nowrap align=center colspan=3><font size=3>$strtimetaken</font></td>";
echo "<td nowrap align=center><font size=3>$strstatus</font></td>";
echo "<td nowrap align=center><font size=3>$strnext</font></td>";
foreach ($courses as $course) {
//Get the course shortname
$coursename = get_field ("course","fullname","id",$course->courseid);
if ($coursename) {
echo "<tr nowrap>";
echo "<td nowrap><font size=2><a href=\"log.php?courseid=$course->courseid\">".$coursename."</a></td>";
echo "<td nowrap><font size=2>".userdate($course->laststarttime,$strftimedatetime)."</td>";
echo "<td nowrap><font size=2> - </td>";
echo "<td nowrap><font size=2>".userdate($course->lastendtime,$strftimedatetime)."</td>";
if (!$course->laststatus) {
echo "<td nowrap align=center><font size=2 color=red>".$strerror."</td>";
} else {
echo "<td nowrap align=center><font size=2 color=green>".$strok."</td>";
}
echo "<td nowrap><font size=2>".userdate($course->nextstarttime,$strftimedatetime)."</td>";
echo "</tr>";
}
}
echo "</table>";
}
print_simple_box_end();
//Detailed View !!
} else {
print_header("$site->shortname: $strconfiguration: $strbackup", $site->fullname,
"<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);
print_heading($backuplogdetailed);
$coursename = get_field("course","fullname","id","$courseid");
print_heading("$strcourse: $coursename");
print_simple_box_start("center", "", "$THEME->cellheading");
//First, me get all the distinct backups for that course in backup_log
$executions = get_records_sql("SELECT DISTINCT laststarttime,laststarttime
FROM {$CFG->prefix}backup_log
WHERE courseid = '$courseid'
ORDER BY laststarttime DESC");
//Iterate over backup executions
if (!$executions) {
notify("No logs found!");
} else {
echo "<table border=0 align=center cellpadding=3 cellspacing=3>";
foreach($executions as $execution) {
echo "<tr nowrap>";
echo "<td nowrap align=center colspan=3>";
print_simple_box("<center>".userdate($execution->laststarttime)."</center>", "center");
echo "</td>";
echo "</tr>";
$logs = get_records_sql("SELECT *
FROM {$CFG->prefix}backup_log
WHERE courseid = '$courseid' AND
laststarttime = '$execution->laststarttime'
ORDER BY time");
if ($logs) {
foreach ($logs as $log) {
echo "<tr nowrap>";
echo "<td nowrap><font size=2>".userdate($log->time,$strftimetime)."</font></td>";
$log->info = str_replace("- ERROR!!","- <font color=red>ERROR!!</font>",$log->info);
$log->info = str_replace("- OK","- <font color=green>OK</font>",$log->info);
echo "<td nowrap><font size=2>".str_replace(" ","&nbsp;&nbsp;&nbsp;&nbsp;",$log->info)."</font></td>";
echo "</tr>";
}
}
}
echo "</table>";
}
print_simple_box_end();
}
print_footer();
?>
+115
View File
@@ -0,0 +1,115 @@
<?PHP //$Id$
//This script is used to configure and execute the restore proccess.
//Define some globals for all the script
//Units used
require_once ("../config.php");
require_once ("../lib/xmlize.php");
require_once ("../course/lib.php");
require_once ("lib.php");
require_once ("restorelib.php");
require_once("$CFG->libdir/blocklib.php");
//Optional
optional_variable($id);
optional_variable($file);
optional_variable($cancel);
optional_variable($launch);
//Check login
require_login();
if (!empty($id)) {
if (!isteacheredit($id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Check necessary functions exists. Thanks to gregb@crowncollege.edu
backup_required_functions();
//Check backup_version
if ($file) {
$linkto = "restore.php?id=".$id."&file=".$file;
} else {
$linkto = "restore.php";
}
upgrade_backup_db($linkto);
//Get strings
$strcourserestore = get_string("courserestore");
$stradministration = get_string("administration");
//If no file has been selected from the FileManager, inform and end
if (!$file) {
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<A HREF=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</A> -> $strcourserestore");
print_heading(get_string("nofilesselected"));
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
print_footer();
exit;
}
//If cancel has been selected, inform and end
if ($cancel) {
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<A HREF=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</A> -> $strcourserestore");
print_heading(get_string("restorecancelled"));
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
print_footer();
exit;
}
//We are here, so me have a file.
//Get and check course
if (! $course = get_record("course", "id", $id)) {
error("Course ID was incorrect (can't find it)");
}
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
//Print header
if (isadmin()) {
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<a href=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</a> ->
$strcourserestore -> ".basename($file));
} else {
print_header("$course->shortname: $strcourserestore", $course->fullname,
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
$strcourserestore");
}
//Print form
print_heading("$strcourserestore: ".basename($file));
print_simple_box_start("center", "", "$THEME->cellheading");
//Adjust some php variables to the execution of this script
ini_set("max_execution_time","3000");
ini_set("memory_limit","80M");
//Call the form, depending the step we are
if (!$launch) {
include_once("restore_precheck.html");
} else if ($launch == "form") {
include_once("restore_form.html");
} else if ($launch == "check") {
include_once("restore_check.html");
} else if ($launch == "execute") {
include_once("restore_execute.html");
}
print_simple_box_end();
//Print footer
print_footer();
?>
+205
View File
@@ -0,0 +1,205 @@
<?PHP //$Id$
//This page receive all the restore_form data. Then, if existing course
//has been selected, shows a list of courses to select one.
//It cheks that the parammeter from restore_form are coherent.
//It puts all the restore info in the session.
//Finally, it calls restore_execute to do the hard work
//Get objects from session
if ($SESSION) {
$info = $SESSION->info;
$course_header = $SESSION->course_header;
if (isset($SESSION->restore)) {
$restore = $SESSION->restore;
}
}
//If restore session info exists, but we are posting parameters
//manually, this has prioriry
if (isset($restore) and isset($restore_restoreto)) {
unset($restore);
}
//Check required objects from session
//info
require_variable($info);
//course_header
require_variable($course_header);
//If the restore object doesn't exist, we are going
//to check every variable individually and create it
if (!isset($restore)) {
//Check that we have all we need
//backup_unique_code
require_variable($backup_unique_code);
//file
require_variable($file);
//Checks for the required restoremod parameters
if ($allmods = get_records("modules")) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$var = "restore_".$modname;
require_variable($$var);
$var = "restore_user_info_".$modname;
require_variable($$var);
}
}
//restoreto
require_variable($restore_restoreto);
//restore_users
require_variable($restore_users);
//restore_logs
require_variable($restore_logs);
//restore_user_files
require_variable($restore_user_files);
//restore_course_files
require_variable($restore_course_files);
//restore_course_files
require_variable($restore_course_files);
//Check we've selected a course
if (!isset($course_id)) {
$course_id = 0;
}
//We are here, having all we need !!
//Create the restore object and put it in the session
$restore->backup_unique_code = $backup_unique_code;
$restore->file = $file;
if ($allmods = get_records("modules")) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$var = "restore_".$modname;
$restore->mods[$modname]->restore=$$var;
$var = "restore_user_info_".$modname;
$restore->mods[$modname]->userinfo=$$var;
}
}
$restore->restoreto=$restore_restoreto;
$restore->users=$restore_users;
$restore->logs=$restore_logs;
$restore->user_files=$restore_user_files;
$restore->course_files=$restore_course_files;
$restore->course_id=$course_id;
} else {
//We have the object, so check if we have a new course_id
//passed as parammeter
if ($course_id) {
$restore->course_id=$course_id;
}
}
//We have the object with data, put it in the session
$SESSION->restore = $restore;
//From here to the wnd of the script, only use the $restore object
//Check login
require_login();
//Check admin
if (!empty($id)) {
if (!isteacheredit($id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Depending the selected restoreto:
// If user is a teacher (and nor admin):
// 0-Current course, deleting: Put $restore->course_id and $restore->deleting (true), create the restore object
// 1-Current course, adding: Put $restore->course_id and $restore->deleting (false), create the restore object
// If the uses is an admin:
// 0-Existing course, deleting: Select the destination course and launch the check again, then
// put $restore->course_id and $restore->deleting (true), create the restore object.
// 1-Existing course, adding: Select the destination course and launch the check again, then
// put $restore->course_id and $restore->deleting (false), create the restore object.
// 2-New course: Create the restore object and launch the execute.
//If the user is a teacher and not an admin
if (isteacher($id) and !isadmin()) {
$restore->course_id = $id;
if ($restore->restoreto == 0) {
$restore->deleting = true;
} else {
$restore->deleting = false;
}
}
//If the user is an admin
if (isadmin()) {
//Set restore->deleting as needed
if ($restore->restoreto == 0) {
$restore->deleting = true;
} else {
$restore->deleting = false;
}
}
//Now, select the course if needed
if (($restore->restoreto == 0 or $restore->restoreto == 1) and ($restore->course_id == 0) and (isadmin())) {
if ($courses = get_courses("all","c.fullname")) {
print_heading(get_string("choosecourse"));
print_simple_box_start("CENTER");
foreach ($courses as $course) {
echo "<A HREF=\"restore.php?course_id=$course->id&launch=check&id=$id&file=$file\">$course->fullname ($course->shortname)</A><BR>";
}
print_simple_box_end();
} else {
print_heading(get_string("nocoursesyet"));
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
}
//Checks everything and execute restore
} else if ((($restore->restoreto == 0 or $restore->restoreto == 1) and ($restore->course_id != 0)) or ($restore->restoreto == 2)) {
$show_continue_button = true;
//Check if we've selected any mod's user info and restore->users
//is set to none. Change it to course and inform.
if ($restore->users == 2) {
$changed = false;
$mods = $restore->mods;
foreach ($mods as $mod) {
if ($mod->userinfo) {
$changed = true;
}
}
if ($changed) {
echo get_string ("noteuserschangednonetocourse");
echo "<hr noshade size=\"1\">";
$restore->users = 1;
}
}
//Save the restore session object
$SESSION->restore = $restore;
if ($show_continue_button) {
//Print the continue button to execute the restore NOW !!!!
//All is prepared !!!
echo "<CENTER>";
$hidden["launch"] = "execute";
$hidden["file"] = $file;
$hidden["id"] = $id;
print_single_button("restore.php", $hidden, get_string("restorecoursenow"),"post");
echo "</CENTER>";
} else {
//Show error
error ("Something was wrong checking restore preferences");
}
//If we are here. Something must be wrong. Debug !!!
} else {
print_object($restore);
print_object($info);
print_object($course_header);
error ("Something must be wrong");
}
?>
+326
View File
@@ -0,0 +1,326 @@
<?PHP //$Id$
//This page receives the required info and executes the restore
//with the parameters suplied. Whe finished, delete temporary
//data from backup_tables and temp directory
//Get objects from session
if ($SESSION) {
$info = $SESSION->info;
$course_header = $SESSION->course_header;
$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();
//Check admin
if (!empty($id)) {
if (!isteacheredit($id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Checks for the required files/functions to restore every module
//and include them
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/restorelib.php";
//If file exists and we have selected to restore that type of module
if ((file_exists($modfile)) and ($restore->mods[$modname]->restore)) {
include_once($modfile);
}
}
}
//Start the main table
echo "<table cellpadding=5>";
echo "<tr><td>";
//Start the main ul
echo "<ul>";
//Init status
$status = true;
//Localtion of the xml file
$xml_file = $CFG->dataroot."/temp/backup/".$restore->backup_unique_code."/moodle.xml";
//If we've selected to restore into new course
//create it (course)
//Saving conversion id variables into backup_tables
if ($restore->restoreto == 2) {
echo "<li>".get_string("creatingnewcourse");
if (!$status = restore_create_new_course($restore,$course_header)) {
notify("Error while creating the new empty course.");
}
//Print course fullname and shortname and category
if ($status) {
echo "<ul>";
echo "<li>".$course_header->course_fullname." (".$course_header->course_shortname.")";
echo "<li>".get_string("category").": ".$course_header->category->name;
echo "</ul>";
//Put the destination course_id
$restore->course_id = $course_header->course_id;
}
} else {
$course = get_record("course","id",$restore->course_id);
if ($course) {
echo "<li>".get_string("usingexistingcourse");
echo "<ul>";
echo "<li>".get_string("from").": ".$course_header->course_fullname." (".$course_header->course_shortname.")";
echo "<li>".get_string("to").": ".$course->fullname." (".$course->shortname.")";
if (($restore->deleting)) {
echo "<li>".get_string("deletingexistingcoursedata");
} else {
echo "<li>".get_string("addingdatatoexisting");
}
echo "</ul>";
//If we have selected to restore deleting, we do it now.
if ($restore->deleting) {
echo "<li>".get_string("deletingolddata");
$status = remove_course_contents($restore->course_id,false) and
delete_dir_contents($CFG->dataroot."/".$restore->course_id,"backupdata");
if ($status) {
//Now , this situation is equivalent to the "restore to new course" one (we
//have a course record and nothing more), so define it as "to new course"
$restore->restoreto = 2;
} else {
notify("An error occurred while deleting some of the course contents.");
}
}
} else {
notify("Error opening existing course.");
$status = false;
}
}
//Now create the course_sections and their associated course_modules
if ($status) {
//Into new course
if ($restore->restoreto == 2) {
echo "<li>".get_string("creatingsections");
if (!$status = restore_create_sections($restore,$xml_file)) {
notify("Error creating sections in the existing course.");
}
//Into existing course
} else if ($restore->restoreto == 0 or $restore->restoreto == 1) {
echo "<li>".get_string("checkingsections");
if (!$status = restore_create_sections($restore,$xml_file)) {
notify("Error creating sections in the existing course.");
}
//Error
} else {
notify("Neither a new course or an existing one was specified.");
$status = false;
}
}
//Now create users as needed
if ($status and ($restore->users == 0 or $restore->users == 1)) {
echo "<li>".get_string("creatingusers")."<br>";
if (!$status = restore_create_users($restore,$xml_file)) {
notify("Could not restore users.");
}
//Now print info about the work done
if ($status) {
$recs = get_records_sql("select old_id, new_id from {$CFG->prefix}backup_ids
where backup_code = '$restore->backup_unique_code' and
table_name = 'user'");
//We've records
if ($recs) {
$new_count = 0;
$exists_count = 0;
$student_count = 0;
$teacher_count = 0;
$counter = 0;
//Iterate, filling counters
foreach ($recs as $rec) {
//Get full record, using backup_getids
$record = backup_getid($restore->backup_unique_code,"user",$rec->old_id);
if (strpos($record->info,"new") !== false) {
$new_count++;
}
if (strpos($record->info,"exists") !== false) {
$exists_count++;
}
if (strpos($record->info,"student") !== false) {
$student_count++;
} else if (strpos($record->info,"teacher") !== false) {
$teacher_count++;
}
//Do some output
$counter++;
if ($counter % 10 == 0) {
echo ".";
if ($counter % 200 == 0) {
echo "<br>";
}
backup_flush(300);
}
}
//Now print information gathered
echo " (".get_string("new").": ".$new_count.", ".get_string("existing").": ".$exists_count.")";
echo "<ul>";
echo "<li>".get_string("students").": ".$student_count;
echo "<li>".get_string("teachers").": ".$teacher_count;
echo "</ul>";
} else {
notify("No users were found!");
}
}
}
//Now create categories and questions as needed (STEP1)
if ($status and ($restore->mods['quiz']->restore)) {
echo "<li>".get_string("creatingcategoriesandquestions")."<br>";
if (!$status = restore_create_questions($restore,$xml_file)) {
notify("Could not restore categories and questions!");
}
}
//Now create user_files as needed
if ($status and ($restore->user_files)) {
echo "<li>".get_string("copyinguserfiles")."<br>";
if (!$status = restore_user_files($restore)) {
notify("Could not restore user files!");
}
//If all is ok (and we have a counter)
if ($status and ($status !== true)) {
//Inform about user dirs created from backup
echo "<ul>";
echo "<li>".get_string("userzones").": ".$status;
echo "</ul>";
}
}
//Now create course files as needed
if ($status and ($restore->course_files)) {
echo "<li>".get_string("copyingcoursefiles")."<br>";
if (!$status = restore_course_files($restore)) {
notify("Could not restore course files!");
}
//If all is ok (and we have a counter)
if ($status and ($status !== true)) {
//Inform about user dirs created from backup
echo "<ul>";
echo "<li>".get_string("filesfolders").": ".$status;
echo "</ul>";
}
}
//Now create scales as needed
if ($status) {
echo "<li>".get_string("creatingscales");
if (!$status = restore_create_scales($restore,$xml_file)) {
notify("Could not restore custom scales!");
}
}
//Now create groups as needed
if ($status) {
echo "<li>".get_string("creatinggroups");
if (!$status = restore_create_groups($restore,$xml_file)) {
notify("Could not restore groups!");
}
}
//Now create events as needed
if ($status) {
echo "<li>".get_string("creatingevents");
if (!$status = restore_create_events($restore,$xml_file)) {
notify("Could not restore course events!");
}
}
//Now create course modules as needed
if ($status) {
echo "<li>".get_string("creatingcoursemodules");
if (!$status = restore_create_modules($restore,$xml_file)) {
notify("Could not restore modules!");
}
}
//Now create log entries as needed
if ($status and ($restore->logs)) {
echo "<li>".get_string("creatinglogentries");
if (!$status = restore_create_logs($restore,$xml_file)) {
notify("Could not restore logs!");
}
}
//Now, if all is OK, adjust the instance field in course_modules !!
if ($status) {
echo "<li>".get_string("checkinginstances");
if (!$status = restore_check_instances($restore)) {
notify("Could not adjust instances in course_modules!");
}
}
//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
if ($status) {
echo "<li>".get_string("checkingcourse");
//modinfo field
rebuild_course_cache($restore->course_id);
//categories table
$course = get_record("course","id",$restore->course_id);
fix_course_sortorder($course->category);
}
//Cleanup temps (files and db)
if ($status) {
echo "<li>".get_string("cleaningtempdata");
if (!$status = clean_temp_data ($restore)) {
notify("Could not clean up temporary data from files and database");
}
}
//End the main ul
echo "</ul>";
//End the main table
echo "</tr></td>";
echo "</table>";
if (!$status) {
error ("An error has occurred and the restore could not be completed!");
}
//Print final message
print_simple_box(get_string("restorefinished"),"CENTER");
print_continue("$CFG->wwwroot/course/view.php?id=".$restore->course_id);
?>
+282
View File
@@ -0,0 +1,282 @@
<?PHP //$Id$
//This page prints the restore form to select everything yo want
//to restore. Form is dinamically buid, depending of "info" object
//that contains the backup contents and depending of every mod
//capabilities.
//Get objects from session
$info = $SESSION->info;
$course_header = $SESSION->course_header;
//Check that we have all we need
//backup_unique_code
require_variable($backup_unique_code);
//file
require_variable($file);
//info
require_variable($info);
//course_header
require_variable($course_header);
//Check login
require_login();
//Check admin
if (!empty($id)) {
if (!isteacheredit($id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Checks for the required files/functions to restore every mod
$count = 0;
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$CFG->dirroot/mod/$modname/restorelib.php";
$modrestore = $modname."_restore_mods";
if (file_exists($modfile)) {
include_once($modfile);
if (function_exists($modrestore)) {
$var = "exists_".$modname;
$$var = true;
$count++;
}
}
//Check data
//Check module info
$var = "restore_".$modname;
if (!isset($$var)) {
$$var = 1;
}
//Check include user info
$var = "restore_user_info_".$modname;
if (!isset($$var)) {
$$var = 1;
}
}
}
//Check other parameters
if (!isset($restore_users)) {
$restore_users = 1;
}
if (!isset($restore_logs)) {
$restore_logs = 1;
}
if (!isset($restore_user_files)) {
$restore_user_files = 1;
}
if (!isset($restore_course_files)) {
$restore_course_files = 1;
}
if (!isset($restore_restoreto)) {
if (isteacheredit($id) and !isadmin()) {
$restore_restoreto = 1;
}
if (isadmin()) {
$restore_restoreto = 2;
}
}
if ($count == 0) {
notice("No restorable modules are installed!");
}
?>
<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
//First, course destination
//Print the full tr
echo "<tr>";
echo "<td align=\"right\"><P><b>";
echo get_string("restoreto").":</b>";
echo "</td><td>";
if (isteacheredit($id) and !isadmin()) {
$restore_restoreto_options[0] = get_string("currentcoursedeleting");
$restore_restoreto_options[1] = get_string("currentcourseadding");
}
if (isadmin()) {
$restore_restoreto_options[0] = get_string("existingcoursedeleting");
$restore_restoreto_options[1] = get_string("existingcourseadding");
$restore_restoreto_options[2] = get_string("newcourse");
}
choose_from_menu($restore_restoreto_options, "restore_restoreto", $restore_restoreto, "");
echo "</td></tr>";
//Line
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";
//If exists the lib & function
$exist = "exists_".$modname;
$restore_var = "restore_".$modname;
$user_info_var = "restore_user_info_".$modname;
if (isset($$exist)) {
if ($$exist) {
//Now check that we have that module info in the backup file
if (isset($info->mods[$modname]) && $info->mods[$modname]->backup == "true") {
//Print the full tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("include")." ". get_string("modulenameplural",$modname).":";
echo "</td><td>";
$restore_options[0] = get_string("no");
$restore_options[1] = get_string("yes");
choose_from_menu($restore_options, $restore_var, $$restore_var, "");
//If backup contains user data, then show menu, else fix it to
//without user data
if ($info->mods[$modname]->userinfo == "true") {
$restore_user_options[0] = get_string("withoutuserdata");
$restore_user_options[1] = get_string("withuserdata");
choose_from_menu($restore_user_options, $user_info_var, $$user_info_var, "");
} else {
//Module haven't userdata
echo get_string("withoutuserdata");
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\">";
}
echo "</td></tr>";
} else {
//Module isn't restorable
echo "<input type=\"hidden\" name=\"$restore_var\" value=\"0\">";
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\">";
}
} else {
//Module isn't restorable
echo "<input type=\"hidden\" name=\"$restore_var\" value=\"0\">";
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\">";
}
} else {
//Module isn't restorable
echo "<input type=\"hidden\" name=\"$restore_var\" value=\"0\">";
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\">";
}
}
//Line
echo "<tr><td colspan=\"2\"><hr noshade size=\"1\"></td></tr>";
//Now print the Users tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("users").":";
echo "</td><td>";
//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\">";
}
echo "</td></tr>";
//Now print the Logs tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string("logs").":";
echo "</td><td>";
//If logs are in the backup file, show menu, else fixed to no
if ($info->backup_logs == "true") {
$log_options[0] = get_string("no");
$log_options[1] = get_string("yes");
choose_from_menu($log_options, "restore_logs", $restore_logs, "");
} else {
echo get_string("no");
echo "<input type=\"hidden\" name=\"restore_logs\" value=\"0\">";
}
echo "</td></tr>";
//Now print the User Files tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string ("userfiles").":";
echo "</td><td>";
//If user files are in the backup file, show menu, else fixed to no
if ($info->backup_user_files == "true") {
$user_file_options[0] = get_string("no");
$user_file_options[1] = get_string("yes");
choose_from_menu($user_file_options, "restore_user_files", $restore_user_files, "");
} else {
echo get_string("no");
echo "<input type=\"hidden\" name=\"restore_user_files\" value=\"0\">";
}
echo "</td></tr>";
//Now print the Course Files tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
echo get_string ("coursefiles").":";
echo "</td><td>";
//If course files are in the backup file, show menu, else fixed to no
if ($info->backup_course_files == "true") {
$course_file_options[0] = get_string("no");
$course_file_options[1] = get_string("yes");
choose_from_menu($course_file_options, "restore_course_files", $restore_course_files, "");
} else {
echo get_string("no");
echo "<input type=\"hidden\" name=\"restore_course_files\" value=\"0\">";
}
echo "</td></tr>";
echo "<input type=\"hidden\" name=\"backup_unique_code\" value=\"$backup_unique_code\">";
echo "<input type=\"hidden\" name=\"file\" value=\"$file\">";
}
?>
</table>
<BR>
<CENTER>
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=launch value="check">
<input type="submit" value="<?php print_string("continue") ?>">
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
</CENTER>
</FORM>
+154
View File
@@ -0,0 +1,154 @@
<?PHP // $Id$
//This page copies th zip to the temp directory,
//unzip it, check that it is a valid backup file
//inform about its contents and fill all the necesary
//variables to continue with the restore.
//Checks we have the file variable
if (!isset($file)) {
error ("File not specified");
}
//Check login
require_login();
//Check admin
if (!empty($id)) {
if (!isteacheredit($id)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
} else {
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Prepend dataroot to variable to have the absolute path
$file = $CFG->dataroot."/".$file;
//Start the main table
echo "<table cellpadding=5>";
echo "<tr><td>";
//Start the mail ul
echo "<ul>";
//Check the file exists
if (!is_file($file)) {
error ("File not exists ($file)");
}
//Check the file name ends with .zip
if (!substr($file,-4) == ".zip") {
error ("File has an incorrect extension");
}
//Now calculate the unique_code for this restore
$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) {
$status = clear_backup_dir($backup_unique_code);
}
//Now delete old data and directories under dataroot/temp/backup
if ($status) {
echo "<li>".get_string("deletingolddata");
$status = backup_delete_old_data();
}
//Now copy he zip file to dataroot/temp/backup/backup_unique_code
if ($status) {
echo "<li>".get_string("copyingzipfile");
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");
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");
if (! $status = restore_check_moodle_file ($xml_file)) {
notify("Error checking backup file. Invalid or corrupted.");
}
}
$info = "";
$course_header = "";
//Now read the info tag (all)
if ($status) {
echo "<li>".get_string("readinginfofrombackup");
//Reading info from file
$info = restore_read_xml_info ($xml_file);
//Reading course_header from file
$course_header = restore_read_xml_course_header ($xml_file);
}
//End the main ul
echo "</ul>";
//End the main table
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
$status = restore_print_course_header($course_header);
//Now, the backup info
if ($status) {
$status = restore_print_info($info);
}
}
//Save course header and info into php session
if ($status) {
$SESSION->info = $info;
$SESSION->course_header = $course_header;
}
//Finally, a little form to continue
//with some hidden fields
if ($status) {
echo "<br><CENTER>";
$hidden["backup_unique_code"] = $backup_unique_code;
$hidden["launch"] = "form";
$hidden["file"] = $file;
$hidden["id"] = $id;
print_single_button("restore.php", $hidden, get_string("continue"),"post");
echo "</CENTER>";
}
if (!$status) {
error ("An error has ocurred");
}
?>
File diff suppressed because it is too large Load Diff
+43
View File
@@ -0,0 +1,43 @@
<?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();
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
//Check site
if (!$site = get_site()) {
error("Site not found!");
}
//Check necessary functions exists. Thanks to gregb@crowncollege.edu
backup_required_functions();
//Adjust some php variables to the execution of this script
ini_set("max_execution_time","3000");
ini_set("memory_limit","56M");
echo "<pre>\n";
$status = true;
$courses = get_records("course");
foreach ($courses as $course) {
echo "Start course ".$course->fullname;
$preferences = schedule_backup_course_configure($course);
if ($preferences && $status) {
$status = schedule_backup_course_execute($preferences);
}
if ($status && $preferences) {
echo "End course ".$course->fullname." OK\n\n";
} else {
echo "End course ".$course->fullname." FAIL\n\n";
}
}
?>
+10
View File
@@ -0,0 +1,10 @@
<?PHP //$Id$
// This file defines the current version of the
// backup/restore code that is being used. This can be
// compared against the values stored in the
// database (backup_version) to determine whether upgrades should
// be performed (see db/backup_*.php)
$backup_version = 2004052404; // The current version is a date (YYYYMMDDXX)
$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;
}
+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;
}

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