Compare commits

..

5498 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
6159 changed files with 394895 additions and 97364 deletions
+11907 -2020
View File
File diff suppressed because it is too large Load Diff
+23 -46
View File
@@ -3,7 +3,7 @@
require_once("../config.php");
define("MAX_USERS_PER_PAGE", 30);
define("MAX_USERS_PER_PAGE", 50);
optional_variable($add, "");
optional_variable($remove, "");
@@ -40,6 +40,7 @@
"search",
"searchagain",
"toomanytoshow",
"users",
"searchresults"
);
@@ -56,52 +57,29 @@
print_header("$site->shortname: $strassignadmins",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> ->
<a href=\"{$_SERVER['PHP_SELF']}\">$strassignadmins</a>", "");
/// Get all existing admins
$admins = get_admins();
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "");
/// Add an admin if one is specified
if ($add) {
$user = @get_record("user", "id", $_REQUEST['add']) or
error("That account (id = {$_REQUEST['add']}) doesn't exist");
if ($admins) {
foreach ($admins as $aa) {
if ($aa->id == $user->id) {
error("That user is already an admin.");
}
}
if (!empty($_GET['add'])) {
if (! add_admin($add)) {
error("Could not add that admin!");
}
$admin->userid = $user->id;
$admin->id = insert_record("user_admins", $admin);
$admins[] = $user;
}
/// Remove an admin if one is specified.
if ($remove) {
$user = @get_record("user", "id", $_REQUEST['remove']) or
error("That account (id = {$_REQUEST['remove']}) doesn't exist");
if ($admins) {
foreach ($admins as $key => $aa) {
if ($aa->id == $user->id) {
/// make sure that we don't delete the primary admin
/// account, so that there is always at least on admin
if ($aa->id == $primaryadmin->id) {
error("That user is the primary admin, and shouldn't be removed.");
} else {
remove_admin($user->id);
unset($admins[$key]);
}
}
}
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>";
@@ -111,8 +89,7 @@
/// First, show existing admins
if (! $admins) {
echo "<p align=center>$strnoexistingadmins</a>";
echo "<p align=center>$strnoexistingadmins</p>";
$adminlist = "";
} else {
@@ -120,12 +97,12 @@
foreach ($admins as $admin) {
$adminarray[] = $admin->id;
echo "<p align=right>$admin->firstname $admin->lastname,
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=\"{$_SERVER['PHP_SELF']}?remove=$admin->id\"
echo "<a href=\"admin.php?remove=$admin->id\"
title=\"$strremoveadmin\"><img src=\"../pix/t/right.gif\"
border=0></A>";
}
@@ -146,7 +123,7 @@
echo "<p align=center>$strnopotentialadmins</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow</p>";
echo "<p align=center>$strtoomanytoshow ($usercount) </p>";
} else {
@@ -159,14 +136,14 @@
}
foreach ($users as $user) {
echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
echo "<p align=left><a href=\"admin.php?add=$user->id\"".
"title=\"$straddadmin\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;$user->firstname $user->lastname, $user->email";
"border=0></a>&nbsp;&nbsp;".fullname($user).", $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action={$_SERVER['PHP_SELF']} method=post>";
echo "<form action=admin.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
+4 -3
View File
@@ -86,15 +86,16 @@
$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> -> $strauthenticationoptions", "$focus");
"<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, "","top.location='auth.php?auth='+document.authmenu.auth.options[document.authmenu.auth.selectedIndex].value", "");
choose_from_menu ($options, "auth", $auth, "","document.location='auth.php?auth='+document.authmenu.auth.options[document.authmenu.auth.selectedIndex].value", "");
echo "</B></P></CENTER>";
@@ -113,7 +114,7 @@
require_once("$CFG->dirroot/auth/$auth/config.html");
if ($auth != "email" and $auth != "none") {
if ($auth != "email" and $auth != "none" and $auth != "manual") {
echo "<tr valign=\"top\">";
echo "<td align=right nowrap><p>";
print_string("changepassword", "auth");
+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();
?>
+201 -16
View File
@@ -10,21 +10,6 @@
<?php print_string("configlang") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>langdir:</td>
<td>
<?php
unset($options);
$options["LTR"] = get_string("langltr");
$options["RTL"] = get_string("langrtl");
choose_from_menu ($options, "langdir", $config->langdir, "", "", "");
?>
</td>
<td>
<?php print_string("configlangdir") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>langmenu:</td>
<td>
@@ -58,9 +43,36 @@
<?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 ($COUNTRIES, "country", $config->country, get_string("selectacountry"), "", "") ?>
<td><?php choose_from_menu (get_list_of_countries(), "country", $config->country, get_string("selectacountry"), "") ?>
</td>
<td>
<?php print_string("configcountry") ?>
@@ -165,6 +177,30 @@
<?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>
@@ -209,6 +245,15 @@
<?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>
@@ -300,7 +345,147 @@
<?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>
+10 -3
View File
@@ -2,7 +2,6 @@
// config.php - allows admin to edit all configuration variables
require_once("../config.php");
require_once("../lib/countries.php");
if ($site = get_site()) { // If false then this is a new installation
@@ -28,6 +27,9 @@
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;
@@ -56,22 +58,27 @@
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> -> $strconfigvariables", $focus);
"<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");
print_simple_box(get_string("configintro"), "center", "50%");
echo "<br />";
}
+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);
?>
+33 -50
View File
@@ -3,7 +3,7 @@
require_once("../config.php");
define("MAX_USERS_PER_PAGE", 30);
define("MAX_USERS_PER_PAGE", 50);
optional_variable($search, "");
optional_variable($add, "");
@@ -21,12 +21,6 @@
$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 (
"assigncreators",
@@ -39,7 +33,9 @@
"removecreator",
"search",
"searchagain",
"users",
"toomanytoshow",
"searchresults"
);
foreach ($stringstoload as $stringtoload){
@@ -55,46 +51,33 @@
print_header("$site->shortname: $strassigncreators",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> ->
<a href=\"{$_SERVER['PHP_SELF']}\">$strassigncreators</a>", "");
"<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();
/// Add an creator if one is specified
if ($add) {
$user = @get_record("user", "id", $add) or
error("That account (id = $add) doesn't exist");
if ($creators) {
foreach ($creators as $aa) {
if ($aa->id == $user->id) {
error("That user is already a creator .");
}
}
}
$creator->userid = $user->id;
$creator->id = insert_record("user_coursecreators", $creator);
$creators[] = $user;
}
/// Remove an creator if one is specified.
if ($remove) {
$user = @get_record("user", "id", $remove) or
error("That account (id = $remove) doesn't exist");
if ($creators) {
foreach ($creators as $key => $aa) {
if ($aa->id == $user->id) {
delete_records("user_coursecreators","userid",$user->id);
unset($creators[$key]);
}
}
}
}
/// 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>";
@@ -111,9 +94,8 @@
$creatorarray = array();
foreach ($creators as $creator) {
$creatorarray[] = $creator->id;
echo "<p align=right>$creator->firstname $creator->lastname,
$creator->email &nbsp;&nbsp; ";
echo "<a href=\"{$_SERVER['PHP_SELF']}?remove=$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>";
@@ -132,7 +114,7 @@
echo "<p align=center>$strnopotentialcreators</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow</p>";
echo "<p align=center>$strtoomanytoshow ($usercount) </p>";
} else {
@@ -145,14 +127,15 @@
}
foreach ($users as $user) {
echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
$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;$user->firstname $user->lastname, $user->email";
"border=0></a>&nbsp;&nbsp;$fullname, $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action={$_SERVER['PHP_SELF']} method=post>";
echo "<form action=creators.php method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
+112 -27
View File
@@ -14,14 +14,31 @@
$FULLME = "cron";
$starttime = microtime();
/// The current directory in PHP version 4.3.0 and above isn't necessarily the
/// directory of the script when run from the command line. The require_once()
/// would fail, so we'll have to chdir()
if (!isset($_SERVER['REMOTE_ADDR']) && isset($_SERVER['argv'][0])) {
chdir(dirname($_SERVER['argv'][0]));
}
require_once("../config.php");
echo "<PRE>\n";
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_select("modules", "cron > 0 AND (($timenow - lastcron) > cron)")) {
foreach ($mods as $mod) {
@@ -40,46 +57,114 @@
}
}
/// 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
$longtime = $timenow - ($CFG->longtimenosee * 3600 * 24);
if ($users = get_users_longtimenosee($longtime)) {
foreach ($users as $user) {
if (unenrol_student($user->id)) {
echo "Deleted student enrolment for $user->firstname $user->lastname ($user->id)\n";
if ($random100 < 20) { // Approximately 20% of the time.
echo "Running clean-up tasks...\n";
/// Unenrol users who haven't logged in for $CFG->longtimenosee
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
$oneweek = $timenow - (7 * 24 * 3600);
if ($users = get_users_unconfirmed($oneweek)) {
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();
/// Delete old queued mail that didn't get sent within 30 minutes
$oldmailtime = $timenow - 1800;
delete_records_select("mail_queue", "timecreated < '$oldmailtime'");
/// 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'");
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());
+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>
+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();
?>
+135 -62
View File
@@ -18,11 +18,11 @@
die;
}
/// Check some PHP server settings
$documentationlink = "please read the <A HREF=\"../doc/?frame=install.html&sub=webserver\">install documentation</A>";
if (ini_get_bool('session.auto_start')) {
error("The PHP server variable 'session.auto_start' should be Off - $documentationlink");
}
@@ -31,27 +31,10 @@
error("The PHP server variable 'magic_quotes_runtime' should be Off - $documentationlink");
}
if (!ini_get_bool('magic_quotes_gpc')) {
error("The PHP server variable 'magic_quotes_gpc' is not turned On - $documentationlink");
}
if (!ini_get_bool('file_uploads')) {
error("The PHP server variable 'file_uploads' is not turned On - $documentationlink");
}
if (!ini_get_bool('short_open_tag')) {
error("The PHP server variable 'short_open_tag' is not turned On - $documentationlink");
}
/// Check that sessions are supported
if (!is_readable(ini_get('session.save_path')) and !ini_get_bool('safe_mode')) {
$sessionpath = ini_get('session.save_path');
notify("Warning: It appears your server does not support sessions (session.save_path = '$sessionpath')");
}
/// Check that config.php has been edited
@@ -62,8 +45,8 @@
/// Check settings in config.php
$dirroot = dirname(realpath("../config.php"));
if ($dirroot != $CFG->dirroot) {
$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)."\";
@@ -83,7 +66,9 @@
$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.
@@ -123,7 +108,6 @@
print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup, "", "", false, "&nbsp;", "&nbsp;");
if (file_exists("$CFG->libdir/db/$CFG->dbtype.sql")) {
$db->debug = true;
set_time_limit(0); // To allow slow databases to complete the long SQL
if (modify_database("$CFG->libdir/db/$CFG->dbtype.sql")) {
$db->debug = false;
notify($strdatabasesuccess, "green");
@@ -196,7 +180,7 @@
if ($release <> $CFG->release) { // Update the release version
$strcurrentrelease = get_string("currentrelease");
print_header($strcurrentrelease, $strcurrentrelease, $strcurrentrelease, "", "", false, "&nbsp;", "&nbsp;");
print_heading($release);
print_heading("Moodle $release");
if (!set_config("release", $release)) {
notify("ERROR: Could not update release version in database!!");
}
@@ -209,6 +193,17 @@
}
/// 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") ) {
@@ -239,17 +234,32 @@
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) {
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)) {
@@ -281,7 +291,7 @@
print_heading($module->name);
$updated_modules = true;
$db->debug = true;
set_time_limit(0); // To allow slow databases to complete the long SQL
@set_time_limit(0); // To allow slow databases to complete the long SQL
if (modify_database("$fullmod/db/$CFG->dbtype.sql")) {
$db->debug = false;
if ($module->id = insert_record("modules", $module)) {
@@ -332,56 +342,119 @@
}
/// Check for valid admin user
if (!iscreator()) {
error("You need to be an admin user or teacher to use this page.", "$CFG->wwwroot/login/index.php");
require_login();
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
/// At this point everything is set up and the user is an admin, so print menu
$stradministration = get_string("administration");
print_header("$site->shortname: $stradministration","$site->fullname: $stradministration", "$stradministration");
if (isadmin()) {
$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=\"config.php\">".get_string("configvariables")."</a></p>".
"<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>".
"<p><a href=\"lang.php\">".get_string("checklanguage")."</a></p>".
"<p><a href=\"modules.php\">".get_string("managemodules")."</a></p>";
if (file_exists("$CFG->dirroot/admin/$CFG->dbtype")) {
$table->data[0][0] .= "<p><a href=\"$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a></p>";
}
$table->data[0][1] = "<p><a href=\"../course/edit.php\">".get_string("addnewcourse")."</a></p>".
"<p><a href=\"teacher.php\">".get_string("assignteachers")."</a></p>".
"<p><a href=\"../course/delete.php\">".get_string("deletecourse")."</a></p>".
"<p><a href=\"../course/categories.php\">".get_string("categories")."</a></p>";
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual") {
$table->data[0][2] = "<p><a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a></p>";
}
$table->data[0][2] .= "<p><a href=\"user.php\">".get_string("edituser")."</a></p>".
"<p><a href=\"admin.php\">".get_string("assignadmins")."</a></p>".
"<p><a href=\"creators.php\">".get_string("assigncreators")."</a></p>".
"<p><a href=\"auth.php\">".get_string("authentication")."</a></p>";
} else { /// user is coursecreator
$table->head = array (get_string("courses"));
$table->align = array ("CENTER");
$table->data[0][1] = "<p><a href=\"../course/edit.php\">".get_string("addnewcourse")."</a></p>".
"<p><a href=\"teacher.php\">".get_string("assignteachers")."</a></p>";
}
print_header("$site->shortname: $stradministration","$site->fullname", "$stradministration");
print_simple_box_start("center", "100%", "$THEME->cellcontent2", 20);
print_heading($stradministration);
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 "<br><div align=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 "</div>";
echo "</td>";
echo "<br><div align=center>";
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 "</div>";
echo "</td>";
echo "<tr></table>";
print_heading("Moodle $CFG->release ($CFG->version)", "CENTER", 1);
print_simple_box_end();
print_footer($site);
+127 -109
View File
@@ -3,6 +3,7 @@
require_once("../config.php");
optional_variable($mode, "");
optional_variable($currentfile, "moodle.php");
require_login();
@@ -15,7 +16,8 @@
}
$stradministration = get_string("administration");
$strchecklanguage = get_string("checklanguage");
$strconfiguration = get_string("configuration");
$strlanguage = get_string("language");
$strcurrentlanguage = get_string("currentlanguage");
$strmissingstrings = get_string("missingstrings");
$strcomparelanguage = get_string("comparelanguage");
@@ -23,26 +25,33 @@
switch ($mode) {
case "missing":
$navigation = "<A HREF=\"lang.php\">$strchecklanguage</A> -> $strmissingstrings";
$navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strmissingstrings";
$title = $strmissingstrings;
break;
case "compare":
$navigation = "<A HREF=\"lang.php\">$strchecklanguage</A> -> $strcomparelanguage";
$navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strcomparelanguage";
$title = $strcomparelanguage;
break;
default:
$title = $strchecklanguage;
$navigation = $strchecklanguage;
$title = $strlanguage;
$navigation = $strlanguage;
break;
}
$currentlang = current_language();
print_header("$site->shortname: $title", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> $navigation");
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $navigation");
if (!$mode) {
print_heading("$strcurrentlanguage: $currentlang - ".get_string("thislanguage"));
$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>";
@@ -63,7 +72,7 @@
}
foreach ($stringfiles as $key => $file) {
if ($file == "README" or $file == "help" or $file == "docs" or $file == "fonts") {
if (substr($file, -4) != ".php") {
unset($stringfiles[$key]);
}
}
@@ -73,8 +82,10 @@
foreach ($stringfiles as $file) {
if (!file_exists("$langdir/$file")) {
echo "<P><FONT COLOR=red>".get_string("filemissing", "", "$langdir/$file")."</FONT></P>";
continue;
if (!touch("$langdir/$file")) {
echo "<p><font color=red>".get_string("filemissing", "", "$langdir/$file")."</font></p>";
continue;
}
}
unset($string);
@@ -106,7 +117,7 @@
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>";
echo "<p><font color=red>".get_string("filemissing", "", "$langdir/help/$file")."</font></p>";
$somethingfound = true;
continue;
}
@@ -131,112 +142,118 @@
} else if ($mode == "compare") {
if (isset($_POST['file'])){ // Save a file
if (isset($_POST['currentfile'])){ // Save a file
$newstrings = $_POST;
$file = $newstrings['file'];
unset($newstrings['file']);
if (lang_save_file($langdir, $file, $newstrings)) {
notify(get_string("changessaved")." ($langdir/$file)");
unset($newstrings['currentfile']);
if (lang_save_file($langdir, $currentfile, $newstrings)) {
notify(get_string("changessaved")." ($langdir/$currentfile)", "green");
} else {
error("Could not save the file '$file'!", "lang.php?mode=compare");
error("Could not save the file '$currentfile'!", "lang.php?mode=compare&currentfile=$currentfile");
}
}
print_heading($strcomparelanguage);
echo "<CENTER>";
helpbutton("langedit",$strcomparelanguage);
echo "</CENTER>";
print_heading_with_help($strcomparelanguage, "langedit");
print_simple_box_start("center", "80%");
echo '<center><font size="2">';
foreach ($stringfiles as $file) {
print_heading("$file", "LEFT", 4);
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();
if (!file_exists("$langdir/$file")) {
echo "<P><FONT COLOR=red>".get_string("filemissing", "", "$langdir/$file")."</FONT></P>";
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/$file","r+")) {
$editable = true;
fclose($f);
} else {
$editable = false;
echo "<P><FONT SIZE=1>".get_string("makeeditable", "", "$langdir/$file")."</FONT></P>";
}
error_reporting(7);
unset($string);
include("$enlangdir/$file");
$enstring = $string;
ksort($enstring);
unset($string);
include("$langdir/$file");
if ($editable) {
echo "<FORM NAME=\"$file\" 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);
echo "<TR>";
echo "<TD WIDTH=20% BGCOLOR=\"$THEME->cellheading\" NOWRAP VALIGN=TOP>$key</TD>";
echo "<TD WIDTH=40% BGCOLOR=\"$THEME->cellheading\" VALIGN=TOP>$envalue</TD>";
$value = $string[$key];
$value = str_replace("\r","",$value); // Bad character caused by Windows
$value = str_replace("\n\n\n\n\n\n","\n",$value); // Collapse runs of blank lines
$value = str_replace("\n\n\n\n\n","\n",$value);
$value = str_replace("\n\n\n\n","\n",$value);
$value = str_replace("\n\n\n","\n",$value);
$value = str_replace("\n\n\n","\n",$value);
$value = str_replace("\\","",$value); // Delete all slashes
$value = str_replace("%%","%",$value);
$value = htmlspecialchars($value);
$cellcolour = $value ? $THEME->cellcontent: $THEME->highlight;
if ($editable) {
echo "<TD WIDTH=40% BGCOLOR=\"$cellcolour\" VALIGN=TOP>";
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>";
} else {
if ($valuelen) {
$cols = $valuelen + 2;
}
echo "<INPUT TYPE=\"TEXT\" NAME=\"string-$key\" VALUE=\"$value\" SIZE=\"$cols\"></TD>";
}
echo "</TD>";
} else {
echo "<TD WIDTH=40% BGCOLOR=\"$cellcolour\" VALIGN=TOP>$value</TD>";
}
}
if ($editable) {
echo "<TR><TD COLSPAN=2>&nbsp;<TD>";
echo " <INPUT TYPE=\"hidden\" NAME=\"file\" VALUE=\"$file\">";
echo " <INPUT TYPE=\"hidden\" NAME=\"mode\" VALUE=\"compare\">";
echo " <INPUT TYPE=\"submit\" NAME=\"update\" VALUE=\"".get_string("savechanges").": $file\">";
echo "</TD></TR>";
}
echo "</TABLE>";
echo "</FORM>";
}
print_continue("lang.php");
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();
@@ -251,7 +268,7 @@ function lang_save_file($path, $file, $strings) {
// $file is the file to overwrite.
// $strings is an array of strings to write
global $CFG;
global $CFG, $USER;
error_reporting(0);
if (!$f = fopen("$path/$file","w")) {
@@ -270,11 +287,12 @@ function lang_save_file($path, $file, $strings) {
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("$"."a", "\\$"."a", $value); // Add slashes for $a
$value = str_replace("\"", "\\\\\\\"", $value); // Add slashes for "
$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,"\$string['$stringname'] = '$value';\n");
}
}
fwrite($f,"\n?>\n");
+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();
?>
+24 -9
View File
@@ -1,14 +1,16 @@
<?PHP // $Id$
// Allows the admin to create, delete and rename course categories
require_once("../config.php");
require_once("../course/lib.php");
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!");
}
@@ -21,14 +23,19 @@
/// 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=\"../$CFG->admin/index.php\">$stradministration</a> -> $strmanagemodules");
print_header("$site->shortname: $strmanagemodules", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $strmanagemodules");
print_heading($strmanagemodules);
@@ -145,10 +152,10 @@
$modpixpath = "../theme/$CFG->theme/pix/mod";
}
$table->head = array ($stractivitymodule, "$strhide/$strshow", $strdelete);
$table->align = array ("LEFT", "CENTER", "CENTER");
$table->wrap = array ("NOWRAP", "", "");
$table->size = array ("100%", "10", "10");
$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) {
@@ -157,6 +164,14 @@
$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>";
@@ -171,7 +186,7 @@
$visible = "";
$class = "";
}
$table->data[] = array ("<p $class>$icon $modulename</p>", $visible, $delete);
$table->data[] = array ("<p $class>$icon $modulename</p>", $count, $module->version, $visible, $delete, $settings);
}
print_table($table);
+20 -8
View File
@@ -9,14 +9,26 @@
error("Only the admin can use this page");
}
$stradministration = get_string("administration");
$site = get_site();
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;
}
print_header("$site->shortname: phpinfo", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> phpinfo");
phpinfo();
print_footer();
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>
+2 -3
View File
@@ -2,7 +2,6 @@
// register.php - allows admin to register their site on moodle.org
include("../config.php");
require_once("../lib/countries.php");
require_login();
@@ -81,7 +80,7 @@
echo "<tr valign=top>\n";
echo "<td align=right><p>".get_string("country").":</td>\n";
echo "<td><p>";
choose_from_menu ($COUNTRIES, "country", $admin->country, get_string("selectacountry")."...", "", "");
choose_from_menu (get_list_of_countries(), "country", $admin->country, get_string("selectacountry")."...", "", "");
echo "</td>\n";
echo "</tr>\n";
@@ -102,7 +101,7 @@
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=\"$admin->firstname $admin->lastname\"></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";
+63 -7
View File
@@ -1,4 +1,4 @@
<form method="post" action="site.php" name="form">
<form method="post" action="site.php" name="form" <?php echo $onsubmit ?>>
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><P><?php print_string("fullsitename") ?>:</td>
@@ -15,20 +15,42 @@
<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) ?><br />
<?php helpbutton("html", get_string("helphtml"), "moodle", true, true) ?><br />
<?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><textarea name=summary cols=50 rows=10 wrap=virtual><?php p($form->summary) ?></textarea>
<?php if (isset($err["summary"])) formerr($err["summary"]); ?>
</td>
<td><?php print_textarea($usehtmleditor, 20, 50, 600, 400, "summary", $form->summary); ?></td>
</tr>
<tr valign=top>
<td align=right><P><?php print_string("frontpageformat") ?>:</td>
<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",
@@ -43,6 +65,34 @@
?>
</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="<?php print_string("savechanges") ?>"></td>
@@ -52,3 +102,9 @@
<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");
}
?>
+34 -9
View File
@@ -3,6 +3,7 @@
require_once("../config.php");
if ($site = get_site()) {
require_login();
if (!isadmin()) {
error("You need to be admin to edit this page");
}
@@ -17,11 +18,13 @@
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", get_string("changessaved"));
redirect("$CFG->wwwroot/", get_string("changessaved"));
} else {
error("Serious Error! Could not update the site record! (id = $form->id)");
}
@@ -29,7 +32,7 @@
if ($newid = insert_record("course", $form)) {
$cat->name = get_string("miscellaneous");
if (insert_record("course_categories", $cat)) {
redirect("$CFG->wwwroot/admin/index.php", get_string("changessaved"));
redirect("$CFG->wwwroot/$CFG->admin/index.php", get_string("changessaved"), 1);
} else {
error("Serious Error! Could not set up a default course category!");
}
@@ -50,37 +53,62 @@
if ($site and empty($form)) {
$form = $site;
$course = $site;
$firsttime = false;
} else {
$form->fullname = "";
$form->shortname = "";
$form->summary = "";
$form->newsitems = 0;
$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");
if ($firsttime) {
print_header();
print_heading($strsitesettings);
print_simple_box(get_string("configintrosite"), "center");
print_simple_box(get_string("configintrosite"), "center", "50%");
echo "<br />";
} else {
print_header("$site->shortname: $strsitesettings", "$site->fullname",
"<A HREF=\"index.php\">$stradmin</A> -> $strsitesettings", "$focus");
"<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");
include("site.html");
print_simple_box_end();
@@ -101,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;
}
-204
View File
@@ -1,204 +0,0 @@
<?PHP // $Id$
// Admin-only script to assign teachers to courses
require_once("../config.php");
define("MAX_USERS_PER_PAGE", 30);
optional_variable($id); // course id
optional_variable($add, "");
optional_variable($remove, "");
optional_variable($search, ""); // search string
if (! $site = get_site()) {
redirect("$CFG->wwwroot/$CFG->admin/index.php");
}
require_login();
if (!iscreator()) {
error("You must be an administrator or course creator to use this page.");
}
$strassignteachers = get_string("assignteachers");
$stradministration = get_string("administration");
$strexistingteachers = get_string("existingteachers");
$strnoexistingteachers = get_string("noexistingteachers");
$strpotentialteachers = get_string("potentialteachers");
$strnopotentialteachers = get_string("nopotentialteachers");
$straddteacher = get_string("addteacher");
$strremoveteacher = get_string("removeteacher");
$strsearch = get_string("search");
$strsearchresults = get_string("searchresults");
$strsearchagain = get_string("searchagain");
$strtoomanytoshow = get_string("toomanytoshow");
if ($search) {
$searchstring = $strsearchagain;
} else {
$searchstring = $strsearch;
}
if (!$id) {
print_header("$site->shortname: $strassignteachers", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> $strassignteachers");
$isadmin = isadmin(); /// cache value
$courses = get_courses();
print_heading(get_string("choosecourse"));
print_simple_box_start("center");
foreach ($courses as $course) {
if ($isadmin or isteacher($course->id, $USER->id)){
echo "<a href=\"teacher.php?id=$course->id\">$course->fullname ($course->shortname)</a><br>\n";
$coursesfound = TRUE;
}
}
print_simple_box_end();
if ($coursesfound == FALSE) {
print_heading(get_string("nocoursesyet"));
print_continue("../$CFG->admin/index.php");
}
print_footer();
exit;
}
if (! $course = get_record("course", "id", $id)) {
error("Course ID was incorrect (can't find it)");
}
print_header("$site->shortname: $course->shortname: $strassignteachers",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> ->
<a href=\"teacher.php\">$strassignteachers</a> -> $course->shortname", "");
print_heading("<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname ($course->shortname)</a>");
/// Get all existing teachers for this course.
$teachers = get_course_teachers($course->id);
/// Add a teacher if one is specified
if (!empty($add)) {
if (!isteacher($course->id)){
error("You must be an administrator or teacher to modify this course.");
}
if (! $user = get_record("user", "id", $add)) {
error("That teacher (id = $add) doesn't exist", "teacher.php?id=$course->id");
}
if (!empty($teachers)) {
foreach ($teachers as $tt) {
if ($tt->id == $user->id) {
error("That user is already a teacher for this course.", "teacher.php?id=$course->id");
}
}
}
$teacher->userid = $user->id;
$teacher->course = $course->id;
if (!empty($teachers)) {
$teacher->authority = 2;
} else {
$teacher->authority = 1; // First teacher is the main teacher
}
$teacher->id = insert_record("user_teachers", $teacher);
if (empty($teacher->id)) {
error("Could not add that teacher to this course!");
}
$teachers[] = $user;
}
/// Remove a teacher if one is specified.
if (!empty($remove)) {
if (!isteacher($course->id)){
error("You must be an administrator or teacher to modify this course.");
}
if (! $user = get_record("user", "id", $remove)) {
error("That teacher (id = $remove) doesn't exist", "teacher.php?id=$course->id");
}
if (!empty($teachers)) {
foreach ($teachers as $key => $tt) {
if ($tt->id == $user->id) {
remove_teacher($user->id, $course->id);
unset($teachers[$key]);
}
}
}
}
/// Print the lists of existing and potential teachers
echo "<table cellpadding=2 cellspacing=10 align=center>";
echo "<tr><th width=50%>$strexistingteachers</th><th width=50%>$strpotentialteachers</th></tr>";
echo "<tr><td width=50% nowrap valign=top>";
/// First, show existing teachers for this course
if (empty($teachers)) {
echo "<p align=center>$strnoexistingteachers</a>";
$teacherlist = "";
} else {
$teacherarray = array();
foreach ($teachers as $teacher) {
$teacherarray[] = $teacher->id;
echo "<p align=right>$teacher->firstname $teacher->lastname, $teacher->email &nbsp;&nbsp; <a href=\"teacher.php?id=$course->id&remove=$teacher->id\" title=\"$strremoveteacher\"><img src=\"../pix/t/right.gif\" border=0></a></p>";
}
$teacherlist = implode(",",$teacherarray);
unset($teacherarray);
}
echo "<td width=50% nowrap valign=top>";
/// Print list of potential teachers
$usercount = get_users(false, $search, true, $teacherlist);
if ($usercount == 0) {
echo "<p align=center>$strnopotentialteachers</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow</p>";
} else {
if ($search) {
echo "<p align=center>($strsearchresults : $search)</p>";
}
if (!$users = get_users(true, $search, true, $teacherlist)) {
error("Could not get users!");
}
foreach ($users as $user) {
echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?id=$course->id&add=$user->id\"".
"title=\"$straddteacher\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;$user->firstname $user->lastname, $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action={$_SERVER['PHP_SELF']} method=post>";
echo "<input type=hidden name=id value=\"$course->id\">";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
}
echo "</tr></table>";
print_footer();
?>
+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;
}
?>
+197 -116
View File
@@ -1,20 +1,25 @@
<?PHP // $Id$
require_once("../config.php");
require_once("../user/lib.php");
require_once("../lib/countries.php");
$recordsperpage = 30;
require_once("../config.php");
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";
@@ -94,175 +99,251 @@
$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->shortname: $stredituser", $site->fullname,
"<A HREF=\"index.php\">$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");
}
if ($delete) { // Delete a selected user, after confirmation
if ($confirmuser) {
if (!$user = get_record("user", "id", "$confirmuser")) {
error("No such user!");
}
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)) {
notice_yesno(get_string("deletecheckfull", "", "'$user->firstname $user->lastname'"),
$fullname = fullname($user, true);
notice_yesno(get_string("deletecheckfull", "", "'$fullname'"),
"user.php?delete=$delete&confirm=".md5($delete), "user.php");
exit;
} else if (!$user->deleted) {
$user->deleted = "1";
$user->username = "$user->email.".time(); // Remember it just in case
$user->email = ""; // Clear this field to free it up
$user->timemodified = time();
if (update_record("user", $user)) {
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", "", "$user->firstname $user->lastname"));
notify(get_string("deletedactivity", "", fullname($user, true)) );
} else {
notify(get_string("deletednot", "", "$user->firstname $user->lastname"));
notify(get_string("deletednot", "", fullname($user, true)));
}
}
}
// Carry on with the user listing
$columns = array("name", "email", "city", "country", "lastaccess");
$columns = array("firstname", "lastname", "email", "city", "country", "lastaccess");
foreach ($columns as $column) {
$string[$column] = get_string("$column");
$columnsort = "$column";
if ($column == "lastaccess") {
$columndir = "DESC";
if ($sort != $column) {
$columnicon = "";
if ($column == "lastaccess") {
$columndir = "DESC";
} else {
$columndir = "ASC";
}
} else {
$columndir = "ASC";
}
if ($columnsort == $sort) {
$$column = $string[$column];
} else {
$$column = "<A HREF=\"user.php?sort=$columnsort&dir=$columndir&search=$search\">".$string[$column]."</A>";
$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";
}
if (!$users = get_users_listing($sort, $dir, $page, $recordsperpage, $search)) {
if (!$users = get_users_listing($sort, $dir, 0, $recordsperpage)) {
error("No users found!");
} else {
notify(get_string("nousersmatching", "", $search));
$search = "";
}
}
$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) {
$usersearchcount = get_users(false, $search);
if ($search or $firstinitial or $lastinitial) {
print_heading("$usersearchcount / $usercount ".get_string("users"));
$usercount = $usersearchcount;
} else {
print_heading("$usercount ".get_string("users"));
}
$a->start = $page;
$a->end = $page + $recordsperpage;
if ($a->end > $usercount) {
$a->end = $usercount;
$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> ";
}
echo "<TABLE align=center cellpadding=10><TR>";
echo "<TD>";
if ($page) {
$prevpage = $page - $recordsperpage;
if ($prevpage < 0) {
$prevpage = 0;
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> ";
}
$options["dir"] = $dir;
$options["page"] = 0;
$options["sort"] = $sort;
$options["search"] = $search;
print_single_button("user.php", $options, " << ");
echo "</TD><TD>";
$options["page"] = $prevpage;
print_single_button("user.php", $options, " < ");
}
echo "</TD><TD>";
print_heading(get_string("displayingusers", "", $a));
echo "</TD><TD>";
$nextpage = $page + $recordsperpage;
if ($nextpage < $usercount) {
$options["dir"] = $dir;
$options["page"] = $nextpage;
$options["sort"] = $sort;
$options["search"] = $search;
print_single_button("user.php", $options, " > ");
echo "</TD><TD>";
$options["page"] = $usercount-$recordsperpage;
print_single_button("user.php", $options, " >> ");
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> ";
}
echo "</TD></TR></TABLE>";
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();
foreach ($users as $key => $user) {
if (!empty($user->country)) {
$users[$key]->country = $COUNTRIES[$user->country];
if (!$users) {
$match = array();
if ($search) {
$match[] = $search;
}
}
if ($sort == "country") { // Need to resort by full country name, not code
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) {
$susers[$user->id] = $user->country;
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",
"$user->country",
$strlastaccess,
"<a href=\"../user/edit.php?id=$user->id&course=$site->id\">$stredit</a>",
$deletebutton,
$confirmbutton);
}
asort($susers);
foreach ($susers as $key => $value) {
$nusers[] = $users[$key];
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\">";
}
$users = $nusers;
echo "</form>";
echo "</td></tr></table>";
print_table($table);
print_paging_bar($usercount, $page, $perpage,
"user.php?sort=$sort&dir=$dir&perpage=$perpage".
"&firstinitial=$firstinitial&lastinitial=$lastinitial&search=$search&");
}
$table->head = array ($name, $email, $city, $country, $lastaccess, "", "");
$table->align = array ("LEFT", "LEFT", "LEFT", "LEFT", "LEFT", "CENTER", "CENTER");
$table->width = "95%";
foreach ($users as $user) {
if ($user->id == $USER->id or $user->username == "changeme") {
$deletebutton = "";
} else {
$deletebutton = "<A HREF=\"user.php?delete=$user->id\" TARGET=\"$strdeletecheck\">$strdelete</A>";
}
if ($user->lastaccess) {
$strlastaccess = format_time(time() - $user->lastaccess);
} else {
$strlastaccess = get_string("never");
}
$table->data[] = array ("<A HREF=\"../user/view.php?id=$user->id&course=$site->id\">$user->firstname $user->lastname</A>",
"$user->email",
"$user->city",
"$user->country",
$strlastaccess,
"<A HREF=\"../user/edit.php?id=$user->id&course=$site->id\">$stredit</A>",
$deletebutton);
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
print_heading("<a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a>");
}
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>");
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);
?>
+63 -63
View File
@@ -27,21 +27,21 @@
$config->auth_dbpasstype = "plaintext";
}
?>
<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_dbhost?>">
<? if (isset($err["auth_dbhost"])) formerr($err["auth_dbhost"]); ?>
<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>
<? print_string("auth_dbhost","auth") ?>
<?php print_string("auth_dbhost","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbtype:</TD>
<TD>
<? $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");
<?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;
}
@@ -50,186 +50,186 @@
</TD>
<TD>
<? print_string("auth_dbtype","auth") ?>
<?php print_string("auth_dbtype","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_dbname?>">
<? if (isset($err["auth_dbname"]))formerr($err["auth_dbname"]); ?>
<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>
<? print_string("auth_dbname","auth") ?>
<?php print_string("auth_dbname","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_dbuser?>">
<? if (isset($err["auth_dbuser"])) formerr($err["auth_dbuser"]); ?>
<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>
<? print_string("auth_dbuser","auth") ?>
<?php print_string("auth_dbuser","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_dbpass?>">
<? if (isset($err["auth_dbpass"])) formerr($err["auth_dbpass"]); ?>
<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>
<? print_string("auth_dbpass","auth") ?>
<?php print_string("auth_dbpass","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_dbtable?>">
<? if (isset($err["auth_dbtable"])) formerr($err["auth_dbtable"]); ?>
<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>
<? print_string("auth_dbtable","auth") ?>
<?php print_string("auth_dbtable","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_dbfielduser?>">
<? if (isset($err["auth_dbfielduser"])) formerr($err["auth_dbfielduser"]); ?>
<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>
<? print_string("auth_dbfielduser","auth") ?>
<?php print_string("auth_dbfielduser","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_dbfieldpass?>">
<? if (isset($err["auth_dbfieldpass"])) formerr($err["auth_dbfieldpass"]); ?>
<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>
<? print_string("auth_dbfieldpass","auth") ?>
<?php print_string("auth_dbfieldpass","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_dbpasstype:</TD>
<TD>
<? $passtype["plaintext"] = get_string("plaintext", "auth");
<?php $passtype["plaintext"] = get_string("plaintext", "auth");
$passtype["md5"] = get_string("md5", "auth");
choose_from_menu($passtype, "auth_dbpasstype", $config->auth_dbpasstype, "");
?>
</TD>
<TD>
<? print_string("auth_dbpasstype","auth") ?>
<?php print_string("auth_dbpasstype","auth") ?>
</TD>
</TR>
<TR>
<TD ALIGN=RIGHT><P><? print_string("firstname") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
<TD>
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_firstname?>">
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
</TD>
<TD rowspan=12 VALIGN=CENTER>
<? print_string("auth_dbextrafields","auth") ?>
<?php print_string("auth_dbextrafields","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><? print_string("lastname") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
<TD>
<INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lastname?>">
<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><? print_string("email") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
<TD>
<INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_email?>">
<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><? print_string("phone") ?> 1:</TD>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
<TD>
<INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone1?>">
<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><? print_string("phone") ?> 2:</TD>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
<TD>
<INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone2?>">
<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><? print_string("department") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
<TD>
<INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_department?>">
<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><? print_string("address") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
<TD>
<INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_address?>">
<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><? print_string("city") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
<TD>
<INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_city?>">
<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><? print_string("country") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
<TD>
<INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_country?>">
<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><? print_string("description") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
<TD>
<INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_description?>">
<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><? print_string("idnumber") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
<TD>
<INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_idnumber?>">
<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><? print_string("language") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
<TD>
<INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lang?>">
<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><? print_string("instructions", "auth") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<? print_string("authinstructions","auth") ?>
<? helpbutton("text", get_string("helptext")) ?>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+2
View File
@@ -27,6 +27,8 @@ function auth_user_login ($username, $password) {
$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;
+16 -15
View File
@@ -9,21 +9,22 @@
$config->auth_imapport = "143";
}
?>
<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_imaphost?>">
<? if (isset($err["auth_imaphost"])) formerr($err["auth_imaphost"]); ?>
<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>
<? print_string("auth_imaphost","auth") ?>
<?php print_string("auth_imaphost","auth") ?>
<?php print_string("auth_multiplehosts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_imaptype:</TD>
<TD>
<? $imaptypes = array("imap","imapssl", "imapcert", "imaptls");
<?php $imaptypes = array("imap","imapssl", "imapcert", "imaptls");
foreach($imaptypes as $imaptype) {
$imapoptions[$imaptype] = $imaptype;
}
@@ -31,28 +32,28 @@
?>
</TD>
<TD>
<? print_string("auth_imaptype","auth") ?>
<?php print_string("auth_imaptype","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_imapport?>">
<? if (isset($err["auth_imapport"])) formerr($err["auth_imapport"]); ?>
<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>
<? print_string("auth_imapport","auth") ?>
<?php print_string("auth_imapport","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<? print_string("authinstructions","auth") ?>
<? helpbutton("text", get_string("helptext")) ?>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+29 -23
View File
@@ -7,34 +7,40 @@ function auth_user_login ($username, $password) {
global $CFG;
switch ($CFG->auth_imaptype) {
case "imapssl":
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/ssl}";
break;
$hosts = split(';', $CFG->auth_imaphost); // Could be multiple hosts
case "imapcert":
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/ssl/novalidate-cert}";
break;
foreach ($hosts as $host) { // Try each host in turn
case "imaptls":
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/notls}";
break;
$host = trim($host);
default:
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport}";
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;
}
}
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
error_reporting($CFG->debug);
if ($connection) {
imap_close($connection);
return true;
} else {
return false;
}
return false; // No match
}
+83 -65
View File
@@ -17,197 +17,215 @@
if (!isset($config->ldap_bind_pw)) {
$config->ldap_bind_pw = "";
}
if (empty($config->ldap_version)) {
$config->ldap_version = "2";
}
?>
<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_host_url?>">
<? if (isset($err["ldap_host_url"])) formerr($err["ldap_host_url"]); ?>
<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>
<? print_string("auth_ldap_host_url","auth") ?>
<?php print_string("auth_ldap_host_url","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_contexts?>">
<? if (isset($err["ldap_contexts"])) formerr($err["ldap_contexts"]); ?>
<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>
<? print_string("auth_ldap_contexts","auth") ?>
<?php print_string("auth_ldap_contexts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_user_attribute?>">
<? if (isset($err["ldap_user_attribute"])) formerr($err["ldap_user_attribute"]); ?>
<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>
<? print_string("auth_ldap_user_attribute","auth") ?>
<?php print_string("auth_ldap_user_attribute","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_search_sub?>">
<? if (isset($err["ldap_search_sub"])) formerr($err["ldap_search_sub"]); ?>
<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>
<? print_string("auth_ldap_search_sub","auth") ?>
<?php print_string("auth_ldap_search_sub","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_bind_dn?>">
<? if (isset($err["ldap_bind_dn"])) formerr($err["ldap_bind_dn"]); ?>
<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>
<? print_string("auth_ldap_bind_dn","auth") ?>
<?php print_string("auth_ldap_bind_dn","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_bind_pw?>">
<? if (isset($err["ldap_bind_pw"])) formerr($err["ldap_bind_pw"]); ?>
<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>
<? print_string("auth_ldap_bind_pw","auth") ?>
<?php print_string("auth_ldap_bind_pw","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_memberattribute?>">
<? if (isset($err["ldap_memberattribute"])) formerr($err["ldap_memberattribute"]); ?>
<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>
<? print_string("auth_ldap_memberattribute","auth") ?>
<?php print_string("auth_ldap_memberattribute","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_creators?>">
<? if (isset($err["ldap_creators"])) formerr($err["ldap_creators"]); ?>
<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>
<? print_string("auth_ldap_creators","auth") ?>
<?php print_string("auth_ldap_creators","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->ldap_create_context?>">
<? if (isset($err["ldap_create_context"])) formerr($err["ldap_create_context"]); ?>
<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>
<? print_string("auth_ldap_create_context","auth") ?>
<?php print_string("auth_ldap_create_context","auth") ?>
</TD>
</TR>
<TR>
<TD ALIGN=RIGHT><P><? print_string("firstname") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
<TD>
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_firstname?>">
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
</TD>
<TD rowspan=12 VALIGN=CENTER>
<? print_string("auth_ldapextrafields","auth") ?>
<?php print_string("auth_ldapextrafields","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><? print_string("lastname") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
<TD>
<INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lastname?>">
<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><? print_string("email") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
<TD>
<INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_email?>">
<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><? print_string("phone") ?> 1:</TD>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
<TD>
<INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone1?>">
<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><? print_string("phone") ?> 2:</TD>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
<TD>
<INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone2?>">
<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><? print_string("department") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
<TD>
<INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_department?>">
<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><? print_string("address") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
<TD>
<INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_address?>">
<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><? print_string("city") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
<TD>
<INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_city?>">
<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><? print_string("country") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
<TD>
<INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_country?>">
<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><? print_string("description") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
<TD>
<INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_description?>">
<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><? print_string("idnumber") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
<TD>
<INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_idnumber?>">
<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><? print_string("language") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
<TD>
<INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lang?>">
<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><? print_string("instructions", "auth") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<? print_string("authinstructions","auth") ?>
<? helpbutton("text", get_string("helptext")) ?>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+11 -5
View File
@@ -79,7 +79,9 @@ function auth_get_userinfo($username){
$search_attribs = array();
foreach ($attrmap as $key=>$value) {
array_push($search_attribs, $value);
if (!in_array($value, $search_attribs)) {
array_push($search_attribs, $value);
}
}
$user_dn = auth_ldap_find_userdn($ldap_connection, $username);
@@ -93,8 +95,8 @@ function auth_get_userinfo($username){
if ($user_info_result) {
$user_entry = ldap_get_entries($ldap_connection, $user_info_result);
foreach ($attrmap as $key=>$value){
if(isset($user_entry[0][$value][0])){
$result[$key]=$user_entry[0][$value][0];
if(isset($user_entry[0][strtolower($value)][0])){
$result[$key]=$user_entry[0][strtolower($value)][0];
}
}
}
@@ -219,6 +221,10 @@ function auth_ldap_connect(){
$result = ldap_connect($CFG->ldap_host_url);
if ($result) {
if (!empty($CFG->ldap_version)) {
ldap_set_option($result, LDAP_OPT_PROTOCOL_VERSION, $CFG->ldap_version);
}
return $result;
} else {
@@ -280,11 +286,11 @@ function auth_ldap_find_userdn ($ldap_connection, $username){
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.")");
$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.")");
$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);
+4 -4
View File
@@ -1,11 +1,11 @@
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<? print_string("authinstructions","auth") ?>
<? helpbutton("text", get_string("helptext")) ?>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+13 -12
View File
@@ -7,35 +7,36 @@
}
?>
<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_nntphost?>">
<? if (isset($err["auth_nntphost"])) formerr($err["auth_nntphost"]); ?>
<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>
<? print_string("auth_nntphost","auth") ?>
<?php print_string("auth_nntphost","auth") ?>
<?php print_string("auth_multiplehosts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_nntpport?>">
<? if (isset($err["auth_nntpport"])) formerr($err["auth_nntpport"]); ?>
<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>
<? print_string("auth_nntpport","auth") ?>
<?php print_string("auth_nntpport","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<? print_string("authinstructions","auth") ?>
<? helpbutton("text", get_string("helptext")) ?>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+12 -9
View File
@@ -8,19 +8,22 @@ function auth_user_login ($username, $password) {
global $CFG;
$host = "{".$CFG->auth_nntphost.":$CFG->auth_nntpport/nntp}";
$hosts = split(';', $CFG->auth_nntphost); // Could be multiple hosts
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
error_reporting($CFG->debug);
foreach ($hosts as $host) { // Try each host in turn
$host = '{'.trim($host).":$CFG->auth_nntpport/nntp}";
if ($connection) {
imap_close($connection);
return true;
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
error_reporting($CFG->debug);
} else {
return false;
if ($connection) {
imap_close($connection);
return true;
}
}
return false; // No match
}
+17 -16
View File
@@ -3,27 +3,28 @@
$config->auth_pop3host = "127.0.0.1";
}
if (!isset($config->auth_pop3type)) {
$config->auth_pop3type = "pop3";
$config->auth_pop3type = "pop3notls";
}
if (!isset($config->auth_pop3port)) {
$config->auth_pop3port = "110";
}
?>
<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_pop3host?>">
<? if (isset($err["auth_pop3host"])) formerr($err["auth_pop3host"]); ?>
<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>
<? print_string("auth_pop3host","auth") ?>
<?php print_string("auth_pop3host","auth") ?>
<?php print_string("auth_multiplehosts","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_pop3type:</TD>
<TD>
<? $pop3types = array("pop3","pop3cert");
<?php $pop3types = array("pop3","pop3cert", "pop3notls");
foreach($pop3types as $pop3type) {
$pop3options[$pop3type] = $pop3type;
}
@@ -31,28 +32,28 @@
?>
</TD>
<TD>
<? print_string("auth_pop3type","auth") ?>
<?php print_string("auth_pop3type","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
<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="<?=$config->auth_pop3port?>">
<? if (isset($err["auth_pop3port"])) formerr($err["auth_pop3port"]); ?>
<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>
<? print_string("auth_pop3port","auth") ?>
<?php print_string("auth_pop3port","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<? print_string("authinstructions","auth") ?>
<? helpbutton("text", get_string("helptext")) ?>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+27 -18
View File
@@ -7,26 +7,35 @@ function auth_user_login ($username, $password) {
global $CFG;
switch ($CFG->auth_pop3type) {
case "pop3":
$host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3}INBOX";
break;
case "pop3cert":
$host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3/ssl/novalidate-cert}INBOX";
break;
$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;
}
}
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
error_reporting($CFG->debug);
if ($connection) {
imap_close($connection);
return true;
} else {
return false;
}
return false; // No matches found
}
+141 -73
View File
@@ -3,12 +3,9 @@ STATUS $Id$
This documment shows the current status of the backup/restore option.
Backup: WORKING. COMPLETED but only assignments, resources,
choices and surveys.
Backup: WORKING. COMPLETED !!
Restore: WORKING. NOT COMPLETED. Only course, users, user_files and
course_files. No logs, mods or final checks !!!!
Restore: WORKING. COMPLETED !!
========== ========== ========== ========== ========== ==========
@@ -31,9 +28,9 @@ Backup Details:
- Delete old entries at backup startup..................DONE
- From database....................................DONE
- From filesystem..................................DONE
- Backup Items:..............................................IN PROGRESS
- Backup Items:..............................................DONE
- Backup Info data......................................DONE
- Course................................................IN PROGRESS
- Course................................................DONE
- Course Summary Data................................DONE
x course info.....................................DONE
x sections info...................................DONE
@@ -50,31 +47,49 @@ Backup Details:
- Course.......................................DONE
- All..........................................DONE
- Logs...............................................DONE
- Mods Info..........................................IN PROGRESS
- 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..........................................IN PROGRESS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x journals........................................IN PROGRESS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x peer graded assignments.........................IN PROGRESS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x quizzes.........................................IN PROGRESS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
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
@@ -83,17 +98,17 @@ Backup Details:
+ course data..................................DONE
+ user data....................................DONE
+ files.....(NOT EXISTS).......................DONE
x workshops.......................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
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. PROBLEMS PCLZIP/UNZIP
- XML File................................................DONE. PROBLEMS PCLZIP/UNZIP
- moddata files...........................................DONE. PROBLEMS PCLZIP/UNZIP
- Course Files............................................DONE. PROBLEMS PCLZIP/UNZIP
- User Files..............................................DONE. PROBLEMS PCLZIP/UNZIP
- 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
@@ -101,8 +116,19 @@ Backup Details:
- Browse backup files........................................DONE
- Download backup files......................................DONE
- Delete backup files........................................DONE
- Program automatic backups..................................NO EXISTS
- 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
@@ -127,7 +153,7 @@ Restore Details:
- About existing users...............................DONE
- Launch Restore........................................DONE
- Show progress.........................................DONE
- Restore Items:.............................................IN PROGRESS
- Restore Items:.............................................DONE
- Course................................................DONE
- Course Summary Data................................DONE
- Course Table....................................DONE
@@ -149,49 +175,91 @@ Restore Details:
x admins..........................................DONE
- None.........................................DONE
- Course.......................................DONE
- All..........................................DONE
- Mods Info..........................................NO EXISTS
x assignments.....................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x choices.........................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x forums..........................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x journals........................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x quizzes.........................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x resources.......................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
x surveys.........................................NO EXISTS
+ course data..................................NO EXISTS
+ user data....................................NO EXISTS
+ files........................................NO EXISTS
- 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................................................NO EXISTS
- Readjust instance in course_modules........................NO EXISTS
- Readjust modinfo in course (serialize).....................NO EXISTS
- Delete old entries at restore end. .......................NO EXISTS
- From database...........................................NO EXISTS
- From filesystem.........................................NO EXISTS
- 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's no a little thing !!! :-)
This is all. It isn't a little thing !!! :-)
Eloy (stronk7)
29-04-2003
+40 -25
View File
@@ -3,40 +3,42 @@
//Define some globals for all the script
//MUST CHANGE WITH FINAL BACKUP LOCATION !! WITHOUT TRAILING SLASH !!
//ALL RELATIVE FROM THE LOCATION OF THE backup.php SCRIPT !!!
$moodle_home = "../../..";
$mods_home = "mod";
//END MUST CHANGE
//Units used
require_once ("$moodle_home/config.php");
require_once ("$moodle_home/version.php");
require_once ("backup_version.php");
require_once ("db/backup_$CFG->dbtype.php");
require_once ("../config.php");
require_once ("lib.php");
require_once ("backuplib.php");
require_once ("$CFG->libdir/blocklib.php");
//Optional variables
optional_variable($id); // course id
optional_variable($cancel);
optional_variable($launch);
//Check login
require_login();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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
upgrade_backup_db($backup_version,$backup_release,"backup.php");
if ($id) {
$linkto = "backup.php?id=".$id;
} else {
$linkto = "backup.php";
}
upgrade_backup_db($linkto);
//Get strings
$strcoursebackup = get_string("coursebackup");
@@ -45,7 +47,7 @@
//If no course has been selected or cancel button pressed
if (!$id or $cancel) {
print_header("$site->shortname: $strcoursebackup", $site->fullname,
"<A HREF=\"$moodle_home/$CFG->admin/index.php\">$stradministration</A> -> $strcoursebackup");
"<A HREF=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</A> -> $strcoursebackup");
if ($courses = get_courses()) {
print_heading(get_string("choosecourse"));
@@ -56,7 +58,7 @@
print_simple_box_end();
} else {
print_heading(get_string("nocoursesyet"));
print_continue("$moodle_home/$CFG->admin/index.php");
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
}
print_footer();
exit;
@@ -66,14 +68,28 @@
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
print_header("$site->shortname: $strcoursebackup", $site->fullname,
"<A HREF=\"$moodle_home/$CFG->admin/index.php\">$stradministration</A> ->
<A HREF=\"backup.php\">$strcoursebackup</A> -> $course->fullname ($course->shortname)");
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");
@@ -88,4 +104,3 @@
print_footer();
?>
+75 -23
View File
@@ -4,11 +4,17 @@
//Check login
require_login();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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!");
@@ -20,7 +26,7 @@
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$mods_home/$modname/backuplib.php";
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
@@ -51,7 +57,7 @@
}
if (!isset($backup_logs)) {
$backup_logs = 1;
$backup_logs = 0;
}
if (!isset($backup_user_files)) {
@@ -67,9 +73,9 @@
}
?>
<form name="form" method="post" <?=$onsubmit ?> action="<?=$ME ?>">
<form name="form" method="post" action="<?php echo $ME ?>">
<table cellpadding=5>
<?
<?php
//Now print the Backup Name tr
echo "<tr>";
@@ -77,21 +83,41 @@
echo get_string("name").":";
echo "</B></td><td>";
//Calculate the backup string
$backup_name = strtolower(get_string("backup"));
//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_name,0,1) == "[") {
$backup_name = "backup";
if (substr($backup_word,0,1) == "[") {
$backup_word= "backup";
}
//Calculate the format string
$backup_name_format = get_string("backupnameformat");
//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_name_format,0,1) == "[") {
$backup_name_format = "%%Y%%m%%d-%%H%%M";
if (substr($backup_date_format,0,1) == "[") {
$backup_date_format = "%%Y%%m%%d-%%H%%M";
}
$backup_name .= "-".strtolower($course->shortname)."-".userdate(time(),$backup_name_format,99,false).".zip";
echo $backup_name;
//Add as hidden name
echo "<input type=\"hidden\" name=\"backup_name\" value=\"".$backup_name."\">";
//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
@@ -106,6 +132,32 @@
//Now print the To Do list
echo "<tr>";
echo "<td colspan=\"2\" align=\"center\"><P><B>";
//Here we check if backup_users = None. Then, we switch off every module
//user info, user_files, logs and exercises and workshop backups. A Warning is showed to
//inform the user.
if ($backup_users == 2) {
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$var = "backup_user_info_".$modname;
if (isset($$var)) {
$$var = 0;
}
$var = "backup_".$modname;
if (isset($$var)) {
if ($modname == "exercise" || $modname == "workshop") {
$$var = 0;
}
}
}
$backup_user_files = 0;
$backup_logs = 0;
}
print_simple_box("<font color=\"red\">".get_string("backupnoneusersinfo")."</font>","center", "70%", "$THEME->cellheading", "20", "noticebox");
echo "<hr noshade size=\"1\">";
}
echo get_string("backupdetails").":";
echo "</td></tr>";
@@ -118,7 +170,7 @@
$modbackup = $modname."_backup_mods";
//If exists the lib & function
$var = "exists_".$modname;
if ($$var) {
if (isset($$var) && $$var) {
//Add hidden fields
$var = "backup_".$modname;
echo "<input type=\"hidden\" name=\"".$var."\" value=\"".$$var."\">";
@@ -154,7 +206,7 @@
echo "<td colspan=\"2\"><P><B>";
$user_options[0] = get_string("includeallusers");
$user_options[1] = get_string("includecourseusers");
///$user_options[2] = get_string("includeneededusers");--->NOT IMPLEMENTED
$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."\">";
@@ -206,9 +258,9 @@
</table>
<BR>
<CENTER>
<input type="hidden" name=id value="<? p($id) ?>">
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=launch value="execute">
<input type="submit" value="<? print_string("continue") ?>">
<input type="submit" name=cancel value="<? print_string("cancel") ?>">
<input type="submit" value="<?php print_string("continue") ?>">
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
</CENTER>
</FORM>
+115 -47
View File
@@ -4,11 +4,17 @@
//Check login
require_login();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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!");
@@ -20,7 +26,7 @@
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$mods_home/$modname/backuplib.php";
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
@@ -60,7 +66,7 @@
$preferences->backup_users = $backup_users;
if (!isset($backup_logs)) {
$backup_logs = 1;
$backup_logs = 0;
}
$preferences->backup_logs = $backup_logs;
@@ -90,10 +96,10 @@
$preferences->backup_unique_code = $backup_unique_code;
//Another Info
$preferences->moodle_version = $version;
$preferences->moodle_release = $release;
$preferences->backup_version = $backup_version;
$preferences->backup_release = $backup_release;
$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!");
@@ -119,7 +125,7 @@
//Check for temp and backup and backup_unique_code directory
//Create them as needed
echo "<li>Creating temporary structures";
echo "<li>".get_string("creatingtemporarystructures");
$status = check_and_create_backup_dir($backup_unique_code);
//Empty dir
if ($status) {
@@ -127,55 +133,98 @@
}
//Delete old_entries from backup tables
echo "<li>Deteting old data";
echo "<li>".get_string("deletingolddata");
$status = backup_delete_old_data();
if (!$status) {
error ("An error has ocurred");
error ("An error occurred deleting old backup data");
}
//Create the moodle.xml file
if ($status) {
echo "<li>Creating xml file";
echo "<li>".get_string("creatingxmlfile");
//Begin a new list to xml contents
echo "<ul>";
echo "<li>Writing header";
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>Writing general info";
echo "<li>".get_string("writinggeneralinfo");;
//Prints general info about backup to file
if ($backup_file) {
$status = backup_general_info($backup_file,$preferences);
if (!$status = backup_general_info($backup_file,$preferences)) {
notify("An error occurred while backing up general info");
}
}
echo "<li>Writing course data";
echo "<li>".get_string("writingcoursedata");
//Start new ul (for course)
echo "<ul>";
echo "<li>Course info";
echo "<li>".get_string("courseinfo");
//Prints course start (tag and general info)
if ($status) {
$status = backup_course_start($backup_file,$preferences);
if (!$status = backup_course_start($backup_file,$preferences)) {
notify("An error occurred while backing up course start");
}
}
echo "<li>Sections";
echo "<li>".get_string("sections");
//Section info
if ($status) {
$status = backup_course_sections($backup_file,$preferences);
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>Writing users info";
echo "<li>".get_string("writinguserinfo");
//User info
if ($status) {
$status = backup_user_info($backup_file,$preferences);
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>Writing logs info";
$status = backup_log_info($backup_file,$preferences);
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");
}
}
@@ -191,28 +240,36 @@
}
//If we have to backup some module
if ($mods_to_backup) {
echo "<li>Writing modules info";
echo "<li>".get_string("writingmoduleinfo");
//Start modules tag
$status = backup_modules_start ($backup_file,$preferences);
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 backupa
//Iterate over modules and call backup
foreach ($preferences->mods as $module) {
if ($module->backup and $status) {
echo "<li>".$module->name;
$status = backup_module($backup_file,$preferences,$module->name);
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
$status = backup_modules_end ($backup_file,$preferences);
if (!$status = backup_modules_end ($backup_file,$preferences)) {
notify("An error occurred while finishing the module backups");
}
}
}
//Prints course end
if ($status) {
$status = backup_course_end($backup_file,$preferences);
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) {
@@ -226,39 +283,45 @@
//Now, if selected, copy user files
if ($status) {
if ($preferences->backup_user_files) {
echo "<li>Copying user files";
$status = backup_copy_user_files ($preferences);
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>Copying course files";
$status = backup_copy_course_files ($preferences);
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>Zipping backup";
$status = backup_zip ($preferences,$moodle_home);
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>Copying zip file";
$status = copy_zip_to_course_dir ($preferences);
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>Cleaning up temp data";
$status = clean_temp_data ($preferences);
}
if (!$status) {
error ("An error has ocurred");
echo "<li>".get_string("cleaningtempdata");
if (!$status = clean_temp_data ($preferences)) {
notify("An error occurred while cleaning up temporary data");
}
}
//Ends th main ul
@@ -269,9 +332,14 @@
//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($moodle_home."/files/index.php?id=".$preferences->backup_course."&wdir=/".get_string("backupdir"));
print_continue("$CFG->wwwroot/files/index.php?id=".$preferences->backup_course."&wdir=/backupdata");
?>
+17 -12
View File
@@ -4,9 +4,14 @@
//Check login
require_login();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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
@@ -20,7 +25,7 @@
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$mods_home/$modname/backuplib.php";
$modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
$modbackup = $modname."_backup_mods";
$modcheckbackup = $modname."_check_backup_mods";
if (file_exists($modfile)) {
@@ -51,7 +56,7 @@
}
if (!isset($backup_logs)) {
$backup_logs = 1;
$backup_logs = 0;
}
if (!isset($backup_user_files)) {
@@ -68,16 +73,16 @@
?>
<form name="form" method="post" <?=$onsubmit ?> action="<?=$ME ?>">
<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 ($$var) {
if (isset($$var) && $$var) {
//Print the full tr
echo "<tr>";
echo "<td align=\"right\"><P><B>";
@@ -104,7 +109,7 @@
echo "</td><td>";
$user_options[0] = get_string("all");
$user_options[1] = get_string("course");
//$user_options[2] = get_string("needed");-->NOT IMPLEMENTED
$user_options[2] = get_string("none");
choose_from_menu($user_options, "backup_users", $backup_users, "");
echo "</td></tr>";
@@ -142,9 +147,9 @@
</table>
<BR>
<CENTER>
<input type="hidden" name=id value="<? p($id) ?>">
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=launch value="check">
<input type="submit" value="<? print_string("continue") ?>">
<input type="submit" name=cancel value="<? print_string("cancel") ?>">
<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;
}
?>
-10
View File
@@ -1,10 +0,0 @@
<?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 = 2003052000; // The current version is a date (YYYYMMDDXX)
$backup_release = "0.2.1 alpha"; // User-friendly version number
+582 -108
View File
@@ -32,60 +32,85 @@
//Return an array of info (name,value)
function user_check_backup($course,$backup_unique_code,$backup_users) {
//$backup_users=0-->all
// 1-->course
// 2-->needed-->NOT IMPLEMEMTED
// 1-->course (needed + enrolled)
// 2-->none
global $CFG;
global $db;
$count_users = 0;
//Select all users from user
$users = get_records ("user");
//Iterate over users putting their roles
foreach ($users as $user) {
$user->info = "";
//Is Admin in tables (not is_admin()) !!
if (record_exists("user_admins","userid",$user->id)) {
$user->info .= "admin";
$user->role_admin = true;
}
//Is Course Creator in tables (not is_coursecreator()) !!
if (record_exists("user_coursecreators","userid",$user->id)) {
$user->info .= "coursecreator";
$user->role_coursecreator = true;
}
//Is Teacher in tables (not is_teacher()) !!
if (record_exists("user_teachers","course",$course,"userid",$user->id)) {
$user->info .= "teacher";
$user->role_teacher = true;
}
//Is Student in tables (not is_student()) !!
if (record_exists("user_students","course",$course,"userid",$user->id)) {
$user->info .= "student";
$user->role_student = true;
}
//Now create the backup_id record
$backupids_rec->backup_code = $backup_unique_code;
$backupids_rec->table_name = "user";
$backupids_rec->old_id = $user->id;
$backupids_rec->info = $user->info;
//Insert the record id. backup_users decide it.
//When all users
if ($backup_users == 0) {
$status = insert_record("backup_ids",$backupids_rec,false);
$count_users++;
//When course users
} else if ($backup_users == 1) {
//Only if user has any role
if ($backupids_rec->info) {
$status = insert_record("backup_ids",$backupids_rec,false);
$count_users++;
//If we've selected none, simply return 0
if ($backup_users == 0 or $backup_users == 1) {
//Calculate needed users (calling every xxxx_get_participants function + scales users)
$needed_users = backup_get_needed_users($course);
//Calculate enrolled users (students + teachers)
$enrolled_users = backup_get_enrolled_users($course);
//Calculate all users (every record in users table)
$all_users = backup_get_all_users();
//Calculate course users (needed + enrolled)
//First, needed
$course_users = $needed_users;
//Now, enrolled
if ($enrolled_users) {
foreach ($enrolled_users as $enrolled_user) {
$course_users[$enrolled_user->id]->id = $enrolled_user->id;
}
}
}
//Now, depending of parameters, create $backupable_users
if ($backup_users == 0) {
$backupable_users = $all_users;
} else {
$backupable_users = $course_users;
}
//If we have backupable users
if ($backupable_users) {
//Iterate over users putting their roles
foreach ($backupable_users as $backupable_user) {
$backupable_user->info = "";
//Is Admin in tables (not is_admin()) !!
if (record_exists("user_admins","userid",$backupable_user->id)) {
$backupable_user->info .= "admin";
}
//Is Course Creator in tables (not is_coursecreator()) !!
if (record_exists("user_coursecreators","userid",$backupable_user->id)) {
$backupable_user->info .= "coursecreator";
}
//Is Teacher in tables (not is_teacher()) !!
if (record_exists("user_teachers","course",$course,"userid",$backupable_user->id)) {
$backupable_user->info .= "teacher";
}
//Is Student in tables (not is_student()) !!
if (record_exists("user_students","course",$course,"userid",$backupable_user->id)) {
$backupable_user->info .= "student";
}
//Is needed user (exists in needed_users)
if (isset($needed_users[$backupable_user->id])) {
$backupable_user->info .= "needed";
}
//Now create the backup_id record
$backupids_rec->backup_code = $backup_unique_code;
$backupids_rec->table_name = "user";
$backupids_rec->old_id = $backupable_user->id;
$backupids_rec->info = $backupable_user->info;
//Insert the record id. backup_users decide it.
//When all users
$status = insert_record("backup_ids",$backupids_rec,false,"backup_code");
$count_users++;
}
//Do some output
backup_flush(30);
}
}
//Prepare Info
//Gets the user data
$info[0][0] = get_string("users");
@@ -94,23 +119,130 @@
return $info;
}
//Returns every needed user (participant) in a course
//It uses the xxxx_get_participants() function
//plus users needed to backup scales.
//WARNING: It returns only NEEDED users, not every
// every student and teacher in the course, so it
//must be merged with backup_get_enrrolled_users !!
function backup_get_needed_users ($courseid) {
global $CFG, $THEME;
$result = false;
$course_modules = get_records_sql ("SELECT cm.id, m.name, cm.instance
FROM {$CFG->prefix}modules m,
{$CFG->prefix}course_modules cm
WHERE m.id = cm.module and
cm.course = '$courseid'");
if ($course_modules) {
//Iterate over each module
foreach ($course_modules as $course_module) {
$modlib = "$CFG->dirroot/mod/$course_module->name/lib.php";
$modgetparticipants = $course_module->name."_get_participants";
if (file_exists($modlib)) {
include_once($modlib);
if (function_exists($modgetparticipants)) {
$module_participants = $modgetparticipants($course_module->instance);
//Add them to result
if ($module_participants) {
foreach ($module_participants as $module_participant) {
$result[$module_participant->id]->id = $module_participant->id;
}
}
}
}
}
}
//Now, add scales users (from site and course scales)
//Get users
$scaleusers = get_records_sql("SELECT DISTINCT userid,userid
FROM {$CFG->prefix}scale
WHERE courseid = '0' or courseid = '$courseid'");
//Add scale users to results
if ($scaleusers) {
foreach ($scaleusers as $scaleuser) {
//If userid != 0
if ($scaleuser->userid != 0) {
$result[$scaleuser->userid]->id = $scaleuser->userid;
}
}
}
return $result;
}
//Returns every enrolled user (student and teacher) in a course
function backup_get_enrolled_users ($courseid) {
global $CFG;
$result = false;
//Get teachers
$teachers = get_records_sql("SELECT DISTINCT userid,userid
FROM {$CFG->prefix}user_teachers
WHERE course = '$courseid'");
//Get students
$students = get_records_sql("SELECT DISTINCT userid,userid
FROM {$CFG->prefix}user_students
WHERE course = '$courseid'");
//Add teachers
if ($teachers) {
foreach ($teachers as $teacher) {
$result[$teacher->userid]->id = $teacher->userid;
}
}
//Add students
if ($students) {
foreach ($students as $student) {
$result[$student->userid]->id = $student->userid;
}
}
return $result;
}
//Returns all users (every record in users table)
function backup_get_all_users() {
global $CFG;
$result = false;
//Get users
$users = get_records_sql("SELECT DISTINCT id,id
FROM {$CFG->prefix}user");
//Add users
if ($users) {
foreach ($users as $user) {
$result[$user->id]->id = $user->id;
}
}
return $result;
}
//Calculate the number of log entries to backup
//Return an array of info (name,value)
function log_check_backup($course) {
global $CFG;
//Execute the insert
$status = execute_sql($sql_insert,false);
//Now execute the count
$ids = count_records("log","course",$course);
//Now execute the select
$ids = get_records_sql("SELECT DISTINCT l.id,l.course
FROM {$CFG->prefix}log l
WHERE l.course = '$course'");
//Gets the user data
$info[0][0] = get_string("logs");
if ($ids) {
$info[0][1] = count($ids);
$info[0][1] = $ids;
} else {
$info[0][1] = 0;
}
@@ -138,11 +270,19 @@
} else {
$tok = "";
}
//Insert them into backup_files
$status = execute_sql("INSERT INTO {$CFG->prefix}backup_files
(backup_code, file_type, path, old_id)
VALUES
('$backup_unique_code','user','$dir','$userid')",false);
//Look it is a backupable user
$data = get_record ("backup_ids","backup_code","$backup_unique_code",
"table_name","user",
"old_id",$userid);
if ($data) {
//Insert them into backup_files
$status = execute_sql("INSERT INTO {$CFG->prefix}backup_files
(backup_code, file_type, path, old_id)
VALUES
('$backup_unique_code','user','$dir','$userid')",false);
}
//Do some output
backup_flush(30);
}
}
@@ -163,7 +303,7 @@
}
//Calculate the number of course files to backup
//under $CFG->dataroot/$course, except $CFG->moddata, and get_string("backupdir)
//under $CFG->dataroot/$course, except $CFG->moddata, and backupdata
//and put them (their path) in backup_ids
//Return an array of info (name,value)
function course_files_check_backup($course,$backup_unique_code) {
@@ -174,16 +314,18 @@
//Check if directory exists
if (is_dir($rootdir)) {
$coursedirs = get_directory_list($rootdir,$CFG->moddata);
$backupdir = get_string("backupdir");
$backupdata_dir = "backupdata";
foreach ($coursedirs as $dir) {
//Check it isn't backupdir
if (strpos($dir,$backupdir)!==0) {
//Check it isn't backupdata_dir
if (strpos($dir,$backupdata_dir)!==0) {
//Insert them into backup_files
$status = execute_sql("INSERT INTO {$CFG->prefix}backup_files
(backup_code, file_type, path)
VALUES
('$backup_unique_code','course','$dir')",false);
}
//Do some output
backup_flush(30);
}
}
@@ -289,12 +431,14 @@
//Return the start tag, the contents and the end tag
function full_tag($tag,$level=0,$endline=true,$content,$to_utf=true) {
//Here we encode absolute links
$content = backup_encode_absolute_links($content);
$st = start_tag($tag,$level,$endline);
$co="";
if ($to_utf) {
$co = utf8_encode(htmlspecialchars($content));
$co = preg_replace("/\r\n|\r/", "\n", utf8_encode(htmlspecialchars($content)));
} else {
$co = htmlspecialchars($content);
$co = preg_replace("/\r\n|\r/", "\n", htmlspecialchars($content));
}
$et = end_tag($tag,0,true);
return $st.$co.$et;
@@ -318,6 +462,8 @@
fwrite ($bf,full_tag("BACKUP_RELEASE",2,false,$preferences->backup_release));
//The date
fwrite ($bf,full_tag("DATE",2,false,$preferences->backup_unique_code));
//The original site wwwroot
fwrite ($bf,full_tag("ORIGINAL_WWWROOT",2,false,$CFG->wwwroot));
//Te includes tag
fwrite ($bf,start_tag("DETAILS",2,true));
//Now, go to mod element of preferences to print its status
@@ -343,8 +489,10 @@
//The user in backup
if ($preferences->backup_users == 1) {
fwrite ($bf,full_tag("USERS",3,false,"course"));
} else {
} else if ($preferences->backup_users == 0) {
fwrite ($bf,full_tag("USERS",3,false,"all"));
} else {
fwrite ($bf,full_tag("USERS",3,false,"none"));
}
//The logs in backup
if ($preferences->backup_logs == 1) {
@@ -411,16 +559,25 @@
fwrite ($bf,full_tag("SHORTNAME",3,false,$course->shortname));
fwrite ($bf,full_tag("SUMMARY",3,false,$course->summary));
fwrite ($bf,full_tag("FORMAT",3,false,$course->format));
fwrite ($bf,full_tag("SHOWGRADES",3,false,$course->showgrades));
fwrite ($bf,full_tag("BLOCKINFO",3,false,blocks_get_block_names($course->blockinfo)));
fwrite ($bf,full_tag("NEWSITEMS",3,false,$course->newsitems));
fwrite ($bf,full_tag("TEACHER",3,false,$course->teacher));
fwrite ($bf,full_tag("TEACHERS",3,false,$course->teachers));
fwrite ($bf,full_tag("STUDENT",3,false,$course->student));
fwrite ($bf,full_tag("STUDENTS",3,false,$course->students));
fwrite ($bf,full_tag("GUEST",3,false,$course->guest));
fwrite ($bf,full_tag("STARDATE",3,false,$course->stardate));
fwrite ($bf,full_tag("STARTDATE",3,false,$course->startdate));
fwrite ($bf,full_tag("NUMSECTIONS",3,false,$course->numsections));
fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent));
//fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent)); INFO: This is out in 1.3
fwrite ($bf,full_tag("MAXBYTES",3,false,$course->maxbytes));
fwrite ($bf,full_tag("SHOWREPORTS",3,false,$course->showreports));
fwrite ($bf,full_tag("GROUPMODE",3,false,$course->groupmode));
fwrite ($bf,full_tag("GROUPMODEFORCE",3,false,$course->groupmodeforce));
fwrite ($bf,full_tag("LANG",3,false,$course->lang));
fwrite ($bf,full_tag("MARKER",3,false,$course->marker));
fwrite ($bf,full_tag("VISIBLE",3,false,$course->visible));
fwrite ($bf,full_tag("HIDDENSECTIONS",3,false,$course->hiddensections));
fwrite ($bf,full_tag("TIMECREATED",3,false,$course->timecreated));
$status = fwrite ($bf,full_tag("TIMEMODIFIED",3,false,$course->timemodified));
//Print header end
@@ -516,7 +673,9 @@
fwrite ($bf,full_tag("ADDED",6,false,$course_module[$tok]->added));
fwrite ($bf,full_tag("DELETED",6,false,$course_module[$tok]->deleted));
fwrite ($bf,full_tag("SCORE",6,false,$course_module[$tok]->score));
fwrite ($bf,full_tag("INDENT",6,false,$course_module[$tok]->indent));
fwrite ($bf,full_tag("VISIBLE",6,false,$course_module[$tok]->visible));
fwrite ($bf,full_tag("GROUPMODE",6,false,$course_module[$tok]->groupmode));
fwrite ($bf,end_tag("MOD",5,true));
}
//check for next
@@ -549,6 +708,7 @@
if ($users) {
//Begin Users tag
fwrite ($bf,start_tag("USERS",2,true));
$counter = 0;
//With every user
foreach ($users as $user) {
//Get user data from table
@@ -565,6 +725,7 @@
fwrite ($bf,full_tag("FIRSTNAME",4,false,$user_data->firstname));
fwrite ($bf,full_tag("LASTNAME",4,false,$user_data->lastname));
fwrite ($bf,full_tag("EMAIL",4,false,$user_data->email));
fwrite ($bf,full_tag("EMAILSTOP",4,false,$user_data->emailstop));
fwrite ($bf,full_tag("ICQ",4,false,$user_data->icq));
fwrite ($bf,full_tag("PHONE1",4,false,$user_data->phone1));
fwrite ($bf,full_tag("PHONE2",4,false,$user_data->phone2));
@@ -595,10 +756,12 @@
$user->iscoursecreator = strpos($user->info,"coursecreator");
$user->isteacher = strpos($user->info,"teacher");
$user->isstudent = strpos($user->info,"student");
$user->isneeded = strpos($user->info,"needed");
if ($user->isadmin!==false or
$user->iscoursecreator!==false or
$user->isteacher!==false or
$user->isstudent!==false) {
$user->isstudent!==false or
$user->isneeded!==false) {
//Begin ROLES tag
fwrite ($bf,start_tag("ROLES",4,true));
//PRINT ROLE INFO
@@ -630,6 +793,9 @@
$tea = get_record("user_teachers","userid",$user->old_id,"course",$preferences->backup_course);
fwrite ($bf,full_tag("AUTHORITY",6,false,$tea->authority));
fwrite ($bf,full_tag("TEA_ROLE",6,false,$tea->role));
fwrite ($bf,full_tag("EDITALL",6,false,$tea->editall));
fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$tea->timemodified));
fwrite ($bf,full_tag("TIMEACCESS",6,false,$tea->timeaccess));
//Print ROLE end
fwrite ($bf,end_tag("ROLE",5,true));
}
@@ -644,22 +810,56 @@
fwrite ($bf,full_tag("TIMESTART",6,false,$stu->timestart));
fwrite ($bf,full_tag("TIMEEND",6,false,$stu->timeend));
fwrite ($bf,full_tag("TIME",6,false,$stu->time));
fwrite ($bf,full_tag("TIMEACCESS",6,false,$stu->timeaccess));
//Print ROLE end
fwrite ($bf,end_tag("ROLE",5,true));
}
//Needed
if ($user->isneeded!==false) {
//Print ROLE start
fwrite ($bf,start_tag("ROLE",5,true));
//Print Role info
fwrite ($bf,full_tag("TYPE",6,false,"needed"));
//Print ROLE end
fwrite ($bf,end_tag("ROLE",5,true));
}
//End ROLES tag
fwrite ($bf,end_tag("ROLES",4,true));
//Check if we have user_preferences to backup
if ($preferences_data = get_records("user_preferences","userid",$user->old_id)) {
//Start USER_PREFERENCES tag
fwrite ($bf,start_tag("USER_PREFERENCES",4,true));
//Write each user_preference
foreach ($preferences_data as $user_preference) {
fwrite ($bf,start_tag("USER_PREFERENCE",5,true));
fwrite ($bf,full_tag("NAME",6,false,$user_preference->name));
fwrite ($bf,full_tag("VALUE",6,false,$user_preference->value));
fwrite ($bf,end_tag("USER_PREFERENCE",5,true));
}
//End USER_PREFERENCES tag
fwrite ($bf,end_tag("USER_PREFERENCES",4,true));
}
}
//End User tag
fwrite ($bf,end_tag("USER",3,true));
//Do some output
$counter++;
if ($counter % 10 == 0) {
echo ".";
if ($counter % 200 == 0) {
echo "<br>";
}
backup_flush(300);
}
}
//End Users tag
fwrite ($bf,end_tag("USERS",2,true));
} else {
//There isn't users. Impossible !!
$status = false;
// There aren't any users.
$status = true;
}
return $status;
@@ -669,44 +869,235 @@
function backup_log_info($bf,$preferences) {
global $CFG;
//Number of records to get in every chunk
$recordset_size = 1000;
$status = true;
//Counter, points to current record
$counter = 0;
$logs = get_records ("log","course",$preferences->backup_course,"time");
//Count records
$count_logs = count_records("log","course",$preferences->backup_course);
//We have logs
if ($logs) {
//Pring logs header
//Pring logs header
if ($count_logs > 0 ) {
fwrite ($bf,start_tag("LOGS",2,true));
//Iterate
foreach ($logs as $log) {
//See if it is a valid module to backup
if ($log->module == "course" or
$log->module == "user" or
$preferences->mods[$log->module]->backup == 1) {
//Begin log tag
fwrite ($bf,start_tag("LOG",3,true));
}
while ($counter < $count_logs) {
//Get a chunk of records
$logs = get_records ("log","course",$preferences->backup_course,"time","*",$counter,$recordset_size);
//Output log tag
fwrite ($bf,full_tag("ID",4,false,$log->id));
fwrite ($bf,full_tag("TIME",4,false,$log->time));
fwrite ($bf,full_tag("USERID",4,false,$log->userid));
fwrite ($bf,full_tag("IP",4,false,$log->ip));
fwrite ($bf,full_tag("MODULE",4,false,$log->module));
fwrite ($bf,full_tag("ACTION",4,false,$log->action));
fwrite ($bf,full_tag("URL",4,false,$log->url));
fwrite ($bf,full_tag("INFO",4,false,$log->info));
//End log tag
fwrite ($bf,end_tag("LOG",3,true));
//We have logs
if ($logs) {
//Iterate
foreach ($logs as $log) {
//See if it is a valid module to backup
if ($log->module == "course" or
$log->module == "user" or
$preferences->mods[$log->module]->backup == 1) {
//Begin log tag
fwrite ($bf,start_tag("LOG",3,true));
//Output log tag
fwrite ($bf,full_tag("ID",4,false,$log->id));
fwrite ($bf,full_tag("TIME",4,false,$log->time));
fwrite ($bf,full_tag("USERID",4,false,$log->userid));
fwrite ($bf,full_tag("IP",4,false,$log->ip));
fwrite ($bf,full_tag("MODULE",4,false,$log->module));
fwrite ($bf,full_tag("CMID",4,false,$log->cmid));
fwrite ($bf,full_tag("ACTION",4,false,$log->action));
fwrite ($bf,full_tag("URL",4,false,$log->url));
fwrite ($bf,full_tag("INFO",4,false,$log->info));
//End log tag
fwrite ($bf,end_tag("LOG",3,true));
}
//Do some output
$counter++;
if ($counter % 10 == 0) {
echo ".";
if ($counter % 200 == 0) {
echo "<br>";
}
backup_flush(300);
}
}
}
//End logs tag
}
//End logs tag
if ($count_logs > 0 ) {
$status = fwrite ($bf,end_tag("LOGS",2,true));
}
return $status;
}
//Backup scales info (common and course scales)
function backup_scales_info($bf,$preferences) {
global $CFG;
$status = true;
//Counter, points to current record
$counter = 0;
//Get scales (common and course scales)
$scales = get_records_sql("SELECT id, courseid, userid, name, scale, description, timemodified
FROM {$CFG->prefix}scale
WHERE courseid = '0' or courseid = $preferences->backup_course");
//Copy only used scales to $backupscales. They will be in backup (unused no). See Bug 1223.
$backupscales = array();
if ($scales) {
foreach ($scales as $scale) {
if (course_scale_used($preferences->backup_course, $scale->id)) {
$backupscales[] = $scale;
}
}
}
//Pring scales header
if ($backupscales) {
//Pring scales header
fwrite ($bf,start_tag("SCALES",2,true));
//Iterate
foreach ($backupscales as $scale) {
//Begin scale tag
fwrite ($bf,start_tag("SCALE",3,true));
//Output scale tag
fwrite ($bf,full_tag("ID",4,false,$scale->id));
fwrite ($bf,full_tag("COURSEID",4,false,$scale->courseid));
fwrite ($bf,full_tag("USERID",4,false,$scale->userid));
fwrite ($bf,full_tag("NAME",4,false,$scale->name));
fwrite ($bf,full_tag("SCALETEXT",4,false,$scale->scale));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$scale->description));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$scale->timemodified));
//End scale tag
fwrite ($bf,end_tag("SCALE",3,true));
}
//End scales tag
$status = fwrite ($bf,end_tag("SCALES",2,true));
}
return $status;
}
//Backup events info (course events)
function backup_events_info($bf,$preferences) {
global $CFG;
$status = true;
//Counter, points to current record
$counter = 0;
//Get events (course events)
$events = get_records_select("event","courseid='$preferences->backup_course' AND instance='0'","id");
//Pring events header
if ($events) {
//Pring events header
fwrite ($bf,start_tag("EVENTS",2,true));
//Iterate
foreach ($events as $event) {
//Begin event tag
fwrite ($bf,start_tag("EVENT",3,true));
//Output event tag
fwrite ($bf,full_tag("ID",4,false,$event->id));
fwrite ($bf,full_tag("NAME",4,false,$event->name));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$event->description));
fwrite ($bf,full_tag("FORMAT",4,false,$event->format));
fwrite ($bf,full_tag("GROUPID",4,false,$event->groupid));
fwrite ($bf,full_tag("USERID",4,false,$event->userid));
fwrite ($bf,full_tag("EVENTTYPE",4,false,$event->eventtype));
fwrite ($bf,full_tag("TIMESTART",4,false,$event->timestart));
fwrite ($bf,full_tag("TIMEDURATION",4,false,$event->timeduration));
fwrite ($bf,full_tag("VISIBLE",4,false,$event->visible));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$event->timemodified));
//End event tag
fwrite ($bf,end_tag("EVENT",3,true));
}
//End events tag
$status = fwrite ($bf,end_tag("EVENTS",2,true));
}
return $status;
}
//Backup groups info
function backup_groups_info($bf,$preferences) {
global $CFG;
$status = true;
$status2 = true;
//Get groups
$groups = get_records("groups","courseid",$preferences->backup_course);
//Pring groups header
if ($groups) {
//Pring groups header
fwrite ($bf,start_tag("GROUPS",2,true));
//Iterate
foreach ($groups as $group) {
//Begin group tag
fwrite ($bf,start_tag("GROUP",3,true));
//Output group contents
fwrite ($bf,full_tag("ID",4,false,$group->id));
fwrite ($bf,full_tag("COURSEID",4,false,$group->courseid));
fwrite ($bf,full_tag("NAME",4,false,$group->name));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$group->description));
fwrite ($bf,full_tag("LANG",4,false,$group->lang));
fwrite ($bf,full_tag("PICTURE",4,false,$group->picture));
fwrite ($bf,full_tag("HIDEPICTURE",4,false,$group->hidepicture));
fwrite ($bf,full_tag("TIMECREATED",4,false,$group->timecreated));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$group->timemodified));
//Now, backup groups_members
$status2 = backup_groups_members_info($bf,$preferences,$group->id);
//End group tag
fwrite ($bf,end_tag("GROUP",3,true));
}
//End groups tag
$status = fwrite ($bf,end_tag("GROUPS",2,true));
}
return ($status && $status2);
}
//Backup groups_members info
function backup_groups_members_info($bf,$preferences,$groupid) {
global $CFG;
$status = true;
//Get groups_members
$groups_members = get_records("groups_members","groupid",$groupid);
//Pring groups_members header
if ($groups_members) {
//Pring groups_members header
fwrite ($bf,start_tag("MEMBERS",4,true));
//Iterate
foreach ($groups_members as $group_member) {
//Begin group_member tag
fwrite ($bf,start_tag("MEMBER",5,true));
//Output group_member contents
fwrite ($bf,full_tag("USERID",6,false,$group_member->userid));
fwrite ($bf,full_tag("TIMEADDED",6,false,$group_member->timeadded));
//End group_member tag
fwrite ($bf,end_tag("MEMBER",5,true));
}
//End groups_members tag
$status = fwrite ($bf,end_tag("MEMBERS",4,true));
}
return $status;
}
//Start the modules tag
function backup_modules_start ($bf,$preferences) {
@@ -741,6 +1132,49 @@
}
//This function encode things to make backup multi-site fully functional
//It does this conversions:
// - $CFG->wwwroot/file.php/courseid ------------------> $@FILEPHP@$ (slasharguments links)
// - $CFG->wwwroot/file.php?file=/courseid ------------> $@FILEPHP@$ (non-slasharguments links)
// - Every module xxxx_encode_content_links() is executed too
//
function backup_encode_absolute_links($content) {
global $CFG,$preferences;
//Check if preferences is ok. If it isn't set, we are
//in a scheduled_backup to we are able to get a copy
//from CFG->backup_preferences
if (!isset($preferences)) {
$mypreferences = $CFG->backup_preferences;
} else {
//We are in manual backups so global preferences must exist!!
$mypreferences = $preferences;
}
//First, we check for every call to file.php inside the course
$search = array($CFG->wwwroot.'/file.php/'.$mypreferences->backup_course,
$CFG->wwwroot.'/file.php?file=/'.$mypreferences->backup_course);
$replace = array('$@FILEPHP@$','$@FILEPHP@$');
$result = str_replace($search,$replace,$content);
foreach ($mypreferences->mods as $name => $info) {
//Check if the xxxx_encode_content_links exists
$function_name = $name."_encode_content_links";
if (function_exists($function_name)) {
$result = $function_name($result,$mypreferences);
}
}
if ($result != $content && $CFG->debug>7) { //Debug
echo "<br><hr>".$content."<br>changed to<br>".$result."<hr><br>"; //Debug
} //Debug
return $result;
}
//This function copies all the needed files under the "users" directory to the "user_files"
//directory under temp/backup
function backup_copy_user_files ($preferences) {
@@ -790,13 +1224,13 @@
//in temp/backup/$backup_code dir
$status = check_and_create_course_files_dir($preferences->backup_unique_code);
//Now iterate over files and directories except $CFG->moddata and get_string("backupdir") to be
//Now iterate over files and directories except $CFG->moddata and backupdata to be
//copied to backup
$rootdir = $CFG->dataroot."/".$preferences->backup_course;
$name_moddata = $CFG->moddata;
$name_backupdata = get_string("backupdir");
$name_backupdata = "backupdata";
//Check if directory exists
if (is_dir($rootdir)) {
$list = list_directories_and_files ($rootdir);
@@ -818,7 +1252,7 @@
//The zipped file is created in the backup directory and named with
//the "oficial" name of the backup
//It uses "pclzip" if available or system "zip" (unix only)
function backup_zip ($preferences,$moodle_home) {
function backup_zip ($preferences) {
global $CFG;
@@ -832,31 +1266,42 @@
$filelist = list_directories_and_files ($basedir);
if (empty($CFG->zip)) { // Use built-in php-based zip function
//echo "<br>Using pclzip"; //Debug
$files = array();
foreach ($filelist as $file) {
//If directory, append "/"
if (is_dir($basedir."/".$file)) {
$file = $file."/";
}
//Commented. Not needed wit version 2.0 of pclzip !!
//if (is_dir($basedir."/".$file)) {
// $file = $file."/";
//}
//Include into array
//echo "<br>Adding file/dir ".$file; //Debug
$files[] = $basedir."/".$file;
}
include_once($moodle_home."/lib/pclzip/pclzip.lib.php");
include_once("$CFG->dirroot/lib/pclzip/pclzip.lib.php");
//include_once("$CFG->dirroot/lib/pclzip/pclerror.lib.php"); //Debug
//include_once("$CFG->dirroot/lib/pclzip/pcltrace.lib.php"); //Debug
//PclTraceOn(2); //Debug
$archive = new PclZip("$basedir/$name");
if (($list = $archive->create($files,PCLZIP_OPT_REMOVE_PATH,$basedir)) == 0) {
error($archive->errorInfo(true));
$status = false;
}
//PclTraceDisplay(); //Debug
//PclTraceOff(); //Debug
} else { // Use external zip program
//echo "<br>Using external zip"; //Debug
$files = "";
foreach ($filelist as $file) {
$files .= basename($file);
$files .= " ";
}
$command = "cd $basedir ; $CFG->zip -r $name $files";
//echo "<br>Executing command: ".$command; //Debug
$status = Exec($command);
}
//echo "<br>Status: ".$status; //Debug
return $status;
}
@@ -866,13 +1311,42 @@
global $CFG;
//Backup zip file name
$status = true;
//Define zip location (from)
$from_zip_file = $CFG->dataroot."/temp/backup/".$preferences->backup_unique_code."/".$preferences->backup_name;
$to_zip_file = $CFG->dataroot."/".$preferences->backup_course."/".get_string("backupdir")."/".$preferences->backup_name;
//Check to directory
$status = check_dir_exists(dirname($to_zip_file),true);
//Initialise $to_zip_file
$to_zip_file="";
//If $preferences->backup_destination isn't empty, then copy to custom directory
if (!empty($preferences->backup_destination)) {
$to_zip_file = $preferences->backup_destination."/".$preferences->backup_name;
} else {
//Define zip destination (course dir)
$to_zip_file = $CFG->dataroot."/".$preferences->backup_course;
//echo "<p>From: ".$from_zip_file."<br>"; //Debug
//echo "<p>Checking: ".$to_zip_file."<br>"; //Debug
//Checks course dir exists
$status = check_dir_exists($to_zip_file,true);
//Define zip destination (backup dir)
$to_zip_file = $to_zip_file."/backupdata";
//echo "<p>Checking: ".$to_zip_file."<br>"; //Debug
//Checks backup dir exists
$status = check_dir_exists($to_zip_file,true);
//Define zip destination (zip file)
$to_zip_file = $to_zip_file."/".$preferences->backup_name;
}
//echo "<p>To: ".$to_zip_file."<br>"; //Debug
//Copy zip file
if ($status) {
$status = backup_copy_file ($from_zip_file,$to_zip_file);
+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>
-69
View File
@@ -1,69 +0,0 @@
<?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");
}
//Finally, return result
return $result;
}
?>
+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 ''
);
+259 -74
View File
@@ -2,16 +2,38 @@
//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)
//Two days seems to be apropiate
//Four hours seem to be appropiate now that backup is stable
function backup_delete_old_data() {
global $CFG;
//Change this if you want !!
$days = 2;
$hours = 4;
//End change this
$seconds = $days * 24 * 60 * 60;
$seconds = $hours * 60 * 60;
$delete_from = time()-$seconds;
//Now delete from tables
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_ids
@@ -38,7 +60,7 @@
foreach ($list as $file) {
$file_path = $CFG->dataroot."/temp/backup/".$file;
$moddate = filemtime($file_path);
if ($status and $moddate < $delete_from) {
if ($status && $moddate < $delete_from) {
//If directory, recurse
if (is_dir($file_path)) {
$status = delete_dir_contents($file_path);
@@ -92,36 +114,63 @@
}
//Function to delete all the directory contents recursively
//Copied from admin/delete.php
function delete_dir_contents ($rootdir) {
//it supports a excluded dit too
//Copied from the web !!
function delete_dir_contents ($dir,$excludeddir="") {
$dir = opendir($rootdir);
$slash = "/";
$status = true;
// Create arrays to store files and directories
$dir_files = array();
$dir_subdirs = array();
while ($file = readdir($dir)) {
if ($file != "." and $file != "..") {
$fullfile = "$rootdir/$file";
if (filetype($fullfile) == "dir") {
delete_dir_contents($fullfile);
if (!rmdir($fullfile)) {
$status = false;
}
} else {
if (!unlink("$fullfile")) {
$status = false;
}
// 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;
}
}
}
closedir($dir);
return $status;
// Close directory
closedir($handle);
// Success, every thing is gone return true
return true;
}
//Function to clear (empty) the contents of the backup_dir
//Copied from admin/delete.php
function clear_backup_dir($backup_unique_code) {
global $CFG;
@@ -157,6 +206,8 @@
//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)) {
@@ -174,6 +225,8 @@
//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)) {
@@ -225,22 +278,33 @@
//Little modifications done
function backup_copy_file ($from_file,$to_file) {
global $CFG;
if (is_file($from_file)) {
$perms=fileperms($from_file);
return copy($from_file,$to_file) && chmod($to_file,$perms);
//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)) {
mkdir($to_file);
chmod("$to_file",0777);
//echo "<br>Creating ".$to_file; //Debug
umask(0000);
$status = mkdir($to_file,$CFG->directorypermissions);
}
$dir = opendir($from_file);
while ($file=readdir($dir)) {
@@ -256,72 +320,113 @@
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//This function upgrades, if necesary, the backup-restore tables
//It's called from backup.php and restore.php
function upgrade_backup_db($updgradeto,$backup_release,$continueto) {
global $CFG,$db;
//Check backup_version
if ($CFG->backup_version) {
if ($updgradeto > $CFG->backup_version) { // upgrade
$a->oldversion = $CFG->backup_version;
$a->newversion = $updgradeto;
$strdatabasechecking = get_string("databasechecking", "", $a);
$strdatabasesuccess = get_string("databasesuccess");
print_header($strdatabasechecking, $strdatabasechecking, $strdatabasechecking);
print_heading($strdatabasechecking);
$db->debug=true;
if (backup_upgrade($a->oldversion)) {
$db->debug=false;
if (set_config("backup_version", $a->newversion)) {
notify($strdatabasesuccess, "green");
notify("You are running Backup/Recovery version ".$backup_release,"black");
print_continue($continueto);
die;
} else {
notify("Upgrade failed! (Could not update version in config table)");
die;
}
} else {
$db->debug=false;
notify("Upgrade failed! See backup_version.php");
die;
}
} else if ($updgradeto < $CFG->backup_version) {
notify("WARNING!!! The code you are using is OLDER than the version that made these databases!");
}
//Not exists. Starting installation
} else {
$strdatabaseupgrades = get_string("databaseupgrades");
print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades);
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
if (set_config("backup_version", "2003010100")) {
print_heading("You are currently going to install the needed structures to Backup/Recover");
print_continue($continue_to);
die;
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);
$status = execute_sql("INSERT INTO {$CFG->prefix}backup_ids
(backup_code, table_name, old_id, new_id, info)
VALUES
($backup_unique_code, '$table', '$old_id', '$new_id', '$info')",false);
//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;
@@ -336,16 +441,96 @@
}
//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();
?>
-171
View File
@@ -1,171 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//assignment mods
//This is the "graphical" structure of the assignment mod:
//
// assignment
// (CL,pk->id)
// |
// |
// |
// assignment_submisions
// (UL,pk->id, fk->assignment,files)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
//This function executes all the backup procedure about this mod
function assignment_backup_mods($bf,$preferences) {
global $CFG;
$status = true;
//Iterate over assignment table
$assignments = get_records ("assignment","course",$preferences->backup_course,"id");
if ($assignments) {
foreach ($assignments as $assignment) {
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print assignment data
fwrite ($bf,full_tag("ID",4,false,$assignment->id));
fwrite ($bf,full_tag("MODTYPE",4,false,"assignment"));
fwrite ($bf,full_tag("NAME",4,false,$assignment->name));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$assignment->description));
fwrite ($bf,full_tag("FORMAT",4,false,$assignment->format));
fwrite ($bf,full_tag("RESUBMIT",4,false,$assignment->resubmit));
fwrite ($bf,full_tag("TYPE",4,false,$assignment->type));
fwrite ($bf,full_tag("MAXBYTES",4,false,$assignment->maxbytes));
fwrite ($bf,full_tag("TIMEDUE",4,false,$assignment->timedue));
fwrite ($bf,full_tag("GRADE",4,false,$assignment->grade));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$assignment->timemodified));
//if we've selected to backup users info, then execute backup_assignment_submisions
if ($preferences->mods["assignment"]->userinfo) {
$status = backup_assignment_submissions($bf,$preferences,$assignment->id);
}
//End mod
$status =fwrite ($bf,end_tag("MOD",3,true));
}
}
//if we've selected to backup users info, then backup files too
if ($preferences->mods["assignment"]->userinfo) {
$status = backup_assignment_files($bf,$preferences);
}
return $status;
}
//Backup assignment_submissions contents (executed from assignment_backup_mods)
function backup_assignment_submissions ($bf,$preferences,$assignment) {
global $CFG;
$status = true;
$assignment_submissions = get_records("assignment_submissions","assignment",$assignment,"id");
//If there is submissions
if ($assignment_submissions) {
//Write start tag
$status =fwrite ($bf,start_tag("SUBMISSIONS",4,true));
//Iterate over each submission
foreach ($assignment_submissions as $ass_sub) {
//Start submission
$status =fwrite ($bf,start_tag("SUBMISSION",5,true));
//Print submission contents
fwrite ($bf,full_tag("ID",6,false,$ass_sub->id));
fwrite ($bf,full_tag("USERID",6,false,$ass_sub->userid));
fwrite ($bf,full_tag("TIMECREATED",6,false,$ass_sub->timecreated));
fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$ass_sub->timemodified));
fwrite ($bf,full_tag("NUMFILES",6,false,$ass_sub->numfiles));
fwrite ($bf,full_tag("GRADE",6,false,$ass_sub->grade));
fwrite ($bf,full_tag("COMMENT",6,false,$ass_sub->comment));
fwrite ($bf,full_tag("TEACHER",6,false,$ass_sub->teacher));
fwrite ($bf,full_tag("TIMEMARKED",6,false,$ass_sub->timemarked));
fwrite ($bf,full_tag("MAILED",6,false,$ass_sub->mailed));
//End submission
$status =fwrite ($bf,end_tag("SUBMISSION",5,true));
}
//Write end tag
$status =fwrite ($bf,end_tag("SUBMISSIONS",4,true));
}
return $status;
}
//Backup assignment files because we've selected to backup user info
//and files are user info's level
function backup_assignment_files($bf,$preferences) {
global $CFG;
$status = true;
//First we check to moddata exists and create it as necessary
//in temp/backup/$backup_code dir
$status = check_and_create_moddata_dir($preferences->backup_unique_code);
//Now copy the assignment dir
if ($status) {
$status = backup_copy_file($CFG->dataroot."/".$preferences->backup_course."/".$CFG->moddata."/assignment",
$CFG->dataroot."/temp/backup/".$preferences->backup_unique_code."/moddata/assignment");
}
return $status;
}
//Return an array of info (name,value)
function assignment_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//First the course data
$info[0][0] = get_string("modulenameplural","assignment");
if ($ids = assignment_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
//Now, if requested, the user_data
if ($user_data) {
$info[1][0] = get_string("submissions","assignment");
if ($ids = assignment_submission_ids_by_course ($course)) {
$info[1][1] = count($ids);
} else {
$info[1][1] = 0;
}
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of assignments id
function assignment_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}assignment a
WHERE a.course = '$course'");
}
//Returns an array of assignment_submissions id
function assignment_submission_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.assignment
FROM {$CFG->prefix}assignment_submissions s,
{$CFG->prefix}assignment a
WHERE a.course = '$course' AND
s.assignment = a.id");
}
?>
-64
View File
@@ -1,64 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//assignment mods
//This is the "graphical" structure of the assignment mod:
//
// assignment
// (CL,pk->id)
// |
// |
// |
// assignment_submisions
// (UL,pk->id, fk->assignment,files)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
//This function executes all the backup procedure about this mod
function assignment_restore_mods($bf,$preferences) {
global $CFG;
$status = true;
//Iterate over assignment table
$assignments = get_records ("assignment","course",$preferences->backup_course,"id");
if ($assignments) {
foreach ($assignments as $assignment) {
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print assignment data
fwrite ($bf,full_tag("ID",4,false,$assignment->id));
fwrite ($bf,full_tag("MODTYPE",4,false,"assignment"));
fwrite ($bf,full_tag("NAME",4,false,$assignment->name));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$assignment->description));
fwrite ($bf,full_tag("FORMAT",4,false,$assignment->format));
fwrite ($bf,full_tag("RESUBMIT",4,false,$assignment->resubmit));
fwrite ($bf,full_tag("TYPE",4,false,$assignment->type));
fwrite ($bf,full_tag("MAXBYTES",4,false,$assignment->maxbytes));
fwrite ($bf,full_tag("TIMEDUE",4,false,$assignment->timedue));
fwrite ($bf,full_tag("GRADE",4,false,$assignment->grade));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$assignment->timemodified));
//if we've selected to backup users info, then execute backup_assignment_submisions
if ($preferences->mods["assignment"]->userinfo) {
$status = backup_assignment_submissions($bf,$preferences,$assignment->id);
}
//End mod
$status =fwrite ($bf,end_tag("MOD",3,true));
}
}
//if we've selected to backup users info, then backup files too
if ($preferences->mods["assignment"]->userinfo) {
$status = backup_assignment_files($bf,$preferences);
}
return $status;
}
?>
-141
View File
@@ -1,141 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//choice mods
//This is the "graphical" structure of the choice mod:
//
// choice
// (CL,pk->id)
// |
// |
// |
// choice_answers
// (UL,pk->id, fk->choice)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
function choice_backup_mods($bf,$preferences) {
global $CFG;
$status = true;
//Iterate over choice table
$choices = get_records ("choice","course",$preferences->backup_course,"id");
if ($choices) {
foreach ($choices as $choice) {
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print choice data
fwrite ($bf,full_tag("ID",4,false,$choice->id));
fwrite ($bf,full_tag("MODTYPE",4,false,"choice"));
fwrite ($bf,full_tag("NAME",4,false,$choice->name));
fwrite ($bf,full_tag("TEXT",4,false,$choice->text));
fwrite ($bf,full_tag("FORMAT",4,false,$choice->format));
fwrite ($bf,full_tag("ANSWER1",4,false,$choice->answer1));
fwrite ($bf,full_tag("ANSWER2",4,false,$choice->answer2));
fwrite ($bf,full_tag("ANSWER3",4,false,$choice->answer3));
fwrite ($bf,full_tag("ANSWER4",4,false,$choice->answer4));
fwrite ($bf,full_tag("ANSWER5",4,false,$choice->answer5));
fwrite ($bf,full_tag("ANSWER6",4,false,$choice->answer6));
fwrite ($bf,full_tag("PUBLISH",4,false,$choice->publish));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$choice->timemodified));
//if we've selected to backup users info, then execute backup_choice_answers
if ($preferences->mods["choice"]->userinfo) {
$status = backup_choice_answers($bf,$preferences,$choice->id);
}
//End mod
$status =fwrite ($bf,end_tag("MOD",3,true));
}
}
return $status;
}
//Backup choice_answers contents (executed from choice_backup_mods)
function backup_choice_answers ($bf,$preferences,$choice) {
global $CFG;
$status = true;
$choice_answers = get_records("choice_answers","choice",$choice,"id");
//If there is submissions
if ($choice_answers) {
//Write start tag
$status =fwrite ($bf,start_tag("ANSWERS",4,true));
//Iterate over each answer
foreach ($choice_answers as $cho_ans) {
//Start answer
$status =fwrite ($bf,start_tag("ANSWER",5,true));
//Print submission contents
fwrite ($bf,full_tag("ID",6,false,$cho_ans->id));
fwrite ($bf,full_tag("USERID",6,false,$cho_ans->userid));
fwrite ($bf,full_tag("CHOICE_ANSWER",6,false,$cho_ans->answer));
fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$cho_ans->timemodified));
//End answer
$status =fwrite ($bf,end_tag("ANSWER",5,true));
}
//Write end tag
$status =fwrite ($bf,end_tag("ANSWERS",4,true));
}
return $status;
}
////Return an array of info (name,value)
function choice_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//First the course data
$info[0][0] = get_string("modulenameplural","choice");
if ($ids = choice_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
//Now, if requested, the user_data
if ($user_data) {
$info[1][0] = get_string("responses","choice");
if ($ids = choice_answer_ids_by_course ($course)) {
$info[1][1] = count($ids);
} else {
$info[1][1] = 0;
}
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of choices id
function choice_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}choice a
WHERE a.course = '$course'");
}
//Returns an array of choice_answers id
function choice_answer_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.choice
FROM {$CFG->prefix}choice_answers s,
{$CFG->prefix}choice a
WHERE a.course = '$course' AND
s.choice = a.id");
}
?>
-61
View File
@@ -1,61 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//choice mods
//This is the "graphical" structure of the choice mod:
//
// choice
// (CL,pk->id)
// |
// |
// |
// choice_answers
// (UL,pk->id, fk->choice)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
function choice_restore_mods($bf,$preferences) {
global $CFG;
$status = true;
//Iterate over choice table
$choices = get_records ("choice","course",$preferences->backup_course,"id");
if ($choices) {
foreach ($choices as $choice) {
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print choice data
fwrite ($bf,full_tag("ID",4,false,$choice->id));
fwrite ($bf,full_tag("MODTYPE",4,false,"choice"));
fwrite ($bf,full_tag("NAME",4,false,$choice->name));
fwrite ($bf,full_tag("TEXT",4,false,$choice->text));
fwrite ($bf,full_tag("FORMAT",4,false,$choice->format));
fwrite ($bf,full_tag("ANSWER1",4,false,$choice->answer1));
fwrite ($bf,full_tag("ANSWER2",4,false,$choice->answer2));
fwrite ($bf,full_tag("ANSWER3",4,false,$choice->answer3));
fwrite ($bf,full_tag("ANSWER4",4,false,$choice->answer4));
fwrite ($bf,full_tag("ANSWER5",4,false,$choice->answer5));
fwrite ($bf,full_tag("ANSWER6",4,false,$choice->answer6));
fwrite ($bf,full_tag("PUBLISH",4,false,$choice->publish));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$choice->timemodified));
//if we've selected to backup users info, then execute backup_choice_answers
if ($preferences->mods["choice"]->userinfo) {
$status = backup_choice_answers($bf,$preferences,$choice->id);
}
//End mod
$status =fwrite ($bf,end_tag("MOD",3,true));
}
}
return $status;
}
?>
-152
View File
@@ -1,152 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//forum mods
//This is the "graphical" structure of the forum mod:
//
// forum
// (CL,pk->id)
// |
// -----------------------------------
// | |
// subscriptions forum_discussions
// (UL,pk->id, fk->forum) (UL,pk->id, fk->forum)
// |
// |
// |
// forum_posts
// (UL,pk->id,fk->discussion,nt->parent,files)
// |
// |
// |
// forum_ratings
// (UL,pk->id,fk->post)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
function forum_backup_mods() {
print "hola";
}
////Return an array of info (name,value)
function NO_forum_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//First the course data
$info[0][0] = get_string("modulenameplural","forum");
if ($ids = forum_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
//Now, if requested, the user_data
if ($user_data) {
//Subscriptions
$info[1][0] = get_string("subscriptions","forum");
if ($ids = forum_subscription_ids_by_course ($course)) {
$info[1][1] = count($ids);
} else {
$info[1][1] = 0;
}
//Discussions
$info[2][0] = get_string("discussions","forum");
if ($ids = forum_discussion_ids_by_course ($course)) {
$info[2][1] = count($ids);
} else {
$info[2][1] = 0;
}
//Posts
$info[3][0] = get_string("posts","forum");
if ($ids = forum_post_ids_by_course ($course)) {
$info[3][1] = count($ids);
} else {
$info[3][1] = 0;
}
//Ratings
$info[4][0] = get_string("ratings","forum");
if ($ids = forum_rating_ids_by_course ($course)) {
$info[4][1] = count($ids);
} else {
$info[4][1] = 0;
}
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of forums id
function forum_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}forum a
WHERE a.course = '$course'");
}
//Returns an array of forum subscriptions id
function forum_subscription_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.forum
FROM {$CFG->prefix}forum_subscriptions s,
{$CFG->prefix}forum a
WHERE a.course = '$course' AND
s.forum = a.id");
}
//Returns an array of forum discussions id
function forum_discussion_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.forum
FROM {$CFG->prefix}forum_discussions s,
{$CFG->prefix}forum a
WHERE a.course = '$course' AND
s.forum = a.id");
}
//Returns an array of forum posts id
function forum_post_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT p.id , p.discussion, s.forum
FROM {$CFG->prefix}forum_posts p,
{$CFG->prefix}forum_discussions s,
{$CFG->prefix}forum a
WHERE a.course = '$course' AND
s.forum = a.id AND
p.discussion = s.id");
}
//Returns an array of ratings posts id
function forum_rating_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT r.id, r.post, p.discussion, s.forum
FROM {$CFG->prefix}forum_ratings r,
{$CFG->prefix}forum_posts p,
{$CFG->prefix}forum_discussions s,
{$CFG->prefix}forum a
WHERE a.course = '$course' AND
s.forum = a.id AND
p.discussion = s.id AND
r.post = p.id");
}
?>
-78
View File
@@ -1,78 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//journal mods
//This is the "graphical" structure of the journal mod:
//
// journal
// (CL,pk->id)
// |
// |
// |
// journal_entries
// (UL,pk->id, fk->journal)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
function journal_backup_mods($course,$user_data=false,$backup_unique_code) {
print "hola";
}
////Return an array of info (name,value)
function NO_journal_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//First the course data
$info[0][0] = get_string("modulenameplural","journal");
if ($ids = journal_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
//Now, if requested, the user_data
if ($user_data) {
$info[1][0] = get_string("entries","journal");
if ($ids = journal_entry_ids_by_course ($course)) {
$info[1][1] = count($ids);
} else {
$info[1][1] = 0;
}
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of journals id
function journal_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}journal a
WHERE a.course = '$course'");
}
//Returns an array of journal entries id
function journal_entry_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.journal
FROM {$CFG->prefix}journal_entries s,
{$CFG->prefix}journal a
WHERE a.course = '$course' AND
s.journal = a.id");
}
?>
-125
View File
@@ -1,125 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//pgassignment mods
//This is the "graphical" structure of the pgassignment mod:
//
// pgassignment
// (CL,pk->id)
// |
// -----------------------------------
// | |
// pgassignment_elements pgassignment_submissions
// (CL,pk->id, fk->pgassignment) (UL,pk->id, fk->pgassignment,files)
// |
// |
// |
// pgasignments_grades
// (UL,pk->id,fk->submission)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
function NO_pgassignment_backup_mods($course,$user_data=false,$backup_unique_code) {
print "hola";
}
////Return an array of info (name,value)
function pgassignment_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//First the course data
$info[0][0] = get_string("modulenameplural","pgassignment");
if ($ids = pgassignment_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
//Elements
$info[1][0] = get_string("elements","pgassignment");
if ($ids = pgassignment_element_ids_by_course ($course)) {
$info[1][1] = count($ids);
} else {
$info[1][1] = 0;
}
//Now, if requested, the user_data
if ($user_data) {
//Submissions
$info[2][0] = get_string("submissions","pgassignment");
if ($ids = pgassignment_submission_ids_by_course ($course)) {
$info[2][1] = count($ids);
} else {
$info[2][1] = 0;
}
//Grades
$info[3][0] = get_string("grades","pgassignment");
if ($ids = pgassignment_grade_ids_by_course ($course)) {
$info[3][1] = count($ids);
} else {
$info[3][1] = 0;
}
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of pgassignments id
function pgassignment_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}pgassignment a
WHERE a.course = '$course'");
}
//Returns an array of pgassignment elements id
function pgassignment_element_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.pgassignment
FROM {$CFG->prefix}pgassignment_elements s,
{$CFG->prefix}pgassignment a
WHERE a.course = '$course' AND
s.pgassignment = a.id");
}
//Returns an array of pgassignment submissions id
function pgassignment_submission_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.pgassignment
FROM {$CFG->prefix}pgassignment_submissions s,
{$CFG->prefix}pgassignment a
WHERE a.course = '$course' AND
s.pgassignment = a.id");
}
//Returns an array of pgassignment grades id
function pgassignment_grade_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT g.id , g.submission, s.pgassignment
FROM {$CFG->prefix}pgassignment_grades g,
{$CFG->prefix}pgassignment_submissions s,
{$CFG->prefix}pgassignment a
WHERE a.course = '$course' AND
s.pgassignment = a.id AND
g.submission = s.id");
}
?>
-148
View File
@@ -1,148 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//quiz mods
//To see, put your terminal to 132cc
//This is the "graphical" structure of the quiz mod:
//
// quiz quiz_categories
// (CL,pk->id) (CL,pk->id)
// | |
// ----------------------------------------------- |
// | | | |
// | | | |
// | | | |
// quiz_attemps quiz_grades quiz_question_grades |
// (UL,pk->id, fk->quiz) (UL,pk->id,fk->quiz) (UL,pk->id,fk->quiz) |
// | | |
// | | |
// | | |
// quiz_responses | quiz_questions
// (UL,pk->id, fk->attempt)----------------------------------------------------(CL,pk->id,fk->category,files)
// |
// |
// |
// ------------------------------------------------------------------------------------------------------
// | | | |
// | | | |
// | | | | quiz_randomsamatch
// quiz_truefalse quiz_shortanswer quiz_multichoice |---------(CL,pl->id,fk->question)
// (CL,pl->id,fk->question) (CL,pl->id,fk->question) (CL,pl->id,fk->question) |
// . . . |
// . . . |
// . . . | quiz_match
// .................................................... |---------(CL,pl->id,fk->question)
// . | .
// . | .
// . | .
// quiz_answers | quiz_match_sub
// (CL,pk->id,fk->question)----------------------------|---------(CL,pl->id,fk->question)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files
//
//-----------------------------------------------------------
//THIS MOD BACKUP NEEDS TO USE THE mdl_backup_ids TABLE
function quiz_backup_mods($course,$user_data=false,$backup_unique_code) {
print "hola";
}
////Return an array of info (name,value)
function NO_quiz_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//Deletes data from mdl_backup_ids (categories section)
delete_category_ids ($backup_unique_code);
//Create date into mdl_backup_ids (categories section)
insert_category_ids ($course,$backup_unique_code);
//First the course data
$info[0][0] = get_string("modulenameplural","quiz");
if ($ids = quiz_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
//Categories
$info[1][0] = get_string("categories","quiz");
if ($ids = quiz_category_ids_by_backup ($backup_unique_code)) {
$info[1][1] = count($ids);
} else {
$info[1][1] = 0;
}
//Questions
$info[2][0] = get_string("questions","quiz");
if ($ids = quiz_question_ids_by_backup ($backup_unique_code)) {
$info[2][1] = count($ids);
} else {
$info[2][1] = 0;
}
//Now, if requested, the user_data
if ($user_data) {
//Grades
$info[3][0] = get_string("grades","quiz");
if ($ids = quiz_grade_ids_by_course ($course)) {
$info[3][1] = count($ids);
} else {
$info[3][1] = 0;
}
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of quiz id
function quiz_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}quiz a
WHERE a.course = '$course'");
}
//Returns an array of categories id
function quiz_category_ids_by_backup ($backup_unique_code) {
global $CFG;
return get_records_sql ("SELECT a.old_id, a.backup_code
FROM {$CFG->prefix}backup_ids a
WHERE a.backup_code = '$backup_unique_code'");
}
function quiz_question_ids_by_backup ($backup_unique_code) {
global $CFG;
return get_records_sql ("SELECT q.id, q.category
FROM {$CFG->prefix}backup_ids a,
{$CFG->prefix}quiz_questions q
WHERE a.backup_code = '$backup_unique_code' and
q.category = a.old_id");
}
function quiz_grade_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT g.id, g.quiz
FROM {$CFG->prefix}quiz a,
{$CFG->prefix}quiz_grades g
WHERE a.course = '$course' and
g.quiz = a.id");
}
?>
-77
View File
@@ -1,77 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//resource mods
//This is the "graphical" structure of the resource mod:
//
// resource
// (CL,pk->id,files)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
//This function executes all the backup procedure about this mod
function resource_backup_mods($bf,$preferences) {
global $CFG;
$status = true;
////Iterate over resource table
$resources = get_records ("resource","course",$preferences->backup_course,"id");
if ($resources) {
foreach ($resources as $resource) {
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print assignment data
fwrite ($bf,full_tag("ID",4,false,$resource->id));
fwrite ($bf,full_tag("MODTYPE",4,false,"resource"));
fwrite ($bf,full_tag("NAME",4,false,$resource->name));
fwrite ($bf,full_tag("TYPE",4,false,$resource->type));
fwrite ($bf,full_tag("REFERENCE",4,false,$resource->reference));
fwrite ($bf,full_tag("SUMMARY",4,false,$resource->summary));
fwrite ($bf,full_tag("ALLTEXT",4,false,$resource->alltext));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$resource->timemodified));
//End mod
$status = fwrite ($bf,end_tag("MOD",3,true));
}
}
return $status;
}
////Return an array of info (name,value)
function resource_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//First the course data
$info[0][0] = get_string("modulenameplural","resource");
if ($ids = resource_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of resources id
function resource_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}resource a
WHERE a.course = '$course'");
}
?>
-47
View File
@@ -1,47 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//resource mods
//This is the "graphical" structure of the resource mod:
//
// resource
// (CL,pk->id,files)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
//This function executes all the restore procedure about this mod
function resource_restore_mods($bf,$preferences) {
global $CFG;
$status = true;
////Iterate over resource table
$resources = get_records ("resource","course",$preferences->backup_course,"id");
if ($resources) {
foreach ($resources as $resource) {
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print assignment data
fwrite ($bf,full_tag("ID",4,false,$resource->id));
fwrite ($bf,full_tag("MODTYPE",4,false,"resource"));
fwrite ($bf,full_tag("NAME",4,false,$resource->name));
fwrite ($bf,full_tag("TYPE",4,false,$resource->type));
fwrite ($bf,full_tag("REFERENCE",4,false,$resource->reference));
fwrite ($bf,full_tag("SUMMARY",4,false,$resource->summary));
fwrite ($bf,full_tag("ALLTEXT",4,false,$resource->alltext));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$resource->timemodified));
//End mod
$status = fwrite ($bf,end_tag("MOD",3,true));
}
}
return $status;
}
?>
-174
View File
@@ -1,174 +0,0 @@
<?PHP //$Id$
//This php script contains all the stuff to backup/restore
//survey mods
//This is the "graphical" structure of the survey mod:
// --------------------
// survey | survey_questions |
// (CL,pk->id) |(CL,pk->id,?????) |
// | --------------------
// |
// -----------------------------------
// | |
// survey_analysis survey_answers
// (UL,pk->id, fk->survey) (UL,pk->id, fk->survey)
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
// nt->nested field (recursive data)
// CL->course level info
// UL->user level info
// files->table may have files)
//
//-----------------------------------------------------------
function survey_backup_mods($bf,$preferences) {
global $CFG;
$status = true;
//Iterate over survey table
$surveys = get_records ("survey","course",$preferences->backup_course,"id");
if ($surveys) {
foreach ($surveys as $survey) {
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print choice data
fwrite ($bf,full_tag("ID",4,false,$survey->id));
fwrite ($bf,full_tag("MODTYPE",4,false,"survey"));
fwrite ($bf,full_tag("TEMPLATE",4,false,$survey->template));
fwrite ($bf,full_tag("DAYS",4,false,$survey->days));
fwrite ($bf,full_tag("TIMECREATED",4,false,$survey->timecreated));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$survey->timemodified));
fwrite ($bf,full_tag("NAME",4,false,$survey->name));
fwrite ($bf,full_tag("INTRO",4,false,$survey->intro));
fwrite ($bf,full_tag("QUESTIONS",4,false,$survey->questions));
//if we've selected to backup users info, then execute backup_survey_answers and
//backup_survey_analysis
if ($preferences->mods["survey"]->userinfo) {
$status = backup_survey_answers($bf,$preferences,$survey->id);
$status = backup_survey_analysis($bf,$preferences,$survey->id);
}
//End mod
$status =fwrite ($bf,end_tag("MOD",3,true));
}
}
return $status;
}
//Backup survey_answers contents (executed from survey_backup_mods)
function backup_survey_answers ($bf,$preferences,$survey) {
global $CFG;
$status = true;
$survey_answers = get_records("survey_answers","survey",$survey,"id");
//If there is answers
if ($survey_answers) {
//Write start tag
$status =fwrite ($bf,start_tag("ANSWERS",4,true));
//Iterate over each answer
foreach ($survey_answers as $sur_ans) {
//Start answer
$status =fwrite ($bf,start_tag("ANSWER",5,true));
//Print survey_answers contents
fwrite ($bf,full_tag("ID",6,false,$sur_ans->id));
fwrite ($bf,full_tag("USERID",6,false,$sur_ans->userid));
fwrite ($bf,full_tag("QUESTION",6,false,$sur_ans->question));
fwrite ($bf,full_tag("TIME",6,false,$sur_ans->time));
fwrite ($bf,full_tag("ANSWER1",6,false,$sur_ans->answer1));
fwrite ($bf,full_tag("ANSWER2",6,false,$sur_ans->answer2));
//End answer
$status =fwrite ($bf,end_tag("ANSWER",5,true));
}
//Write end tag
$status =fwrite ($bf,end_tag("ANSWERS",4,true));
}
return $status;
}
//Backup survey_analysis contents (executed from survey_backup_mods)
function backup_survey_analysis ($bf,$preferences,$survey) {
global $CFG;
$status = true;
$survey_analysis = get_records("survey_analysis","survey",$survey,"id");
//If there is analysis
if ($survey_analysis) {
//Write start tag
$status =fwrite ($bf,start_tag("ANALYSIS",4,true));
//Iterate over each analysis
foreach ($survey_analysis as $sur_ana) {
//Start answer
$status =fwrite ($bf,start_tag("ANALYS",5,true));
//Print survey_analysis contents
fwrite ($bf,full_tag("ID",6,false,$sur_ana->id));
fwrite ($bf,full_tag("USERID",6,false,$sur_ana->userid));
fwrite ($bf,full_tag("NOTES",6,false,$sur_ana->notes));
//End answer
$status =fwrite ($bf,end_tag("ANALYS",5,true));
}
//Write end tag
$status =fwrite ($bf,end_tag("ANALYSIS",4,true));
}
return $status;
}
////Return an array of info (name,value)
function survey_check_backup_mods($course,$user_data=false,$backup_unique_code) {
//First the course data
$info[0][0] = get_string("modulenameplural","survey");
if ($ids = survey_ids ($course)) {
$info[0][1] = count($ids);
} else {
$info[0][1] = 0;
}
//Now, if requested, the user_data
if ($user_data) {
//Subscriptions
$info[1][0] = get_string("answers","survey");
if ($ids = survey_answer_ids_by_course ($course)) {
$info[1][1] = count($ids);
} else {
$info[1][1] = 0;
}
}
return $info;
}
// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
//Returns an array of surveys id
function survey_ids ($course) {
global $CFG;
return get_records_sql ("SELECT a.id, a.course
FROM {$CFG->prefix}survey a
WHERE a.course = '$course'");
}
//Returns an array of survey answer id
function survey_answer_ids_by_course ($course) {
global $CFG;
return get_records_sql ("SELECT s.id , s.survey
FROM {$CFG->prefix}survey_answers s,
{$CFG->prefix}forum a
WHERE a.course = '$course' AND
s.survey = a.id");
}
?>
+49 -24
View File
@@ -3,40 +3,48 @@
//Define some globals for all the script
//MUST CHANGE WITH FINAL BACKUP LOCATION !! WITHOUT TRAILING SLASH !!
//ALL RELATIVE FROM THE LOCATION OF THE restore.php SCRIPT !!!
$moodle_home = "../../..";
$mods_home = "mod";
//END MUST CHANGE
//Units used
require_once ("$moodle_home/config.php");
require_once ("$moodle_home/version.php");
require_once ("backup_version.php");
require_once ("db/backup_$CFG->dbtype.php");
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();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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
upgrade_backup_db($backup_version,$backup_release,"restore.php");
if ($file) {
$linkto = "restore.php?id=".$id."&file=".$file;
} else {
$linkto = "restore.php";
}
upgrade_backup_db($linkto);
//Get strings
$strcourserestore = get_string("courserestore");
@@ -45,9 +53,9 @@
//If no file has been selected from the FileManager, inform and end
if (!$file) {
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<A HREF=\"$moodle_home/$CFG->admin/index.php\">$stradministration</A> -> $strcourserestore");
"<A HREF=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</A> -> $strcourserestore");
print_heading(get_string("nofilesselected"));
print_continue("$moodle_home/$CFG->admin/index.php");
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
print_footer();
exit;
}
@@ -55,21 +63,39 @@
//If cancel has been selected, inform and end
if ($cancel) {
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<A HREF=\"$moodle_home/$CFG->admin/index.php\">$stradministration</A> -> $strcourserestore");
"<A HREF=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</A> -> $strcourserestore");
print_heading(get_string("restorecancelled"));
print_continue("$moodle_home/$CFG->admin/index.php");
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
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<A HREF=\"$moodle_home/$CFG->admin/index.php\">$stradministration</A> ->
$strcourserestore -> ".basename($file));
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) {
@@ -87,4 +113,3 @@
print_footer();
?>
+50 -16
View File
@@ -9,12 +9,14 @@
if ($SESSION) {
$info = $SESSION->info;
$course_header = $SESSION->course_header;
$restore = $SESSION->restore;
if (isset($SESSION->restore)) {
$restore = $SESSION->restore;
}
}
//If restore session info exists, but we are posting parameters
//manually, this has prioriry
if ($restore and isset($restore_restoreto)) {
if (isset($restore) and isset($restore_restoreto)) {
unset($restore);
}
@@ -29,7 +31,7 @@
//If the restore object doesn't exist, we are going
//to check every variable individually and create it
if (!$restore) {
if (!isset($restore)) {
//Check that we have all we need
//backup_unique_code
require_variable($backup_unique_code);
@@ -98,8 +100,14 @@
require_login();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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
@@ -108,24 +116,51 @@
}
//Depending the selected restoreto:
// 0-Existing course: Select the destination course and launch the check again.
// 1-New course: Create the restore object (checking everything) and launch the execute.
// 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.
//Select course
if (($restore->restoreto == 0) and ($restore->course_id == 0)) {
if ($courses = get_courses()) {
//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&file=$file\">$course->fullname ($course->shortname)</A><BR>";
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("$moodle_home/$CFG->admin/index.php");
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
}
//Checks everything and execute restore
} else if ((($restore->restoreto == 0) and ($restore->course_id != 0)) or ($restore->restoreto == 1)) {
} 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.
@@ -149,11 +184,10 @@
//Print the continue button to execute the restore NOW !!!!
//All is prepared !!!
echo "<CENTER>";
echo get_string("presscontinuetolaunchrestore");
echo "<br>";
$hidden["launch"] = "execute";
$hidden["file"] = $file;
print_single_button("restore.php", $hidden, get_string("continue"),"post");
$hidden["id"] = $id;
print_single_button("restore.php", $hidden, get_string("restorecoursenow"),"post");
echo "</CENTER>";
} else {
//Show error
+190 -59
View File
@@ -10,12 +10,22 @@
$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 (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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
@@ -23,6 +33,19 @@
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>";
@@ -39,9 +62,11 @@
//If we've selected to restore into new course
//create it (course)
//Saving conversion id variables into backup_tables
if ($restore->restoreto ==1) {
echo "<li>Creating new course";
$status = restore_create_new_course($restore,&$course_header);
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>";
@@ -54,23 +79,52 @@
} else {
$course = get_record("course","id",$restore->course_id);
if ($course) {
echo "<li>Using existing course";
echo "<li>".get_string("usingexistingcourse");
echo "<ul>";
echo "<li>From: ".$course_header->course_fullname." (".$course_header->course_shortname.")";
echo "<li>To: ".$course->fullname." (".$course->shortname.")";
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) {
if ($restore->restoreto == 1) {
echo "<li>Creating sections";
$status = restore_create_sections($restore,$xml_file);
} else if ($restore->restoreto == 0) {
echo "<li>Checking sections";
$status = restore_create_sections($restore,$xml_file);
//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;
}
}
@@ -78,11 +132,13 @@
//Now create users as needed
if ($status and ($restore->users == 0 or $restore->users == 1)) {
echo "<li>Creating users";
$status = restore_create_users($restore,$xml_file);
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, info from {$CFG->prefix}backup_ids
$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
@@ -91,94 +147,165 @@
$exists_count = 0;
$student_count = 0;
$teacher_count = 0;
$coursecreator_count = 0;
$admin_count = 0;
$other_count = 0;
$counter = 0;
//Iterate, filling counters
foreach ($recs as $rec) {
if (strpos($rec->info,"new") !== false) {
//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($rec->info,"exists") !== false) {
if (strpos($record->info,"exists") !== false) {
$exists_count++;
}
if (strpos($rec->info,"admin")) {
$admin_count++;
} else if (strpos($rec->info,"coursecreator")) {
$coursecreator_count++;
} else if (strpos($rec->info,"teacher")) {
$teacher_count++;
} else if (strpos($rec->info,"student")) {
if (strpos($record->info,"student") !== false) {
$student_count++;
} else if ($rec->info == "new" or $rec->info == "exists") {
$other_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 " (new: ".$new_count.", existing: ".$exists_count.")";
echo " (".get_string("new").": ".$new_count.", ".get_string("existing").": ".$exists_count.")";
echo "<ul>";
echo "<li>Students: ".$student_count;
echo "<li>Teachers: ".$teacher_count;
echo "<li>Course Creators: ".$coursecreator_count;
echo "<li>Admins: ".$admin_count;
echo "<li>Other: ".$other_count;
echo "<li>".get_string("students").": ".$student_count;
echo "<li>".get_string("teachers").": ".$teacher_count;
echo "</ul>";
} else {
//Something is wrong. There is no users !!
$status = false;
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>Copying User Files";
$status = restore_user_files($restore);
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>User Zones: ".$status;
echo "<li>".get_string("userzones").": ".$status;
echo "</ul>";
}
}
//Now create course files as needed
if ($status and ($restore->course_files)) {
echo "<li>Copying Course Files";
$status = restore_course_files($restore);
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>Main Files/Folders: ".$status;
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>Creating Log Entries <b>(not implemented)</b>. Execute after everything...";
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, update course modinfo field !!
//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>";
@@ -189,7 +316,11 @@
echo "</table>";
if (!$status) {
error ("An error has ocurred");
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);
?>
+94 -38
View File
@@ -22,8 +22,14 @@
require_login();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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
@@ -36,7 +42,7 @@
if ($allmods = get_records("modules") ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
$modfile = "$mods_home/$modname/restorelib.php";
$modfile = "$CFG->dirroot/mod/$modname/restorelib.php";
$modrestore = $modname."_restore_mods";
if (file_exists($modfile)) {
include_once($modfile);
@@ -78,7 +84,12 @@
}
if (!isset($restore_restoreto)) {
$restore_restoreto = 1;
if (isteacheredit($id) and !isadmin()) {
$restore_restoreto = 1;
}
if (isadmin()) {
$restore_restoreto = 2;
}
}
if ($count == 0) {
@@ -87,9 +98,24 @@
?>
<form name="form" method="post" <?=$onsubmit ?> action="<?=$ME ?>">
<SCRIPT LANGUAGE="JavaScript">
<!--
function selectItemInMenuByName(formId, menuName, selectIndex ) {
myForm = document.getElementById(formId)
for (i=0,n=myForm.elements.length;i<n;i++) {
myLen = menuName.length;
myName = myForm.elements[i].name;
myType = myForm.elements[i].type;
if (myName.substring(0,myLen) == menuName && myType == "select-one")
myForm.elements[i].options[selectIndex].selected = true;
}
}
-->
</script>
<form name="form1" id="form1" method="post" action="<?php echo $ME ?>">
<table cellpadding=5>
<?
<?php
//First, course destination
//Print the full tr
@@ -97,14 +123,32 @@
echo "<td align=\"right\"><P><b>";
echo get_string("restoreto").":</b>";
echo "</td><td>";
$restore_restoreto_options[0] = get_string("existingcourse");
$restore_restoreto_options[1] = get_string("newcourse");
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";
@@ -112,29 +156,35 @@
$exist = "exists_".$modname;
$restore_var = "restore_".$modname;
$user_info_var = "restore_user_info_".$modname;
if ($$exist) {
//Now check that we have that module info in the backup file
if ($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, "");
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 haven't userdata
echo get_string("withoutuserdata");
//Module isn't restorable
echo "<input type=\"hidden\" name=\"$restore_var\" value=\"0\">";
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\">";
@@ -154,14 +204,20 @@
echo "<td align=\"right\"><P><B>";
echo get_string("users").":";
echo "</td><td>";
//If all users are in the backup file
if ($info->backup_users == "all") {
$user_options[0] = get_string("all");
//If some user is present in the backup file
if ($info->backup_users == "all" or $info->backup_users == "course") {
//If all users are in the backup file
if ($info->backup_users == "all") {
$user_options[0] = get_string("all");
}
$user_options[1] = get_string("course");
$user_options[2] = get_string("none");
choose_from_menu($user_options, "restore_users", $restore_users, "");
} else {
echo get_string("none");
echo "<input type=\"hidden\" name=\"restore_users\" value=\"2\">";
}
$user_options[1] = get_string("course");
$user_options[2] = get_string("none");
//$user_options[2] = get_string("needed");-->NOT IMPLEMENTED
choose_from_menu($user_options, "restore_users", $restore_users, "");
echo "</td></tr>";
//Now print the Logs tr
@@ -218,9 +274,9 @@
</table>
<BR>
<CENTER>
<input type="hidden" name=id value="<? p($id) ?>">
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=launch value="check">
<input type="submit" value="<? print_string("continue") ?>">
<input type="submit" name=cancel value="<? print_string("cancel") ?>">
<input type="submit" value="<?php print_string("continue") ?>">
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
</CENTER>
</FORM>
+34 -10
View File
@@ -13,8 +13,14 @@
require_login();
//Check admin
if (!isadmin()) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
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
@@ -46,35 +52,42 @@
$backup_unique_code = time();
//Now check and create the backup dir (if it doesn't exist)
echo "<li>".get_string("creatingtemporarystructures");
$status = check_and_create_backup_dir($backup_unique_code);
//Empty dir
if ($status) {
echo "<li>Creating temp dir";
$status = clear_backup_dir($backup_unique_code);
}
//Now delete old data and directories under dataroot/temp/backup
if ($status) {
echo "<li>Cleaning old data";
echo "<li>".get_string("deletingolddata");
$status = backup_delete_old_data();
}
//Now copy he zip file to dataroot/temp/backup/backup_unique_code
if ($status) {
$status = backup_copy_file($file,$CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file));
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>Retrieving backup file";
$status = restore_unzip ($CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file),$moodle_home);
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>Checking backup file";
$status = restore_check_moodle_file ($xml_file);
echo "<li>".get_string("checkingbackup");
if (! $status = restore_check_moodle_file ($xml_file)) {
notify("Error checking backup file. Invalid or corrupted.");
}
}
$info = "";
@@ -82,7 +95,7 @@
//Now read the info tag (all)
if ($status) {
echo "<li>Reading info from file";
echo "<li>".get_string("readinginfofrombackup");
//Reading info from file
$info = restore_read_xml_info ($xml_file);
//Reading course_header from file
@@ -96,6 +109,16 @@
echo "</tr></td>";
echo "</table>";
//We compare Moodle's versions
if ($CFG->version < $info->backup_moodle_version && $status) {
$message->serverversion = $CFG->version;
$message->serverrelease = $CFG->release;
$message->backupversion = $info->backup_moodle_version;
$message->backuprelease = $info->backup_moodle_release;
print_simple_box(get_string('noticenewerbackup','',$message), "center", "70%", "$THEME->cellheading2", "20", "noticebox");
}
//Now we print in other table, the backup and the course it contains info
if ($info and $course_header and $status) {
//First, the course info
@@ -119,6 +142,7 @@
$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>";
}
+1837 -64
View File
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;
}

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