Compare commits

..

6238 Commits

Author SHA1 Message Date
moodler b5cfd0e85f Like some horror movie, the second hand on the clock ticks over
in slow motion to the next mark
2004-08-31 13:43:44 +00:00
moodler fd772c442e More robust with bad themes 2004-08-31 13:36:47 +00:00
defacer 2ebaaa5e68 Mike noticed that PHP_SELF was being used here. Replaced all instances with $ME. 2004-08-31 13:31:00 +00:00
moodler e5bd075113 Fixing my recent typo 2004-08-31 12:56:11 +00:00
moodler 88289032b6 FIx install.php for PostgreSQL. I *think* ... this is untested 2004-08-31 12:48:36 +00:00
defacer 9c0458b046 One typo and a glitch
The developer fixes
Lo! Bug-free Moodle!
2004-08-31 12:45:05 +00:00
defacer 4ea496519e Fix for bug 1800:
Adding this harmless column makes the get_recent_enrolments() query legal
in Postgres. Patch submitted by Petri.
2004-08-31 12:26:04 +00:00
moodler 36d0082229 FIxed up recent problems with external authentication
http://moodle.org/mod/forum/discuss.php?d=11723#57001
2004-08-31 12:23:24 +00:00
moodler e0a456a3b3 SLightly reworded the enrollfirst string ... no difference to translators probably 2004-08-31 10:16:56 +00:00
moodler 88a70c8436 FIxed the link in the change I just made 2004-08-31 10:03:54 +00:00
moodler a5b9e4d94e Prevent restricted users from using "login as" 2004-08-31 09:59:59 +00:00
moodler 8913dce495 Fixed some english errors 2004-08-31 09:17:49 +00:00
moodler de3e4de88d Some extra safety when using variables - doesn't appear to be an exploit
in the general case but thanks, Fernando Quintero
2004-08-31 08:52:12 +00:00
moodler d0d1008498 Moved loginhttps into main config screen. Some security has been built
in to prevent accidental enabling on sites without https.
2004-08-31 08:39:22 +00:00
moodler 46808f4afc Added shortcut button to edit course settings (bug 1850) 2004-08-31 07:24:33 +00:00
defacer 7eda7f6cbd Another one bites the dust, this one wasn't needed and noone had any
objections about the array-based notation. RIP.
2004-08-31 06:56:44 +00:00
gustav_delius 21c500f755 my second attempt at getting this block right. 2004-08-30 23:24:03 +00:00
stronk7 dfb203cad6 Release info for 1.4. 2004-08-30 22:57:38 +00:00
gustav_delius 8ec882c22f Access to site participants list is now controlled through $CFG->showsiteparticipantslist 2004-08-30 20:57:26 +00:00
gustav_delius d31cdc0ee9 isteacher() with no arguments now does the expected 2004-08-30 20:54:42 +00:00
moodler f547ee52e7 Merged latest language files from HEAD to STABLE 2004-08-30 19:36:07 +00:00
gustav_delius 129af65665 fixed the isstudent function 2004-08-30 19:09:36 +00:00
moodler b2794b6554 removed junk 2004-08-30 18:48:48 +00:00
gustav_delius 04fd313892 Site participants list now shows correct list of site students 2004-08-30 18:43:13 +00:00
moodler be037b8039 Updated index 2004-08-30 18:19:57 +00:00
moodler f01c72ee73 Added help buttons to the new help file for window settings 2004-08-30 18:17:52 +00:00
moodler 2eebac9129 New help file, based on one from Marc Dastous - thanks Marc! 2004-08-30 18:16:36 +00:00
moodler a8db8bdc3e Fixed an unquoted string 2004-08-30 17:45:51 +00:00
gustav_delius bee864c912 Just tidying up. 2004-08-30 17:28:47 +00:00
moodler 4a51bb7cca No need to put MS up there :-) 2004-08-30 16:57:01 +00:00
moodler 4cbb5d6b4b Default editor fonts now match default Moodle themes 2004-08-30 16:53:21 +00:00
gustav_delius 30bc2fa671 This now implements the new rule on who is a site student, see http://moodle.org/mod/forum/discuss.php?d=8452#56743 2004-08-30 16:42:32 +00:00
moodler 4e65d23fd1 OK, this should finally fix the block upgrading problem.
The problem was that site_admin_menu had not been added to the
database yet when we tried to update the blockinfo for the site.
2004-08-30 15:57:09 +00:00
moodler 327f0cdf22 Er, this will work better ;-) 2004-08-30 14:58:13 +00:00
moodler 5e1eaab52f Checking in a fix for the blocks upgrade on the home page so I can test
it on upgrading a real site.
2004-08-30 14:53:43 +00:00
stronk7 431c81eefa Bug 1831
(http://moodle.org/bugs/bug.php?op=show&bugid=1831)
2004-08-30 14:40:23 +00:00
moodler 6908074777 New configuration variable allusersaresitestudents for Gustav to use
in modules ...
2004-08-30 13:21:16 +00:00
moodler 7f446f68b6 Colored text now works.
Allow CSS "color" styles (which look like a protocol to the security system)
to get through the net.  Luckily anything with a hyphen is let through by
default to everything else the editor produces is OK.
2004-08-30 12:09:14 +00:00
bobopinna 6de08a7a4d Updated to Moodle 1.4 stable 2004-08-30 12:06:43 +00:00
defacer 4172b51f81 Some improvements to the code that assigns sideblocks to new courses.
Moved all "magic strings" to nice and tidy constants.
2004-08-30 11:55:36 +00:00
defacer 52f42b41fc Bug 1848:
As per Gustav's recommendation, event names in Upcoming Events are now hyperlinked.
This required an internal API change, but as far as I can see only block_upcoming
used it the relevant functions so it's ok.
Also, substituded SITEID for the magic number 1 in calendar/lib.php as an aside.
2004-08-30 11:42:07 +00:00
bobopinna 63d9ac4893 Fixed a bug in mounth view 2004-08-30 11:38:09 +00:00
gustav_delius cc4a7edf6f course teachers are also site students. This implements the rule described in http://moodle.org/mod/forum/discuss.php?d=8452#56678.
This commit is probably pointless because the rules are likely to change again soon. I won't merge it onto HEAD.
2004-08-30 08:49:01 +00:00
moodler 1afe51e630 Disabled HTML editor when editing HTML files, for now. See bug 1815 2004-08-30 08:42:21 +00:00
gustav_delius eb4f1a380a course teachers are also site students. 2004-08-30 08:13:14 +00:00
moodler 3977f41672 MOved the Editor on/off to the editor settings page, and tidied up a bit 2004-08-30 07:45:03 +00:00
moodler bce227c2bd Fixed some notices ... bug 1846 .. Thanks Bruno! 2004-08-30 06:28:41 +00:00
moodler 862d076232 Fix from Bruno for 1843 2004-08-30 04:31:45 +00:00
moodler 7ac53b8334 Added chooseparamter ... bug 1824 2004-08-30 04:21:56 +00:00
moodler b42451d5c7 "Choose parameter" is now translatable. 2004-08-30 04:21:24 +00:00
stronk7 e706e6bf35 Check that glossary is correct before edit categories.
Bug 1838
(http://moodle.org/bugs/bug.php?op=show&bugid=1838)
2004-08-29 23:26:04 +00:00
stronk7 4e3cfbb4d8 strip_tags() to some parameters. Thanks skodak.
Bug 1836
(http://moodle.org/bugs/bug.php?op=show&bugid=1836)
2004-08-29 22:46:31 +00:00
stronk7 7f322bf4f0 Typo. Thanks to skodak.
Bug 1839
(http://moodle.org/bugs/bug.php?op=show&bugid=1839)
2004-08-29 22:03:01 +00:00
moodler be50231d4a Upgraded to Markdown 1.0 release 2004-08-29 15:45:22 +00:00
gustav_delius 19425053af added constant SITEID=1 2004-08-29 14:00:49 +00:00
moodler c0c2ae7637 Some small changes .. nothing new just re-phrasing 2004-08-29 13:11:43 +00:00
gustav_delius aef7d2ef0b replacing get_site() in add_to_log() for efficiency. Moodle 1.5 will have this done more thoroughly. 2004-08-29 12:54:39 +00:00
moodler f4fbd4d664 Fixed some uninitialised variables bug 1830 2004-08-29 11:59:19 +00:00
gustav_delius d5fe509f44 add_to_log now updates lastaccess if used on site. See bug 1821 2004-08-29 11:35:08 +00:00
stronk7 420b3d092c Backup is ready for 1.4! Bump. 2004-08-29 10:14:56 +00:00
moodler 19625783b5 By default turn off validation for Moodle 1.4 to make things a bit easier
for some packages.  It can be enabled manually in the SCORM module settings.
2004-08-29 09:03:22 +00:00
moodler c5e704f41b FIxed heading and helpbutton link 2004-08-29 07:37:52 +00:00
moodler fda51b8d69 Fixes to authentication logic to help upgraders (ie admin and guest accounts) 2004-08-29 05:42:11 +00:00
moodler 79424afeb2 Slight rewording, not enough to warrant a new file but translators may
want to make similar changes.
2004-08-29 04:46:02 +00:00
moodler bcabc1aac6 Merged change from HEAD (Display -> Window) 2004-08-29 04:34:46 +00:00
moodler ad13b33c01 Added some stripping of data when displaying logs to help prevent some
possible XSS.  Thanks for highlighting this, Petr Skoda!
2004-08-29 03:54:51 +00:00
stronk7 b50ab1c6ac Define a bit better the 'automatic link' feature at glossary and entry levels.
Bug 1745
(http://moodle.org/bugs/bug.php?op=show&bugid=1745)
2004-08-29 00:06:28 +00:00
stronk7 486e156924 translated to es 2004-08-28 23:44:25 +00:00
stronk7 62368bd2a2 Slighty change
Merged from HEAD
2004-08-28 23:41:26 +00:00
stronk7 bbbfb3193b If we are updating an entry, compare current session user with
existing entry user to avoid some potential problems if secureforms=off
Perhaps too much security? Anyway thanks to skodak

(Bug 1823)
(http://moodle.org/bugs/bug.php?op=show&bugid=1823)
2004-08-28 23:20:39 +00:00
stronk7 c2716331a4 Avoid one notice 2004-08-28 19:58:55 +00:00
stronk7 a2ce999684 HTML editor (format popup) display wrong in glossary comments
Bug 1826
(http://moodle.org/bugs/bug.php?op=show&bugid=1826)
2004-08-28 19:45:35 +00:00
gustav_delius 8c8be6622e added explanation about non-editing teachers to help file 2004-08-28 19:27:46 +00:00
stronk7 ac75511c40 Now students cannot add/edit/delete entries if glossary->studentcanpost = 0
using manual URLs.
2004-08-28 19:10:47 +00:00
stronk7 c14abb9990 - students cannot add/edit/delete comments if it isn't allowed
- students can view comments if they exist
- teachers bypass the commentsallowed field always (this can be useful to create glossaries with public comments from the teacher).
- buttons are showed correctly.

Bug 1814
(http://moodle.org/bugs/bug.php?op=show&bugid=1814)
2004-08-28 18:30:39 +00:00
gustav_delius d97903b9ca improvement of online_users block on front page, suggested by Bruno, see bug # 1821 2004-08-28 18:29:55 +00:00
stronk7 356f6d69d2 Added compatibility in user->auth from 1.3 backups...$CFG->auth is used 2004-08-28 17:28:18 +00:00
gustav_delius d0437b3eab fixed name order in headings on log.php 2004-08-28 17:17:25 +00:00
moodler 799ce03dff Fixed a rarely-occurring problem when deleting a module sometimes. 2004-08-28 16:30:01 +00:00
moodler b4ad8b3d24 Added two new site-wide settings for the resource module so that the
admin can deternine the default state of the collapsible panes on the
resource creation screen.
2004-08-28 16:29:20 +00:00
moodler e8ef939008 Aded user preferences to the collapsing resources. Panel settings are
now remembered per user from one edit to the next.
2004-08-28 15:56:29 +00:00
mchurch ebea2dd039 Fixed some SQL statements so they work with PostGreSQL as well as MySQL.
Fix provided by paca.
2004-08-28 15:10:16 +00:00
defacer be37cf962d Candidate fix for bug 1808:
When upgrading from versions < 1.4, put blocks in the site front page by
default. This was already taken care of when doing a fresh install.

Please check the validity of the fix, if possible. It needs to be extended
to Postgres, Oracle and also merged to HEAD if everything's OK.
2004-08-28 12:33:25 +00:00
stronk7 c75a34409f changed timemodified to timecreated 2004-08-28 11:23:25 +00:00
stronk7 eb4409277e Now action is checked and defaults to edit.
Thanks skodak!

Bug 1813
(http://moodle.org/bugs/bug.php?op=show&bugid=1813)
2004-08-28 11:11:27 +00:00
stronk7 f7311bbe14 Now maxeditingtime for entries work againt timecreated instead of timemodified.
Thanks skodak!

Bug 1822
(http://moodle.org/bugs/bug.php?op=show&bugid=1822)
2004-08-28 10:52:54 +00:00
stronk7 04f1308619 Now user->auth is in backup & restore
Bug 1789
(http://moodle.org/bugs/bug.php?op=show&bugid=1789)
2004-08-28 10:19:34 +00:00
moodler 48143e5a51 Fix from a while back 2004-08-28 08:04:10 +00:00
moodler 223b5ee619 Merged changes from trunk 2004-08-28 07:57:57 +00:00
moodler 56fdffcfeb Fixed bug 1787 - clean_text doesn't work as expected on text with added slashes 2004-08-28 07:55:22 +00:00
moodler eb363f4d99 Added ellipses to buttons "Show settings..." 2004-08-28 05:15:57 +00:00
stronk7 1a625fd590 Some important changes arrive:
- 'editalways' applied to comments.
   - some minor notices out.
   - security bug solved:
      + users cannot edit any comment now.
      + users cannot delete any comment now.
      + users cannot edit any entry now.
      + users cannot delete any antry now.

Thanks to skodak, discovering the bug!!!
2004-08-28 00:23:09 +00:00
stronk7 7e71e010a7 Init 2 arrays 2004-08-27 17:20:02 +00:00
stronk7 bc213d6e8a Now, terms being defined in URLs aren't broken by the <nolink> tag.
Bug 1790
(http://moodle.org/bugs/bug.php?op=show&bugid=1790)
2004-08-27 16:46:22 +00:00
moodler 19dd3171b1 Merged Howard's changes from HEAD 2004-08-27 15:50:18 +00:00
moodler aff55f17a2 It's quick but it will do for now. 2004-08-27 11:47:15 +00:00
moodler 42f291c945 Tidied up form sections with javascript 2004-08-27 09:44:13 +00:00
stronk7 64c548ef7a Error when sending a delete-entry action to logs... 2004-08-27 09:12:03 +00:00
moodler 1404a13a33 Merged from trunk. Changes to file resource. 2004-08-27 09:06:36 +00:00
bobopinna 3e93cbe128 Updated to Moodle 1.4 Stable 2004-08-27 08:06:45 +00:00
julmis dafecdb3d9 Fixing Bug #1792 in Student view :-) 2004-08-27 06:37:54 +00:00
moodler 56e55d22ec Merged from HEAD 2004-08-27 04:42:30 +00:00
moodler ae2b896821 Merged Penny's fix from HEAD 2004-08-27 03:39:47 +00:00
stronk7 68467fbf94 Another duplicated tag....now it's really well-formed :-) 2004-08-27 00:57:35 +00:00
stronk7 b9f5885b4d Found it!!!!
A missing </select> was the cause to the wrong display under Safari!!!
2004-08-27 00:50:22 +00:00
stronk7 9f46966132 Solved some inconsistencies when using the HTML editor and the
format menu!!

One Curiosity: I've discovered a bug in Safari Browser. Edit any
multi-line definition entry and you will see it without line
breaks (not using the HTML editor). I've tried moving that textarea
to other positions in the page and then it works.
2004-08-27 00:00:28 +00:00
julmis 6d388d8e29 Added string editorresettodefaults. 2004-08-26 23:06:36 +00:00
stronk7 b6162f17e2 Strange typo.
Bug 1804
(http://moodle.org/bugs/bug.php?op=show&bugid=1804)
2004-08-26 22:36:17 +00:00
gustav_delius 9b1f47c6bd fixed my own typo, bug 1798 2004-08-26 22:17:07 +00:00
stronk7 ba1b26a543 One notice 2004-08-26 21:37:44 +00:00
julmis 53542fb830 Fixing Bug #1791 for real this time ;-) 2004-08-26 19:58:48 +00:00
julmis d390acad28 Added reset to defaults 2004-08-26 18:30:56 +00:00
julmis c27e555d40 Fix for Bug #1793 2004-08-26 17:27:33 +00:00
julmis 1fed924a16 Spell-button added to images directory 2004-08-26 17:24:58 +00:00
julmis 8009ff257a Spell-button to second row 2004-08-26 17:18:41 +00:00
julmis b7eccbf37f Spell-button to second row
Bug #1791 fix
Better debug mode compatibility
2004-08-26 17:10:36 +00:00
moodler 8428897528 OK, I've been having bad luck with this one. NOW it's fixed properly! 2004-08-26 15:08:11 +00:00
moodler 3a5cc3936d Dammit, I accidentally deleted a line. 2004-08-26 14:46:53 +00:00
bobopinna c0ee89d2dc Updated to Moodle 1.4 stable 2004-08-26 14:41:35 +00:00
moodler 6365268b3b 1. Delete is no longer shown on posts after maxeditingtime has expired
2.  Prune strings are cached (my that's an odd sentence)
3.  Last post links from discussion listing now work when there are no replies
2004-08-26 14:19:50 +00:00
moodler 1e27382ed1 Added Password and Phone 2
Frame is now default again
2004-08-26 12:58:59 +00:00
moodler e75647df91 FIxed bug 1799 - thanks Eloy! 2004-08-26 12:24:20 +00:00
stronk7 19b1bd0bc8 Recode page->userid at restore time. 2004-08-26 10:56:02 +00:00
defacer 72d8255f7e Fix for WHERE clauses in Postgres, submitted by Petri Asikainen.
Apparently, Postgres doesn't like "SELECT * FROM table WHERE 0"
2004-08-26 10:48:51 +00:00
defacer ca27c7f734 Small fixes and improvements. 2004-08-26 09:57:59 +00:00
defacer ebc9be85c7 1. Code restructuring
2. Small logic fixes (e.g. only delete chat_user records WHERE type='sockets')
3. More informative messages when rejecting connections for some reason
4. Better handling of updating chat_user records (lastping updated correctly)
5. Custom error handling, so that PHP errors show up in the trace()s
2004-08-26 08:48:15 +00:00
gustav_delius d1dec2d112 fixed bug in online user list, see http://moodle.org/mod/forum/discuss.php?d=11554 2004-08-26 04:11:46 +00:00
stronk7 f54e807d59 Notice out 2004-08-26 00:10:51 +00:00
mchurch ab37ddd5d2 Updated diff functions to handle HTML formatting a little better. 2004-08-25 20:31:30 +00:00
moodler 6e2c52bad7 This hack doesn't work, and it doesn't matter, but I'm leaving it in
in case someone can fix it later
2004-08-25 16:03:39 +00:00
moodler 7b4bb520ba Course passed properly to messages
Old chat_users all deleted on startup
2004-08-25 14:20:54 +00:00
mchurch ab55cb4107 Reorganized the attachment details page a bit, and added author info. 2004-08-25 13:39:18 +00:00
moodler 785d24f0f6 FIx for recent activity when sockets being used 2004-08-25 13:37:38 +00:00
mchurch 5d2f527449 Changed attachment section on content page to only display if there are
attachments, and then only as a link to the attachments control page.
2004-08-25 13:18:46 +00:00
mchurch b36a469ffc Changed title for attachments on content page. 2004-08-25 13:17:45 +00:00
moodler 1820e4e3f2 Fixed a style, just for Przemyslaw 2004-08-25 12:37:37 +00:00
defacer e55474005b *** TRANSLATOR ALERT ***
This commit contains changes and additions to the chat language file.

Better display and explanations for the chat config screen. Final tweaks to
chatd now that we know which settings we 'll be using and how.
2004-08-25 12:13:06 +00:00
defacer 6e82cd4cd3 Second part of changes. Doing this slowly to keep integrity between this branch and HEAD. 2004-08-25 10:57:43 +00:00
defacer 0b0d2241e3 Lots and lots of improvements! Foremost changes are:
1. The users window is now provided with BOTH JavaScript and HTTP refresh mechanisms
2. The daemon now reliably detects disconnected users even in the absence of chat
   activity. Coupled with the fact that the "users in chats" lists are now manipulated
   only by chatd, they have reached 100% accuracy. Even better than the "normal"
   version, since you can leave your chat open (and idle) for as long as you want
   _without_ being disconnected.
3. Better OOP.
2004-08-25 10:45:13 +00:00
moodler 7d9137d05a Merged fixes from HEAD 2004-08-25 09:21:44 +00:00
moodler 97a8cdafd6 FIxed international display of timezones using string 'strftimedaytime'
http://moodle.org/mod/forum/discuss.php?d=11510
2004-08-25 08:27:53 +00:00
moodler cc876bc667 I was trying to make the glossary link open in the parent window, but
I could not get it to work all the time.
2004-08-25 08:15:15 +00:00
moodler 5b5302faa8 Fixed tabs links when glossary called without id 2004-08-25 07:39:26 +00:00
moodler afa051933d Fixed showentry for POstgreSQLo
Moved SQL to its own function in lib.php
Added links to glossary for each entry
2004-08-25 07:36:29 +00:00
moodler 1281b0a7df Redundant cleaning removed 2004-08-25 05:09:31 +00:00
moodler 092f22eb7f Removing some cleaning see bug 1787 2004-08-25 05:07:30 +00:00
moodler e0f0b7bc2d Added USERID field to restore/backup bug 1788 2004-08-25 04:48:19 +00:00
mchurch e8df6a8946 Restoring summary view to attachments view. 2004-08-25 04:19:48 +00:00
moodler d00f113675 Info page -> History 2004-08-25 03:22:15 +00:00
moodler efe91196f3 Hiding attachment listing altogether 2004-08-25 03:19:50 +00:00
moodler b4d9eecbd0 Fixed my bug with the missing Attachments tab 2004-08-25 03:00:36 +00:00
mchurch d2049a8b7b Cleaned up attachment section of view page. 2004-08-25 02:51:15 +00:00
stronk7 cbac49ac50 Don't clean posted text on input (will be cleaned on output). 2004-08-24 22:56:24 +00:00
stronk7 ea4dec3080 Bump to beta!
I suppose that I cannot update the version number because I'm in a branch,
isn't it?
2004-08-24 22:34:06 +00:00
stronk7 e73ae3f14e Deleted to use the English version until it can be updated. 2004-08-24 21:44:56 +00:00
stronk7 4ec1c2a0bd Release info updated to 1.3.4 2004-08-24 21:42:13 +00:00
stronk7 834fc9fd91 one more warning out 2004-08-24 20:55:40 +00:00
stronk7 f3d2d06518 Avoid some warnings
Bug 1729
(http://moodle.org/bugs/bug.php?op=show&bugid=1729)
2004-08-24 20:35:43 +00:00
gustav_delius 2e32990a63 reduced $module->requires to 052505 after Martin put my new functions into that version. 2004-08-24 15:14:32 +00:00
defacer 4b31fcf608 Still better handling of console output, and starting to experiment with the
new idea of "externally" refreshing the users window for reliability.
2004-08-24 14:29:00 +00:00
moodler dd23e499f3 A default I never checked in auth_pop3mailbox => 'INBOX' 2004-08-24 14:24:14 +00:00
moodler 72fe9309f3 Fixed an echo -> mtrace 2004-08-24 14:23:01 +00:00
defacer 3b905f1aab Adding ID attributes to the frames. Better than NAMEs, for one, and also I
have a devious idea to vanquish user window dropouts once and for all...
2004-08-24 14:02:40 +00:00
defacer f11d5ccb4f Improvements in the way that STDOUT output is handled (turns out the constant
exists in PHP >= 4.3 and it's not defined() at all).

Don't let delete_old_users() kill sockets-type clients, we can do that on
our own, thank you.

Comment some trace()s.
2004-08-24 13:58:01 +00:00
mchurch 75c180d2e3 Set Moodle filtering for wiki text only. 2004-08-24 13:39:03 +00:00
gustav_delius ae7fb33a55 disabled email_protect plugin, see Bug #1775 2004-08-24 12:50:57 +00:00
defacer 7a89b30fac I may not be as productive a translator as Koen, but the ? lines in my CVS
updates were approaching the third page boundary! ;-)
2004-08-24 12:27:20 +00:00
defacer d9bdf8cb96 Brand new spiffy shining bright!
1. REAL support for command-line parameters! Pretty good too!
   (actually don't tell Jon, it gets to his head)
2. Can you show the "users in chat" normally now? Please?
2004-08-24 12:22:13 +00:00
stronk7 1a2e6cfb12 Now some CFG->glossary_XXXX are checked in lib.php.
Bug 1764
(http://moodle.org/bugs/bug.php?op=show&bugid=1764)
2004-08-24 11:20:01 +00:00
gustav_delius df85e55750 All the modules in which I made changes require the latest version of datalib.php. 2004-08-24 10:13:41 +00:00
moodler dba8c2802e Merged some changes from HEAD 2004-08-24 06:48:42 +00:00
moodler 67f2fae171 FIxed Upgrade feedback from SQL 2004-08-24 04:57:00 +00:00
gustav_delius bc1ed83f43 fixed small typo 2004-08-23 21:27:52 +00:00
gustav_delius 2559db73e6 fixed bug 1748 2004-08-23 21:26:03 +00:00
gustav_delius 956ad3b8a8 removed ancient german release notes 2004-08-23 20:46:01 +00:00
gustav_delius 0420e8715d removed empty bullet point 2004-08-23 20:34:52 +00:00
ralf-bonn 5881329aee new strings for 1.5 2005-04-17 10:47:33 +00:00
ralf-bonn a4be4a8ea7 some changed translations 2005-04-17 09:46:04 +00:00
ralf-bonn 2cde0ef33f added string translations 2005-04-17 09:30:23 +00:00
stronk7 9b6618b9bc timeavailable was missing in backup and restore. :-) 2005-04-17 09:27:05 +00:00
koenr e7c350f794 various new help files for hu language pack.
unfortunately not xhtml compliant yet...
2005-04-17 08:51:12 +00:00
koenr e1435f48ad Rechecked HU language pack - strings should be xhtml compliant again - helpfiles not 2005-04-17 08:43:07 +00:00
gniske e03788782f Addet missing strings 2005-04-17 08:33:06 +00:00
gniske 0833a167a2 Addet missing lines 2005-04-17 08:23:16 +00:00
moodler 9f9e3576e1 This should fix the problems some poeple were having with the login block 2005-04-17 05:47:40 +00:00
ralf-bonn 218736737b added string translations 2005-04-16 22:09:27 +00:00
urs_hunkler 9dd5230b74 CSS for the tabs is now in the separate file "styles_tabs.css" for better handling. The tabs are now square. 2005-04-16 21:12:15 +00:00
ralf-bonn 51e132b2cf wiki like markup added 2005-04-16 19:22:55 +00:00
moodler 2a0f66b4f2 Fix bug in performance_info on IIS http://moodle.org/mod/forum/discuss.php?d=22013 2005-04-16 17:02:05 +00:00
skodak bfae4bf90d fixed typo 2005-04-16 14:13:17 +00:00
mits b73ab44abf polished. 2005-04-16 12:57:50 +00:00
moodler 47aa42e211 Re-arranged static Javascript a bit 2005-04-16 12:30:48 +00:00
moodler d6bf473ec2 Added file_get_contents for PHP before 4.3.0 2005-04-16 12:22:24 +00:00
moodler 9b10b65bbf Function get_group_teachers() added 2005-04-16 12:21:59 +00:00
moodler 69c52f27af Returns a Javascript file containing all the scripts found in modules
(named javscript.php)
2005-04-16 12:10:44 +00:00
moodler e3eae97b07 Don't try and set cookies here .... can cause errors (see bug 2941) 2005-04-16 11:15:45 +00:00
moodler 89286e242d Fixed link to message window 2005-04-16 02:31:41 +00:00
mits f380befe9c polished. 2005-04-15 15:33:28 +00:00
mits 0e9cf38932 fixed, based on standard theme. 2005-04-15 15:28:57 +00:00
moodler fec6d2c66a Resorting entry in list 2005-04-15 14:58:35 +00:00
moodler 35b04d5e0f During upgrade from pre- 1.5, set the theme to standardwhite so it works 2005-04-15 14:57:38 +00:00
moodler 72778c9a5a Two new general-purpose fields in assignment_submissions, so that
most assignment types won't need to create new tables for data

The fields are data1 and data2.

Backup/restore handled, Eloy   ;-)
2005-04-15 14:51:15 +00:00
bobopinna 1daed920e4 Removed field datadir form scorm table
Fixed a validation problem.
2005-04-15 14:34:48 +00:00
martignoni 346b77a53f Wiki-like text format documentation removed. 2005-04-15 14:30:41 +00:00
mits 18c7fb92ac polished. 2005-04-15 14:26:24 +00:00
martignoni 96479492bc More typos for meta-courses 2005-04-15 14:26:11 +00:00
moodler 1f5334dd0f Some quick formatting fixes 2005-04-15 14:24:46 +00:00
martignoni b8c081e733 Two corrections for meta-courses 2005-04-15 14:22:31 +00:00
moodler 6d4ecaec60 Tidied up the feedback - offline assignments are pretty much done 2005-04-15 14:19:24 +00:00
mits 37a7ad0474 translated some. 2005-04-15 14:15:43 +00:00
martignoni c04d704329 Show user what selection they made when updates are not allowed. 2005-04-15 14:14:55 +00:00
martignoni 951e1d6c35 1 more for new limit feature. 2005-04-15 14:13:36 +00:00
martignoni c793f60211 Added strings for new choice limit feature. 2005-04-15 14:12:47 +00:00
martignoni 31a175e2c7 'nothingtodisplay' string 2005-04-15 14:09:41 +00:00
martignoni 13e302c349 One new string to convert from wiki to markdown. 2005-04-15 14:08:41 +00:00
mits 1ce75e3647 polished, translated a new help file. 2005-04-15 14:07:35 +00:00
defacer d1b68cec76 Removing obsolete strings.
I 'm very sorry Nicolas, I had forgot to commit the "trimmed" english file
and this caused you to translate some strings again.
2005-04-15 13:55:57 +00:00
defacer 9f3c3f1218 Removing obsolete strings that confuse translators (my fault, sorry). 2005-04-15 13:54:24 +00:00
martignoni 66d08f2697 Added explanation about editing quizzes that have already been attempted by students, in response to bug 2924 2005-04-15 13:52:34 +00:00
martignoni d5b681ceca Added strings download and downloadextra 2005-04-15 13:51:13 +00:00
martignoni cede719f11 Fixed the problem reported in bug 2900 2005-04-15 13:48:52 +00:00
martignoni 78ad378a8e Some new strings from the refactoring ... 2005-04-15 13:42:45 +00:00
moodler 0f7d4e5e8a Cleaner updating of buttons and scales 2005-04-15 13:41:57 +00:00
martignoni 83e8aaa3b0 New lang file to internationalize all the timezone names. 2005-04-15 13:39:49 +00:00
martignoni 2c58259ec4 Added string for the email subject ('mailsubject'). 2005-04-15 13:27:24 +00:00
martignoni c6b96e057a Improvements to timezone import interface 2005-04-15 13:26:11 +00:00
martignoni 8ff361781f Added control for "filterall" config setting 2005-04-15 13:11:26 +00:00
martignoni 685f1fb5b4 New string definitions for the event calendar entries 2005-04-15 13:06:53 +00:00
martignoni e0cc1a3a14 Small correction 2005-04-15 13:04:15 +00:00
martignoni c185f8ab59 Some new (?) strings 2005-04-15 13:00:56 +00:00
moodler db5f501a92 I'm fussy .... ;-) 2005-04-15 12:58:14 +00:00
moodler 8672ee3267 Slight re-arranging 2005-04-15 12:54:25 +00:00
martignoni 107cf6be59 Some corrections and clean-up 2005-04-15 12:52:31 +00:00
gustav_delius a0b30329ef This should fix bug 2938 2005-04-15 11:32:44 +00:00
carlesbellver 2ddcdf6d37 *** empty log message *** 2005-04-15 11:28:59 +00:00
mits bdc316602b polished. 2005-04-15 11:10:20 +00:00
ethem b86b2303b5 file webquest.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:24 +00:00
ethem 594d1a369c file exercise.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:22 +00:00
ethem 05c5af84ae file grades.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:22 +00:00
ethem 5ac162a713 file hotpot.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:22 +00:00
ethem 44f2ebb9e9 file dialogue.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:22 +00:00
ethem 550ada76af file block_rss_client.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:21 +00:00
ethem 047e798297 file block_glossary_random.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:21 +00:00
ethem 280dc49ff4 file appointment.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:21 +00:00
ethem 8817cdd2b5 file admin.php was initially added on branch MOODLE_14_STABLE. 2005-04-15 08:31:21 +00:00
thepurpleblob 86cc5db12a get_record(...)->field generates a parse error on my machine, so I split
it into two steps where it occurs.
2005-04-15 08:13:27 +00:00
moodler 3cc633011d Hack fix for course languages in resources (bug 2922) 2005-04-15 07:05:59 +00:00
urs_hunkler b1200b9178 remove the outdated file "styles_font.css" 2005-04-15 06:49:02 +00:00
danmarsden cabf7c2397 show user what selection they made when updates are not allowed. 2005-04-15 01:40:22 +00:00
mits 80a1d8fec7 polished. 2005-04-15 00:08:57 +00:00
stronk7 fb3178058c Bug 2918. Change proposed by t.imoto.
(http://moodle.org/bugs/bug.php?op=show&bugid=2918)

Merged from MOODLE_14_STABLE
2005-04-14 23:20:33 +00:00
ikawhero 5c95906e03 Redundant parameters removed 2005-04-14 23:15:07 +00:00
mits 8d2cfbd9a4 polished. 2005-04-14 23:03:09 +00:00
stronk7 46043afff8 Now activity names support filterall in user activity reports. 2005-04-14 22:41:19 +00:00
mits 0fc31f6de8 polished, translated some. 2005-04-14 22:39:11 +00:00
stronk7 7cfc54b918 Now user reports support filterall.
Bug 2930 fixed too.
(http://moodle.org/bugs/bug.php?op=show&bugid=2930)
2005-04-14 22:37:43 +00:00
koenr 6a07a14d13 new translated file 2005-04-14 22:04:05 +00:00
koenr c16ebc1b39 adding new strings... 2005-04-14 22:03:28 +00:00
urs_hunkler 13ea92d5fb added readme and a preview screenshot plus pictures for the tabs. 2005-04-14 22:02:49 +00:00
urs_hunkler 4c98e85b33 updates
_ tabs, not jet ready
_ deleted direct call of CSS

_ other, minor changes
2005-04-14 21:58:39 +00:00
urs_hunkler a691a4ba92 I added class="active" to the tabs function. With this class each kind of tab has a special class and so the hover effect can be applied only to normal tabs, not to the selected and not to the inactive ones. I think it is a better signal for the user to get feedback for those tabs only which will react and change something on a click.
The behavior of the existing tabs in "standard" are not affected.
2005-04-14 21:43:18 +00:00
danmarsden c9ff813c41 new limit feature in choice. 2005-04-14 21:10:39 +00:00
stronk7 e05a9cc17c Fixed typo and don't use constants here to avoid more files to be included. 2005-04-14 19:39:42 +00:00
stronk7 09972dd340 Some minor things:
- Clean filename.
  - Applied format_string to choice->name and answers.
  - Better parameter handling.
Remaining:
  - A lot of notices in line 148, breaking output with debug enabled!
2005-04-14 19:00:23 +00:00
moodler 560811bbc9 Header and footer need to come from current_theme Always 2005-04-14 18:27:48 +00:00
moodler 55fcc21e4d Forgot some debugging 2005-04-14 17:59:25 +00:00
moodler be86672db2 Better updating of the parent page when grading, now works even when
columns are closed
2005-04-14 17:56:03 +00:00
moodler 0ce8ba58e8 Store flextable session cache in an independent way so they don't reset each other 2005-04-14 17:43:18 +00:00
moodler df5e748b63 Same color as "unread" posts 2005-04-14 17:11:58 +00:00
moodler 9437c85446 Shane and I have been working on this vastly improved grading interface :-D 2005-04-14 17:10:40 +00:00
moodler c70fa20146 New function shorten_text to truncate text neatly 2005-04-14 17:03:11 +00:00
moodler 0792e9a8af nothingtodisplay string 2005-04-14 15:37:29 +00:00
moodler 68ffc100fa Don't just print nothing - print "nothing to display" 2005-04-14 15:35:27 +00:00
moodler d59269cfa6 Better updating of table from popup 2005-04-14 15:23:48 +00:00
gustav_delius 1452ca7b0b Added explanation about editing quizzes that have already been attempted by students, in response to bug 2924 2005-04-14 15:08:54 +00:00
moodler 14a4e0283a Fixed a typo 2005-04-14 14:13:50 +00:00
ikawhero 5eefbc3b3c Oops! Removed debug echo line. 2005-04-14 14:13:19 +00:00
ikawhero 306dc7e5c5 SQL update to use JOIN rather than seperate queries 2005-04-14 14:09:06 +00:00
moodler dc28eedec4 button_to_popup_window can now return a string 2005-04-14 13:56:29 +00:00
moodler 6b6435db47 LOnger caching options 2005-04-14 13:49:38 +00:00
fiedorow 380e47f50b Check slasharguments setting in algebradebug.php too 2005-04-14 13:39:54 +00:00
moodler 1017b8a5c6 Fixed the assignment upgrade 2005-04-14 13:37:06 +00:00
moodler 36a3ed4ce1 Some new strings from the refactoring ... 2005-04-14 13:25:21 +00:00
fiedorow 781cac7273 Added link to admin/config.php for slasharguments 2005-04-14 13:24:51 +00:00
moodler b0f2597e17 Refactored Assignment Module
============================

This new assignment module allows Plugin Assignment types.  This should
allow a whole lot of new stuff to easily be placed in Moodle without
making the modules list longer for no good reason.

This checkin is still a really rough version that needs work on it.
Normally I would want it better than this to check in, but I need
to collaborate with Shane on the remaining code and CVS is the best
way.

Give it a day or two to settle in.  :-)

This is the last thing I wanted to get into 1.5.  Getting close now!!

Cheers!
Martin
2005-04-14 13:24:40 +00:00
defacer 4f2dbde9f8 Fix for bug 2916, silly silly named constant mistake.
Since we 're at it, fixed another bug: automatic recalculation of DST table
without having to logout if the user changes his timezone now works correctly.
2005-04-14 12:20:09 +00:00
ethem 1dfa369bd3 time zones 2005-04-14 12:01:23 +00:00
mits 6263776a8d fixed, based on standard theme. 2005-04-14 09:40:53 +00:00
moodler be9d2980eb Some styles for messaging 2005-04-14 09:29:25 +00:00
moodler 5d6b319bd4 Some serious performance improvements to messaging!
Scripts have been split up and trimmed down.

If a discussion window is left open then updates happen on a slower
and slower rate (exponentially increasing delay) to help keep
load low on a server.
2005-04-14 09:28:07 +00:00
fiedorow 9dd9a4267a texdebug.php now checks slasharguments setting 2005-04-14 04:27:32 +00:00
mits d71409c387 sorted based on /lang/en/choice.php. 2005-04-14 03:23:34 +00:00
moodler cb525e6ef0 Sorting the file :-) 2005-04-14 03:04:45 +00:00
moodler 4febb58f71 Slightly more correct version ;-) 2005-04-14 02:13:47 +00:00
mits 03c93c3d74 polished. 2005-04-13 23:59:19 +00:00
danmarsden 149c7b63e5 new limit feature in choice. 2005-04-13 23:14:38 +00:00
mits f9550ffc9b polished. 2005-04-13 23:13:17 +00:00
danmarsden 2404a1a4f8 There isn't a limit of 6 choice's anymore. 2005-04-13 23:04:04 +00:00
danmarsden 8b9e98bc8a 1 more for new limit feature. 2005-04-13 23:02:22 +00:00
stronk7 35d07065fc Avoid one debug 2005-04-13 17:04:26 +00:00
gustav_delius 99eb4d955c forgot something in the last commit 2005-04-13 16:05:46 +00:00
gustav_delius 983a7390df Random questions should be hidden 2005-04-13 16:02:20 +00:00
thepurpleblob 4c0fdc283f Added strings for new choice limit feature. 2005-04-13 15:11:44 +00:00
mits ec4b6e7919 fixed, based on standard theme. 2005-04-13 12:22:37 +00:00
thepurpleblob c4aa4e8ff6 Added direct link to download exported file rather than having
to search for it.
2005-04-13 10:32:45 +00:00
thepurpleblob 94dae5f108 Added strings download and downloadextra 2005-04-13 10:28:59 +00:00
gustav_delius 1e42af2786 added paging bar also at the bottom of the table 2005-04-13 09:57:10 +00:00
moodler 63e20b8854 Merge fix from stable 2005-04-13 09:19:48 +00:00
gustav_delius c3a69c9233 Closed some <input> tags for xhtml compliance 2005-04-13 09:07:53 +00:00
gustav_delius fdf49de1ca Fixed the problem reported in bug 2900 that the question count on the category page also counted old questions. 2005-04-13 08:48:23 +00:00
thepurpleblob 33b3562d00 Fixed a few minor(ish) points that Eloy spotted:
Broken non-slasharguments link format. <hr /> translation broken.
2005-04-13 08:27:18 +00:00
moodler af3014b489 Merged logic fix for replying from STABLE 2005-04-13 08:27:09 +00:00
moodler ad2520c77e Align report links to the right 2005-04-13 07:47:09 +00:00
moodler 7f3f41ecfb Added some reportlink classed to the report links 2005-04-13 07:45:47 +00:00
thepurpleblob 551d79f848 Fixed small sql error. 2005-04-13 07:34:43 +00:00
mits 71cd1fa9f9 polished. 2005-04-13 07:12:38 +00:00
mits 758c63a608 polished. 2005-04-13 07:06:24 +00:00
moodler 535136bde7 Correct calls to require_course_login 2005-04-13 07:00:35 +00:00
moodler 1596edff55 Added general robustness to require_course_login 2005-04-13 06:59:13 +00:00
mits 5458c4e7c2 translated some.
Thanks Martin for lang.php fix!
2005-04-13 04:37:13 +00:00
moodler 1ce8d3f0bd More robust at handling hyphens (bug 2899) 2005-04-13 04:18:24 +00:00
moodler 22e5761eb3 Minor formatting 2005-04-13 04:17:25 +00:00
moodler 85ed4448d3 FIxed a notice 2005-04-13 03:18:12 +00:00
mits 76cabcbd41 translated new string. 2005-04-13 01:38:23 +00:00
michaelpenne 0f2bff9d7b FIXED: questiontypes help button was looking for the wrong help file 2005-04-13 00:01:43 +00:00
stronk7 9863d5149e One new string to convert from wiki to markdown. 2005-04-12 23:59:13 +00:00
stronk7 85b9471fb4 Now all the wiki formated texts are converted to markdown
by the restore process. Such conversion is performed for
every backup file prior to 2005041100.
Wiki internal links are dinamically changed and then,
converted to Markdown. Bye, Wiki! ;-)
2005-04-12 23:42:56 +00:00
stronk7 75766456f9 Now all the wiki formated texts are converted to markdown
by the restore process. Such conversion is performed for
every backup file prior to 2005041100.
Wiki internal links are dinamically changed and then,
converted to Markdown.
2005-04-12 23:40:40 +00:00
mits fd6e7c1ac4 translated new string. 2005-04-12 22:58:05 +00:00
danmarsden ae2f3b4cbc output to excel and text now checks whether unanswered column should be shown before outputing data. 2005-04-12 22:53:22 +00:00
danmarsden 7b056dd39a problem with "not answererd yet" column on anon responses page. - diplaying admins and hidden teachers. 2005-04-12 20:49:51 +00:00
koenr b5cb367e32 Lot of new strings and new help files from Maryia.
Strings are XHTML compliant
2005-04-12 20:16:40 +00:00
thepurpleblob f0e13cf157 Whoops - forgot the db prefix in the where clause 2005-04-12 20:04:50 +00:00
thepurpleblob c5c36dac9f Whoops! Forgot prefix on the DB where clauses 2005-04-12 19:57:51 +00:00
stronk7 8e4d01032a Small (but important) typo solved. It was preventing coursesql to work. 2005-04-12 16:56:34 +00:00
stronk7 805788218b Converting wiki to markdown in old (<2005041100) courses.
First step. Launcher created.
2005-04-12 16:10:47 +00:00
thepurpleblob a8093758b1 Whoops - new strings now taken from correct lang file. 2005-04-12 15:26:57 +00:00
thepurpleblob 7b0272a78f Fixed lots of dodgy html - unbalanced tags, missing quotes around attributes etc.
Much more to go - bad page this!
2005-04-12 15:20:57 +00:00
thepurpleblob bb24a23941 Added string for the email subject ('mailsubject'). 2005-04-12 14:11:43 +00:00
thepurpleblob 14333242e3 Made mail subject line text in language pack, not hardcoded. 2005-04-12 14:10:41 +00:00
gustav_delius 55a77c6c66 navigation bar now uses appropriate strings for editing quesitons or editing quiz. 2005-04-12 08:48:13 +00:00
gustav_delius 4f764fc4d3 Thanks to a suggestion by Martin published categories are printed with class="published" and unpublished ones with class="unpublished". 2005-04-12 08:15:47 +00:00
thepurpleblob 59787e1894 Update wiki-like text format to Markdown. 2005-04-12 07:53:02 +00:00
thepurpleblob 5d48f310a5 Update wiki-like text format to Markdown 2005-04-12 07:52:31 +00:00
thepurpleblob 2e38720c21 Update wiki-like text format to markdown. 2005-04-12 07:15:17 +00:00
gustav_delius ad8394a6c5 Ordinary unpublished categories were greyed out. That was confusing and I have now removed it. 2005-04-12 06:50:47 +00:00
gustav_delius 4fe082e86c quiz_decimalpoints now works correctly also as an advanced option. 2005-04-12 04:48:11 +00:00
moodler ce50cc7018 Don't have a cow when a Wiki text is encountered 2005-04-12 03:14:29 +00:00
defacer 257e3f4c61 Utilize $CFG->calendar_adminseesall and part of Penny's patches (for bug 2804)
to improve performance: if the admin wants to see all events, there's no need
to make even one query for course groupmode.
2005-04-12 01:09:31 +00:00
defacer b53f385b2c More cleanups, some useless code thrown out and simplified. 2005-04-12 00:12:05 +00:00
defacer 39f899cd1c More required_param and optional_param goodness. 2005-04-12 00:05:06 +00:00
defacer 3b723f3b1d Simplify the code, use optional_param, fixed one more instance of literal 1 = SITEID 2005-04-11 23:54:20 +00:00
defacer 0ad072dea5 Simplify the code a bit and move the visible = 1 SQL check out of the main part of the WHERE
statement. This might be actually fixing an operator precedence logic bug.
2005-04-11 23:24:23 +00:00
defacer 6e957c415c Better bracketing for event-selecting SQL (see bug 2804) 2005-04-11 23:21:29 +00:00
defacer 55d9c93a11 Reading some code carefully...
This small check is already done a couple lines above.
2005-04-11 23:13:41 +00:00
danmarsden 647396597a now allows download of choice responses to excel or text file 2005-04-11 22:59:32 +00:00
defacer e2aa618b77 Fix for bug 2821. I 'm not sure if it makes any difference, but it cannot hurt. 2005-04-11 22:58:10 +00:00
danmarsden b9135eca2c fix for Bug #2883 - Choice Mod, - can't delete an existing option 2005-04-11 20:34:13 +00:00
mits 0e33116216 translated some. 2005-04-11 19:04:26 +00:00
moodler 63c1418986 Groups are more sticky for students browsing participants 2005-04-11 18:25:09 +00:00
stronk7 60c2b9b35c Minor changes:
- Costants are defined.
   - Avoid some notices if records aren't found.
2005-04-11 17:12:47 +00:00
koenr a36610048a removing wiki-like reference 2005-04-11 16:54:14 +00:00
koenr 9ca4b42324 notice for discontinued function until the next time I open this document 2005-04-11 16:49:45 +00:00
koenr 7b17f90fb8 removing wiki-like reference
I keep wiki.html for a while for backwards comptibility
2005-04-11 16:47:38 +00:00
stronk7 fccc341d38 es Help files updated. Credits for Benito Arias.
(having some sort of problem with his CVS client) ;-)
2005-04-11 15:51:49 +00:00
thepurpleblob 107cafd107 Wiki-like text format documentation removed. 2005-04-11 14:12:36 +00:00
thepurpleblob 9af891b3bb Upgraded Markdown renderer to latest version: 1.0.1 (loads of fixes) 2005-04-11 14:08:01 +00:00
thepurpleblob 1e097367df Wiki-like format removed. Rendering class no longer required. 2005-04-11 13:49:38 +00:00
thepurpleblob 6a6495ff8f Removed wiki-like from list of formatting options. Any that shows up now
will simply generate an error.
2005-04-11 13:46:06 +00:00
thepurpleblob bdbbb0b6f3 Now 2005041100: Wiki-like formatted text converted to Markdown 2005-04-11 13:38:12 +00:00
thepurpleblob ad96fa8e28 Wiki-like format converted to Markdown in journal intro and journal entries 2005-04-11 13:37:33 +00:00
thepurpleblob 2078563daa Now 2005041100: Update wiki-like formatted text to Markdown 2005-04-11 13:27:20 +00:00
thepurpleblob 352e5b6363 Update wiki-like to Markdown in glossary entries and glossary comments. 2005-04-11 13:26:46 +00:00
thepurpleblob 229b068d44 Now 20050411: Convert wiki-like format in forum posts to Markdown format. 2005-04-11 13:05:38 +00:00
thepurpleblob 62caf19111 Wiki-Like format in forum posts is converted to Markdown format. 2005-04-11 13:04:48 +00:00
thepurpleblob 7ae84175d9 Now 2005041100. Update wiki-like text format to Markdown. 2005-04-11 12:54:17 +00:00
thepurpleblob 68854d74ec Update all wiki-like text to Markdown. 2005-04-11 12:53:35 +00:00
thepurpleblob f74d035f2a Now 2005041100: Update wiki-like description to Markdown. 2005-04-11 12:44:57 +00:00
thepurpleblob 6fd831d6c4 Update converts all wiki-like descriptions to Markdown. 2005-04-11 12:43:35 +00:00
thepurpleblob fa33cfe99e Version 2005041100. Update converts wiki-like resources to Markdown. 2005-04-11 12:33:47 +00:00
thepurpleblob c0de5d55a5 Added update to convert wiki-like format to Markdown format 2005-04-11 12:32:46 +00:00
thepurpleblob 2fbc787ce7 Fixed a couple of bugs and now escapes text going to database. 2005-04-11 12:30:16 +00:00
thepurpleblob 11a052a652 Added function addslashes_object(). 2005-04-11 12:29:17 +00:00
gustav_delius 15c4e4ed8a file penaltyscheme.html was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-04-11 12:25:12 +00:00
moodler e84a246a55 FIxed a problem I wasn't seeing because I was in debug mode.
get_record_sql now has a second parameter that specifies when
we are expecting to take one record from many (to help with debugging)
2005-04-11 12:07:49 +00:00
defacer ec6dc70353 Removing obsolete language strings. 2005-04-11 10:49:17 +00:00
thepurpleblob 8a7d9d15f2 Fixed some of the incomplete or incorrect function documentation comments. 2005-04-11 10:18:33 +00:00
mits 2d4a2e5348 fixed, based on standard theme. 2005-04-11 08:47:05 +00:00
moodler a702e65741 At site level, admin can see user posts from ALL courses 2005-04-11 08:43:28 +00:00
moodler 9a2cd9ca5e Just rearranging a little (not permanent) 2005-04-11 08:32:19 +00:00
moodler a272c24c67 Show all footer stuff when debug is on 2005-04-11 08:29:48 +00:00
moodler 6927f0e726 Insert all the distributed timezones upon upgrade 2005-04-11 08:11:17 +00:00
moodler a8021f5641 Slight timezone cleanups 2005-04-11 08:01:58 +00:00
moodler 3f0b2d4c46 Correct use of forcetimezone 2005-04-11 07:48:54 +00:00
thepurpleblob 4ab00ace5b Tidy up and add function to do actual conversion given db table, field etc 2005-04-11 07:48:47 +00:00
moodler 88193fd5ef Clarify performance info a bit 2005-04-11 07:40:04 +00:00
moodler 00b60650f2 Added a span around performanceinfo script name 2005-04-11 07:36:52 +00:00
bobopinna c7ba7d1197 fixed two typos in manifest parsing 2005-04-11 07:31:07 +00:00
carlesbellver 92f43f0464 *** empty log message *** 2005-04-11 07:21:35 +00:00
bobopinna 206f68cf98 fixed a typo. 2005-04-11 06:48:39 +00:00
martinlanghoff 6e6053bd18 Merged from MOODLE_14_STABLE. Added option to cache langlist in dataroot/cache/languages. If enabled saves around 10MB of memory and 40 includes (some really large). In HEAD we also get a nice option select in admin->variables. 2005-04-11 06:41:08 +00:00
bobopinna e170f66546 Fixed mysql db design 2005-04-11 06:15:50 +00:00
moodler a8cb9ee142 Latest tags 2005-04-11 01:36:49 +00:00
koenr 03df332c04 ncr notation 2005-04-10 23:30:06 +00:00
stronk7 958ab2530d The social_activities block is working with the new filterall style. 2005-04-10 23:12:35 +00:00
stronk7 0c75bc8c3d The site_main_menu block is working with the new filterall style. 2005-04-10 23:08:24 +00:00
stronk7 c3cb9fb9a7 The news_items block is working with the new filterall style. 2005-04-10 23:02:19 +00:00
stronk7 8a2381f6b9 Now Journal mails support filterall. 2005-04-10 22:38:22 +00:00
koenr 6f612f066e new strings 2005-04-10 22:30:49 +00:00
koenr 17c38f5002 New hu strings and various improvements.
Rechecked XHTML compliance - should be ok again
2005-04-10 21:46:41 +00:00
mits 69e56ec29f polished. 2005-04-10 21:05:59 +00:00
defacer a03d61346e 1. get_records_csv also needs a table name in addition to file name.
2. is_readable() check before trying to fopen() http://, if you happen to not have
   an internet connection this prevents ugly failures.
2005-04-10 20:28:48 +00:00
defacer 6571aa7cbd Timezones always exist (the trivial ones, at least). 2005-04-10 20:25:41 +00:00
mits f9e90eee83 timezone.php garbled characters fixed. 2005-04-10 19:10:45 +00:00
moodler 8edffd15f6 LIMIT timezones returned to the latest one 2005-04-10 18:27:15 +00:00
moodler 19626cf0a9 Handle forcetimezone correctly (99) 2005-04-10 18:24:06 +00:00
moodler bcb1636ace Added forcetimezone to defaults 2005-04-10 18:23:40 +00:00
moodler 2776bf19ff SImplify, fix menus 2005-04-10 18:23:18 +00:00
stronk7 b79aa685fb Finally we have to use the 'nomatch' because we can come
from other script (assess.php).

filterall work in progress.
2005-04-10 18:22:18 +00:00
moodler 5404e914fb Going back to the slower but always-accurate timezone list method 2005-04-10 17:51:48 +00:00
moodler 1bb1333b0b Centralised timezone list to a function 2005-04-10 17:35:17 +00:00
stronk7 05097bb889 Now choice report log action is supported by restore. 2005-04-10 16:57:08 +00:00
stronk7 408f7c41b4 choice report log action wasn't saving cmid in logs table. 2005-04-10 16:55:32 +00:00
stronk7 da423e13df Added support to survey-download action in restore. 2005-04-10 16:54:05 +00:00
stronk7 c3cc897b83 Deleted one debug message and added one minor change. 2005-04-10 16:47:03 +00:00
stronk7 973ec7b671 Now wiki->name supports $CFG->filterall
(specifying a multilang name allows to have different start pages too!)

I've found some bad XHTML in this module and some inconsistencies
with different cased page-names. Are wikipages different if their name case is
different? If no, we should fix it.
2005-04-10 15:30:04 +00:00
andreabix 4cc87d57cd Various problem fixing 2005-04-10 14:20:50 +00:00
andreabix 72edbc050c Various problem fixing 2005-04-10 14:06:36 +00:00
moodler 7a3290ed20 No need to flag notices about missing database stuff in blocks 2005-04-10 13:51:19 +00:00
mits bcce3038f0 translated some. 2005-04-10 11:59:50 +00:00
defacer dddb014acf 1. make_timestamp: It's easy to be a fool, but to do it like me requires innate talent.
2. usertime: I think that the way Moodle is written, if this compensates for DST lots
   of things are going to break. I found a few myself and decided to revert the behavior
   until such time as a proper code review can be made.
2005-04-10 09:41:46 +00:00
moodler dd4b3f707e Changed a label 2005-04-10 09:33:46 +00:00
moodler 3d0cc9c6fc Removed some blank lines 2005-04-10 09:33:05 +00:00
moodler a1e93da26c Improvements to timezone import interface 2005-04-10 09:31:58 +00:00
defacer c9e55a2583 LIMIT 1 was already being introduced by get_record_sql, and GMT offsets weren't working due to the bad query. 2005-04-10 09:31:21 +00:00
defacer fdae5b1314 The strict type checking was causing trouble. In any case, forcing arrays to
NOT mix integer and string keys is a good workaround.
2005-04-10 09:19:28 +00:00
moodler 25290a82c6 Adding standard list of timezones to distribution 2005-04-10 09:18:08 +00:00
mits 6398837df0 translated some. 2005-04-10 09:17:16 +00:00
moodler 5baa0ad6f2 Added update_timezone_records 2005-04-10 09:15:15 +00:00
moodler 051250a671 Removed old file 2005-04-10 07:08:55 +00:00
moodler 76458066e0 Working on timezone management interfaces and lists 2005-04-10 07:08:03 +00:00
gustav_delius 68396ed91f If help file is not found in language directory then look in language subdirectory of module directory. 2005-04-10 05:08:31 +00:00
mits 9613945434 polished. 2005-04-09 23:38:45 +00:00
koenr 7cf5c6b5ea string files should be XHTML compliant now
fixed various errors
2005-04-09 20:20:22 +00:00
koenr 85c1fd35c7 string files should be XHTML compliant now 2005-04-09 19:46:28 +00:00
koenr f301c0da96 removing empty file 2005-04-09 19:10:29 +00:00
koenr 30d5b943bd string files should be XHTML compliant now 2005-04-09 18:44:38 +00:00
koenr ddad027117 removing empty files 2005-04-09 18:02:18 +00:00
vthung 5483eb50be Add philosophy.html to docs 2005-04-09 17:34:05 +00:00
vthung a186637708 Add module_files.txt to docs 2005-04-09 17:30:57 +00:00
vthung 0b44b6876b Add README.txt to docs 2005-04-09 17:29:07 +00:00
vthung aaa2a182e4 Add features.html to docs 2005-04-09 17:27:38 +00:00
vthung c7bd881dd2 Add credits.html to docs 2005-04-09 17:25:53 +00:00
vthung ce03612b02 Add developer.html to docs 2005-04-09 17:23:56 +00:00
moodler c0e7fc2185 Remove group links for non-editing teachers 2005-04-09 17:23:51 +00:00
vthung f7a1cd67bf Add future.html to docs 2005-04-09 17:21:45 +00:00
vthung 09b410d798 Add license.html to docs 2005-04-09 17:15:01 +00:00
vthung 330d39d39f Add release.html to docs 2005-04-09 17:12:18 +00:00
mits 6914dc526b polished. 2005-04-09 13:18:12 +00:00
koenr 88f019cf5f string files should be XHTML compliant now 2005-04-09 10:44:31 +00:00
defacer ce9707f5aa As there was no armageddon since I commented out the "old" timezone setting
HTML yesterday, I 'm now completely removing it.
2005-04-09 10:20:53 +00:00
defacer 88c39f4a91 Update variables configuration to allow setting non-trivial timezones for the server as well. 2005-04-09 10:19:09 +00:00
defacer 989585e933 Major step forward once more: calculate_user_dst_table() now always sees the
user's effective timezone correctly using get_user_timezone(). It also remembers
which timezone was in effect when it cached its calculations, so if the user's
effective timezone changes for any reason the table is automatically re-computed.

******
NOTICE
******

From this point onward, DST support should be working again, and there are no more
visible hurdles in the way. This means it should STAY working correctly until 1.5.
2005-04-09 10:12:30 +00:00
defacer 6dc8dddc62 Removed another unnecessary get_user_timezone_offset() call. 2005-04-09 09:50:08 +00:00
defacer 13e5588de8 Removed unneeded get_user_timezone_offset() call; usertime() does it anyway. 2005-04-09 09:47:01 +00:00
defacer 02a5309439 If $CFG->forcetimezone is not empty, don't allow users to change the timezone from
their profiles, and instead show a disabled menu with the forced timezone selected.

Also, fixed a get_string (reading from wrong lang file).
2005-04-09 09:36:47 +00:00
moodler 7b9e355e43 Fixed an error in the timezones 2005-04-09 08:44:49 +00:00
mits bbfa098146 polished. 2005-04-09 02:55:09 +00:00
mits 3bc555efac added new translated file. 2005-04-09 02:22:02 +00:00
michaelpenne 7227cef5f6 added a few new string definitions for the event calendar entries 2005-04-08 21:40:07 +00:00
michaelpenne 97c4410778 added calendar event code to add, update, and delete instance 2005-04-08 21:38:09 +00:00
defacer e8904995f0 Introduce the "new" get_user_timezone, and implement get_user_timezone_offset in terms of it. 2005-04-08 20:32:40 +00:00
defacer 02c2881b40 The user Timezone setting now allows both trivial and non-trivial timezones.
I fervently hope we haven't left any hidden "unupdated" code that breaks with this.
2005-04-08 20:28:19 +00:00
defacer 256ab4c54a Correct handling of integer keys in the presets array.
Tthey cannot be treated as strings unless they 're formatted as floats first.
A fine way to waste half an hour.
2005-04-08 20:26:36 +00:00
defacer b529815b9c Remove some useless strings. 2005-04-08 20:24:20 +00:00
defacer 68c0264e1b Changes to mdl_user:
* Change timezone to varchar(100) (to support non-trivial timezones)
* Drop timezonename (will not be used after all)
2005-04-08 19:50:01 +00:00
defacer f3729a941d New lang file, we 're going to internationalize all the timezone names in it. 2005-04-08 19:37:15 +00:00
defacer 9fb7ea024d get_string() should read stuff from timezones.php 2005-04-08 19:36:15 +00:00
defacer 9a382a5c5e Setting $CFG->forcetimezone now fully works.
One more item crossed out from the TODO list.
2005-04-08 19:35:05 +00:00
defacer ffc141e4be Don't add trivial timezone records in the db, we 're going to handle them manually. 2005-04-08 19:34:19 +00:00
defacer 97e28cc66d Make choose_from_menu behave correctly in the obscure case where an array
contains a zero key and the "selected" variable is a string. Argh.
2005-04-08 19:32:31 +00:00
mits 63f6f13776 translated new help files. 2005-04-08 16:39:54 +00:00
mits 748ff2928b translated new help file. 2005-04-08 16:15:13 +00:00
mits 7aeaf24d6b translated some. 2005-04-08 15:58:53 +00:00
bobopinna 5b9ea0ebb5 Fixed db definition and upgrade 2005-04-08 15:58:40 +00:00
gustav_delius 8035268825 complete the renaming of get_user_timezone to get_user_timezone_offset started by Martin 2005-04-08 14:24:10 +00:00
andreabix 2f1c8b94cd Other problems fixing 2005-04-08 13:06:21 +00:00
andreabix 2c6dc1879d Updated classes and fixed first group of problems 2005-04-08 11:39:06 +00:00
thepurpleblob b323d8f8f3 Working version - needs integrated into Moodle and (probably) some tinkering. 2005-04-08 08:56:20 +00:00
moodler 494b9296e9 Renamed get_user_timezone to get_user_timezone_offset, because Jon has
plans for that function name
2005-04-08 07:42:50 +00:00
moodler 5899f67208 Fixed style of heading and some stringZ 2005-04-08 06:15:14 +00:00
moodler 71e677aacb Cleaned up the settings screen 2005-04-08 06:07:30 +00:00
moodler 7ead0ce017 Cleaned up formatting and removed a notice 2005-04-08 05:48:02 +00:00
defacer 2665e47afc usertime() now compensates for DST. 2005-04-08 05:39:53 +00:00
moodler 538ce38a04 Added control for "filterall" config setting 2005-04-08 05:39:37 +00:00
defacer 43b59916f6 get_user_timezone() should now be working for users with new-style timezone settings.
get_timezone_record() function added to cache some db queries.

I haven't been able to test this yet, will do later.
2005-04-08 05:28:39 +00:00
mits 996d1f1e1c polished. 2005-04-08 05:25:38 +00:00
defacer b86e6ba918 is_executable() doesn't exist in PHP/Win < 5.0.0 2005-04-08 05:01:09 +00:00
mits edfc5b5ce1 polished, new translated help file added. 2005-04-08 03:54:13 +00:00
moodler aed2aee4ea Trim all user data 2005-04-08 02:24:09 +00:00
koenr d9d3a482a9 string files should be XHTML compliant now 2005-04-07 23:09:32 +00:00
danmarsden 03ff2092c4 $options used by something else. 2005-04-07 22:22:22 +00:00
michaelpenne 6cd8c59212 Fixed exception handling, students can now be reincluded in grading
Fixed drilldown by category view for students
Fixed download as text/excel this just shows raw points and a total
Changed tabbed view to only show advanced setting tabs if use advanced is set to yes
2005-04-07 20:47:03 +00:00
koenr 6571975981 string files should be XHTML compliant now 2005-04-07 19:40:57 +00:00
stronk7 eace05efc3 One minor change... 2005-04-07 17:11:07 +00:00
stronk7 68a91df665 Now this file contains XHTML strings again. :-) Thanks for the report, Koen.
Benito and I have been talking to avoid this problem in the future. B-)
2005-04-07 16:46:44 +00:00
mits a745a5d155 polished. 2005-04-07 15:38:28 +00:00
mits 29db9c4288 polished. 2005-04-07 15:32:14 +00:00
thepurpleblob 92f72f4754 Everything working except lists (next job). 2005-04-07 14:34:31 +00:00
martignoni 4f76552a91 Little bug corrected 2005-04-07 13:45:40 +00:00
barias 14a7f4149f Latest updates in spanish translation 2005-04-07 11:10:22 +00:00
mits 2937fa5a6a removed <br /> from "enrolmentkeyfrom" 2005-04-07 07:22:45 +00:00
koenr e9efea250d string files should be XHTML compliant now 2005-04-07 07:14:52 +00:00
mits 4e8885fad9 Polished.
Thanks to Paul Shew.
2005-04-07 07:13:57 +00:00
danmarsden a3e22b3b9d no backticks in postgres!! 2005-04-07 03:17:43 +00:00
danmarsden db38d2c92e wrong table names! :-) Bug #2848 2005-04-07 01:18:51 +00:00
martinlanghoff 853df85e56 Performance/footprint profiling patch complete -- is enabled by CFG->default>7 or by a few defines in your config.php. 2005-04-07 00:11:28 +00:00
koenr a1e3bcf173 file not translated 2005-04-06 22:49:31 +00:00
koenr 3e87b75854 string files should be XHTML compliant now 2005-04-06 22:40:31 +00:00
mjollnir_ 2eab06687a Merged from MOODLE_14_STABLE: Fixing problem with set up of site course 2005-04-06 22:25:31 +00:00
mits e05d5931a2 polished, new help file added. 2005-04-06 22:22:05 +00:00
mjollnir_ 28a858cf02 Syntax fix for postgres upgrade for choice (now upgrades cleanly). Postgres7.sql missing a table, I think. Bug #2848 2005-04-06 21:20:10 +00:00
koenr 7a52462f57 string files should be XHTML compliant now 2005-04-06 21:18:46 +00:00
koenr ce7c24a3d2 string files should be XHTML compliant now 2005-04-06 20:14:25 +00:00
stronk7 cd5d2d4b74 Now survey->name supports filterall. 2005-04-06 18:20:05 +00:00
moodler bfe839b8ce Fixed missing bracket 2005-04-06 16:52:07 +00:00
stronk7 885b6007c7 Now label->name is working with filterall.
(not really important because it is never shown, but...)
2005-04-06 15:20:33 +00:00
defacer a2f964137d Fix for bug 2837 (probably). 2005-04-06 11:04:56 +00:00
danmarsden 6308ca52a5 fix of postgres db upgrade. - Penny please test! :-) 2005-04-06 09:34:17 +00:00
defacer 111bb080ac Fix some warnings when upgrading but no scorms exist. 2005-04-06 08:21:16 +00:00
bobopinna 3a94d06df6 New data model system 2005-04-06 08:07:03 +00:00
koenr 1085b4574b pollishing scoes 2005-04-06 07:50:26 +00:00
martinlanghoff 66552670ba Improved performance info reporting and logging. Removed duplicate calls. 2005-04-06 07:36:10 +00:00
koenr 3a4838234f making strange notice a bit clearer 2005-04-06 07:34:06 +00:00
martinlanghoff c2fd9e955a Improved performance info reporting and logging. Needs some work on the configuration front still. 2005-04-06 07:34:05 +00:00
koenr e55476c7d2 changed bits to Bytes 2005-04-06 07:33:32 +00:00
martinlanghoff 232eafed03 Fixed notation for (mega|giga|kilo)bytes 2005-04-06 07:16:43 +00:00
moodler ddd7a47ac1 Removed a notice from isteacheredit 2005-04-06 06:26:38 +00:00
moodler dcc17b63b1 More improvements to isteacher() logic (and isadmin now uses $USER->admin too) 2005-04-06 06:20:59 +00:00
moodler 5e04ee0c4f More efficient logic for isteacher() 2005-04-06 05:53:24 +00:00
mits a2c40feea0 polished. 2005-04-06 04:44:44 +00:00
danmarsden abd7dfb38c this is all wrong - will try to clean up later tonight 2005-04-06 04:10:27 +00:00
mits d3f98ebd5e new translated help file added. 2005-04-06 02:59:52 +00:00
mjollnir_ 4c9c104a22 One more syntax fix for scorm postgres upgrade. You can't do WHERE 1 in postgres 2005-04-06 02:09:16 +00:00
mjollnir_ 7965748f14 Fixing a few syntax problems in scorm upgrade for postgres. Upgrade still fails (this relates to bug #2832 which I'm about to update) 2005-04-06 02:08:06 +00:00
mjollnir_ 9d99be2aa4 Fixing postgres upgrade for quiz 2005-04-06 02:04:17 +00:00
mjollnir_ 173a1cb5ef Some syntax fixes for postgres upgrade for choice. Still failing though, I am about to create a bug report for it 2005-04-06 01:55:52 +00:00
mjollnir_ bb2889b41d Fix postgres upgrade for deletion of course_modules.deleted flag 2005-04-06 00:22:36 +00:00
mits bfab6c46ac polished. 2005-04-05 23:11:03 +00:00
stronk7 524d7b9a7b One missing string to make choice->name works under filterall
(showing anonymous results)
2005-04-05 23:08:00 +00:00
michaelpenne 86b7a42880 now if you leave the lesson the the middle of a bunch of branch tables, you will return to the last one you answered. Also, if show grades is off in course settings, the lesson will process and store the grade for the student but then redirect the student to the course page immediatly. 2005-04-05 22:42:34 +00:00
stronk7 72f6ad8627 Now resource->name is working under filterall. 2005-04-05 22:37:06 +00:00
martinlanghoff 558f7cd09e Merged from MOODLE_14_STABLE - Fixed 'Can't save changes in editor configuration' form bug reported in http://moodle.org/mod/forum/discuss.php?d=21359 2005-04-05 22:33:41 +00:00
danmarsden f6eb109943 updating old choices didn't work. 2005-04-05 21:53:08 +00:00
koenr d84c7b3e09 string files should be XHTML compliant now 2005-04-05 21:32:07 +00:00
jpuntd e8fce230f4 fixed bug2847 2005-04-05 21:03:15 +00:00
koenr 9dfd226cca string files should be XHTML compliant now 2005-04-05 20:23:20 +00:00
koenr 283b352083 fixing NCR notation
File is no more XHTML compliant - my modifications dissapeared between version 1.11 and 1.12
2005-04-05 19:01:51 +00:00
koenr b1d11cb5a4 changed thislanguage to NCR notation for better display of language name in other encodings 2005-04-05 18:37:21 +00:00
koenr 9347bce257 removed empty files 2005-04-05 18:33:25 +00:00
koenr ca946f96bc error in file (one ; too much) 2005-04-05 18:32:02 +00:00
vthung cacfc49448 Add many new translations to resource.php 2005-04-05 16:27:17 +00:00
jpuntd 837a0fe258 teacher can now choose if glossary concept is displayed are not 2005-04-05 15:53:46 +00:00
moodler 05753d2b87 Actually 3/min sounds better than 4/min 2005-04-05 07:44:41 +00:00
moodler 2a38a6beb8 Reduce the default speeds for messaging 2005-04-05 07:31:13 +00:00
bobopinna 0660e26186 Fixed a bad defined index 2005-04-05 06:54:32 +00:00
mits e56569ceed Polished and translated some new help files. 2005-04-05 02:28:05 +00:00
danmarsden 90572dbb90 Fix for Bug #1901 - now "greys out" the privacy of results select if "do not publish" is selected. 2005-04-05 02:04:54 +00:00
danmarsden af40722cc5 Fix for Bug #2435 - Hidden teachers and site admins are shown in no response list. 2005-04-05 00:35:05 +00:00
koenr a5fd09ddce forgotten ; causes xhtml warning 2005-04-04 22:45:21 +00:00
paca70 4d147b8ca8 Updates 2005-04-04 20:34:06 +00:00
jpuntd bd529b1eb1 make use of the new languagestring 2005-04-04 20:03:18 +00:00
vthung a1fb57550d Add wikiusage.html to vi_utf8\help\wiki 2005-04-04 17:24:01 +00:00
martignoni bc63d582fa Some new strings 2005-04-04 14:59:07 +00:00
martignoni 136ef998d1 Can provide an alternate page for the login form 2005-04-04 14:14:05 +00:00
bobopinna 867b2a5c5b Uniformed view and playscorm course structure 2005-04-04 14:10:03 +00:00
barias b198a10d7c Latest updates in spanish translation 2005-04-04 13:19:59 +00:00
paca70 e8a7fa9afd Added missing argumet 2005-04-04 10:16:28 +00:00
bobopinna 1742fccc68 Fixed a typo 2005-04-04 09:43:28 +00:00
bobopinna 51ffd65c72 Added INDEX parameters support 2005-04-04 09:37:52 +00:00
bobopinna d0dd5c4b3d Added ITEM parameters support. 2005-04-04 09:30:51 +00:00
barias 5e0c182a2c Latest updates in spanish translation 2005-04-04 09:16:55 +00:00
bobopinna 66621c7581 Update some strings. 2005-04-04 06:45:22 +00:00
moodler 2a7fbce0eb Fixed up parameters for this too 2005-04-04 03:55:37 +00:00
moodler 0e72da1a04 optional_param was being called wrong 2005-04-04 03:42:01 +00:00
mjollnir_ 9921028a3d Merged from MOODLE_14_STABLE: Fix for return id for insert_record - needs to be cast to an int 2005-04-03 21:04:02 +00:00
julmis a2b3f884b8 Fixing Bug #2830 - HTML editor not working at all in current HEAD 2005-04-03 12:15:45 +00:00
stronk7 b681000402 Now quiz->name supports filterall. 2005-04-03 00:19:11 +00:00
koenr 8401fdf3df new strings 2005-04-02 23:41:01 +00:00
gustav_delius 08dd99537a primary key has to be id, see bug 2832 2005-04-02 23:38:08 +00:00
stronk7 95c67e2fe1 Now xxx_print_recent_mod_activity() supports filterall.
(assignment, forum, quiz and workshop)
2005-04-02 23:19:01 +00:00
jpuntd ed4c7bd3cb fixed bug with config->refresh not retaining value 2005-04-02 20:48:19 +00:00
vthung a4b6ff5afb Add index.html of help\wiki 2005-04-02 17:57:21 +00:00
koenr 1f5532281d Strings for thischaracterset and thislanguage were present, but on top of moodle.php. That's why it did work.
Deleted them and replaced thislanguage (on the right place) by the NCR notation of the language name
2005-04-02 17:48:12 +00:00
vthung ccb03443ca Add checklinks.html of help\wiki 2005-04-02 17:47:09 +00:00
stronk7 6a2c151a9e Replacing some HTTP_POST_VARS uses because it doesn't work always!
Using data_submitted() or $_POST

Merged form MOODLE_14_STABLE
2005-04-02 17:45:29 +00:00
moodler d726ea77f9 Updated to 1.5 (needs work though) 2005-04-02 15:29:47 +00:00
moodler 5191ef2cb4 Goodbye monstrosity 2005-04-02 15:25:36 +00:00
moodler c159888c58 Will be needing these 2005-04-02 15:23:11 +00:00
moodler 6d1c6cdf06 Updated red green and blue themes with basic stuff. They could use
a lot more prettying.
2005-04-02 15:19:14 +00:00
mits 5860d89d28 fixed.
based on standard theme.
2005-04-02 14:36:42 +00:00
moodler 38c6f6f52f Formatting the lastpost column of the forums better 2005-04-02 14:08:47 +00:00
moodler 5c8d186608 Removed some cellspacing to help IE 2005-04-02 14:06:53 +00:00
moodler cd53bde0a5 Removed some padding from standard headers 2005-04-02 13:49:34 +00:00
mits ef5db6d83e fixed.
based on standard theme.
2005-04-02 13:41:27 +00:00
martinlanghoff 51e565d1ad Capture some key stats for performance detail output. 2005-04-02 13:31:38 +00:00
mits 66c5bee694 translated some. 2005-04-02 13:26:31 +00:00
moodler 910c0f74da Um, OK, NOW the forum unread markings are fixed on the discussion page 2005-04-02 13:06:29 +00:00
moodler c2483c7f51 FIxes for unread forumpost markings (Orange border) 2005-04-02 13:01:53 +00:00
mits 82d767a57f fixed.
based on standard theme.
2005-04-02 12:45:18 +00:00
moodler 61bff7e5ec Varous tweaks, mostly navbar 2005-04-02 12:44:04 +00:00
moodler 1a86378a73 navbar is now a TABLE so that it can contain things properly in a small-window situation 2005-04-02 12:40:03 +00:00
moodler 713d78eafa New feature for resources ... Local File Resources
A Resource Parameter controls this (it defaults to OFF).

When on, you see a third button when selecting a file, which lets
you select a LOCAL file on your own filesystem (but it isn't uploaded).

The local file is included in the web page when viewed.  All users see
a link that helps them set up a user_preference for the location of
these files on their own system (usually a CD_ROM drive).
2005-04-02 12:11:27 +00:00
moodler a7bd52d8e4 Some new strings 2005-04-02 12:07:19 +00:00
moodler 43070bc1a3 Replace HTTP_POST_VARS and HTTP_GET_VARS with _POST and _GET 2005-04-02 11:54:46 +00:00
stronk7 ac21ad392d Now course/recent.php works under PHP5.
See bug 2828
(http://moodle.org/bugs/bug.php?op=show&bugid=2828)

Merged from MOODLE_14_STABLE
2005-04-02 11:32:22 +00:00
stronk7 235a4ee8c8 Now course/recent.php is workink with filterall. 2005-04-02 10:10:07 +00:00
moodler a068498c5d Drop the popup field properly 2005-04-02 09:56:49 +00:00
moodler fdd5051029 Added missing thischarset and thislanguage strings 2005-04-02 09:49:25 +00:00
moodler cbfad4d3d2 SOme XHTML fixes 2005-04-02 09:42:53 +00:00
moodler 73e95f222c Don't clean the text in the site topic summary 2005-04-02 09:38:42 +00:00
moodler 5eafd94811 One extra option for the format of the site home page so that we can just have a
single topic section (allowing plain HTML in the middle and/or a list of activities)
2005-04-02 09:29:59 +00:00
moodler 2f167e52a8 Added email 2005-04-02 08:59:46 +00:00
vthung 0f8ce2c78f Translation of cvs.html into Vietnamese 2005-04-02 07:53:29 +00:00
martinlanghoff 798065253e Two minor fixes to Olson file parsing. olson_parse_at() now deals correctly with 'unsigned' AT entries. olson_simple_rule_parser() avoid a potential bug in minute-only SAVE entries. 2005-04-02 06:28:02 +00:00
stronk7 d11c7c9b34 Now, the list of activities in course/log.php supports filter all.
Why this function uses its own code to build the menu where we have
the "standard" navmenu() function? Cannot it be resused with a simple
modification to add the "All Activities" item?
The navmenu() function seems to be better.
2005-04-02 00:46:31 +00:00
stronk7 8a5f8d79d1 chat-report log action is now restored properly. 2005-04-02 00:33:44 +00:00
ikawhero b257080800 Added a 1/7 grade. 2005-04-02 00:32:48 +00:00
stronk7 ea9572f68f Manual links from lesson pages to resources are now preserved
between backup/restore anywhere.
(see discussion http://moodle.org/mod/forum/discuss.php?d=21044)

Merged from MOODLE_14_STABLE
2005-04-02 00:13:49 +00:00
gustav_delius 75f087b6e7 converted & to &amp; 2005-04-01 22:59:30 +00:00
gustav_delius 77d2fdab8c Correctly closing input tags 2005-04-01 22:33:42 +00:00
gustav_delius 1aacfd55aa Correctly closing input tags 2005-04-01 22:32:43 +00:00
mits 38760a319c translated some. 2005-04-01 19:20:29 +00:00
vthung bce090911e My First Change In CVS 2005-04-01 16:26:46 +00:00
bobopinna 57ebde49de added two new strings 2005-04-01 15:55:28 +00:00
bobopinna 4928a2f323 Several change to db fields, a complete redesign of user data track 2005-04-01 15:53:32 +00:00
andreabix cd0a36fd35 Added and transalted new strings. 2005-04-01 15:49:36 +00:00
moodler 31a2b4f150 DOn't die with an error on an unsupported question type ... try to continue. 2005-04-01 12:13:45 +00:00
mits 70916308e4 translated some. 2005-04-01 11:01:22 +00:00
mits 95e4ad4d30 changed login background color. 2005-04-01 10:48:49 +00:00
mits b6afa80559 fixed.
based on standard theme.
2005-04-01 10:23:55 +00:00
moodler ef036dcee8 Styles for $performanceinfo in footer 2005-04-01 10:01:45 +00:00
moodler b8cea9b2de Added some performance monitoring functions into the core 2005-04-01 10:00:18 +00:00
moodler 5485e65387 Remove a notice 2005-04-01 09:25:45 +00:00
moodler d9969553db Just tidying up a bit 2005-04-01 08:50:02 +00:00
moodler fcaff7ffcd Updated formatting in getremoteaddr, and made add_to_log use it 2005-04-01 07:40:07 +00:00
ikawhero 5b2ae5848c Can provide an alternate page for the login form.
The page must contain a form with an action field set to /login/index.php
and return fields username and password

TODO
It may be worth checking the URL when it's entered at admin/auth.php
to ensure it is at least pointing to a valid page as an incorrect URL
could potentially lock all users out of a site.
2005-04-01 07:39:27 +00:00
moodler f4cbf7f214 Just documentation / reformatting while reading the code :-) 2005-04-01 06:57:26 +00:00
koenr 2c90dbb727 string files should be XHTML compliant now 2005-04-01 06:56:38 +00:00
koenr 8b1fa8b787 missing readme 2005-04-01 06:44:47 +00:00
martinlanghoff 455c36654f Backed out unrelated block from last commit 2005-04-01 06:01:23 +00:00
martinlanghoff a9a9bdba55 Merged from MOODLE_14_STABLE - insert_record() - major efficiency improvements for Postgres databases on insert. Also fixed many calls to insert_record() which discard the returned record id to not ask for the record id. 2005-04-01 05:55:10 +00:00
koenr cd1f1e0d68 New language pack: tagalog by roel cantada
Translators data, still need an emailadress
2005-04-01 05:43:31 +00:00
koenr fad9549cfb changed readme to something I can type without errors :-) 2005-04-01 05:31:19 +00:00
koenr a73d2aea1f New language pack: tagalog by roel cantada 2005-04-01 05:28:59 +00:00
danmarsden 9bf3c5de4f Bug #2084 - Choice module has no "save my choice" for admin - missed a bit.... :-) 2005-04-01 03:33:44 +00:00
danmarsden 869366ec5c options[] is full of other values! 2005-04-01 03:30:12 +00:00
danmarsden bd3ba1ddaf Bug #2084 - Choice module has no "save my choice" for admin 2005-04-01 03:26:35 +00:00
danmarsden 1c49ca9a09 Fix for Bug #2452 - Choice shows a bad number of answers 2005-04-01 02:37:19 +00:00
moodler a4a65bf6f6 Added cellspacing to sideblock 2005-04-01 02:26:28 +00:00
danmarsden 74550a3cbd this time..... :-) 2005-03-31 23:58:37 +00:00
danmarsden 649084b1e8 backing out previous fix - didn't get that right! 2005-03-31 23:02:39 +00:00
danmarsden 9ca8056ae0 don't add <p></p> tags when in vertical display mode. 2005-03-31 22:48:43 +00:00
gustav_delius 48d45f1fe0 file rqp.html was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-31 22:25:18 +00:00
gustav_delius 1d5be4ff30 file markindividual.html was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-31 22:25:18 +00:00
koenr 829016235d string files should be XHTML compliant now 2005-03-31 22:18:22 +00:00
gustav_delius 1938a6f1fa Checking in fix to WebCT import contributed by Breanndan O'Cinneide at http://moodle.org/mod/forum/discuss.php?d=17969. Closing bug 2475 2005-03-31 22:04:20 +00:00
gustav_delius 4f063738c6 Julian has fixed "Attempted on" and "Time taken" display and removed a javascript error. 2005-03-31 20:01:04 +00:00
mindforge d4a7788610 file icon.gif was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-31 17:16:07 +00:00
mits 383331e410 translated some. 2005-03-31 14:09:47 +00:00
barias c96eccb271 Latest updates in spanish translation 2005-03-31 12:20:08 +00:00
moodler 3eb36e739e Some new strings 2005-03-31 09:12:12 +00:00
moodler 594ceedda1 Remove "deleted" field from course_modules table
http://moodle.org/mod/forum/discuss.php?d=20715
2005-03-31 08:46:38 +00:00
moodler 90d0ae4f76 DOn't reference soon-to-be-defunct deleted field 2005-03-31 08:34:27 +00:00
moodler b14222f906 MOved deletion of course module 2005-03-31 08:32:24 +00:00
stronk7 948cd185cb Fixed typo restoring choice_answers->userid 2005-03-31 07:45:19 +00:00
ethem 1ea85ecd68 Some huge fonts were deleted. 2005-03-31 07:19:05 +00:00
mits c6bf73e4f8 translated some. 2005-03-31 02:42:36 +00:00
dlnsk f8fa9c362c Small changes + added examples 2005-03-31 02:34:49 +00:00
stronk7 73c1c663a3 Now restore of choices seems to work fine. It accept both 1.5 and
older choices. Please, test it with some 1.4 course with more than 1
choice. I haven't any in my battery of tests! (yep, I know I can
make it but... :-) )
2005-03-31 01:02:28 +00:00
stronk7 0eda366116 Fixed typo! 2005-03-31 00:52:47 +00:00
stronk7 619be18379 Minor changes to and some typo to choice's backup.
Next step, choice's restore.
2005-03-31 00:00:34 +00:00
stronk7 dfde3b2069 alt tags in radio buttons were breaking display it they contain
lang tags. Now they are filtered against strip_tags() and processed
by format_text().

In vertical display, format_text() was using format_text (FORMAT_PLAIN),
not sure why and it was breaking multilang support, replacing all <> to
their htmlentities().
2005-03-30 23:34:04 +00:00
koenr d6bd83a6c9 another error: wrong placed <p>
going to bed now :-(
2005-03-30 22:59:27 +00:00
koenr 784dc58d71 error8 wrong placed \ 2005-03-30 22:16:46 +00:00
koenr 60432773b1 string files should be XHTML compliant now 2005-03-30 22:09:43 +00:00
koenr 979ffb1af6 not translated 2005-03-30 21:25:41 +00:00
koenr 99aa7c19c3 string files should be XHTML compliant now 2005-03-30 20:41:56 +00:00
stronk7 c2dd62a773 Now journal->name supports filterall. 2005-03-30 19:26:23 +00:00
moodler 4094acdcc3 First very quick cut at fixes for backup (Eloy!!!) 2005-03-30 18:59:18 +00:00
moodler ad7660be65 FIxes in vertical format 2005-03-30 18:48:42 +00:00
moodler 411362b268 FIx some notices 2005-03-30 18:47:57 +00:00
moodler d1a673622a Fixed the rest of the basic interface now 2005-03-30 18:33:56 +00:00
stronk7 386eca369d The waiting for approval tab was using some html and it
broke tabs. Changed the tab caption to plain text.
2005-03-30 18:18:21 +00:00
moodler bfe97ca600 Report works 2005-03-30 18:17:58 +00:00
moodler 375ed3ddc6 Much longer images for long tabs .... hope this doesn't slow them
down too much.
2005-03-30 18:03:13 +00:00
stronk7 50aaf6fed6 Now some potential tab missing problem is solved. It causes some
problems with loooong tabs but Martin is solving it just now (long
images).
2005-03-30 17:59:49 +00:00
moodler 5550ae839e Working view of choices (needs XHTML work yet) 2005-03-30 17:32:23 +00:00
moodler 864e30c968 Removed some unnecessary stuff 2005-03-30 17:07:09 +00:00
moodler 95836079dc Small fix: not crucial, but prevents some empty fields 2005-03-30 17:06:20 +00:00
moodler a77a600994 First cut at new lib.php 2005-03-30 16:26:36 +00:00
moodler 3a925837fe Argh, typo in new field name 2005-03-30 16:24:19 +00:00
moodler 669dfa715a An emergency checkin to prevent Choice dataloss for anyone who may
be upgrading.

The module itself currently doesn't work at all ... I'm going
through and re-writing it.
2005-03-30 16:14:49 +00:00
koenr d76f642325 new farsi-utf8 language pack
was rather dirty, hope everything that shouldn't be in there is out!
tried to make it XHTML-compliant at the same time
2005-03-30 15:59:14 +00:00
martignoni c0f708941c Improved choice mod 2005-03-30 15:14:26 +00:00
thepurpleblob 90bf11b2fd A start on wiki-like to Markdown converter.
Needs more work yet!
2005-03-30 15:13:41 +00:00
ethem d3b2e0ae79 New Turkish Fonts 2005-03-30 14:41:40 +00:00
ethem 22fb0611c6 New strings from Ethem Evlice (ethem AT evlice DOT com) XHTML compliant 2005-03-30 14:25:44 +00:00
moodler fd9d1ff316 Make the ID of textarea more unique 2005-03-30 13:32:39 +00:00
moodler 36c446cbe8 Removing excess styles 2005-03-30 12:31:00 +00:00
moodler b3ab80aad2 Restoring extra span to navmenulist 2005-03-30 11:54:58 +00:00
ethem 6d8a096075 Turkish font added 2005-03-30 11:40:32 +00:00
stronk7 5bd9aa933a Now glossary->name is working under filterall. It was really complex!
Just thinking about to add support for filterall inside:
   - category->name
   - concept->name
   - filter!
2005-03-30 11:14:19 +00:00
moodler 5a9726e7ab This module is completely broken .... I'm working on it.
Here are some cleanups to start with
2005-03-30 04:32:36 +00:00
moodler cc7cd917d4 Removed some German, and added styles and icons to the navmenulist 2005-03-30 03:41:37 +00:00
moodler 1aef65946b Removed obselete THEME and sme spacing 2005-03-30 03:16:37 +00:00
moodler 6656bf0af1 Security fixes
Fixed up styles handling to be more standard (the themes include them
already so no need for modules to do it)
2005-03-30 03:07:39 +00:00
moodler d1465c3d12 Naming, people, naming ... keep it clear but minim 2005-03-30 02:59:41 +00:00
mits 915d864c44 translated some. 2005-03-30 02:43:58 +00:00
michaelpenne 23f5e2617c bug fix: review button no longer displays on essay questions 2005-03-30 01:24:57 +00:00
michaelpenne 16518f15f7 removed some debug lines 2005-03-30 00:53:24 +00:00
michaelpenne 845a17e6f0 all the actions in lesson.php are now defined in mod/lesson/lessonactions/ 2005-03-30 00:49:18 +00:00
michaelpenne ea15ad0ece This file contains the code for a single action that used to be defined in lesson.php. Now each action has its own file 2005-03-30 00:38:59 +00:00
danmarsden 9c82279a96 Improved choice mod, 2005-03-29 23:46:54 +00:00
danmarsden 6fd87e3bc7 Improved coice mod, allows an unlimited number of choices. 2005-03-29 23:46:17 +00:00
mits 67ac95e83b translated some. 2005-03-29 23:39:01 +00:00
michaelpenne c32bc595bd on multichoice questions with multianswer, the code was not cleaning the variables correctly. Now sends the array through a foreach and then clean_param on each element in the array. Fix is around line 855. 2005-03-29 22:38:27 +00:00
michaelpenne 93943f6570 on line 1030, there was a division by zero when a student has not viewed any pages. Now it checks to makes sure $nviewed != 0. This is for the ongoing score feature. 2005-03-29 22:04:06 +00:00
urs_hunkler 143211e5da I expanded the list navmenulist for better handling with:
_ a header
_ spans for the section titles

It's still work in progress
2005-03-29 21:08:17 +00:00
gustav_delius a5c5a1807f fixed bug 2782 2005-03-29 19:24:04 +00:00
mits 87475fcd96 fixed.
based on standard theme.
2005-03-29 17:54:25 +00:00
moodler 0b489c066a Removed a spacer 2005-03-29 16:49:39 +00:00
ethem 8a0168092f Lutfen BENi OKUYUN! 2005-03-29 15:32:11 +00:00
ethem 0e9d4df087 New files from Ethem Evlice 2005-03-29 15:00:38 +00:00
moodler 1adb8947ac Misc changes from recently 2005-03-29 14:29:42 +00:00
moodler 2507b2f5ea OK,the navbarlist is no longer meant to be called directly ... it's
rather more efficient and useful to piggy-back it onto the navbar function.

You can control it with

$THEME->makenavmenulist = true;

/// By setting this to true, then you will have access to a
/// new variable in your header.html and footer.html called
/// $navmenulist ... this contains a simple XHTML menu of
/// all activities in the current course, mostly useful for
/// creating popup navigation menus and so on.
2005-03-29 14:22:13 +00:00
moodler 4a8be6e456 Info about two new variables for controlling navbarlist 2005-03-29 14:20:11 +00:00
ethem 230de5bea6 New strings from Ethem Evlice 2005-03-29 14:10:49 +00:00
moodler f713e27052 Forgot a tag 2005-03-29 13:48:25 +00:00
moodler dfe6617484 Better XHTML on my new function 2005-03-29 13:46:20 +00:00
barias c042a58fc1 Latest updates in spanish translation 2005-03-29 13:37:13 +00:00
moodler f3a74e6817 A new function navmenulist which simply returns a UL list containing
all the modules in a course.

This is so theme designers can start experimenting with popup menus etc

From header.html or footer.html, you can use code like this to get the data:

<?php  if (is_object($course)) {
           $list = navmenulist($course, 50);
           echo '<div id="floatnav">'.$list.'</div>';
       }
?>
2005-03-29 13:37:08 +00:00
moodler b623ea5e78 Fixes to preferences and other stuff 2005-03-29 12:34:32 +00:00
moodler 5305e2eb48 Cleaning up some logic, removing unneeded functions 2005-03-29 09:25:31 +00:00
moodler a983b6ecfd Cleaning up gradebook nav bar calculation 2005-03-29 09:12:42 +00:00
ethem c8f08e6850 New strings from Ethem Evlice (ethem AT evlice DOT com) 2005-03-29 09:06:19 +00:00
ethem 557b7c92c6 New strings from Ethem Evlice 2005-03-29 08:49:43 +00:00
mjollnir_ 816d9586c7 New indexes for forum_posts - created & mailed. Useful for performance for the cron mailout 2005-03-29 04:32:48 +00:00
mjollnir_ 8a72bfa258 Tables for grades for postgres (and a fix to timezone update for postgres) 2005-03-29 03:51:14 +00:00
moodler 61c787cea2 Default theme is standardwhite, and added filterall 2005-03-29 03:36:12 +00:00
mjollnir_ d54ced8618 Fixing typo in ldap enrolment plugin (variable missing _) 2005-03-29 00:21:55 +00:00
mits 8ec3c19712 translated some. 2005-03-28 23:55:33 +00:00
mits 530ee3310c added tabs images. 2005-03-28 23:08:34 +00:00
koenr 3b384c4bbf first attempt of translation for new gradebook 2005-03-28 20:42:53 +00:00
mits 998e40469f polished
added new file.
2005-03-28 20:36:07 +00:00
moodler a0a83fca12 Don't display the Uncategorised VARIABLE in the header 2005-03-28 18:22:17 +00:00
moodler 4eb25d43aa Adding the new grade tables
POSTGRES IS NOT DONE YET!!!!   DOES SOMEONE WANT TO TACKLE IT NOW?
2005-03-28 18:16:39 +00:00
ethem 0bb895a81b New strings from Ethem Evlice (ethem AT evlice DOT com) 2005-03-28 18:08:56 +00:00
moodler 60b111b4cc New file for new gradebook ... 2005-03-28 18:06:34 +00:00
moodler 281ffa4aaa OK, lots and lots of cleanups here. Too many to list, but lots of
logic fixes, API fixes, variable fixes etc ...  there is still plenty
to do but this is enough to check in and get others working on it.
2005-03-28 18:05:45 +00:00
martignoni 44f464d241 Spare tag removed 2005-03-28 16:56:41 +00:00
lonecatz be9163dfda Initial traslated 2005-03-28 16:50:38 +00:00
martignoni 8174da9b75 Some spaces so string wraps in the edit language page 2005-03-28 16:28:51 +00:00
martignoni 8caafe28ab New string 'groupinfoedit' 2005-03-28 16:24:31 +00:00
martignoni 2dba0fb620 New user tabs 2005-03-28 16:23:06 +00:00
martignoni edec066aaf Adding search and replace strings 2005-03-28 16:19:54 +00:00
martignoni b75935018d Removing strings that aren't used anymore. 2005-03-28 16:14:17 +00:00
martignoni a6bda5751c New string 'forumposts' 2005-03-28 16:02:22 +00:00
mits 0e94c140cd fixed.
based on standard theme.
2005-03-28 15:20:27 +00:00
moodler 74ded78359 Removed spacers and fixed some styles here 2005-03-28 06:48:16 +00:00
moodler 290130b3f8 Some clean up of the styles used in the course listings on the front page 2005-03-28 06:47:54 +00:00
moodler 2d99362fba Bug number of last checkin was 2801 ;-) 2005-03-28 04:32:50 +00:00
moodler dbd956ac2b Fixed XHTML issues in admin/lang.php 2005-03-28 04:31:14 +00:00
stronk7 11c657f092 Now exercise->name supports filterall. 2005-03-27 23:52:56 +00:00
stronk7 188e4dd9a3 Now print_recent_activity_note() supports filterall (in text). 2005-03-27 23:48:15 +00:00
stronk7 c8b0a50b7b Now log records support filterall. 2005-03-27 22:31:54 +00:00
stronk7 c767c146e2 Avoid some double-slashes sent to DB. It was breaking the multilang
filter in event logs.
2005-03-27 22:16:05 +00:00
koenr 15b7409269 This lang pack should be XHTML compliant 2005-03-27 21:40:26 +00:00
koenr e43b391729 spare tag removed 2005-03-27 21:06:55 +00:00
stronk7 2a3affe991 Now format_string() uses an in-memory cache per request to make
things faster. Really noticeable in logs page!
2005-03-27 20:57:50 +00:00
mits 2e868cc9b4 fixed.
based on standard theme.
2005-03-27 19:17:15 +00:00
koenr 297d52acc0 This lang pack should be XHTML compliant 2005-03-27 17:34:00 +00:00
stronk7 c61d50b800 Now choice->name and choice->answerxx work under filterall. 2005-03-27 17:33:16 +00:00
moodler f8fc9eaaf1 Fixed homelink 2005-03-27 17:08:44 +00:00
moodler 32eab86fac FIxed use of homelink 2005-03-27 17:07:36 +00:00
moodler a77ac3dc49 Added homelink and sitelink style distinction 2005-03-27 17:07:09 +00:00
moodler 00c312fa40 Fixing homelink 2005-03-27 17:06:30 +00:00
koenr efae15c561 php files are XHTML-compliant 2005-03-27 16:48:52 +00:00
stronk7 fb73f3b3b2 Now event->name supports multilang under filterall completely. 2005-03-27 16:41:04 +00:00
defacer 43fae8e306 Removed obsolete file. 2005-03-27 16:26:12 +00:00
moodler 4485fc91db SMaller files (less spaces) and new homelink button styling 2005-03-27 15:50:20 +00:00
moodler 05fcc5fd48 Removed about 30 un-necessary divs from the calendar block ;-) 2005-03-27 15:36:47 +00:00
moodler 031f8487b0 Added row classes to the tab rows 2005-03-27 15:28:35 +00:00
moodler ed48183985 Tweaks to use new classes 2005-03-27 15:24:52 +00:00
moodler e58de2ca10 Simpler seclection of navigation bar 2005-03-27 15:21:01 +00:00
stronk7 94474fc403 Now activity names in upcoming events block support filterall. 2005-03-27 11:50:09 +00:00
mits b0541016f3 changed font-weight:bold; to font-weight:normal; 2005-03-27 11:41:21 +00:00
stronk7 200371e9f7 Now chat->name works under filterall. 2005-03-27 11:36:54 +00:00
mits 4c79399570 fixed.
based on standard theme.
2005-03-27 11:36:19 +00:00
mits fd7582ec16 replaced & with &amp; in links. 2005-03-27 08:46:14 +00:00
koenr cb6cecc1cd changed <blockquote> to <div class="indent"> in mods 2005-03-27 08:12:48 +00:00
koenr f4fd2f98a2 replaced & with &amp; in links from index.html 2005-03-27 07:16:52 +00:00
moodler 80d371e3d4 End line was missing from 'last' tab 2005-03-27 06:41:29 +00:00
moodler 2514081c24 Added title to history icon link (SE) 2005-03-27 06:30:41 +00:00
moodler 5b4f70f692 Removing defunct homelink from this theme 2005-03-27 06:13:44 +00:00
moodler d1a5fbd493 Just fixing some errors, but these functions should really return some info 2005-03-27 06:12:58 +00:00
moodler a71efae327 WHen deleting a chat, delete the messages etc too. Bug 2792 2005-03-27 05:56:23 +00:00
moodler fae1077b2a Removed $goodStr = str_replace(chr(160), ' ', $goodStr );
as it causes bug 2794 and I can't even see what the point of it was.
2005-03-27 05:50:21 +00:00
moodler c61098fbec Removed extra tag 2005-03-27 05:45:36 +00:00
moodler 6bc21ecf93 Close footer properly 2005-03-27 05:44:31 +00:00
moodler c01f71d4a4 FIxed some XHTML compliance ... Bug 2798 2005-03-27 05:43:49 +00:00
moodler fa34f720d2 Some tidy ups of XHTML 2005-03-27 05:41:25 +00:00
moodler 9e0d19831b Fixed footer navigation 2005-03-27 05:23:39 +00:00
koenr 5c9379f97e XHTML compliance
-changed <ul> without <li> to <blockquote> for indent
-changed & to &amp;
-minor fixes to nested <li> structure:
<ul>
<li>xxxxxxx</li>
<li>xxxxxxx
 <ol>
  <li>xxxx</li>
 </ol></li>
</ul>
2005-03-26 23:13:18 +00:00
koenr 8b2918299b new strings 2005-03-26 21:05:26 +00:00
defacer 90ac64e379 Updating CVS to latest dirty development version. 2005-03-26 20:52:18 +00:00
defacer 66336c5f34 Bringing in the mdl_timezone table.
DST is now kind of working, the next most important things to do are:

    1. Get the import procedure working correctly and well, so we can populate it.

    2. Provide a transparent migration procedure for all users to "Unknown location" timezones.

    3. Banish $USER->timezone for good.
2005-03-26 19:10:05 +00:00
stronk7 9870dbe5b6 Now the "jump to" menu (navmenu) supports filterall. 2005-03-26 19:02:56 +00:00
defacer d4880eaa46 Remove redundant mdl_dst_preset table from schema. 2005-03-26 19:00:23 +00:00
defacer b41c4f7e28 The schema for mdl_timezone looks final, so create it in new installations. 2005-03-26 18:53:01 +00:00
defacer 830a2bbd82 Yay! Major DST support progress!
1. calculate_user_dst_table() works correctly and offers many features:

Can create or extend on-the-fly a table of pre-computed timestamps on which
DST changes happen, keeps track of these changes and the current computed year
range in $USER->dstoffsets and $USER->dstrange. Initially the computation is
done in a current year +/- 3 years range, to keep the amount of serialized
data small and to make traversals of $USER->dstoffsets faster.

2. dst_offset_on() works correctly, and can dynamically instruct the above
function to extend the pre-calculated region on demand (i.e., when it's called
for a timestamp which falls outside said region).

3. Some other improvements.



I have made a few preliminary tests on my dev machine and It Works(tm!) :D
2005-03-26 18:43:58 +00:00
defacer 5bae88b686 Fixed incorrect usage of isteacher(), didn't work and threw a warning. 2005-03-26 18:34:55 +00:00
defacer c2aa460fe6 Fix a notice when failing to log in. 2005-03-26 18:26:49 +00:00
stronk7 2500b88bab Now assignment->name works under filterall. 2005-03-26 18:14:46 +00:00
stronk7 e88b32089d Missing parenthesis added. 2005-03-26 18:12:15 +00:00
stronk7 fac63246cc Forum->intro is processed correctly by format_text() everywhere. 2005-03-26 17:31:01 +00:00
stronk7 c78ac79818 Now discussion->name works under filterall. 2005-03-26 17:11:30 +00:00
defacer 21d04cedfa Somehow this stopped working correctly when the styles got moved. Fixed. 2005-03-26 14:04:13 +00:00
defacer c2bf38fd9b Fix for bug 2793: Unfinished quiz attempts no longer shown in the overview table. 2005-03-26 13:41:00 +00:00
defacer 45daee10f3 Fix some notices. 2005-03-26 13:38:21 +00:00
stronk7 a31aaba5c4 Now activity names in grade pages support filterall. 2005-03-26 13:10:26 +00:00
stronk7 a92d95b1de Now activities names in course main page support filterall. 2005-03-26 11:59:53 +00:00
stronk7 5847b26744 Now the recent_activity block supports filterall. 2005-03-26 11:49:01 +00:00
stronk7 17dc3f3cc6 Now post->subject works under filterall too. 2005-03-26 11:43:16 +00:00
mits 20064673e4 copied styles_fonts.css from Standard.
It's better to use bold for title.
2005-03-26 09:58:10 +00:00
mits 0aac91e542 fixed.
put gradient.jpg on navbar.
2005-03-26 09:55:29 +00:00
mits 1a5a8ec2a7 fixed.
based on standard theme.
2005-03-26 09:51:29 +00:00
moodler b42f9cf096 More room above bottom navbar 2005-03-26 07:59:01 +00:00
moodler f940ee41b8 Need to rename variables in footer nav menu .... urgh, not pretty but works 2005-03-26 07:26:27 +00:00
moodler e14496ec4f No cell spacing 2005-03-26 07:18:22 +00:00
moodler 02039b168f Tweaking course layouts 2005-03-26 07:17:54 +00:00
moodler 12a487b485 FIxed reference to .navbar (was #nav-bar) 2005-03-26 06:53:30 +00:00
moodler 0d741155df A slightly yucky hack where variables in the header are kept around
until the footer is shown, allowing them to be used there too
2005-03-26 06:51:33 +00:00
moodler d2c6555d40 Changes to styles used in nav-bar (no longer id, now a class) including
renaming - please check other themes!!!

Also the footer can now use all the same PHP variables as the headero

$heading  - the heading of the page
$menu   - the menu if any (sometimes it's the "logged in as" string)
$title - the title of the page
$navigation - the navigation string
$button - a button, if any
$home - true if on home page, otherwise false
2005-03-26 06:50:28 +00:00
ikawhero 47819c85d2 Some spaces so string wraps in the edit language page 2005-03-26 03:41:05 +00:00
ikawhero 748105767f Just so we can put spaces in the bad words string. 2005-03-26 03:03:26 +00:00
moodler dd54dea610 Removed an inline style on list blocks 2005-03-26 02:35:29 +00:00
stronk7 3849dae80f Now the FIRST string working under CFG->filterall is done:
forum->name
(everything tested but email)

(I'm going to maintain a list of strings in Developers Wiki)
2005-03-26 01:57:40 +00:00
stronk7 3e6691eebb Added option to format_string to take out all the links in the string.
Useful because a lot of times the string itself is showed like a link
and we cannot nest links.
2005-03-26 01:07:23 +00:00
mits 35fe4b77e3 polished and translated some. 2005-03-25 22:17:15 +00:00
mits 7b790417f2 fixed.
based on standard theme.
2005-03-25 21:53:49 +00:00
julmis 61b6a920ab Adding search and replace strings 2005-03-25 21:11:19 +00:00
julmis 914094e9f0 Adding charset meta information 2005-03-25 21:09:36 +00:00
julmis 130d7a3bfe Adding search and replace feature.
- Also change dialog so that focus is released first
  then value is passed forward
2005-03-25 21:07:03 +00:00
stronk7 0ea03c56f2 Ensure that tooltiptext hasn't tags. 2005-03-25 19:01:32 +00:00
ethem 9104b63564 New strings from Ethem Evlice (ethem AT evlice DOT com) XHTML compliant 2005-03-25 18:08:03 +00:00
moodler 855fc75500 spacing for sideblock stuff 2005-03-25 18:02:56 +00:00
moodler 38f96c7a65 This shows how a theme can use the mozilla rounded corners. 2005-03-25 17:16:18 +00:00
moodler d45fd4ddbd Removed styles_moz.css from default (it doesn't validate and prevents
validation in fact)
2005-03-25 17:15:02 +00:00
moodler 848aafa81a Some cleanup ... styles_moz.css is now not included with "standard" by default 2005-03-25 17:14:01 +00:00
moodler a76eba9add Block removed, cleanups made 2005-03-25 16:56:07 +00:00
moodler 01454bd0c8 Styles updates 2005-03-25 16:41:05 +00:00
moodler 8c5d0dd99b FIxed styles for this block to make them more standard 2005-03-25 16:28:58 +00:00
stronk7 7b2c5e72ce Added the format_string() function to allow filter processing
to small texts when $CFG->filterall is enabled.
2005-03-25 16:24:43 +00:00
moodler 447accd18c Moved styles here from core style sheets 2005-03-25 16:23:57 +00:00
moodler c4183f7a04 Styles moved to block 2005-03-25 16:21:33 +00:00
moodler a046a852b3 Basic styles file for forum search block 2005-03-25 16:14:29 +00:00
moodler 71c73f27e6 Removed old rssclient styles 2005-03-25 16:10:41 +00:00
moodler 1d856b0321 New styles for RSS client block 2005-03-25 16:10:17 +00:00
moodler ed8e6931d9 blocks/mod scanning for styles.php is now enabled
by default
2005-03-25 16:05:26 +00:00
moodler d0cbe0fd1c Some clean ups, and the blocks/mod scanning for styles.php is now enabled
by default ... I am going to be moving some of these module styles out
to the modules.
2005-03-25 16:04:47 +00:00
moodler 88e46311fa Removed a lot of the comments to reduce the file size 2005-03-25 15:39:40 +00:00
lashaalt f1ac0b8b59 *** empty log message *** 2005-03-25 09:57:56 +00:00
julmis 16f77b0802 Adding search and replace icon 2005-03-25 09:57:50 +00:00
urs_hunkler 40b8ea2638 obsolete link to stylesheet deleted.
not needed div "breadcrumb" and "navbutton" deleted.
2005-03-25 08:09:03 +00:00
mits 197a9c8159 *** empty log message *** 2005-03-25 06:58:32 +00:00
mits 976fc2b925 polished again. 2005-03-25 06:54:05 +00:00
mits 38f7e60375 polished. 2005-03-25 06:32:06 +00:00
scop22 b5998f0f08 Oops - remove CVS conflict markers from several files 2005-03-25 06:28:13 +00:00
mits 44190c0c10 Polished.
Big THANKS to  Paul Shew.
2005-03-25 06:03:22 +00:00
stronk7 18a2b08d74 Make validator works under PHP 5. 2005-03-25 00:00:37 +00:00
stronk7 b5ddd37f8a Take out some characters doing strange things under 1.5
(perhaps result of a conficting cvs merge ????)
2005-03-24 20:07:54 +00:00
mits da4c3aed49 fixed.
based on standard theme.
2005-03-24 14:23:56 +00:00
moodler 61f0aace2a Some more CSS changes (SE) 2005-03-24 13:59:59 +00:00
moodler 6ba172fb18 Print the names of the included files at the top of the style sheets 2005-03-24 13:41:42 +00:00
moodler 6aed9d10c2 Changes for XHTML, accessibility compatibility.
Removed THEME variable, inserted CSS classes where appropriate. (SE)
2005-03-24 12:43:22 +00:00
moodler 0137684980 Added some styles for Journal (SE) 2005-03-24 12:41:34 +00:00
moodler d414c8a9c0 Missing closing div (SE) 2005-03-24 11:28:58 +00:00
djachenko 89d7881651 firstdayofweek - 1 2005-03-24 11:09:13 +00:00
ethem 2146426186 New strings from Ethem Evlice (ethem DOT evlice DOT com) XHTML compliant 2005-03-24 10:44:49 +00:00
julmis 24da8203e1 Adding code formatting functions for better readability 2005-03-24 10:29:56 +00:00
mits 794f641582 fixed.
based on standard theme.
2005-03-24 10:27:25 +00:00
moodler cae01fcb2b More tidying up (SE) 2005-03-24 08:52:18 +00:00
moodler 2d02e8e67a Tidying up the stylesheets (SE) 2005-03-24 08:06:40 +00:00
moodler 7105cf8d21 More generic indent tag 2005-03-24 02:37:11 +00:00
stronk7 a9b1b60bee Avoided some excess of "QUESTION_VERSIONS" ;-) 2005-03-23 23:32:51 +00:00
gustav_delius 1909875912 Renamed quiz_question_version to quiz_question_versions as suggested by Eloy in bug 2777 2005-03-23 20:59:55 +00:00
ethem 24357c7847 New strings from Ethem Evlice (ethem DOT evlice DOT com) XHTML compliant 2005-03-23 19:18:49 +00:00
ethem 2dc6c9c204 SURVEY is OK. 2005-03-23 18:37:35 +00:00
mits 22c3e18263 added gradient.jpg to loginbox header. 2005-03-23 17:24:51 +00:00
scop22 cad9fb6628 Checked thischarset, thisdirection and thislanguage strings in all files 2005-03-23 17:22:10 +00:00
mits d232a71d50 fixed.
based on standard theme.
2005-03-23 17:08:12 +00:00
moodler 8d62ca684c Bless standardwhite for testing too 2005-03-23 16:49:03 +00:00
moodler a3b3afd1b5 Added some centering 2005-03-23 16:46:52 +00:00
moodler 291ce56b65 Added Cynthia checking for WCAG 1 2005-03-23 16:42:58 +00:00
scop22 6b96b80a22 Checked thischarset, thisdirection and thislanguage strings in all files 2005-03-23 16:05:47 +00:00
koenr ed45c12912 A lot of work done by Anders on the Swedish translation 2005-03-23 15:21:57 +00:00
defacer 3bba1e6ef1 Fixing a regression. 2005-03-23 14:43:32 +00:00
defacer 6d908bc6c8 Changed a magic number to DAYSECS and some instance_config_save() calls to
the recommended instance_config_commit().
2005-03-23 14:16:02 +00:00
ethem 3522e27dbc New strings from Ethem Evlice (ethem DOT evlice DOT com) XHTML compliant 2005-03-23 14:15:18 +00:00
moodler aeb2bcace4 Removed old files 2005-03-23 09:55:52 +00:00
koenr e76219e251 thislanguage not in NCR 2005-03-23 09:30:04 +00:00
koenr d124b08bd6 urgent fix! wrong character set, wrong thislanguage 2005-03-23 09:28:02 +00:00
koenr c48fd6c87f Lots of new strings and files for ga language pack.
Thanks a lot Cathal O Foirr?idh !
Forgot to commit half of it...
2005-03-23 09:19:00 +00:00
lashaalt f3c4cfe5f5 *** empty log message *** 2005-03-23 07:44:18 +00:00
martinlanghoff f78b3c3405 Merged from MOODLE_14_STABLE - add_to_log() - fixed a postgres support bug when is set to '', and clarified the logic that decides whether to update the user_students/user_teacher records. 2005-03-23 07:07:47 +00:00
defacer 5c5dfee259 Duh. More spurious output squashed. 2005-03-23 04:03:50 +00:00
defacer 9532c34e00 I had left some uncommented debug output in there. Comments back on. 2005-03-23 04:02:21 +00:00
defacer 733191ab83 Fixes fixes fixes fixes. 2005-03-23 04:00:46 +00:00
defacer e789650d41 Piles of timezone-related changes. 2005-03-23 03:03:43 +00:00
defacer d37317b249 "from" is a reserved word in SQL, so change the field to "year" 2005-03-23 03:02:45 +00:00
defacer c3401dfdbe Timezone selection drop down menu now works. 2005-03-23 03:00:59 +00:00
mits 2716e3a6e8 translated some. 2005-03-23 02:18:20 +00:00
defacer 0c478e1085 Killing dst_offset_for_year(). 2005-03-23 02:13:00 +00:00
defacer 62a73d8949 Continuing to move towards the "pre-calculated array in $SESSION" approach,
we output just ONE record for each year that something changes. This knocks
another ~3000 records from mdl_timezone.
2005-03-23 02:10:45 +00:00
defacer aedcf71e33 Treat 'max' as 'only' in the "until" field. This removes ~1500 useless records. 2005-03-23 01:57:15 +00:00
defacer 0ed442f85c DST presets -> timezones 2005-03-23 01:54:45 +00:00
defacer 0bd7322e30 Going forward to timezones ever so slightly. 2005-03-23 01:26:34 +00:00
defacer deab60a42b My latest working version, but we 'll need to roll back a bit as there
are more changes planned (from_timestamp bites the dust etc).
2005-03-23 01:24:22 +00:00
defacer 1faca355ee More strings modified, still more to come. 2005-03-23 01:22:58 +00:00
defacer 1789c54824 mdl_user.dstpreset becomes mdl_user.timezonename 2005-03-23 01:19:27 +00:00
defacer 22c0091a6a DST presets -> timezones 2005-03-23 01:17:20 +00:00
defacer d4f960e4f2 Removing strings that aren't used anymore.
TRANSLATORS: More changes to come, don't bother to translate yet.
2005-03-23 00:47:26 +00:00
defacer d43092dea6 Removing obsolete files, we won't have custom definitions after all. 2005-03-23 00:45:14 +00:00
defacer e2d282235f Get rid of the "define custom timezone" button. 2005-03-23 00:35:57 +00:00
defacer b539242ab5 Interim debugging code. 2005-03-23 00:34:55 +00:00
mits e214cf5a2f week color changed for visibility. 2005-03-22 21:13:57 +00:00
mits eb35bc437b translated one string. 2005-03-22 21:06:32 +00:00
mits 2c28adddb0 fixed :) 2005-03-22 21:02:36 +00:00
moodler d22f8a5331 Small visual improvement 2005-03-22 18:17:45 +00:00
moodler 6ab250846c Obsolete 2005-03-22 18:16:48 +00:00
moodler 6078ba3016 Misc recent changes 2005-03-22 18:10:06 +00:00
moodler c15f43c849 This is how you set colours for the MP3 players 2005-03-22 17:46:03 +00:00
moodler 179332ab56 Three new settings in THEME. These will allow the use of "styles.php"
stylesheets within activity modules, blocks and languages, allowing these
plugins to have some say over their appearance (if required).
2005-03-22 17:38:47 +00:00
moodler 08396bb270 New function to close current window: close_window 2005-03-22 17:31:04 +00:00
stronk7 29f46cb6fb Now it works using static instead of $_REQUEST. Thanks to Martin!
Now I know a bit more of PHP :-)
2005-03-22 17:29:02 +00:00
moodler ff3caf30c0 Big tidy up of Group listing, User listing and how they interact.
It's still not perfect but it's much much better I think.
2005-03-22 16:04:10 +00:00
mits ae370141bb *** empty log message *** 2005-03-22 10:28:35 +00:00
moodler 06f8f223e9 Tidying up stylesheets (SE) 2005-03-22 10:04:55 +00:00
moodler 843cd656f4 Changing some styles (SE) 2005-03-22 09:48:33 +00:00
moodler f09e4f0ab0 Tidying up the stylesheets (SE) 2005-03-22 09:47:46 +00:00
andro-bg 293668dd30 speeling improvements, minor improvements in translation, update of strings 2005-03-22 08:18:31 +00:00
stronk7 a06967fdb9 Added support for $CFG->filtermatchoneperpage, allowing a phrase
to be linked only once in the entire page.
2005-03-21 23:47:21 +00:00
stronk7 a0d2e272d9 Missing global was preventing $CFG->filtermatchonepertext to work. 2005-03-21 23:18:41 +00:00
koenr 919a4884ed new strings 2005-03-21 21:36:28 +00:00
koenr 17c4a237b0 New strings from Ethem Evlice
XHTML compliant
2005-03-21 21:05:02 +00:00
koenr 234ee4d0d7 changed emailadres of the translator 2005-03-21 19:27:55 +00:00
scop22 0d1af1b309 New strings translated in several files 2005-03-21 14:17:11 +00:00
scop22 745a4c136c More strings translated in several files 2005-03-21 14:14:58 +00:00
moodler 57f781f733 Changed variable name because Eloy has plans for $CFG->filtermatchoneperpage :-) 2005-03-21 08:37:43 +00:00
moodler 10d96e2963 WHen a student enrols via a group password, make sure they are in the
group immediately    bug 2780
2005-03-21 08:33:24 +00:00
moodler e299f862a6 When in editing mode, add "editing" class to the body. bug 2781 2005-03-21 08:26:14 +00:00
moodler e1f96c2349 SESSION encoding fix from STABLE (2770) 2005-03-21 06:14:44 +00:00
lonecatz 8b9c084e70 Initial version 2005-03-21 03:47:05 +00:00
lonecatz ed8fbaa31d Change the tranlation of word lesson 2005-03-21 03:46:16 +00:00
lonecatz 750d85747e Change the translation of word lesson 2005-03-21 03:12:58 +00:00
gustav_delius 4dd7a7fd6e Fixed log, bug 2778 2005-03-21 00:06:04 +00:00
stronk7 a819238cb2 Bump!
quiz module backup and restore is now working (although some important
bugs remains in the module, creating strange versions and hidden questions).

Only some minor final things need to be finished to be 1.5 ready! B-)
2005-03-20 23:44:00 +00:00
stronk7 4f13e03055 Now working in restore:
- quiz_questions->hidden
- quiz_responses->originalquestion
- quiz_question_version table
- editquestions log action (although Bug 2778) needs to be solved!

Please, test, test....
2005-03-20 23:39:15 +00:00
koenr 1e33ce1830 New strings from Ethem Evlice
I wait for a reaction of the translator for adding the modified files
2005-03-20 23:33:09 +00:00
martinlanghoff 0362d553eb Merged from MOODLE_14_STABLE - More efficient SQL UPDATE in forum_mark_old_posts_as_mailed() -- improves performance under PostgreSQL. 2005-03-20 23:13:18 +00:00
koenr 0418487beb A LOT of new Vietnamese files. PHP files are XHTML compliant, HTML files unfortunately not (yet) 2005-03-20 22:55:54 +00:00
martinlanghoff b350cb9d93 Merged from MOODLE_14_STABLE - Pedantic HTTP correctness; now we return an appropriate 503 HTTP status code when the database is unreachable and assumed overloaded. This is for the benefit of monitoring and load testing scripts. 2005-03-20 21:37:05 +00:00
stronk7 e4acc4ce48 Now, at backup time (not restore yet):
- quiz_questions->hidden
- quiz_responses->originalquestion
- quiz_question_version table
are properly exported. Restore code coming soon.
2005-03-20 20:00:43 +00:00
moodler 9d5ef89280 So $CFG->filtermatchfirstonly isn't forgotten 2005-03-20 17:13:50 +00:00
moodler 1f4af9a650 $CFG->filtermatchfirstonly will match first entry only 2005-03-20 17:12:19 +00:00
mits 1384c75262 changed border-color. 2005-03-20 12:51:37 +00:00
mits 18df5784f7 translated some. 2005-03-20 12:42:53 +00:00
mits 3e5c0cf0ea *** empty log message *** 2005-03-20 12:42:13 +00:00
moodler 4f321bdb3d SOme necessary fixes to searching to allow arbitrary SQL to be added to the
search, and also removed some old stuff
2005-03-20 12:05:58 +00:00
moodler f9a0ea699c New user tabs from Shane and myself ... these bring together the
profile interface a little better.

There is also a new feature for showing all posts from a user, as well
as all discussions from a user.
2005-03-20 12:02:14 +00:00
moodler ce5e431b60 $CFG->preferlinegraphs will make graphs use lines instead of bars 2005-03-20 09:15:53 +00:00
mits 4cde0f8ad3 translated some help files. 2005-03-20 05:57:02 +00:00
mits 2dc37257fc translated some help files. 2005-03-20 04:31:38 +00:00
lonecatz 3c03287966 change the translation of word practice 2005-03-20 03:18:47 +00:00
lonecatz ad6f18e278 Initial version 2005-03-20 03:10:05 +00:00
moodler 006fcdeb79 Make the big graph a bar graph 2005-03-20 03:00:03 +00:00
lonecatz 448f8ca6f1 New translated files 2005-03-19 18:57:03 +00:00
lonecatz 0bbf3a346d New translated help 2005-03-19 18:20:37 +00:00
julmis afffb9c43c Merging changes from MOODLE_14_STABLE 2005-03-19 16:43:23 +00:00
lonecatz e2f9379024 More translated country names 2005-03-19 16:27:58 +00:00
moodler 4161807b81 Fixed regular expression - Bug 2756 (SE) 2005-03-19 15:08:36 +00:00
lonecatz de680e7097 Add strings about filter and dst 2005-03-19 14:22:41 +00:00
lonecatz 613dc86e4b Add strings related with CAS 2005-03-19 14:06:52 +00:00
lonecatz 39f5311612 Remove unused spaces 2005-03-19 13:51:13 +00:00
lonecatz 491eeee5c3 More translated strings 2005-03-19 13:49:13 +00:00
lonecatz ce58659a50 correct thislanguage 2005-03-19 12:57:55 +00:00
lonecatz dd575c3664 More translated string 2005-03-19 12:55:21 +00:00
mits 2d42cebb4e *** empty log message *** 2005-03-19 12:51:01 +00:00
lonecatz cc49af4331 More translated strings 2005-03-19 12:44:51 +00:00
moodler 095dcc5b80 Center-align footer 2005-03-19 12:24:18 +00:00
martignoni ffdb40800b Minor change 2005-03-19 09:57:18 +00:00
martignoni 4c1ffcd9f4 Change for consistency 2005-03-19 09:56:06 +00:00
martignoni e5ac2a3bc8 Modification for consistency 2005-03-19 09:53:29 +00:00
martignoni 95205bc209 Version ID corrected 2005-03-19 09:36:24 +00:00
martignoni d6b915a84e Typo corrected 2005-03-19 09:34:22 +00:00
martignoni 299b76ea68 Some new errors 2005-03-19 09:30:20 +00:00
martignoni 97bc4e3074 New strings for MP3 player 2005-03-19 09:26:57 +00:00
moodler 7c5829f4f1 Removing some old theme rubbish 2005-03-19 08:32:01 +00:00
mits f1fb315a3b polished. 2005-03-19 05:25:12 +00:00
mits 4977fc76e6 fixed again. 2005-03-18 16:02:51 +00:00
mits bd8acfc590 fixed. 2005-03-18 15:53:20 +00:00
moodler 86eb085d24 Standard white now looks like standard used to look. It's exactly the
same but it has the white gradients in the headers and navbar
2005-03-18 14:46:58 +00:00
defacer 5d38e78fdf Fixing the behavior of (de)select all javascript links, closing bug 2688.
Also, some very slight HTML improvements on the way there.
2005-03-18 14:46:11 +00:00
moodler df349d1dda Fixed up some styles (mostly headers) 2005-03-18 14:45:13 +00:00
moodler 4848afa2da Various little cleanups 2005-03-18 14:44:23 +00:00
defacer 8d6c341045 Obsolete. 2005-03-18 14:38:46 +00:00
defacer ab6d7869ca Use global code in javascript-static.php instead of utility.js 2005-03-18 14:38:08 +00:00
defacer 363cb62cf1 Adding universally useful functions to the mainstream. 2005-03-18 14:36:10 +00:00
moodler 3f1f367d04 Add "header" class to headingblocks 2005-03-18 14:35:05 +00:00
defacer 88b917d614 Fixing behavior of (de)select all commands and some issues with non-JS-enabled clients. 2005-03-18 14:23:45 +00:00
mits 3e03850949 translated some. 2005-03-18 13:14:03 +00:00
moodler 04981917cd Other admins cannot edit the primary admin account 2005-03-18 12:11:35 +00:00
moodler 24977f8f27 Some new errors 2005-03-18 12:10:17 +00:00
moodler 3a1eca0433 New function print_error accepts an error code instead of a string
(from error.php)
2005-03-18 12:10:00 +00:00
gustav_delius 7760f60e69 Select all / Deselect all look better as links 2005-03-18 09:21:26 +00:00
lapsa 64a2cb2022 Introduction to use shibboleth authentication module in Moodle. 2005-03-18 09:15:00 +00:00
defacer 28902d99c8 find_day_in_month now working with the latest convention of $startday, $weekday 2005-03-18 04:38:30 +00:00
defacer 621d6c9c2b Fixing a logic error... awgod. 2005-03-18 04:26:50 +00:00
defacer 7df4ed34be Continuing to debug... we now have a SINGLE rule with from_timestamp = 0, guaranteed. 2005-03-18 04:02:59 +00:00
defacer e0a3a2921a Improvements and robustness, it now appears to be parsing a concatenation
of all relevant Olson files successfully.
2005-03-18 03:06:46 +00:00
moodler 2bdc20c709 Just for now, because the new one isn't ready to unleash yet 2005-03-17 21:32:48 +00:00
moodler e5bc2f2254 Changed some colors for tablinks 2005-03-17 21:00:14 +00:00
moodler a3e706fbcf Small class changes (SE) 2005-03-17 20:59:36 +00:00
moodler 380c2091e1 Remove old div wrapper 2005-03-17 20:58:04 +00:00
moodler e77a87e1c9 Use themedir 2005-03-17 20:57:34 +00:00
moodler a9d9b46af8 Guests can't use messaging 2005-03-17 20:39:30 +00:00
gustav_delius 02852fddbd file quiz.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-17 17:06:05 +00:00
moodler cbff94ba90 First cut of cleaned-up CDC gradebook. I've renamed some database fields,
moved things around, tried to make it more moodly.   Still needs plenty of
work!
2005-03-17 16:23:28 +00:00
gustav_delius cd8d4471c8 Print course in footer 2005-03-17 15:12:07 +00:00
moodler 646d5a0281 Strip and slash alt tags on input radio buttons 2005-03-17 11:37:31 +00:00
mits 9edbb35ce2 fixed 2005-03-17 05:30:30 +00:00
gustav_delius 4e8bad7d31 Fix for bug 2749 2005-03-17 00:29:09 +00:00
gustav_delius c6f99d9640 Fix for bug 2750 2005-03-17 00:17:47 +00:00
gustav_delius f52d48db38 Added clone function to get around the differences in object handling between php4 and php5. 2005-03-16 22:15:36 +00:00
gustav_delius 55ab4eb47a file remote.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius 9d2b2e72c9 file uni_soap.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius addf795a66 file editquestion.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius 6da45c7357 file questiontype.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius 5959d92504 file rqp.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius 7e9fa11af7 file rqp.html was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius db70793c70 file lib.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius 537343247b file types.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius 62aff3b433 file uni_soap.php5 was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius 68aad3e6ec file nusoap.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
gustav_delius ab0d2f82a6 file edittype.php was initially added on branch MOODLE_15_QUIZREFACTOR. 2005-03-16 22:12:54 +00:00
stronk7 ee8940dece Updated. Next step: Quiz module. 2005-03-16 17:28:09 +00:00
moodler 98cfbb9948 FIxed some wierd line feeds 2005-03-16 16:35:33 +00:00
koenr 77c13e133d strings of this language pack are now XHTML-compliant 2005-03-16 16:26:09 +00:00
moodler 4a96dbaccc Removed a blank line ... bug 2746 2005-03-16 15:40:11 +00:00
gustav_delius 2f2aad664d implemented fix for bug 2745 contributed by kagotani 2005-03-16 12:35:19 +00:00
mits 36934a5c42 fixed. 2005-03-16 11:33:06 +00:00
phoenixfr 84391243f3 Cas specific 2005-03-16 10:43:38 +00:00
phoenixfr 6fcd19e3cb CAS function Call 2005-03-16 10:40:39 +00:00
martinlanghoff 989fa91059 Now CAS-supplied tokens can override LDAP auth - fixed 2005-03-16 10:23:16 +00:00
martinlanghoff 1f568ab426 Generalized more references to LDAP so as to be reusable by the CAS module 2005-03-16 09:17:00 +00:00
martinlanghoff dd49e6f657 Now CAS-supplied tokens can override LDAP auth 2005-03-16 09:13:15 +00:00
moodler d0c0566a38 Use new tabs (SE) 2005-03-16 08:52:28 +00:00
moodler 6775a7991e Tab style for messages 2005-03-16 08:49:18 +00:00
moodler c2ecfdfcbf Don't download MP3 files automatically.... download only when play button
is pressed.
2005-03-16 08:15:33 +00:00
defacer 4fe76cc138 Typo. 2005-03-16 03:46:17 +00:00
defacer 01b4c10789 olson_parse_on() now parses as agreed for the new timezone settings. 2005-03-16 03:41:56 +00:00
defacer 3f95436073 Respect $CFG->showblocksonmodpages. 2005-03-16 03:26:21 +00:00
mits 23b87060bf *** empty log message *** 2005-03-16 00:15:52 +00:00
koenr 0b6669de51 new strings 2005-03-15 23:30:58 +00:00
mjollnir_ 9680ba9801 Merged from MOODLE_14_STABLE: Fix for bug 2742 - sequences out of sequences in postgres 2005-03-15 23:12:50 +00:00
koenr d8d30ee6d5 New helpfiles for lesson 2005-03-15 21:49:31 +00:00
martinlanghoff 56cfbcd5c9 Allow LDAP logic to be reused by other modules 2005-03-15 20:52:34 +00:00
moodler 638b0186c9 New strings for MP3 player 2005-03-15 17:08:46 +00:00
moodler 2699de70b7 Call the new MP# player properly 2005-03-15 17:08:09 +00:00
stronk7 c661aa947b Argh!
Just deleting some files sent here by error!! (one wrong CVS dir
was the cause) Sorry!!
2005-03-15 16:27:25 +00:00
stronk7 f724fd8fd6 Simple block that shows the latest n visited activities by the user.
Not fully tested but seems to work. Enjoy!
2005-03-15 16:19:23 +00:00
paca70 bf4cc20bd8 Some updates 2005-03-15 14:09:32 +00:00
moodler f14d6f98bb Added Andy's readme 2005-03-15 13:07:44 +00:00
moodler f6f36069ca Latest versions! 2005-03-15 13:06:52 +00:00
martignoni 783e9d07f7 New config setting for tabs 2005-03-15 12:57:30 +00:00
martignoni 750517f593 Some new strings 2005-03-15 12:53:31 +00:00
martignoni cb6407830b Added 'configshowblocksonmodpages' string 2005-03-15 12:41:34 +00:00
mits 37fb39011c translated one string. 2005-03-15 10:14:22 +00:00
mits c1c6692f64 *** empty log message *** 2005-03-15 10:13:51 +00:00
martignoni 410d3a24b9 New strings to turn Blocks editing on and off 2005-03-15 10:10:41 +00:00
martignoni 35cd7f9576 More info on registration form 2005-03-15 10:08:04 +00:00
martignoni 85b72db380 Some mods 2005-03-15 10:02:38 +00:00
moodler 41682d287c Now uses the new tab structure (SE) 2005-03-15 09:58:14 +00:00
moodler 0e4ababb5a Spiffy tabs!! :-) 2005-03-15 09:55:58 +00:00
moodler 55efc39852 Tweaking tabs 2005-03-15 09:53:07 +00:00
martignoni 913c37c21a Added updatedwikipages 2005-03-15 09:49:41 +00:00
urs_hunkler 4937452c5e some more updates due to "header" naming changes 2005-03-15 09:48:47 +00:00
moodler 027b0fe755 pritn_tabs will output by default 2005-03-15 09:47:41 +00:00
moodler 0f6d2c4cf5 Don't echo print_tabs 2005-03-15 09:47:03 +00:00
martignoni 96d706ab5f added defaultessayresponse string 2005-03-15 09:45:05 +00:00
urs_hunkler 72a854c406 updates tdue to "header" naming changes 2005-03-15 09:43:24 +00:00
moodler 929f35f6d3 Using the new tab code (SE) 2005-03-15 09:25:03 +00:00
moodler ad4cb9f6b4 Styles and images added to support tabs (SE) 2005-03-15 09:23:21 +00:00
moodler ab5a05c04f New config setting for tabs 2005-03-15 09:21:50 +00:00
moodler 1343c19307 New tab styles and new autolink styles 2005-03-15 09:03:06 +00:00
moodler f88ddd6741 New class and function to print tabs (SE) 2005-03-15 08:49:14 +00:00
moodler d38577e226 Simplify autolink styles to "modulename autolink" 2005-03-15 08:38:27 +00:00
michaelpenne f6e200cbce changed how data is passed from overview to detailed view and fixed the timeout issue 2005-03-14 22:18:29 +00:00
koenr 77a2c75292 Lots of new strings and files for ga language pack.
Thanks a lot Cathal O Foirr?idh !
2005-03-14 21:20:42 +00:00
bawjaws afe6a29e0a changed vertical-align: from 'center' to 'middle' to fix validation error 2005-03-14 20:07:06 +00:00
bawjaws 7a0df2a7ee .message .time rule confusingly specified "font-weight: italic",
original author could have intended either "font-weight: bold"
or "font-style: italic". I went with the latter.
2005-03-14 20:03:20 +00:00
martinlanghoff fc44d2121f Fixed a misnamed/renamed variable probably due to a recent merge from stable that used the old var name. 2005-03-14 19:34:21 +00:00
moodler 37a88449a6 make_editing_buttons now has styles and a lot less string processing!
bug 2739
2005-03-14 19:05:39 +00:00
koenr 77e05675de new strings / various fixes 2005-03-14 17:34:48 +00:00
koenr a9768b9480 New helpfiles for lesson (not complete list yet) 2005-03-14 17:33:35 +00:00
julmis eebfa43247 Getting rid of &nbsp marks when texarea is completely empty.
fix for bug #2736
2005-03-14 16:06:55 +00:00
moodler 5c34508cfa file readme.txt was initially added on branch MOODLE_14_STABLE. 2005-03-14 15:23:44 +00:00
mits d495241040 translated some. 2005-03-14 14:22:21 +00:00
moodler f21eb048cd Use $CFG->pixpath 2005-03-14 13:48:43 +00:00
moodler f96660f8bf Whoops, how did this get in there? :-) 2005-03-14 13:31:34 +00:00
moodler 2d40fc054f Use $CFG->themedir and $CFG->themewww everywhere 2005-03-14 13:29:51 +00:00
moodler 86cc3e75a4 Two new variables $CFG->themedir and $CFG->themewww which tell us where the
themes we use are located.

For most sites these will stay in moodle/theme but it's nice for multi-hosting
sites to have the option to specify differently.
2005-03-14 13:23:38 +00:00
moodler 7899519293 English fixes ;-) 2005-03-14 13:11:10 +00:00
moodler 322344bb6b get_string will now also check inside block directories, which means
Blocks can be self-contained    (thanks Eloy for the idea!)
2005-03-14 13:08:16 +00:00
phoenixfr f4fc81160b new lines for login cas module 2005-03-14 13:06:43 +00:00
phoenixfr 9b7e5dd2d6 call of cas function in lib.php 2005-03-14 13:02:14 +00:00
phoenixfr 5888f3912c add of cas functions for login module 2005-03-14 13:01:22 +00:00
phoenixfr f8c330c023 *** empty log message *** 2005-03-14 12:19:17 +00:00
gustav_delius ee9eb2c74f Applied patch supplied by Brian King to remove the non-functional category selection menu from the export form. Closing bug 1945. 2005-03-14 07:56:45 +00:00
moodler 005d0078cb New courses are logged to the site log 2005-03-14 07:31:47 +00:00
gustav_delius a9222637f4 When removing question from quiz delete all responses for that question in that quiz 2005-03-14 06:55:01 +00:00
gustav_delius 90abbc9e15 I had forgotten to check that single questions are added only once to quiz 2005-03-14 06:22:55 +00:00
moodler 151fd19736 Log course deletions 2005-03-14 02:39:39 +00:00
mits 0a580cefb4 translated some. 2005-03-14 02:12:24 +00:00
martinlanghoff 64169fe6a0 Merged from MOODLE_14_STABLE - Fixed memory limit overrun in backup config page. Why SELECT * FROM mdl_course when all we need is id? :) 2005-03-14 02:07:52 +00:00
moodler 6e0c7c2175 New strings to turn Blocks editing on and off 2005-03-14 01:34:18 +00:00
adamtpaw 783c5436d8 Restoring english field names in examples of tekst files. 2005-03-13 22:45:19 +00:00
mits 3a5c2d8abf polished :) 2005-03-13 21:23:23 +00:00
mits 830f6c9dfc translated one string. 2005-03-13 21:19:37 +00:00
mits 81874f628b *** empty log message *** 2005-03-13 21:00:13 +00:00
moodler b2b4ae8b02 Center-align the intro boxes 2005-03-13 17:28:04 +00:00
moodler de99223aed Some styles for login page 2005-03-13 17:26:24 +00:00
moodler 5913e88f78 Consistent file styles 2005-03-13 17:17:11 +00:00
moodler 6b091c9499 Styles for file listings 2005-03-13 17:16:26 +00:00
moodler 9d586c6203 FIxed the styles on this page 2005-03-13 17:14:15 +00:00
moodler f6a854b91d New fonts for file listings 2005-03-13 16:54:29 +00:00
moodler b8d03c6b77 Styles on file listings 2005-03-13 16:32:38 +00:00
moodler b9dc937d01 Removed some redundant wrappers 2005-03-13 16:25:30 +00:00
moodler ca08f84317 Added styles for .generalbox#intro - the intro on each module 2005-03-13 16:18:56 +00:00
moodler b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00
moodler 6ee8277fc1 Moved print_headingblock to proper place 2005-03-13 14:54:24 +00:00
mits 69308c2395 *** empty log message *** 2005-03-13 14:38:15 +00:00
gustav_delius 93d34a8c5b some XHTML fixes 2005-03-13 13:55:19 +00:00
moodler 7ff9860db0 This change will break themes for sideblock, but now all the main TH cells that use
the standard kind of look (eg gradient) have a consistent class "th.header"
2005-03-13 13:50:23 +00:00
moodler 907b2850b4 Added new config variable to disable blocks on activity mod pages bug 2732 2005-03-13 13:21:24 +00:00
moodler 1b67ca535f Fixed headings styles so that they only apply to standard headings 2005-03-13 13:00:08 +00:00
moodler 4419aa8007 Added classes to major headings 2005-03-13 12:56:36 +00:00
urs_hunkler fed9748489 glossary CSS updated 2005-03-13 11:17:55 +00:00
phoenixfr 863c3cd67c *** empty log message *** 2005-03-13 10:14:01 +00:00
phoenixfr ec7d2201cc cas functions frr login 2005-03-13 10:07:40 +00:00
gustav_delius e6157a7368 fixed typo leading to bug 2723 2005-03-13 09:56:10 +00:00
urs_hunkler 26480dc538 added ".sideblock .heading .title" definition with "width:auto". If the width is not set it will be 100% and the icons wrap and make a 2 line heading.
changed the sideblock definitions from id to class.
2005-03-13 08:24:51 +00:00
urs_hunkler 0aac33841d I deleted the letter-spacing for the calendar block on the course page, because it became too wide. 2005-03-13 08:18:11 +00:00
moodler 5741a394ac Added footer to maintenance message 2005-03-13 07:28:19 +00:00
mits d22e4b8e90 translated som. 2005-03-13 03:35:36 +00:00
stronk7 c90b35f7fb Added support for glossary "view entry" log action. 2005-03-13 00:50:43 +00:00
stronk7 e4fa95c287 Bump! Workshops are done. 2005-03-13 00:14:47 +00:00
stronk7 b16d48b04e Workshop module backup & restore now working completely. Upgrade
logic added.
2005-03-13 00:12:28 +00:00
gustav_delius 8e445985d4 format_text inserted to fix bug 2558 2005-03-12 23:12:35 +00:00
skodak e2a1a0fa49 SERVER_ADDR is not defined in IIS, changing initial value to 127.0.0.1 2005-03-12 21:26:54 +00:00
skodak ea7a672d82 typo correction 2005-03-12 21:17:15 +00:00
stronk7 28b09d7057 Now hidden lessons cannot be viewed.
Thanks to Javier Gil detecting it. Bug 2733.
(http://moodle.org/bugs/bug.php?op=show&bugid=2733)
2005-03-12 18:00:05 +00:00
defacer b35fc18250 Fix for bug 2731. 2005-03-12 15:56:19 +00:00
moodler 27586f1d10 Bug fixes for user graph axes 2005-03-12 15:43:08 +00:00
mits 0b533544ce polished. 2005-03-12 10:52:42 +00:00
moodler f23ac2ac3c MOre info on registration form 2005-03-12 09:18:43 +00:00
moodler 1831d8b954 FIxed a typo from my last checkin 2005-03-12 06:24:57 +00:00
moodler 0219eb2bfa More readdir problems! 2005-03-12 06:23:22 +00:00
moodler 3cb383b160 Fixed file browsing when there are files named 0 2005-03-12 06:21:35 +00:00
defacer 5e4e027fea Pre-emptively put a lower bound of 1970 to years, instead of putting a lower
bound of 0 to the generated timestamps. Windows' < 1970 bug won't have it
otherwise.
2005-03-12 01:20:37 +00:00
stronk7 b6942f4948 Updated to the latest version (and tidy up a bit too). 2005-03-11 23:51:54 +00:00
stronk7 e54feb0db5 Tidy up a bit. Now it should be XHTML (at least it's XML) :-) 2005-03-11 23:51:30 +00:00
michaelpenne 7f2ad6c2d3 changed the math for calculating the time left in a lesson to be more compatible with browsers 2005-03-11 23:15:18 +00:00
mits 5695336251 translated one string. 2005-03-11 22:56:37 +00:00
mits 54e03195d9 fixed. 2005-03-11 22:53:04 +00:00
koenr d1a222ac57 New language pack
by Cathal ? Foirr?idh
2005-03-11 22:30:34 +00:00
koenr 51b286cc31 forgot to save 2005-03-11 22:19:42 +00:00
koenr b62097eccf New languagepack
Georgian, by Lasha Altunashvili and team
2005-03-11 22:11:20 +00:00
bawjaws e72f10f496 change class from 'autolink' to 'glossary-autolink' to differentiate
(at least potentially) from other autolinks.
2005-03-11 20:55:04 +00:00
bawjaws ba9616170e add specific classes for different types of autolink, allowing them to
be styled differently
2005-03-11 20:52:11 +00:00
paca70 9935523903 Updates. Based on work from Mio Taalas. 2005-03-11 18:52:50 +00:00
paca70 86bd9a1b8e Updates , Based on translations from Mio Taalas 2005-03-11 18:48:33 +00:00
stronk7 33743651c2 Solved one problem causing the redirect to framed view not sending all the
variables to the script, so the agree system, wasn't working at all.
Bug 2724 (http://moodle.org/bugs/bug.php?op=show&bugid=2724)
2005-03-11 18:38:28 +00:00
moodler a835c51b75 Added mp3player 2005-03-11 17:38:16 +00:00
phoenixfr bb52a457eb cas_enabled 2005-03-11 17:32:52 +00:00
moodler 70e6818955 A quick hook for CAS to work 2005-03-11 17:22:02 +00:00
moodler 0dd01de516 Removed CAS library from here 2005-03-11 17:15:35 +00:00
moodler ffe0c352c1 Moving the CAS library into the main library directory 2005-03-11 17:13:31 +00:00
moodler da79d75de2 Putting in a hook to allow the CAS auth module to provide a completely
separate login page and login method.
2005-03-11 17:04:37 +00:00
moodler 7d045d13f9 Removing unnecessary font 2005-03-11 15:10:10 +00:00
moodler 508c34122f Removed unnecessary font 2005-03-11 15:08:17 +00:00
moodler 222fd71089 FIxed some notices and now the X-axis text is rotated and readable! Yay! 2005-03-11 14:57:07 +00:00
moodler 01dc6ab67a Various little tweaks here and there 2005-03-11 14:56:34 +00:00
moodler 7a6b7e333b Using a real Free font now: Vera from Bitstream 2005-03-11 14:55:54 +00:00
adamtpaw 7bacb860c5 Few corrections, and return to "aktywnosci" zamiast "skladowych". 2005-03-11 09:33:12 +00:00
phoenixfr 5b9d159e8d *** empty log message *** 2005-03-11 07:48:28 +00:00
phoenixfr d9121bf868 phpcas comment 2005-03-11 07:43:47 +00:00
defacer bc5750fa6d IE doesn't display anything after a script include tag that closes with />.
Please close all your script tags like <script></script> or else.

Disgusting.
2005-03-11 03:29:41 +00:00
michaelpenne 4b63a1cbe8 added content to these 2005-03-10 23:59:21 +00:00
michaelpenne 23381eef51 added defaultessayresponse string to the lang file (not sure why I had this in lesson.php) 2005-03-10 22:58:58 +00:00
koenr be5dd782fa new helpfile 2005-03-10 22:54:32 +00:00
defacer 658f6a9ce3 Fix for bug 2711:
Blocks upgrade no longer breaks in Postgres. Also, a "hell why not"
robustness addition to the MySQL upgrade.
2005-03-10 22:48:29 +00:00
michaelpenne 011cfc95ed updated lesson_delete_instance to delete records from timer, branch, and high_scores tables 2005-03-10 22:43:00 +00:00
mits e6e3416ce9 translated some. 2005-03-10 22:13:13 +00:00
koenr d0e7f29362 typo 2005-03-10 21:54:19 +00:00
michaelpenne 1c97019eaf removed lesson_clean_data_submitted() function. Removed all instances of its use before I did this 2005-03-10 20:51:26 +00:00
michaelpenne d0b8bcdc8b updategrade now cleans params correctly now (i hope) 2005-03-10 20:42:09 +00:00
michaelpenne 801697d170 insertpage and updatepage now clean params correctly (i hope) 2005-03-10 20:34:32 +00:00
stronk7 c206050394 Old bug introduced in lib.php 1.280. It was causing a lot of mails being sent
instead of the 2 days limit. Bug 2716
(http://moodle.org/bugs/bug.php?op=show&bugid=2716)
2005-03-10 20:26:25 +00:00
stronk7 5861ae7589 "graphical" structure updated plus some minor indent in XML 2005-03-10 17:39:25 +00:00
defacer 239d185a75 Updating the overview screen "sort by question grade" hack to work with the
multiple sort column suppport.
2005-03-10 16:40:13 +00:00
defacer 73e4f58953 Support for arbitrary number of sort columns.
There is an active hard limit in there which does not allow more than two,
but changing this is as simple as setting $maxsortkeys to something else.
2005-03-10 16:38:01 +00:00
moodler 550999735f Latest tags 2005-03-10 15:31:24 +00:00
moodler a736e963a5 New log entry to show when a glossary entry is viewed 2005-03-10 14:38:04 +00:00
moodler d0d0cd9c7f You can now specify fields to get_record 2005-03-10 14:13:26 +00:00
moodler 3ae2cde772 Just where I'm at .. .changing rapidly 2005-03-10 14:12:38 +00:00
moodler e3f4c26c93 Some layout fixes 2005-03-10 14:11:45 +00:00
moodler 69ad0d6928 Better logging and recent activity 2005-03-10 14:11:07 +00:00
moodler 1ac7ee24d7 CFG->nofixday can override the ficing of day format in userdate 2005-03-10 14:10:21 +00:00
moodler 27bf9e2083 Better styles 2005-03-10 14:09:45 +00:00
phoenixfr f0f0a34af0 functions for login module 2005-03-10 13:57:48 +00:00
moodler 8f7dc7f1c7 Variety of small fixes, but mostly related to how the recent activity
block is constructed.  A new function exists to pump these notes out
in a standard way :  print_recent_activity_note.

Module dependencies also updated because of this.
2005-03-10 13:30:57 +00:00
moodler 0710337efe Brought some styles into line 2005-03-10 13:28:51 +00:00
paca70 33c35e6c30 Create missing directories too. 2005-03-10 10:42:33 +00:00
phoenixfr 1ca9c0a45a use of css 2005-03-10 10:02:02 +00:00
phoenixfr 4e61423bd9 use of ldap congig.html and use of the css 2005-03-10 10:01:18 +00:00
phoenixfr d840974c26 CAS new line 2005-03-10 09:29:05 +00:00
paca70 231109580b Add old-tag to filenames if english version is newer. 2005-03-10 08:51:39 +00:00
moodler a8466100f3 Removing THEME variable and replacing with CSS (SE) 2005-03-10 08:32:10 +00:00
moodler 4663fb73ba WIndows now try and pop to the front when a new message comes in 2005-03-10 06:18:28 +00:00
moodler 211ea3e9d3 COnsistent use of readdir 2005-03-10 06:04:29 +00:00
moodler 200cc919db Fixed a bug when encountering directories named "0"! 2005-03-10 06:02:45 +00:00
moodler 07b9b0b94d Removing HTTP_POST_VARS which isn't always there 2005-03-10 05:19:49 +00:00
moodler 7d56fe1077 Use real tabs in the error_log call because \t doesn't seem to work 2005-03-10 05:05:12 +00:00
martinlanghoff de6fa62a56 Fixes from Dan Marsden to getremoteaddr() and address_in_subnet() -- getenv() isn't supported under ISAPI (IIS) so we use _SERVER instead. address_in_subnet() had a loop control error. 2005-03-10 02:36:51 +00:00
stronk7 75549f039a HTTP_POST_VARS present some problems under PHP5 (deprecated,
configuration needed). Used $_POST (with data_submitted(), if
possible) instead.
NOTE: Detected in a lot of places!
2005-03-10 00:28:42 +00:00
stronk7 956b17ed8c Some minor changes. Backup tested and seems ok (restore remaining). 2005-03-10 00:15:37 +00:00
mits c30e844ee5 translated some. 2005-03-09 22:29:00 +00:00
defacer 1656bb3e2f Fix for bug 2701.
Credits for the report and the patch go to Samuli Karevaara.
2005-03-09 21:16:38 +00:00
defacer 6f1cc8d63c Simplified by removing two optional parameters from forum_print_search_form,
because everyone was using the same values for them!

Also renamed the function to simply forum_search_form, because in the end
noone was using it to PRINT html, it was just put into a variable.
2005-03-09 20:50:37 +00:00
defacer ef4ee34938 Fix for bug 2705:
Decoupling from the beast that is /mod/forum/lib.php, it was a pity to
include 100+ KB of code so that we could reuse 7-8 lines.

This block also wasn't including that library itself, so after Martin
removed that dependency from courses it was broken as well.
2005-03-09 20:38:53 +00:00
defacer 969782386a Correcting whitespace, modernizing a bit, removed one notice. 2005-03-09 20:36:04 +00:00
paca70 879d932815 Fixed mistake on url-trimming and added some debug info. 2005-03-09 20:24:13 +00:00
martignoni 30972fe7fc Release notes for 1.4.4 2005-03-09 19:55:24 +00:00
paca70 6142f65fce Lyhyttehtävä > Päiväkirja > on nyt muistio
saapi nähdä kauanko.
2005-03-09 19:53:15 +00:00
paca70 2b0b68dec3 Updates from Samuli Karevaara.
Thanks Samuli!
2005-03-09 17:04:56 +00:00
paca70 2b92c040c8 Merged postgresql fixes from MOODLE_14_STABLE(Revision 1.2.4.1) to HEAD. 2005-03-09 15:14:27 +00:00
martignoni 4dce0cf8b4 Updates for CAS values 2005-03-09 14:21:14 +00:00
martignoni 42747c73d3 New strings for the quiz results overview page. 2005-03-09 13:59:28 +00:00
martignoni d0d7baebf3 New string for 'recent news' block 2005-03-09 13:54:20 +00:00
moodler 09840894b2 Just some cleaning up of the English 2005-03-09 13:04:31 +00:00
phoenixfr c220c8d8a5 Updates for CAS values 2005-03-09 12:53:11 +00:00
phoenixfr 426e2aa335 *** empty log message *** 2005-03-09 12:43:07 +00:00
phoenixfr 3fb7e0a074 Version 1 du module CAS 2005-03-09 12:36:24 +00:00
bawjaws 4db5de0dfa make Choice respect text formatting selection 2005-03-09 09:50:07 +00:00
mits cb537d98d9 translated some. 2005-03-09 03:55:47 +00:00
moodler 89e1ce0474 More fixes for linking. Bug 2693. (SE) 2005-03-09 01:13:53 +00:00
stronk7 07b11e4fcb course/lib must be included ALWAYS because block_site_main_menu uses it. 2005-03-08 23:35:35 +00:00
moodler 71d4f59316 Fixed a bug in the ignore tags array - bug 2693 (SE) 2005-03-08 23:34:40 +00:00
mjollnir_ 3f05218715 In blocks_print_group, if we just return if pageblocks are empty, we never get to print the admin block 2005-03-08 23:24:10 +00:00
mits 9ac6ae7206 *** empty log message *** 2005-03-08 22:09:19 +00:00
mjollnir_ 5ad4a39da5 Merged from MOODLE_14_STABLE: Add new line after url in journal mailout to prevent /mod/journal/view.php?id=1----- type requests 2005-03-08 20:56:30 +00:00
mjollnir_ 5f31b29682 Merged from MOODLE_14_STABLE: Postgres fix in quiz (added AS) 2005-03-08 20:46:58 +00:00
defacer 57c3bae3c2 New strings for the quiz results overview page. 2005-03-08 19:07:41 +00:00
defacer 9d034c94e1 Styles for the new quiz results overview. 2005-03-08 18:58:11 +00:00
defacer 526a130e50 Checking in the code for the "improvements to the quiz results overview page"
project, commissioned by the University of York. Enjoy!
2005-03-08 18:49:00 +00:00
moodler f05512fd16 Removing for now 2005-03-08 18:32:35 +00:00
moodler 0efb3c3d1d Prevent guests from making ratings in forums 2005-03-08 17:59:57 +00:00
moodler cc9b80f906 Improvements with how format_text is called 2005-03-08 17:46:51 +00:00
moodler af328e4b14 Speed and beauty improvements when displaying discussion listings 2005-03-08 17:32:08 +00:00
martignoni 2784ebd952 Modified strings for the calendar admin screens. 2005-03-08 15:31:02 +00:00
phoenixfr abbcd5f723 *** empty log message *** 2005-03-08 15:02:21 +00:00
defacer 554906f69a New feature: you can now give a HTML class to a column with $table->column_class() 2005-03-08 14:57:16 +00:00
moodler 6580d0af68 Updated version, since it's a significant re-write 2005-03-08 14:36:03 +00:00
moodler 27ecf4b614 New string for 'recent news' block 2005-03-08 13:02:36 +00:00
moodler 90ec387a54 Major gain in efficiency for the latest news block and better styles
Still working on more improvements here
2005-03-08 12:58:51 +00:00
defacer 7270d81fad New table class that makes it easy to use goodies like paging etc. 2005-03-08 11:14:15 +00:00
martignoni a1931d6068 Got rid of dead end for guests 2005-03-08 09:54:09 +00:00
moodler 68258534a5 FIxed a problem with teacher forums (couldn't read any discussions!) 2005-03-08 09:53:23 +00:00
martignoni 70bcf579a6 The teacher can now move selected questions to a chosen category or delete them, see http://moodle.org/mod/forum/discuss.php?d=16239 and http://moodle.org/mod/forum/discuss.php?d=19734 2005-03-08 09:50:44 +00:00
moodler 369961924b More styles added for glossaries (SE) 2005-03-08 09:44:59 +00:00
moodler 3a26f0eac2 Some more style stuff (SE) 2005-03-08 09:44:26 +00:00
martignoni 9ce0e952c9 Questions that are in use are now only deleted from the category list but not from quizzes or old attempts. 2005-03-08 09:42:50 +00:00
martignoni 804cf4b42f Now can add a single question to quiz with a single click. 2005-03-08 09:38:53 +00:00
martignoni 778d59e385 Got rid of the dead end when guests are trying to post 2005-03-08 09:34:40 +00:00
martignoni 5e0d7c17f5 Moved aspellpath configuration onto the editor page. 2005-03-08 09:32:37 +00:00
gustav_delius 19201c8dac called table column 'Action' consistently, fixing bug 2698 2005-03-08 09:31:20 +00:00
martignoni 0c518c5041 Added user fields for Skype, AIM, Yahoo, and MSN messengers. 2005-03-08 09:24:22 +00:00
gustav_delius 6419e3bf29 forgot to commit this move left icon earlier. This is not a professionally created icon, perhaps someone can do a better job? 2005-03-08 09:22:57 +00:00
martignoni 78deeb9e9e Put badwords list in string files 2005-03-08 09:20:55 +00:00
martignoni 2b9d2ab282 Some tweaks 2005-03-08 09:15:33 +00:00
stronk7 b77de584dd Release info updated to 1.4.4 (es) 2005-03-08 08:25:39 +00:00
moodler 5f3ea2ab5b Keywords: What are them? lol (sorry Williams :-) 2005-03-08 08:25:08 +00:00
moodler 8e6b85f63c Link to new help file 2005-03-08 08:23:43 +00:00
moodler 5258dd5001 New version of the help file to correct a big mis-conception 2005-03-08 08:21:59 +00:00
moodler dbc6b4447c Duplicate entries are now removed. (SE) 2005-03-08 07:48:00 +00:00
moodler b7ac9c8c75 Fixed a bug that was using all versions of each page in the filter process.
Now only one instance of each page is used. (SE)
2005-03-08 07:47:10 +00:00
moodler 21f6c44b05 New function to remove duplicate entries from an array of filterobjects 2005-03-08 07:45:01 +00:00
martignoni 88c22491f4 Added settings for allowemailaddresses and denyemailaddresses to the config menus 2005-03-08 07:34:12 +00:00
defacer d517110237 Modified strings for the calendar admin screens. 2005-03-08 04:47:14 +00:00
defacer 7678e65cac New useful function submitFormById(). Fires off the form's onsubmit() handler first,
if applicable, and only submits if the handler doesn't exist or returns true.
2005-03-08 04:22:38 +00:00
stronk7 80117b519d Now group images are in backup & restore 2005-03-07 23:40:25 +00:00
mits 93cf96f2e1 polished and translated one string. 2005-03-07 21:06:05 +00:00
mits 243dbcffee *** empty log message *** 2005-03-07 20:53:50 +00:00
gustav_delius 9274189f25 small fix to the versioning code 2005-03-07 19:45:39 +00:00
moodler a2b8226353 Don't show the front page topic section when it's empty anyway. bug 2691 2005-03-07 17:24:32 +00:00
defacer a0413b585d New function for sql portability: sql_isnull().
NOTE: I don't know how this is supposed to be phrased in Postgres. Can
someone who does give a finger of help here? :)
2005-03-07 16:58:00 +00:00
moodler ff2fc9e22d Some buffing up ... no changes 2005-03-07 16:10:52 +00:00
moodler 8a0556be8c Fixed four more references to mimetypes.php (bug 2690) Thanks, Gustav! 2005-03-07 15:11:43 +00:00
moodler ec00f82454 formatting forumposts on user page 2005-03-07 12:16:33 +00:00
moodler 7ade05c52a MOre changes to use filelib.php 2005-03-07 12:10:22 +00:00
moodler 5a46b1566c Added proper styles to block buttons 2005-03-07 12:08:44 +00:00
moodler 430c6392a0 Just some tiny style fixes 2005-03-07 11:53:00 +00:00
moodler a370c8950e Tidied up some strings and added some mime types for flash etc 2005-03-07 11:42:52 +00:00
moodler 4d68dff4b7 Call new lib/filelib.php 2005-03-07 11:34:16 +00:00
moodler f1e0649c1c Removed files/mimetype.php and put it into lib/filelib.php instead
where it always should have been.
2005-03-07 11:32:03 +00:00
urs_hunkler 4aaaf2091e updated the layout and color definitions to match the actual sideblock structure. I think designing Moodle will be really fun ;-) 2005-03-07 08:02:43 +00:00
martinlanghoff eb4e67a27f The olson parser is feature complete and ready for people to start playing with it. The entry point is the olson_todst($filename) function. 2005-03-07 07:39:27 +00:00
moodler 875b56946b Fixed up formatting of this page 2005-03-07 06:33:41 +00:00
moodler ffa1447181 Minor formatting changes ... put a table around the htmleditor area to
rein it in.
2005-03-07 06:32:54 +00:00
moodler c305e24e94 Merged fix from stable for dates 2005-03-07 06:00:04 +00:00
moodler 46767225d9 We want general table cells to be vertically aligned pretty much all the time 2005-03-07 05:10:37 +00:00
moodler 9184faa478 Vertically align first column ... should fix much stuff 2005-03-07 05:06:20 +00:00
moodler 8a38720662 Fixed a boo boo 2005-03-07 05:03:48 +00:00
moodler 27d2521242 Style for help link is "helplink" 2005-03-07 05:02:25 +00:00
moodler 15b2ea91ca New style for "helplink" 2005-03-07 05:01:20 +00:00
moodler 41b47dd43a FIxed up some styles for the help links 2005-03-07 05:00:58 +00:00
moodler c9b8eb3435 Removed another dead-end for guests bug 1975 2005-03-07 04:47:39 +00:00
martinlanghoff e739b19a7e Merged from MOODLE_14_STABLE - Fixed bug 2319 DB auth not fetching user data fields correctly -- credits go to andres.marquez@accenture.com and doug nutsch 2005-03-07 02:01:25 +00:00
stronk7 bbab80d1fc Some minor XML indentation, some changes in the XML structure and
some important bugs. Now everything seems to work properly with
lessons and backup/restore.

Only 1 pending change: Should the answer->grade field in old backups
  go to the new score field??????
2005-03-07 01:32:05 +00:00
koenr 56b4711292 newly translated helpfiles 2005-03-07 01:27:14 +00:00
mits 2529f3c50d *** empty log message *** 2005-03-06 21:25:31 +00:00
defacer 591052a446 Doing away with generaltableheader 2005-03-06 20:26:42 +00:00
defacer deeef3c829 Doing away with .generaltableheader 2005-03-06 20:22:07 +00:00
defacer 1ea6500db7 Intending to change .generaltableheader to .generaltable .header
and do the same with .generaltablecell. First of all, let's ensure we don't
break those parts of the code that haven't been updated.
2005-03-06 20:09:34 +00:00
moodler 40b372365d SOme security! 2005-03-06 18:13:05 +00:00
koenr c6f4379f89 missing strings 2005-03-06 17:21:49 +00:00
gustav_delius c63bf72a9d The up and down arrows for moving sections now jump to the moved section when the page reloads. Makes it easier to move sections over longer distances. I actually thought I had fixed this a long time ago but apparently not. 2005-03-06 14:57:23 +00:00
minkowski 8d729f4892 Thai Language for Moodle 1.4.3 Stable and 1.5 dev 2005-03-06 14:24:55 +00:00
mits e9fbdfc93a translated some. 2005-03-06 12:48:59 +00:00
koenr cbf1047d8c new strings translated 2005-03-06 12:21:07 +00:00
gustav_delius 03f9425fd2 The teacher can now move selected questions to a chosen category or delete them, see http://moodle.org/mod/forum/discuss.php?d=16239 and http://moodle.org/mod/forum/discuss.php?d=19734
There is also a 'Deselect all' button which I implemented provisionally by putting an extra function checknone() into javascript-static.js. This should be cleaned up by someone who knows javascript.
2005-03-06 12:00:46 +00:00
moodler 556963f5f1 Much more user-friendly for guests 2005-03-06 06:48:48 +00:00
moodler c59eb3416a Got rid of the dead end when guests are trying to post 2005-03-06 06:20:37 +00:00
defacer 381612daf9 Adding filterByParent() for collections. 2005-03-06 00:00:18 +00:00
defacer 59556d4833 Switching < to <= which is the correct operator 2005-03-05 23:57:19 +00:00
defacer 08ee877a49 Removing call to the obsolete dst_update_preset() 2005-03-05 22:33:45 +00:00
defacer c9e72798d4 Changing the way that the DST offset is retrieved, given a timestamp.
This is a nightmare issue, as far as I can think of this is "the" solution.
2005-03-05 22:23:08 +00:00
mits 24bba8390f upgraded some. 2005-03-05 20:28:51 +00:00
defacer 3a22527cdb Changing some hardwired filenames and strings for the transition to "timezones" 2005-03-05 20:18:45 +00:00
mits a9074f5d27 translated some. 2005-03-05 20:17:38 +00:00
defacer 4c669559f4 Renaming dst_edit.html to timezone_edit.html 2005-03-05 20:15:56 +00:00
defacer ca071fa662 Renaming dst.html to timezones.html 2005-03-05 20:11:49 +00:00
defacer a1718f64d3 Updating the calendar options page to more correctly reflect what we 'll
be doing with "timezones".
2005-03-05 20:07:13 +00:00
defacer 762b716363 Renaming dst.php to timezones.php (more appropriate) 2005-03-05 20:05:30 +00:00
moodler 5fd1a5d81f Cleaned up this file a bit, was getting messy! 2005-03-05 18:13:44 +00:00
moodler fe825e2c33 Fussy tweaking 2005-03-05 17:44:00 +00:00
moodler 94566df76f Updated the example to be a bit more relevant 2005-03-05 17:42:20 +00:00
moodler f7ab4e55c0 Added settings for allowemailaddresses and denyemailaddresses to the config menus 2005-03-05 17:37:04 +00:00
moodler 66b7c2470b Moved aspellpath configuration onto the editor page. 2005-03-05 17:25:03 +00:00
defacer 486589c971 Removing extra space between .sideblock .hidden 2005-03-05 16:12:07 +00:00
gustav_delius 1997f36731 Questions that are in use are now only deleted from the category list but not from quizzes or old attempts. 2005-03-05 16:03:59 +00:00
moodler 14ca3084a0 Better check on aspell 2005-03-05 15:47:49 +00:00
gustav_delius fef9b51dac Now can add a single question to quiz with a single click. 2005-03-05 12:55:26 +00:00
moodler 3bab9f2a04 Renamed all the styles needed for sideblocks 2005-03-05 12:37:54 +00:00
moodler 7885772188 Fixed sideblock styles to fit new simple naming scheming and added finer control 2005-03-05 12:22:33 +00:00
gustav_delius b7c42fe64a clone is PHP5 only and also wasn't really needed here 2005-03-05 12:09:41 +00:00
moodler dc15cff35a Modern version :-) 2005-03-05 11:53:46 +00:00
gustav_delius 3d3f159086 fixed notice in preview 2005-03-05 11:52:05 +00:00
moodler 3ac6807ee1 Added backup/restore support for the new fields I added today 2005-03-05 10:31:58 +00:00
stronk7 19d5a7544f Support for IM (users table) 2005-03-05 10:22:54 +00:00
moodler 772fa4904e LInks for AIM and Yahoo 2005-03-05 06:26:44 +00:00
moodler 32d4301be8 Added callto: as an allowed protocol 2005-03-05 06:01:05 +00:00
moodler 766d2bf3b3 Added user fields for Skype, AIM, Yahoo, and MSN messengers. :-)
If anyone knows good links+images to use for AIM, Yahoo and MSN let me know
2005-03-05 05:57:10 +00:00
moodler 24e1eae4a2 Implemented bug 2676 - jump back to working section after clicking
on an activity modification link in course view...
2005-03-05 05:19:26 +00:00
mchurch 1fb5d4b081 Added the 'get_recent_activity' function (see bug 1897). 2005-03-05 04:14:51 +00:00
moodler 8a922475a0 Thanks, Eloy! I've got it in weblib instead 2005-03-05 04:09:20 +00:00
moodler 01af49bb2d WHoops!! Forgot to check this in! 2005-03-05 04:08:29 +00:00
moodler 83fb58dd02 FIx for windows I think 2005-03-05 03:58:13 +00:00
moodler e661425c2b Use a customised style for censored words 2005-03-05 03:41:00 +00:00
moodler fe9e175313 Putting shorter words last 2005-03-05 03:36:21 +00:00
moodler fc34bbe886 Improved censor
- now blacks out words using styles
  - gets the words from the language pack
2005-03-05 03:32:38 +00:00
moodler 832b9f8204 Removed filter and put badwords list in string files 2005-03-05 03:14:45 +00:00
martinlanghoff b87a5a23a5 Reorganized the rules and fixed a couple of bugs in the olson zone parser 2005-03-05 02:43:07 +00:00
stronk7 7b759a6138 One more thing to do. :-) 2005-03-05 00:49:57 +00:00
mits 2ea70bbe69 upgraded for 1.5 2005-03-05 00:34:47 +00:00
stronk7 ac8e16be13 Bye. Now all those tabs are out 2005-03-05 00:09:39 +00:00
mits 4e9007faaa polished 2005-03-04 22:53:18 +00:00
mathusiast b80338881e Fixed up some old junk and added some missed translations. 2005-03-04 21:10:53 +00:00
stronk7 c21f449fcd Not really sure if you want this there, but.... 2005-03-04 19:28:48 +00:00
moodler 2c223cb7e4 Some new styles for messages 2005-03-04 15:23:16 +00:00
moodler e610734520 Added CSS hooks for page 2005-03-04 14:58:51 +00:00
moodler acd21a2d14 OK, finally fixed that refresh bug in Firefox! Added styles too. 2005-03-04 14:53:23 +00:00
martignoni cde0467c5c Added a short note to the search help 2005-03-04 12:48:00 +00:00
moodler 88adb5aefe Foxed a typo http://moodle.org/mod/forum/discuss.php?d=19654#93364 2005-03-04 12:24:08 +00:00
martinlanghoff af2309e366 We now postpone parsing of AT until we have the GMTOFFSET handy; some reorganization of the returned arrays, and starting to prepare the rationalized DST entries for Moodle DST table 2005-03-04 12:05:26 +00:00
martinlanghoff 720e6293ad Olson parser now parses Zones and Rules 2005-03-04 10:59:29 +00:00
martignoni 3452e7b6c1 New enrolment string 2005-03-04 10:46:10 +00:00
martignoni 52d09c18d8 Versioning of questions 2005-03-04 10:44:01 +00:00
martignoni 51bf89234b Finishing off search capability 2005-03-04 10:39:56 +00:00
moodler 3e88d524ad New faster filters! 2005-03-04 10:13:42 +00:00
moodler facc743aa2 Rewritten to use the new generic filter function. (SE) 2005-03-04 10:12:44 +00:00
moodler a039c3af28 Generic filter function. It's a reworked version of the old glossary
filter and is now more efficient.(SE)
2005-03-04 10:10:24 +00:00
urs_hunkler 8c6d5d6ac8 updated some properties for the forum 2005-03-04 08:57:39 +00:00
urs_hunkler 9d3144d9f7 updated the properties for the hide-show buttons and for calendar display 2005-03-04 08:17:24 +00:00
moodler baa2f74e1c Default old posts from 60 > 30 ... 2005-03-04 05:59:22 +00:00
mchurch 226f79e03a Corrected a typo that was throwing errors. 2005-03-04 05:36:26 +00:00
moodler 056bb94e44 Right-align headermenu 2005-03-04 02:49:01 +00:00
moodler 976526f8f0 FIxed a notice 2005-03-04 02:22:49 +00:00
moodler 2efa8aa397 Styles on enrol page 2005-03-04 02:19:05 +00:00
moodler 7bdc9b2341 Resized course box a bit 2005-03-04 02:16:09 +00:00
moodler 82eda1cf55 Slightly better, at least it validates now 2005-03-04 02:14:44 +00:00
moodler 906890569e Accidentally left in some debugging code 2005-03-04 01:55:17 +00:00
moodler 21618f9320 Enrolment strings 2005-03-04 01:54:08 +00:00
moodler 553924dc80 Some fixes to the enrolment page 2005-03-04 01:53:53 +00:00
stronk7 70cc4fc602 Added recent quiz module changes 2005-03-04 00:46:09 +00:00
stronk7 8032acc64c Simple replace of tabs to spaces!! 2005-03-04 00:30:02 +00:00
mjollnir_ cf4a271d64 Reworking join to make it compatible with postgres 2005-03-03 23:19:19 +00:00
mjollnir_ 900416ed8e Fixing warning (postgres does not like where id = '') 2005-03-03 23:11:13 +00:00
mits da33ef095a translated some. 2005-03-03 19:05:12 +00:00
mits a229283283 polished 2005-03-03 17:52:12 +00:00
gustav_delius c6bfdec3fc Versioning of questions: when editing questions the teacher is told about the quizzes in which the question is used and is asked whether to replace them with the new version or not. If there are already attempts at a question than the original version is always kept in the database for audit purposes. More details at http://moodle.org/mod/forum/discuss.php?d=16479 2005-03-03 15:17:45 +00:00
gustav_delius e163bf2d33 Create guest user account during installation, fixing bug 2667 2005-03-03 14:56:19 +00:00
moodler 12d2e1e7b7 A few small fixes 2005-03-03 14:02:30 +00:00
moodler d8e0b213ac Added a short note to the search help ... translators may want to update but
it's not crucial.
2005-03-03 12:27:48 +00:00
moodler a4affadef1 Show last search in the mini search bar 2005-03-03 12:25:10 +00:00
moodler 77ffdf4b4c Finishing off search capability with the ability to search by instance,
and in this case, by forum.
2005-03-03 12:22:13 +00:00
thepurpleblob 6e31897b2d Export know knows about random questions so it can ignore them 2005-03-03 11:52:02 +00:00
thepurpleblob 87345478a5 Now ignores random questions when exporting. 2005-03-03 11:51:07 +00:00
mits 9c69351b04 translated some. 2005-03-03 10:27:28 +00:00
moodler 5cae3a321c Fixed timesincestart stuff, I think. bug 2466 2005-03-03 08:42:43 +00:00
martignoni 0bb3ec63a6 New strings 'categoryadded' and 'categorydeleted' 2005-03-03 08:01:23 +00:00
martignoni 89a78aa1a7 New string for block title 2005-03-03 07:38:57 +00:00
martignoni 31d7c78cd2 Updated copyright date and URL 2005-03-03 07:34:23 +00:00
martignoni 8b0812f313 Update to string 'gpl' (included copyright date) 2005-03-03 07:33:00 +00:00
moodler 6f2a391fbd Just to make backups work, but we may still have problems with the new adodb
See bug 2663
2005-03-03 07:32:00 +00:00
moodler 6c64d7ca66 Fixed some typos bug 2586 2005-03-03 06:26:31 +00:00
moodler fb94189268 Fixes for bug 2591 - wrong strings being used 2005-03-03 06:24:44 +00:00
moodler 5528a7f0e0 FIxed up the display of this page significantly 2005-03-03 06:18:48 +00:00
moodler 4b745a820f Last string fix for bug 2591 2005-03-03 05:13:58 +00:00
moodler fefefb4898 Use a require_once just in case 2005-03-03 05:03:41 +00:00
moodler c44d5d4215 Some cleaning up of user_login_string and SITE 2005-03-03 04:41:46 +00:00
defacer 6912a9ecb8 Fix for bug 2669:
Quizzes and Chats in the front page had the site shortname twice in the navbar.
2005-03-02 22:35:09 +00:00
gustav_delius 009f39beab fixed bug caused by user_login_string() being called with course id instead of course object 2005-03-02 19:49:04 +00:00
defacer 96803c8810 Moved a bunch of inline styles to the stylesheets. 2005-03-02 19:47:04 +00:00
defacer 2ad1c3ff06 New string for the title of freshly-created HTML blocks. 2005-03-02 19:43:34 +00:00
defacer 48f7fa4a60 Small improvement to HTML block; new html blocks have a default title instead of none. 2005-03-02 19:31:11 +00:00
defacer 76a8339a91 Small fix, changing break; to return; now that there's no switch() 2005-03-02 19:29:50 +00:00
defacer 3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
stronk7 4e5f28b6a1 Now scheduled backup emails set the priotity header if something was wrong.
Bug 2647.
(http://moodle.org/bugs/bug.php?op=show&bugid=2647)
2005-03-02 18:09:58 +00:00
stronk7 433c8b2e72 Added support to priority in email_to_user(). Bug 2647
(http://moodle.org/bugs/bug.php?op=show&bugid=2647)
2005-03-02 17:56:46 +00:00
moodler fb89ac81e3 Latest version. Not fully finished, but better 2005-03-02 17:27:33 +00:00
moodler 942dd7fbf9 Merge fix from STABLE 2005-03-02 16:22:21 +00:00
carlesbellver 6f5d0afd50 *** empty log message *** 2005-03-02 12:29:53 +00:00
carlesbellver e25f0a1376 *** empty log message *** 2005-03-02 08:22:19 +00:00
mits 34b0ede234 translated new help file. 2005-03-02 08:04:14 +00:00
moodler 2327ce8e8a FIx for bug 2663 2005-03-02 06:33:04 +00:00
defacer 831cd87f77 Er, print the adminblock only if editing is turned on. 2005-03-02 05:57:50 +00:00
defacer dffd4bb948 You know you are beyond hope of redemption when you make "API uniformity" changes. ;-) 2005-03-02 05:56:24 +00:00
defacer 664923229c Since $PAGE knows where the adminblock should be printed, let it do the printing. 2005-03-02 05:47:39 +00:00
mjollnir_ 53dc7cc606 Course/import.php should check for teacher 2005-03-02 05:38:47 +00:00
defacer 3615b2b259 Simplifying to death using the new blocks_setup() 2005-03-02 05:19:47 +00:00
defacer ec79d3e428 One-line-setup function for using blocks in a page. 2005-03-02 05:15:39 +00:00
defacer 262771e08f page_import_types($path) doesn't care if $path has a trailing slash or not 2005-03-02 03:43:41 +00:00
mjollnir_ 1e62c63b3f Fix for bug 2660 - postgres upgrade breaking mdl_block sequence 2005-03-01 23:39:56 +00:00
mjollnir_ 729d325004 Changing a require to a require_once in forum postgres upgrade (was getting included twice) 2005-03-01 23:38:51 +00:00
mits cafe53cfea translated some help files. 2005-03-01 18:00:29 +00:00
bobopinna b7ddb4a618 New user inteface 2005-03-01 17:52:39 +00:00
moodler 3320057725 Cellspacing 0 for forum posts to help poor little IE 2005-03-01 17:16:57 +00:00
moodler c559bb1eed FIxed typo calling print_standard_coursemodule_settings 2005-03-01 16:48:00 +00:00
martignoni 51c04cda48 Added search help to the small search forms 2005-03-01 13:30:00 +00:00
martignoni d87255b5e1 Added link to search help 2005-03-01 13:13:31 +00:00
mits 12a4ab4f19 *** empty log message *** 2005-03-01 13:07:23 +00:00
moodler eaee4b5d95 hide the password field for smtp (bug 2659) 2005-03-01 12:55:29 +00:00
moodler 181a96e6b1 Updated the copyright 2005-03-01 12:16:23 +00:00
papita fba39395df added new file - translation by lazarte 2005-03-01 12:05:41 +00:00
papita b077032b10 reviewed versions from lazarte e campolino 2005-03-01 11:42:04 +00:00
martignoni 3f38bca542 Forum searching now allows searching by date 2005-03-01 10:50:43 +00:00
martignoni 8b465bc1ea Added a link from the user page to a search for all posts. 2005-03-01 10:49:37 +00:00
martignoni ce2977640e Much better "full" search page. Still needs some polishing. 2005-03-01 10:42:40 +00:00
martignoni 595427ce2d Added "Advanced" 2005-03-01 10:36:19 +00:00
martignoni d22d2e78bf Made new serverurl more standard 2005-03-01 10:34:52 +00:00
papita 0bf31cafd4 some typos corrected 2005-03-01 10:16:45 +00:00
papita 87c6bcae77 latest updates by paula 2005-03-01 08:48:51 +00:00
moodler 7d1c8c55fe Sshhh easter egg. ;-) 2005-03-01 08:45:05 +00:00
papita 187ddd26a1 php files by paula 2005-03-01 08:43:11 +00:00
moodler 8af04b002d Filter will now not link within the head tags 2005-03-01 08:42:07 +00:00
moodler 7369657c9b Use s function to print search string properly 2005-03-01 08:12:25 +00:00
moodler e5515b3816 Fixed up the display after adding/editing new entries to make it more standard.
Also shuffled a little code to make it easier ofr me to read.
2005-03-01 08:10:52 +00:00
moodler 0afedf684d Fixed the link for the confirmation email ... the &amp; was breaking in some
mail  ... see also bug 2502 for something similar
2005-03-01 07:06:42 +00:00
moodler ab00aa12a9 Disable dates if not being used.
Fixed bug that wasn't highlighting search words
2005-03-01 06:54:30 +00:00
martinlanghoff cecfc11d81 Merged from MOODLE_14_STABLE - Better handling of trailing semicolons and spaces in LDAP configs. Fixes a regression from 1.4.2, plus fixed typo: == should be = 2005-03-01 03:10:34 +00:00
martinlanghoff e0003dfa08 Merged from MOODLE_14_STABLE - loglive now has a proper footer and the links in header & footer open in new windows 2005-03-01 02:53:27 +00:00
moodler 0e18f8278b FIxed the logininfo classes in some situations (bug 2657) 2005-03-01 02:49:10 +00:00
stronk7 68796e6b60 Avoid one notice at installation time (when wwwroot isn't set) and
the new qualified_me() needs it.
2005-03-01 00:11:35 +00:00
stronk7 03b80ffc37 Solved two minor typos with docstyles.css 2005-02-28 22:57:51 +00:00
mchurch be69cefb90 Removed debug lines inadvertently left in last commit. 2005-02-28 21:37:11 +00:00
mchurch 89c0e63faa Changed call for unread posts to new library function. 2005-02-28 21:34:37 +00:00
mchurch 1051a2a4a0 Improved speed of database calls for read tracking. 2005-02-28 21:31:13 +00:00
moodler 4cff67d66b FIxed an XHTML error 2005-02-28 16:26:06 +00:00
defacer c0a570cef0 Fixed handling of activity blocks when restore does not include that type of activity. 2005-02-28 16:03:05 +00:00
moodler df031f9a0d XHTML compliance, but also you can now set up colors to be passed to
the MP3 Flash player, using

  $THEME->filter_mediaplugin_colors = 'blah...';
2005-02-28 13:30:44 +00:00
moodler b6b8055cd1 Slight improvements on the search page 2005-02-28 12:44:04 +00:00
moodler 4e471fc62a Forum searching now allows searching by date, and no longer has confusing help. 2005-02-28 12:40:29 +00:00
martignoni 73011e8287 Modifications to cope with last version 2005-02-28 10:02:45 +00:00
stronk7 b6e2260398 Experimental way to get the server name from wwwroot instead of
using such SERVER_NAME and HTTP_HOST variables.

It should help in servers having wrong Apache configurations, being
the cause of bad logins, referer problems....

Seems to work both under PHP 4.3 (linux) and PHP 5 (MacOS X).

Please, TEST it, specially in installation, upgrade and cron!
2005-02-28 09:04:37 +00:00
moodler e889941458 Just some quotes 2005-02-28 07:10:08 +00:00
defacer 1fa95628f6 Backup and restore for block instances within activities!
Made using the new goodies from the new pagelib, some really useful advice
from "Backup Man" Eloy and lots of love.
2005-02-28 04:50:36 +00:00
defacer 251af423cd Err... course block instances weren't being deleted along with the course? 2005-02-28 04:35:32 +00:00
moodler 7d5784a55a Fixed a string reference 2005-02-28 04:33:57 +00:00
defacer c4d588cc24 Added require_once for pagelib.php.
Now deleting courses with these activities in works just fine once more!
2005-02-28 04:23:52 +00:00
defacer 880d86758b Each mod is responsible to deleting its own blocks; what I had in mind for
centralizing this wouldn't work out. Use the flexible page_import_types so that
we don't create one more dependency when writing new code.
2005-02-28 04:18:13 +00:00
defacer b5e9682173 Adding caching to page_import_types. Actually the caching is REQUIRED for the
function to work, because otherwise it would barf on duplicate class declaration
the second time it was called with the same arguments.
2005-02-28 04:16:41 +00:00
defacer 3f6aba0c42 Library function which returns the page types used for a specific directory
in the Moodle distro structure. As generic as it gets.
2005-02-28 04:01:30 +00:00
defacer f16bbfd5a8 Add hooks for exporting the page types used by each module. 2005-02-28 03:59:57 +00:00
defacer 6ba37c824a Quiz doesn't attempt to delete blocks placed in deleted quiz view pages anymore;
this is going to be taken care of from course/mod.php.
2005-02-28 03:59:23 +00:00
defacer 9bee8b701e Fixing a bug when restoring a course with events but not users. 2005-02-28 00:55:52 +00:00
defacer f99fcffeb9 Fix for bug 2648: call-time pass by reference has been deprecated, the constructor
of search_lexer now accepts the parser argument by reference all... one time it's called :)
2005-02-28 00:30:39 +00:00
defacer e0840dee09 Giving back the search forums block styles, using CSS. 2005-02-27 20:34:27 +00:00
defacer 0b5257c351 Bugfix for bug 2653 (visual glitch).
Better and less HTML for the "block" version of forum_print_search_form().
2005-02-27 20:32:56 +00:00
defacer 7e571b7670 Clean the block code a bit 2005-02-27 20:31:14 +00:00
defacer 91417a70b9 Stretch the calendar table, makes it look better in the sideblock with
some languages (noticed in japanese).
2005-02-27 20:03:37 +00:00
stronk7 f594143b56 Now the Wiki module seems to be working fine. But I've marked it as
"PROG" (progress) because I haven't been able to reproduce the load
of binary data directly to DB reported by some moodlers in forums.

I've created bug 2634 to see if somebody can point me in the correct
direction to reproduce it.
2005-02-27 19:47:42 +00:00
moodler 642c1d5bca Er, much better ! 2005-02-27 17:55:53 +00:00
moodler f75c5a46a1 Simple bell code ... needs work I think. 2005-02-27 17:45:44 +00:00
moodler 1368cb8125 Hostory links should popup too. 2005-02-27 14:32:03 +00:00
moodler 3cc9a26c68 A couple of style tweaks 2005-02-27 14:23:45 +00:00
moodler 1bc9b2ecd5 Fixed forumpost commands 2005-02-27 12:26:52 +00:00
mits 99625e432c translated some. 2005-02-27 11:41:51 +00:00
moodler b23c06ada1 Show link even when no discussions 2005-02-27 10:12:45 +00:00
moodler 173dbed416 Added a link from the user page to a search for all posts.
It works but it's not very pretty ... feedback welcome!
2005-02-27 10:08:13 +00:00
moodler bcb78ca23c Updated help for search! 2005-02-27 09:58:00 +00:00
moodler e6ae4dc8dd Much better "full" search page. Still needs some polishing.
Also, you can now search for all posts by one user.  Which brings me to my
next check-in....
2005-02-27 09:57:31 +00:00
moodler f685bf2eef Fixed missing tag 2005-02-27 07:20:03 +00:00
stronk7 d0b95287c5 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 02:13:18 +00:00
stronk7 4a1bf86fae Some $ME are now out!
And 5 lines have been added because they weren't merged before! Please,
check them!

Merged from MOODLE_14_STABLE
2005-02-27 00:56:13 +00:00
stronk7 d698fea233 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 00:12:25 +00:00
koenr 8573893cd0 XHTML compliance 2005-02-26 23:38:32 +00:00
mits a8ce0df9e0 *** empty log message *** 2005-02-26 22:39:30 +00:00
mits 78518db9e5 translated a new file. 2005-02-26 22:21:00 +00:00
koenr a49248821d XHTML compliance 2005-02-26 22:17:22 +00:00
skodak 48283ff638 slashargument test fix 2005-02-26 20:43:30 +00:00
moodler 2896553e9d Added language file (somewhat different to one in forums).
Made some major cleanups to the block for efficiency, robustness
and Postgres compat.

It seems to work for me OK but could use some good testing!
2005-02-26 17:21:31 +00:00
martignoni f1eaa9727f New file added 2005-02-26 16:45:38 +00:00
stronk7 48198971fb Latest changes added 2005-02-26 10:47:46 +00:00
moodler 29daf3a0d1 Added some sql_functions that return the correct SQL for those few
niggly little differences in database brands.   THis replaces a
whole lot of ugly repeated code in datalib.php
2005-02-26 09:20:31 +00:00
moodler f0b8884d08 Added search help to the small search forms (big search form coming next) 2005-02-26 08:52:03 +00:00
moodler 95c62b56b7 Fixed some notices 2005-02-26 08:11:01 +00:00
defacer 69244b9128 A few unrelated changes, sorry for not being tidy.
1. Possible fix for bug 2410, also bug report at http://moodle.org/mod/forum/discuss.php?d=19173.

2. Group events may be edited by teachers without course editing rights.

3. Cosmetics for the DST display (this is a work in progress).
2005-02-26 06:30:19 +00:00
defacer 8dc3f6cf5e Changing find_day_in_month() to conform with the new definitions of DST presets.
Adding function dayofweek (centralization, this might also be helpful in fixing a bug).
2005-02-26 06:26:04 +00:00
ikawhero d7d93ee995 Fixed incorrect order of rebuilding excluded text 2005-02-25 23:18:09 +00:00
defacer 67775c8d9f When process is finished, die. 2005-02-25 20:43:12 +00:00
michaelpenne b0ec882fc1 delete user attempts now deletes a users grades, attempts, and time recrods. The email it sends is nicer as well 2005-02-25 19:28:51 +00:00
michaelpenne 5f3b3a084a updated report to find the times in timer table, now much more accurate. Also fixed a sesskey problem 2005-02-25 19:12:39 +00:00
michaelpenne ff2978cea0 updated the time code to refect the new view 2005-02-25 19:11:12 +00:00
michaelpenne c022b4964f changed the time code, now the timer table keeps track of time spent per attempt per lesson for each student. It is also used for timed tests. Also, moved check navigation link so it wont show up when there are no lesson pages. 2005-02-25 19:10:17 +00:00
defacer 6ebb179eb2 "Reasonable assumptions" if a set or reset time is missing for some year. 2005-02-25 18:44:41 +00:00
defacer 83e1fc1407 Trying to get the Olson parser to produce correct output. That format is a nightmare... 2005-02-25 18:28:12 +00:00
moodler 2ef4dd5eb0 Merged format fix from stable 2005-02-25 14:21:37 +00:00
moodler d5bbc5568b A few minor changes for XHTML compatibility and general tidy up. (SE) 2005-02-25 13:20:48 +00:00
moodler bc01a2b8ea Some little cleanups ... all auto-links to external URLs now use _blank 2005-02-25 13:11:18 +00:00
moodler 2ae281532b New PARAM type called PARAM_CLEANHTML which knows how to clean up HTML properly 2005-02-25 13:10:24 +00:00
moodler 9aa959f222 Significant improvements to the message display 2005-02-25 13:09:27 +00:00
moodler 3b9f38bc5d FIxed popup window for users in chat window 2005-02-25 12:40:03 +00:00
moodler e19a635c98 Removing the old <nolink> tags. In some cases using both <span class="nolink">
and <nolink> together was causing some problems. (SE)
2005-02-25 12:36:27 +00:00
moodler b9795750e5 Er, last fix was in wrong frame. :-) 2005-02-25 12:35:20 +00:00
moodler 18212a7afe Try to make all links "pop out" of the frame 2005-02-25 12:28:02 +00:00
moodler 205baeb56a This development temporary hack got checked in by accident 2005-02-25 11:24:55 +00:00
moodler f2c485e388 New styles added for glossary module. Other changes. (SE) 2005-02-25 11:10:35 +00:00
moodler ebfd5ff7b3 Even more style changes. (SE) 2005-02-25 11:09:49 +00:00
moodler 91b4cb6867 More style changes. Will it ever end? (SE) 2005-02-25 09:16:54 +00:00
gustav_delius 072171497c forcelogin, forceloginprofiles and opentogoogle are config variables to do with setting permissions, so I moved them to the appropriate section on the config page. 2005-02-25 09:14:05 +00:00
moodler 56b641f018 Andrew Walker helped clean up the Flash MP3 player 2005-02-25 09:08:28 +00:00
moodler 9362b9b670 More CSS style changes. General tidy up, changed " to ' where appropriate. 2005-02-25 07:58:03 +00:00
moodler e06f15ae31 FIxed some notices and cleaned up a little 2005-02-25 07:18:40 +00:00
moodler e49617afd4 Added a HTML editor to the messages 2005-02-25 06:42:56 +00:00
moodler 7432795256 Quick fix for user login string styles 2005-02-25 06:24:22 +00:00
moodler fd5b9188bd removed explicit style-adding for user login string 2005-02-25 06:23:46 +00:00
moodler 8fcdbee3c9 Added "Advanced" 2005-02-25 06:22:01 +00:00
moodler d3593a675d user login string now always this style added 2005-02-25 06:20:53 +00:00
moodler 84854c09c6 Removed some classes from being added explicitly 2005-02-25 06:20:19 +00:00
gustav_delius d2a9f7cc69 removed &amp; from url in password change confirmation email, see bug 2502 2005-02-25 06:08:40 +00:00
moodler dcf193c25f Removed link from navigation bar 2005-02-25 04:48:47 +00:00
defacer c2176d3725 A way to control what the dst preset import is allowed to do: insert/update/both 2005-02-25 04:41:19 +00:00
defacer 0f269d53ac Just a new button in the calendar admin screen to link to point to dst_update.php 2005-02-25 04:34:15 +00:00
defacer d2fb3ce941 First version of automated DST update script. It DOES work, but it's barebones. 2005-02-25 04:23:21 +00:00
defacer 7ab8bb7160 Adding workaround for PHP < 4.3.0 where file_get_contents does not exist. 2005-02-25 02:46:05 +00:00
defacer a43b5308c8 Fixed a typo in get_records_csv.
Made put_records_csv accept array of arrays as well as array of objects.
2005-02-25 02:06:42 +00:00
defacer a77b98ebe6 Added function put_records_csv. This will be used to convert the results of
the Olson DST parser to csv format prior to importing. Could find other uses
as well.
2005-02-25 01:54:06 +00:00
defacer 13222d99b5 Adding new fields to the dst_preset table. 2005-02-25 01:24:52 +00:00
stronk7 2231b98040 Avoid some notices breaking image display and correct redirects. Bug 2638.
(http://moodle.org/bugs/bug.php?op=show&bugid=2638)

Merged from MOODLE_14_STABLE
2005-02-25 00:11:49 +00:00
koenr a911502df6 keep on fixing thislanguage: seems to be destroyed by online editor. 2005-02-25 00:07:43 +00:00
stronk7 472a28cab4 Now the get_participants() standard function is working inside wiki module
Merged from MOODLE_14_STABLE
2005-02-24 23:50:24 +00:00
gustav_delius 1c887009ab fixed single quote bug that led to $post->subject being displayed. 2005-02-24 22:24:03 +00:00
martinlanghoff b935c832ec Merged from MOODLE_14_STABLE - Provide an explicit sortorder for new courses in empty categories, and run fix_course_sortorder() after adding the course to make sure its in the appropriate range for the category. This mege adds fix specific to HEAD: it reverts an earlier bad fix. 2005-02-24 21:22:06 +00:00
martinlanghoff 97cfb9352c Merged from MOODLE_14_STABLE - Backing out bad sortorder fix in restorelib -- actually we didn't need one. 2005-02-24 21:14:32 +00:00
skodak 39ba6d586a Slasharguments test for health center, please test 2005-02-24 21:14:32 +00:00
mits dae66d9e54 translated one help file. 2005-02-24 21:13:29 +00:00
mits e517bf8b16 pllished and translated one help file. 2005-02-24 20:33:49 +00:00
dhawes ec288447d2 removed one excess <br /> tag as noted in Tim's comment here: http://moodle.org/mod/forum/discuss.php?d=18121 2005-02-24 16:23:48 +00:00
barias 2cb8fdc6a4 Latest updates in spanish translation 2005-02-24 12:42:46 +00:00
lapsa c0f750050e Document for using shibboleth authentication module with Moodle 2005-02-24 12:10:34 +00:00
moodler 0143fb9f94 Upgrade activity modules first ... see bug 2630 2005-02-24 09:03:24 +00:00
gustav_delius 6f07ab6444 Updated calls to get_string() for some strings that were moved to lang/en/admin.php 2005-02-24 08:49:32 +00:00
carlesbellver f5a10e4fa3 *** empty log message *** 2005-02-24 08:43:56 +00:00
defacer 8c1315ff0a Added missing defaults for the 4 clam options, they gave me notices when
test-driving upgrade MOODLE_141 -> HEAD
2005-02-24 04:59:27 +00:00
defacer c903f9b076 Fix for bug 2627 (which was real and not a duplicate). 2005-02-24 04:26:33 +00:00
moodler 6f9e100660 A possible fix for bug 2629 and PostgreSQL inflexibility. ;-) 2005-02-24 02:47:18 +00:00
defacer 599f38f9db New filelib, with get_records_csv(). 2005-02-24 02:36:45 +00:00
stronk7 856bf0456b Now SITEID folder is created if it doesn't exist. Bug 2580
(http://moodle.org/bugs/bug.php?op=show&bugid=2580)
2005-02-24 00:01:52 +00:00
michaelpenne 6899d8973f removed an echo and a comment 2005-02-23 22:24:46 +00:00
defacer ff67989728 Fix for bug 2628. 2005-02-23 18:51:00 +00:00
moodler e9df755235 Robustness check 2005-02-23 16:29:00 +00:00
moodler 91099e368b Added checks for allow_fopen_url in two more places! 2005-02-23 15:40:53 +00:00
moodler e76ae26489 Fix for erroneous checkin of CVS confict markers ... bug 2626 2005-02-23 12:10:02 +00:00
villate 3a470c9956 Added link to the translation page 2005-02-23 10:49:05 +00:00
villate af0b1297d4 A few questions have already been translated 2005-02-23 10:30:58 +00:00
villate cfc2cb099e The translation is now complete 2005-02-23 10:28:11 +00:00
koenr d1e564412a New strings 2005-02-23 09:14:22 +00:00
martinlanghoff 8b0660a3c5 Initial implementation of a simple Olson database file format for DST rule parsing. Implements olson_simple_rule_parser(). 2005-02-23 06:45:45 +00:00
martinlanghoff 5875a2f3ca Merged from MOODLE_14_STABLE - Fix problem when restoring courses to empty categories 2005-02-23 04:49:15 +00:00
martinlanghoff ccb3585fdc Merged from MOODLE_14_HEAD - Bug fix. Using external auth, the user account fails to be created on login if currently logged-in as guest. Credits go to Dan Marsden for the fix. 2005-02-23 02:11:59 +00:00
martinlanghoff 814748c9ea Merged from MOODLE_14_STABLE - Fixed a bug in get_categories() when called for category '0', and some extra fixes to fix_course_sortorder() 2005-02-23 01:49:22 +00:00
michaelpenne 0741a56672 woops, took out gustavs change, yah cvs 2005-02-23 00:56:28 +00:00
michaelpenne 49584784ac fixed up leftmenu some more 2005-02-23 00:52:29 +00:00
stronk7 029db9ee2d When any URL is going to be used in a Location header or
in a meta-refresh, both Safari and Firefox, seems to fail
using &amp; as parameter separator. Bug 2620.
(http://moodle.org/bugs/bug.php?op=show&bugid=2620)
2005-02-22 23:37:14 +00:00
skodak fd05dffed6 SC#98 protection of uploaded files in resources, please review and test 2005-02-22 23:36:20 +00:00
martignoni a191a1e306 Correction of 'location' string translation (thanks to Arnaud Saint-Georges) 2005-02-22 14:27:40 +00:00
moodler f8dd016412 Removing these to avoid confusion.
Yes, my assignment refactoring is going to make it into 1.5
2005-02-22 12:56:20 +00:00
moodler 62c0f37e99 New styles, changed styles, retro styles, bad 80s styles! (SE) 2005-02-22 10:39:39 +00:00
moodler b0ac91807d Robust fix from stable 2005-02-22 10:37:54 +00:00
moodler 4c32ba4d3f More CSS and general tidying up. 2005-02-22 10:37:54 +00:00
moodler deb0ab54c3 Added styles and cleaned up some code for XHTML compatibility 2005-02-22 08:29:12 +00:00
bobopinna 82af563584 Added complete datamodel support for SCORM 1.2 2005-02-22 08:00:19 +00:00
moodler fd8097bae1 Some more tidying up 2005-02-22 07:30:13 +00:00
moodler ed1f69b0cf Er ... copy/paste typo 2005-02-22 06:52:42 +00:00
mits 9f5352e139 polished. 2005-02-22 06:44:20 +00:00
martinlanghoff 008621712f Fixes for null sortorder on empty categories. 2005-02-22 03:23:41 +00:00
stronk7 ac3f72c899 Major rework of the wiki backup/restore.
It wasn' working fine because the wiki_pages table hadn't an id (primary key) field.

I've created, in the upgrade process, a temporary table to copy all the wiki_pages
records and then, drop and create again the table.

Tested under MySQL. Need to be tested (both creation and upgrade) under PostgreSQL!!!

Minor modifications to ewikimoodlelib.php to work with this new id field too. Seems to work
although deeper tests will be welcome (attachements, binary contents...)

Cross your fingers! ;-)
2005-02-21 17:55:54 +00:00
moodler 5b257acd23 Merged fix for 2613 2005-02-21 15:39:44 +00:00
moodler ab6d2992e8 Search = GET and fixed the dead end when no results to search 2005-02-21 13:50:06 +00:00
martignoni a221659b36 Added link to Markdown format help. 2005-02-21 13:12:48 +00:00
martignoni 83900e0aed Extended guidelines for xml-compliance 2005-02-21 13:03:57 +00:00
moodler e34d817e66 Tidying up some timezone stuff 2005-02-21 08:55:40 +00:00
defacer e17069d52a This looks like the cause of problems for some people (why?).
Let's see if anyone is going to hit this error in the near future.
2005-02-21 03:57:51 +00:00
stronk7 f495e05f85 Now parent and sortorder are supported at backup & restore. 2005-02-20 18:03:38 +00:00
stronk7 94e765288a Now parent and sortorder is supported at restore too. 2005-02-20 18:02:41 +00:00
stronk7 7fae497cdc Now parent and sortorder is supported at restore too.
The tree is automatically rebuilt using new ids if
necessary.
2005-02-20 18:01:40 +00:00
stronk7 c98cb6bc57 Now quiz_categories' parent and sortoreder is supported in backup.
A mechanish to detect all the ancestors and to recover orphaned
categories is now running ar backup time to force backups to be consistent.
2005-02-20 17:19:04 +00:00
mits 8fbaf1d377 polished. 2005-02-20 15:26:30 +00:00
martignoni 8d94618e69 Update 2005-02-20 13:32:44 +00:00
mits 36d9b68818 polished. 2005-02-20 13:22:43 +00:00
martignoni 84ae2251d0 Update 2005-02-20 11:26:02 +00:00
martignoni 9ef6af8018 Update 2005-02-20 10:19:23 +00:00
martignoni 18f47de6ed HTML cleanup 2005-02-20 09:52:06 +00:00
jpuntd 163dc56b3d changes to block code 2005-02-20 07:23:10 +00:00
moodler 1d533faf92 Made new serverurl more standard (don't include raw variables in strings) 2005-02-20 06:08:58 +00:00
koenr e9c2674936 xhtml compliance 2005-02-20 00:34:15 +00:00
martignoni 389bc302b6 New string 'serverurl' 2005-02-19 22:54:11 +00:00
martignoni f42e3178cb New file (replacing 'hideoptions.html') 2005-02-19 22:52:28 +00:00
fiedorow 2ce434a99f Minor fix: language string lookup 2005-02-19 22:44:20 +00:00
fiedorow 5f357fb67b Updated guest shortcut code with Mike's loginas fixes 2005-02-19 21:02:33 +00:00
mits 079cf26fdd translated one string. 2005-02-19 20:42:19 +00:00
fiedorow c6b1545e31 New lang string serverurl for new authentication scheme 2005-02-19 20:28:11 +00:00
fiedorow d0cc843ed3 Added hook for more flexible authentication to external url - backwards compatible with existing file resources 2005-02-19 20:22:48 +00:00
anvergara e341bb8348 mensage -> mensaje 2005-02-19 19:33:05 +00:00
gustav_delius 1d86c8ea4c I confused stripslashes with addslashes :o) 2005-02-19 18:31:29 +00:00
gustav_delius 75249234fe I replaced the magic_quotes hack with something more elegant because I needed to be able to post a deeper array than the old code would allow. Any objections to this? 2005-02-19 17:52:30 +00:00
martignoni 1b8854aad4 Update 2005-02-19 17:31:49 +00:00
mits 6135d2f2f1 translated one string. 2005-02-19 15:45:03 +00:00
fiedorow a2f8e0d40c Allow mtrace to sleep to keep message on screen 2005-02-19 14:48:44 +00:00
moodler b258c9a89f Bit of space on modules list 2005-02-19 14:39:18 +00:00
moodler 0f934cd9e5 Use new advancedsettings help file and title 2005-02-19 14:38:13 +00:00
moodler f0f08008c2 Removed hideoptions and replaced it with a generic advancedsettings help file 2005-02-19 14:33:57 +00:00
martignoni 7c84cdad39 Update 2005-02-19 14:22:45 +00:00
moodler c9c9003325 New tags 2005-02-19 13:19:49 +00:00
martignoni dd7cbead00 Update 2005-02-19 13:05:30 +00:00
moodler fcbf6261b8 DOn't need this in the distribution any more ... install.php does it all 2005-02-19 12:41:18 +00:00
martignoni a8eda22fea Update 2005-02-19 11:57:40 +00:00
martignoni 276e040608 Hierarchical question categories 2005-02-19 11:03:36 +00:00
martignoni dc21109e60 Update 2005-02-19 10:40:33 +00:00
martignoni abca136cc3 Added Moodle XML format. 2005-02-19 09:58:19 +00:00
martignoni 6569f2f4dd Added bit for Learnwise import format. 2005-02-19 09:52:53 +00:00
martignoni 903486f647 Added help for IMS QTI and Moodle XML formats 2005-02-19 09:49:02 +00:00
martignoni 4fc09cdcba Fix wording 2005-02-19 09:39:42 +00:00
martignoni ef889d73bd New string 'groupmembers' 2005-02-19 09:36:46 +00:00
martignoni 6a64da4644 New string for the user profile 2005-02-19 09:35:17 +00:00
martignoni 87384e980c One extra string 2005-02-19 09:29:55 +00:00
martignoni dd416dd7f9 More UI for calendar and DST options. 2005-02-19 09:28:52 +00:00
lonecatz 33ab93d32f new translated file. 2005-02-19 06:37:25 +00:00
lonecatz d1c27f9ff3 remove redundant space 2005-02-19 06:06:10 +00:00
lonecatz 74949ef09a new thanslated file 2005-02-19 06:02:24 +00:00
lonecatz 8b55374cfa more translated strings 2005-02-19 05:32:17 +00:00
moodler 7cb29a3dbf just foormatting (checkin by tui!) 2005-02-19 03:14:06 +00:00
moodler 90b127fff6 FIxed some dodgy SQL code in the wrong place 2005-02-19 03:00:46 +00:00
moodler 4966836795 Extended choices in get_group_users 2005-02-19 03:00:07 +00:00
moodler 102dc313ea Fixing bug 2588 when server dates are used. 2005-02-19 02:49:31 +00:00
stronk7 1f16e05b9a Now quiz->questionsperpage in in backup & restore 2005-02-19 01:25:19 +00:00
stronk7 5150c3043a Now questionsperpage is in backup & restore 2005-02-19 01:24:17 +00:00
stronk7 22bb909b57 Now forum_read is included in backup & restore 2005-02-18 19:05:09 +00:00
mchurch f0195f0295 Fixed help button layout in accordance with standard modules (bug 2556). 2005-02-18 18:18:00 +00:00
gustav_delius ee930c461d made appearance of quiz setup page look like the resource setup pages, see bug 2587. Also added the new variable quiz_questionsperpage properly. 2005-02-18 17:20:06 +00:00
defacer e82d6cac81 Improvement when configuring a block instance: the heading shows the
block's original title as it appears in the lang files, not its "internal"
name.
2005-02-18 17:05:49 +00:00
stronk7 7142bf514d Changed a forbidden null detected by the new AdoDB libraries. 2005-02-18 16:57:58 +00:00
moodler 4a7ba9ab87 Explicitly return an integer 2005-02-18 16:25:14 +00:00
defacer 48a6a7c2c9 Bad boy... broke moodlelib. 2005-02-18 14:45:35 +00:00
defacer 090cf95ae9 Fix for bug 2584:
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
defacer ed8ea92b7e HTML/CSS improvements for the event list in the calendar. 2005-02-18 14:32:42 +00:00
moodler ceff930730 Added a new table for logging ADODB requests and a config variable to
turn it on.  Very useful for debugging performance issues.
2005-02-18 14:12:38 +00:00
moodler 28012da1f6 Missed one 2005-02-18 13:47:21 +00:00
defacer 88ec5b7c8b Reverting back to gmstrftime for userdate() 2005-02-18 13:44:14 +00:00
moodler a9fd72322a Reverting some recent date-related changes 2005-02-18 13:43:40 +00:00
moodler 09d55a78c6 Reverting recent changes 2005-02-18 13:41:26 +00:00
moodler e381bc1a48 Returning the strings to old-style format. :-) 2005-02-18 13:38:02 +00:00
martignoni cacd934535 Update 2005-02-18 12:19:22 +00:00
moodler d43985607d Updated ADOdb to latest version 4.60 2005-02-18 08:37:18 +00:00
moodler a48e8c4b7e Efficiency for forum_count_discussion_replies() from stable 2005-02-18 08:00:00 +00:00
mits e200b622f6 translated some. 2005-02-18 06:43:03 +00:00
gustav_delius 56c0715e77 The teacher forum has no coursemodule and this led to errors in particular in forum_print_latest_discussions(). 2005-02-18 06:41:12 +00:00
defacer cec884ab33 New string for the user profile, please translate for other language packs. 2005-02-18 04:03:22 +00:00
moodler 416954db7e Obsolete 2005-02-18 03:52:22 +00:00
defacer 68849c082a Patching with a metahack to handle our date-format-string compatibility hack. 2005-02-18 03:44:13 +00:00
defacer 3ffa665bc1 More robust handling of DST status for the user profile. 2005-02-18 03:42:28 +00:00
defacer ec7e2e5fc4 Fixing the visuals for the adminblock. 2005-02-18 03:37:47 +00:00
defacer afd8402cfa Changed id attribute of adminblock to class, just like every other block. 2005-02-18 03:37:07 +00:00
defacer 62576f3c64 Fix some JS warnings if there are no DST presets, and correct behavior
when deleting a preset forced for every user.
2005-02-18 03:33:01 +00:00
mjollnir_ 876714665d This SHOULD fix the bug where users get unenrolled and reenrolled in metacourses (2579). Needs TESTING PLEASE :) 2005-02-18 02:42:33 +00:00
defacer 7b91e4fd11 Our nice compatibility hack with the language strings means
that some strftime() rebels need patching up...
2005-02-18 01:52:21 +00:00
defacer 50154fe35c One extra string, please translate to other languages as well. 2005-02-18 01:49:36 +00:00
defacer 7f92cbefbb DST is out of the preferences entirely. 2005-02-18 01:46:57 +00:00
defacer 0bab403ceb Improving the HTML for preferences, getting rid of DST. 2005-02-18 01:44:51 +00:00
defacer bb8392589b Fix for bug 2578:
Editing teachers for the site can now add global events.
This was previously limited to admins only.
2005-02-18 01:37:56 +00:00
defacer 6c40f0dc2a Changing an instance of 1 => SITEID, and making the course filter
drop down menu respect $CFG->adminseesall (for admins only of course)
2005-02-18 01:32:49 +00:00
stronk7 136aed566b Updated 2005-02-18 01:30:37 +00:00
defacer 3477a9007d Some smallish bugs had escaped me during the transition to DST. 2005-02-18 01:26:04 +00:00
defacer 57f1191c2e Last changes for DST! Now userdate() supports it as well! :) 2005-02-18 01:18:00 +00:00
defacer 5147ad4828 Fixing bugs and improving integration with moodlelib. I had my own
rogue strftime()s in here.
2005-02-18 01:11:10 +00:00
stronk7 92fac4b251 Now 0 rates are supported in glossary. Bug 2582
(http://moodle.org/bugs/bug.php?op=show&bugid=2582)
2005-02-18 01:00:42 +00:00
stronk7 4f746d2aea ARGGG. I spent 1 hour discovering where was the error!!
Under PHP5 we must cast objects to arrays to use them in loops.
But what is really annoying is that, instead of return an error, PHP
returns the 1st element! This should close bug 2581.
(http://moodle.org/bugs/bug.php?op=show&bugid=2581)
2005-02-18 00:19:08 +00:00
koenr cf2d0aff4f xhtml compliance 2005-02-17 23:53:27 +00:00
defacer 4694488110 English time format strings changed to new style.
We should now be changing these accordingly in ALL the language packs.
2005-02-17 23:00:35 +00:00
stronk7 8a86671c37 If the user isn't admin and the restored course hasn't teachers, add teacher.
Bug 2381
(http://moodle.org/bugs/bug.php?op=show&bugid=2381)
2005-02-17 23:00:14 +00:00
defacer 8c0c2e9211 userdate() now transparently supports both new-style (gmdate)
and old-style (strftime) format strings.
2005-02-17 22:59:02 +00:00
stronk7 50fc80d722 If the user isn't admin and the restored course hasn't teachers, add teacher.
Bug 2381
(http://moodle.org/bugs/bug.php?op=show&bugid=2381)

Merged from MOODLE_14_STABLE
2005-02-17 22:57:53 +00:00
defacer 85351042d1 Starting to fix userdate() to recognize DST as well. 2005-02-17 22:43:18 +00:00
koenr 0d43d0d438 xhtml compliance 2005-02-17 22:28:37 +00:00
defacer 85cafb3e5b DST stuff being worked on. 2005-02-17 21:58:45 +00:00
defacer 05afaf251c Improving the styles for table.formtable, they weren't working in IE. 2005-02-17 21:55:25 +00:00
defacer 4d71c956a8 Adding user profile option for DST.
Also some tabs to spaces.
2005-02-17 21:29:05 +00:00
defacer 80e556ce8a Removing inline styles from table, giving class="formtable"
Removing valign="top" from trs
Changing td align="right" to th
Double quotes to single
2005-02-17 21:16:35 +00:00
defacer 41b7678df3 Adding extra field to mdl_user table: dstpreset 2005-02-17 21:00:54 +00:00
martignoni 07b538bd52 Update 2005-02-17 19:56:10 +00:00
stronk7 4837dd1f46 Now globalglossary is working!
Bug 2577
(http://moodle.org/bugs/bug.php?op=show&bugid=2577)
2005-02-17 19:45:12 +00:00
stronk7 73e97c3113 Now the glossary filter only links to concepts in visible glossaries (for everybody!)
Bug 2566
(http://moodle.org/bugs/bug.php?op=show&bugid=2566)
2005-02-17 19:28:21 +00:00
martignoni 4d1e602f9f Update again 2005-02-17 19:23:43 +00:00
martignoni b0e03556d2 Update 2005-02-17 19:23:08 +00:00
gustav_delius 1ee55c41d9 Give groupmode selection to mod.html for all modules that use groupmode. Also fix bug 2576 2005-02-17 19:19:21 +00:00
stronk7 6c3512329b Done. Now:
- students only view entries from visible glossaries.
- teachers view any entry from their course and only visible from global glossaries.
- admins view any entry from any course and any entry from global glossaries too.

Part of bug 2566
(http://moodle.org/bugs/bug.php?op=show&bugid=2566)
2005-02-17 18:58:53 +00:00
martignoni c369e2107e Small modification 2005-02-17 18:22:35 +00:00
martignoni ec89ce4d49 Modifications 2005-02-17 18:19:00 +00:00
martignoni 6b0d563893 Some modifications 2005-02-17 18:11:02 +00:00
martignoni f953736f61 Mods to keep with new help files 2005-02-17 17:23:51 +00:00
martignoni 610dba5268 Update to the glossary help files 2005-02-17 17:23:20 +00:00
bobopinna 92a489eb6a First step to SCORM2004, new communication subsystem 2005-02-17 16:04:42 +00:00
thepurpleblob 4c6b9b84d6 Added link to Markdown format help. 2005-02-17 15:24:59 +00:00
thepurpleblob 580b586bd8 More (advanced) help on Markdown format - submitted by Dave Scotson 2005-02-17 15:22:13 +00:00
defacer 3a5d4d8525 There were other magic numbers that needed changing as well.
There's also a bug in there with DST and repeating events. No easy way
to fix it right now, but I documented it to squash later.
2005-02-17 15:06:01 +00:00
defacer 60979d31cd Magic number 1 => SITEID 2005-02-17 14:59:53 +00:00
thepurpleblob 8b8a1caaaa Dumps a question as an IMS QTI Manifest. Can be called from external programs requiring
this data. Submitted by Brian King.
2005-02-17 14:41:05 +00:00
defacer 36b51cb5d1 Move the dimensions of the collapse/uncollapse graphic image to CSS. 2005-02-17 14:33:30 +00:00
thepurpleblob 658c8f34be Added Moodle XML format. 2005-02-17 14:31:59 +00:00
thepurpleblob 371374f809 Added help for IMS QTI and Moodle XML formats 2005-02-17 14:31:25 +00:00
thepurpleblob c3f3823315 New improved help text for Markdown format. Thanks to Dave Scotson. 2005-02-17 14:11:14 +00:00
thepurpleblob 06e273a1c3 Brian King's new QTI export capability - needs some testing yet. 2005-02-17 13:39:35 +00:00
thepurpleblob 425d616a1e Smarty templates used for new qti export feature. 2005-02-17 13:37:49 +00:00
moodler d613daf00d Bug fixes for external authentication, from Eagle Eye Eloy! 2005-02-17 09:28:27 +00:00
bobopinna 8b1b2407ee New validation procedure 2005-02-17 09:26:13 +00:00
moodler 5e497e4e7a Some more styles 2005-02-17 09:25:05 +00:00
bobopinna 2a0407b7f6 First step for SCORM2004, new communication subsystem 2005-02-17 08:52:54 +00:00
moodler ebc4968b00 New styles added 2005-02-17 08:40:21 +00:00
moodler b8340d1938 Removal of THEME, added some classes, general tidy up. 2005-02-17 08:38:50 +00:00
moodler 9056cec068 Don't show an error if allownull is turned on with one file ... 2005-02-17 07:16:26 +00:00
moodler 77f69e7bcf Better fix for the group image uploading 2005-02-17 07:14:28 +00:00
moodler 6d96007293 FIxed error when there is no image file 2005-02-17 06:32:41 +00:00
moodler 20fde7b1f9 If the user needs to set up their account on logging in, then remember the
URL they wanted so they get there after setting up their account.


bug 2565
2005-02-17 06:15:22 +00:00
moodler 1ab853e586 HTML cleanup 2005-02-17 05:37:47 +00:00
mits 8c1f8a308f polished. 2005-02-17 05:25:31 +00:00
moodler 4d2c0e754c Initialise a variable 2005-02-17 05:15:50 +00:00
mits 6f79b69df6 polished 2005-02-17 05:13:22 +00:00
mits 2d0daadc86 Changed Japanese expression "And" from Kanji to Hiragana to make expression more soften.
Meaning is same.
2005-02-17 04:29:35 +00:00
mits c070dd78ae polished 2005-02-17 04:06:59 +00:00
lonecatz 122c950b38 Correct some translation 2005-02-17 04:04:29 +00:00
lonecatz a9b761d634 more translated strings 2005-02-17 04:02:36 +00:00
julmis c7ec213062 Merging from MOODLE_14_STABLE 2005-02-17 02:48:01 +00:00
moodler 4a4c30d24d Sort the blocks menu.. 2005-02-17 02:19:55 +00:00
defacer 1f473774f3 Visual & DST improvements. 2005-02-17 01:10:17 +00:00
defacer 81e6a0a5af More UI for calendar and DST options. 2005-02-17 00:16:15 +00:00
defacer b8a6c0da69 Improving admin interface for the calendar options with the new themes. 2005-02-16 23:51:26 +00:00
defacer 02f0527dac Moving closer to DST... this whole thing is so damn _hard_ to grasp... 2005-02-16 22:55:13 +00:00
defacer 42d364974a Fixing stuff I broke with my last commit. 2005-02-16 22:04:14 +00:00
defacer 196f2619c0 Working for DST support. 2005-02-16 21:50:25 +00:00
defacer 4a1ad69713 Fixing page defined constant, we no longer have access to it. 2005-02-16 21:49:15 +00:00
martignoni a95dc648f1 Some small modifications 2005-02-16 21:43:35 +00:00
defacer eca3b01f48 Remove needless sort. 2005-02-16 21:39:35 +00:00
martignoni 9b0737fc2e Some important changes 2005-02-16 21:02:32 +00:00
martignoni 29b6315eb6 Some modifications 2005-02-16 19:34:50 +00:00
miksik 95a3e46b80 Fixed some misspellings, capital letters, minor changes in style 2005-02-16 18:51:15 +00:00
lonecatz 4c903ce86a more translated strings 2005-02-16 17:54:26 +00:00
martignoni 4772437ea3 New file 2005-02-16 16:59:50 +00:00
martignoni 60d57b7462 Fixed wording 2005-02-16 16:57:06 +00:00
martignoni d506cc2f92 Added one par 2005-02-16 16:56:04 +00:00
martignoni 575050d7e2 Typo 2005-02-16 16:54:19 +00:00
martignoni 876c60aabf Modifications to keep in sync with development 2005-02-16 16:49:57 +00:00
martignoni d5856d85dd Fix wording 2005-02-16 16:20:12 +00:00
martignoni 87cfde64e8 Some modifications 2005-02-16 16:14:45 +00:00
martignoni 3330b84989 File added 2005-02-16 16:04:18 +00:00
lonecatz bf02adf22c fix variable bugs in strings 2005-02-16 16:01:20 +00:00
martignoni 4aedf300f6 Some updates 2005-02-16 15:53:23 +00:00
martignoni 2ee08cc99c One string to fix orphaned questions. See bug 2380 2005-02-16 15:32:08 +00:00
mudrd8mz 7a4a836dad Script now doesn't create empty /docs and /help files. A template for new
files can be defined (see $filetemplate variable)
2005-02-16 15:19:51 +00:00
mits d85cdb2eaa For XHTML compliance 2005-02-16 14:32:31 +00:00
fiedorow 897a73ae69 Allow authentication method to be specified in bulk upload 2005-02-16 14:15:11 +00:00
mchurch fc960bc7ef Bug #2133 - Fixed group caching for loginas. 2005-02-16 13:49:22 +00:00
fiedorow 542a04353b hook for redirecting to externally hosted courses 2005-02-16 13:41:37 +00:00
koenr b7dd445484 xhtml compliance 2005-02-16 13:23:28 +00:00
gustav_delius 5f39034289 Don't show groups icons for resources and labels, see bug 2538 2005-02-16 12:50:11 +00:00
koenr 348887ac10 empty options are necessary - with &nbsp; they validate ok 2005-02-16 12:45:42 +00:00
koenr ece2f3be63 xhtml compliance 2005-02-16 12:24:07 +00:00
gustav_delius ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
moodler 25ecf09aa1 Some more styles added 2005-02-16 10:34:36 +00:00
moodler ed3136ff1e Adding styles to the user information 2005-02-16 10:34:02 +00:00
koenr 7cd990dcf6 xhtml compliance 2005-02-16 10:07:04 +00:00
martinlanghoff e89ff6c6df Fixed course.idnumber not being varchar(100) in installations post 2004/06 2005-02-16 08:00:40 +00:00
moodler c8680d86e9 Remove html around paging bar 2005-02-16 07:41:29 +00:00
moodler ee331e511f Style for paging 2005-02-16 07:40:22 +00:00
moodler 233bc4bbb5 Some new style fixes - thanks Shane! 2005-02-16 07:36:24 +00:00
moodler c2b552feeb Some fixes to styles etc 2005-02-16 07:35:57 +00:00
moodler 9010e92018 Removed password to avoid it being cached maybe, see bug 2562 2005-02-16 06:38:33 +00:00
moodler f51e8d7ed6 FIxed up styles and lots of quotes 2005-02-16 06:17:31 +00:00
mits 5b9002f7dc translated some. 2005-02-16 05:35:35 +00:00
mits 9ef8db6414 translated some. 2005-02-16 04:02:14 +00:00
moodler 9df665e7bf When updating we don't always want to change visibility and groupmode bug 2561 2005-02-16 03:11:52 +00:00
martinlanghoff 1c66bf597d Fixed bug 2553 - truncate_userinfo() was out-of-sync with prefix_user table definition. Added a reminder to the SQL files. 2005-02-15 23:12:57 +00:00
stronk7 4a57951a63 Now orphaned questions are reassigned before backup. 2005-02-15 19:58:27 +00:00
stronk7 e8cddb8e6c Created the fix_orphaned_questions() function.
Used before execute the backup of a course to enforce integrity.

Perhaps this function should go to central code and be executed
at upgrade time (and be available in health center too!).

See bug 2380
(http://moodle.org/bugs/bug.php?op=show&bugid=2380)
2005-02-15 19:51:01 +00:00
stronk7 29acd3efbc One string to fix orphaned questions. See bug 2380
(http://moodle.org/bugs/bug.php?op=show&bugid=2380)
2005-02-15 19:44:34 +00:00
koenr a210956da8 xhtml compliance 2005-02-15 19:36:58 +00:00
mits 56a5255598 translated few strings. 2005-02-15 19:13:57 +00:00
martignoni ecf8f2960c Small correction 2005-02-15 19:13:56 +00:00
martignoni 839cd594d4 Typo 2005-02-15 19:11:50 +00:00
martignoni 15198ef667 Addded en support for quiz->decimalpoints. 2005-02-15 19:00:13 +00:00
martignoni 94b4825054 Very very quick checking of new lang doc editing script from David Mudrak,
with significant cleanups
2005-02-15 18:58:51 +00:00
martignoni e06639282b New admin config variable 'allowuserblockhiding' will enable/disable the
collapsible blocks feature.  It's on by default.
2005-02-15 18:57:25 +00:00
mits 1028b8c821 polished and new help files translated. 2005-02-15 18:52:42 +00:00
martignoni d09ed832ad Stop DB inserts we know are going to fail, and clearer error message when file upload stops. 2005-02-15 18:51:19 +00:00
martignoni 27e6f68843 Fix bug 1998 2005-02-15 18:49:03 +00:00
martignoni cbde987924 Changed language string, see bug 2169 2005-02-15 18:46:35 +00:00
martignoni 6458541025 Fixed behaviour of groups.php in the case of an empty group, see bug 2346 2005-02-15 18:43:20 +00:00
martignoni 6db97d9b5f Needed strings for MIM restore. 2005-02-15 18:41:30 +00:00
stronk7 2205d909ae Now user->theme, group->theme and course->theme are supported 2005-02-15 18:37:08 +00:00
martignoni 010edf7ede When course is hidden a student trying to enter gets the new message "This course is currently unavailable to students", see bug 2511 2005-02-15 18:36:37 +00:00
martignoni ed8e8252e9 Added string 'counteditems' to allow better translation of things like "8 students", see bug 2530 2005-02-15 18:34:32 +00:00
martignoni e5aa3aafec Small addition to 'noteuserschangednonetocourse' 2005-02-15 18:32:46 +00:00
martignoni f86528245e Changed the wording again .. should be easier to scan I hope 2005-02-15 18:28:00 +00:00
martignoni de11693c75 Change the string for the hide/show ... showimmediately makes sense
on a new creation but not when editing an activity
2005-02-15 18:25:57 +00:00
martignoni eba1e4ceac New string to backup messages in SITE backups 2005-02-15 18:23:29 +00:00
martignoni 01183bde72 New 'showimmediately' string 2005-02-15 18:21:50 +00:00
martignoni 574c14102c "Edited by" string 2005-02-15 18:17:17 +00:00
koenr 65579f313e xhtml compliance 2005-02-15 18:13:31 +00:00
koenr 51f64f1131 I'm messing things up - the readme.txt is already linked so let's keep it that way 2005-02-15 18:05:02 +00:00
koenr 02dc89379f txt is not necessary 2005-02-15 18:02:09 +00:00
koenr 6f42ab9fd4 new readme 2005-02-15 18:01:04 +00:00
koenr 671a59f53c New language pack: korean -utf8
Thanks to Timothy Allen and his team

Not checked for xhtml compliance yet
2005-02-15 17:54:00 +00:00
moodler fb83bd5075 Fixed a notice 2005-02-15 17:44:02 +00:00
moodler b71143dc08 Forgot to check this in 2005-02-15 17:42:52 +00:00
moodler 25c0b58d65 Small forum fixes 2005-02-15 17:41:17 +00:00
moodler 4c7f1eb679 Checking in some unfinished work on forums ... moving back to test.moodle.com 2005-02-15 17:28:24 +00:00
moodler d3583b418b Checking in what I've got so far here ... lots to do. 2005-02-15 17:27:52 +00:00
moodler 9fdf4dae6b Init $options array ... I'm sure there is much more. 2005-02-15 17:00:04 +00:00
lonecatz b55194d314 more translated strings 2005-02-15 16:21:40 +00:00
fiedorow 0e8a3f25e1 just a hook for weblink authentication 2005-02-15 16:14:55 +00:00
urs_hunkler 3b037ee764 corrected the indenting of forumposts and set the width of the posts to screenwidth. Let's see where the discussion about screenwidth in the forum will lead us ;-) 2005-02-15 16:14:21 +00:00
defacer ccfd6c83f3 Fix for bug 2550:
Users cannot see their own profile if course is set to separate groups and
the user is not a member of any group.

Patch provided by cdu@somerville.qld.edu.au, slightly modified
2005-02-15 16:02:18 +00:00
urs_hunkler 624bc87886 heightened the distance between the course sections 2005-02-15 15:43:15 +00:00
urs_hunkler 0a940f20d6 style modifications for the calendar, the minicalendar and the course to come up with the actual changes 2005-02-15 15:31:35 +00:00
lonecatz d3ea3a99c5 more translated strings 2005-02-15 15:07:04 +00:00
lonecatz 09d6553cf4 tranlated more strings 2005-02-15 11:13:45 +00:00
lonecatz 834e598be2 translate more strings 2005-02-15 10:22:23 +00:00
lonecatz 18fd63cbaf new translated file 2005-02-15 10:16:55 +00:00
moodler cfbe930c03 Undoing last checkin from Zig see bug #2542 2005-02-15 08:10:06 +00:00
lonecatz ee7e04ec5d new translated file 2005-02-15 05:08:34 +00:00
fiedorow ea0329f4e3 See Bug #2542 2005-02-15 04:47:07 +00:00
lonecatz 5718d0de3b Correct charset setting in HTML header 2005-02-15 04:29:16 +00:00
moodler 86b837ee41 Some half-finished stuff ... need to move to another site 2005-02-15 04:19:17 +00:00
defacer ef08e7ad70 Fix a notice if $attemptmark doesn't get set. 2005-02-15 01:39:12 +00:00
koenr 9b421ad133 xhtml compliance 2005-02-14 23:50:42 +00:00
koenr 6928daac57 xhtml compliance 2005-02-14 23:49:02 +00:00
mits 8f22a76737 polished, added GPL Japanese version. 2005-02-14 22:49:22 +00:00
koenr 6c019f9e19 new helpfile - the first translated with the new langdoc.php function 2005-02-14 22:12:37 +00:00
koenr e37d13d58a new strings
moved the config-strings to admin.php
2005-02-14 21:40:56 +00:00
stronk7 cb10e3d761 Now the block is using quiz->decimalpoints to show the grades 2005-02-14 20:26:11 +00:00
koenr 3752c643cf New language pack: simplified chinese in UTF by Ling Li 2005-02-14 20:15:43 +00:00
stronk7 ae7bedb707 Addded en support for quiz->decimalpoints.
Please check the translation and help file!
2005-02-14 20:04:32 +00:00
stronk7 c6e88f1059 One more use of decimalpoints 2005-02-14 19:57:45 +00:00
koenr b3369ddb01 New strings and files from Anders for the Swedish translation - and XML-compliant at once - great!! 2005-02-14 19:46:22 +00:00
stronk7 e37da3a536 Now decimalpoints is used to show grades
(I had to modify quiz_get_best_grade() slighty)
2005-02-14 19:41:52 +00:00
moodler 2bb407f51d Very very quick checking of new lang doc editing script from David Mudrak,
with significant cleanups

Needs some testing.
2005-02-14 19:35:53 +00:00
dlnsk 4f805fe9d0 Added descriptions about hidden possibilitys 2005-02-14 19:14:50 +00:00
stronk7 f4e56673df Added backup and restore support for decimalpoints 2005-02-14 19:05:00 +00:00
stronk7 ee40f7a720 Added configuration support for decimalpoints 2005-02-14 18:56:53 +00:00
stronk7 72036f9305 New quiz option addded: decimalpoints
(used to decide the number of decimals showed in grades)
2005-02-14 18:24:24 +00:00
stronk7 b20dfc6e14 Bad use of get_admin(). Thanks Penny! 2005-02-14 17:40:07 +00:00
moodler 476f1aec99 Separating my new styles a bit and cleaning up 2005-02-14 16:59:40 +00:00
moodler a0c7341aaf Removed some thead and tbody 2005-02-14 16:53:55 +00:00
moodler f136e4c5ae Removed THEAD and TBODY from calendar HTML because these tables are
not really data tables in the sense that W3C talks about them
2005-02-14 16:50:02 +00:00
moodler 3538a79693 New admin config variable 'allowuserblockhiding' will enable/disable the
collapsible blocks feature.  It's on by default.

Also, removed thead/tbody from blocks (using th instead for the header).
2005-02-14 16:42:52 +00:00
moodler d80a90295c Improvements to course styles 2005-02-14 16:07:20 +00:00
moodler ee350ee9a3 FIxed a string name 2005-02-14 16:06:50 +00:00
moodler 6cba878db8 Bring weekly into line with topics 2005-02-14 16:02:32 +00:00
moodler c4bff2fb73 Missed a spot there 2005-02-14 16:01:45 +00:00
moodler 549f7213e4 Tiny cleanups to bring into line with "weeks" format 2005-02-14 15:59:34 +00:00
moodler a5afe3ec81 Added new styles for course pages 2005-02-14 15:37:18 +00:00
moodler 06959cfca2 New shorted class names, better nested 2005-02-14 15:36:46 +00:00
mits aeaf2a14db translated some. 2005-02-14 10:15:18 +00:00
urs_hunkler a31ca0c851 changes to aling all blocks at top and avoid the black line at the end of the blocks in the left column. 2005-02-14 08:28:47 +00:00
martinlanghoff 07158c1ed0 Merged from MOODLE_14_STABLE - Cleanup of warnings in filter/activitynames 2005-02-14 07:40:46 +00:00
martinlanghoff d0a8be734e Merged from MOODLE_14_STABLE - Cleared a warning 2005-02-14 07:23:02 +00:00
martinlanghoff bf17309a02 Merged from MOODLE_14_STABLE - Stop DB inserts we know are going to fail, and clearer error message when file upload stops. 2005-02-14 06:07:59 +00:00
dhawes e3899eefdd changed rss image's alt text to title text since this image has no real obvious alt value, refer to http://moodle.org/mod/forum/discuss.php?d=16528 (added back in alt tag contents) 2005-02-14 02:57:15 +00:00
dhawes 86944f037e changed rss image's alt text to title text since this image has no real obvious alt value, refer to http://moodle.org/mod/forum/discuss.php?d=16528 2005-02-14 02:52:06 +00:00
martinlanghoff adfc03f90e merged from MOODLE_14_STABLE - trim() user data coming from external auth - now covers cases where we had a space on the truncation limit 2005-02-14 01:30:57 +00:00
martinlanghoff ca4030dd1d merged from MOODLE_14_STABLE - trim() user data coming from external auth - fixes problems with locked user data in auth/ldap in 1.5 2005-02-14 01:13:05 +00:00
stronk7 8a15200d23 Avoid tons of warnings with debug=on creating false answers for this question type. 2005-02-14 00:51:36 +00:00
gustav_delius f622d17759 Fix bug 1998 2005-02-14 00:05:00 +00:00
gustav_delius 8203d211ad Fix bug 1937 2005-02-14 00:04:09 +00:00
gustav_delius ea97115290 Fix bug 1905 2005-02-14 00:03:21 +00:00
stronk7 8281899156 Show messages info only if present (SITE course) to avoid
unnecessary headaches to moodlers.
2005-02-13 23:34:54 +00:00
stronk7 5a9fa34b6a Modify some hardcoded admin ids... 2005-02-13 23:22:19 +00:00
martinlanghoff f93426cf07 Merged from MOODLE_14_STABLE - Added option to respect php.ini session settings, else we reenable garbage collection for sessions. Fixes stale session problems with Debian systems, but still allows package maintainers to override. 2005-02-13 22:54:25 +00:00
gustav_delius be495e2097 Only course creators can move courses to a different category. This fixes bug 2065. 2005-02-13 22:52:20 +00:00
stronk7 9e5c8dbdf6 The modified include_once was doing really strange things when retrieving
valid themes! Changed to simply include. Seems to work fine now. Please
check it under PHP 4.x...
2005-02-13 22:40:21 +00:00
gustav_delius 8dc93b9445 Invisible sections are no longer shown in jump menu, see bug 2085 2005-02-13 22:23:45 +00:00
gustav_delius 8a6e783ff0 small fix 2005-02-13 21:43:43 +00:00
gustav_delius 0d645d7cc1 changed language string, see bug 2169 2005-02-13 21:30:02 +00:00
gustav_delius 6e3e7e0e18 fixed typo, closing bug 2167 2005-02-13 21:29:20 +00:00
gustav_delius fe48879334 fixed typo 2005-02-13 21:27:50 +00:00
gustav_delius c7a5b3b1f7 Forum search now no longer shows posts from other groups from forums that are in separate groups mode, see bug 2308 2005-02-13 20:49:28 +00:00
stronk7 aa26fa28f7 MIM working 2005-02-13 20:22:38 +00:00
stronk7 8fee85b4dd Added message_contacts users to the function, 2005-02-13 19:44:32 +00:00
gustav_delius db837a6645 Fixed behaviour of groups.php in the case of an empty group, see bug 2346 2005-02-13 19:38:10 +00:00
gustav_delius ce3c1c2bbd removed undefined string 2005-02-13 19:29:52 +00:00
moodler 4ac00cab59 Fix to get around a problem in get_records with one-field results .. 2005-02-13 19:16:32 +00:00
gustav_delius d6af49274b Taken out duplicates and added a lot more enrollment strings, see bug 2541 2005-02-13 19:14:14 +00:00
stronk7 6d1e416208 Now MIM is restored completely too!!!
It was more complex than I thought!
2005-02-13 19:09:41 +00:00
stronk7 9597a4d970 Needed strings for MIM restore. 2005-02-13 18:56:52 +00:00
gustav_delius 1d7bda4583 Fixed some typos. 2005-02-13 18:46:08 +00:00
moodler b56ccdd9d0 Reformatting some spaces to coding guidelines 2005-02-13 17:38:40 +00:00
moodler 0d2c0cfdf8 Added a little class to the "edited by" line 2005-02-13 17:26:13 +00:00
moodler 8502c3a178 Edited by string 2005-02-13 17:20:36 +00:00
moodler 0936de64a5 Add an "edited by" message to posts when they have been edited by a
different person from the original poster.   See bug 2392
2005-02-13 17:20:17 +00:00
fiedorow 3613082378 Corrected file size message in debugger 2005-02-13 17:04:35 +00:00
gustav_delius e3ff14ca3c Fixed bug 2392 2005-02-13 16:41:12 +00:00
skodak 68eb9f32e4 added style sheet to message panel 2005-02-13 16:30:16 +00:00
gustav_delius f1cc0382a2 Clicking on the icons controlling a section brings you back to the same section, see bug 2433 2005-02-13 15:22:04 +00:00
gustav_delius 2f945146d7 Made the quiz paging bar look more like the standard one, see bug 2443. 2005-02-13 14:58:45 +00:00
moodler c46f27a34f A large clean up of the topics format to
- remove most of the table properties
   - add new classes where necessary to let CSS in
   - rewrote all the PHP strings using '' for speed.
2005-02-13 14:38:59 +00:00
gustav_delius ec99b88e97 $isteacheredit was not defined 2005-02-13 13:23:46 +00:00
gustav_delius 17db65ef3f Added visibility check to all workshop pages, see bug 2450. 2005-02-13 13:12:03 +00:00
gustav_delius 88165dbc72 index of lesson help files, see bug 2510 2005-02-13 12:03:45 +00:00
stronk7 2f77550675 Need IDs to use backup_ids as temporary storage in restore! 2005-02-13 11:44:39 +00:00
gustav_delius 4bd2e69a51 When course is hidden a student trying to enter gets the new message "This course is currently unavailable to students", see bug 2511 2005-02-13 11:43:05 +00:00
gustav_delius eb58929bbb Added string 'counteditems' to allow better translation of things like "8 students", see bug 2530 2005-02-13 11:22:48 +00:00
stronk7 ff377532bd Being a bit more detailed... 2005-02-13 11:20:33 +00:00
stronk7 fbd7202c3e Add an empty string 2005-02-13 11:10:39 +00:00
moodler 6caee7f8fe Temporary 2005-02-13 10:15:51 +00:00
gustav_delius a10464d6cd Moved visibility code to make sure that activities added in hidden sections are hidden. 2005-02-13 09:35:40 +00:00
moodler 56766f8592 More fixes to make custom themes work as expected.
I think it's pretty much perfect now.
2005-02-13 09:02:43 +00:00
moodler d57fc786e4 Make the calendar more theme-setting friendly 2005-02-13 08:50:37 +00:00
moodler 9c4e6e2177 Really big cleanup of how "forced" themes were implemented.
Course themes now work better.

theme/xxxx/styles.php is now really short because all the logic
is in weblib.php.
2005-02-13 08:34:10 +00:00
moodler 373d5f2083 Choice doesn't have groups 2005-02-13 06:31:37 +00:00
moodler 5ebb746b91 $course is now optional for new mod.html functions 2005-02-13 06:31:01 +00:00
moodler 99349afc9a Fixed logic for new course modules 2005-02-13 06:24:21 +00:00
moodler 1f15db9dee Changed the wording again .. should be easier to scan I hope 2005-02-13 06:15:12 +00:00
moodler da2224f83d Change the string for the hide/show ... showimmediately makes sense
on a new creation but not when editing an activity
2005-02-13 06:07:06 +00:00
stronk7 70641539f3 Now MIM are included in backup (not restore yet). Configurable
for scheduled backups and only done in SITE backups. Structure is:
<MESSAGES>
  <MESSAGE>
    Content of the message with one flag to difference read & unread
  </MESSAGE>
  <CONTACTS>
    <CONTACT>
      Content of the contact
    </CONTACT>
  </CONTACTS>
</MESSAGES>
message_get_participants() should include contact users too!!
2005-02-13 02:59:04 +00:00
stronk7 289c39d0f5 New string to backup messages in SITE backups 2005-02-13 01:12:54 +00:00
stronk7 95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius 48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
julmis 2fd4148763 Re-enabling reading for link attributes whats been commented out.
(HTMLArea.prototype._createLink) These lines were commented out for
bug 1455 but it created another bug #2504.
2005-02-12 21:06:09 +00:00
martignoni 193f2982b3 WYSIWYG Editor 2005-02-12 19:41:02 +00:00
martignoni 2981129b25 New string 'backupmessageshelp' 2005-02-12 19:11:21 +00:00
stronk7 c335a52c94 Added two strings to allow backups of MIM in site backups. 2005-02-12 18:54:56 +00:00
moodler 12d8f14c34 Whoops, fixed a typo! 2005-02-12 17:23:14 +00:00
moodler c135a42507 Added message_get_participants function for ELoy to use in Site backups 2005-02-12 17:17:32 +00:00
stronk7 73db625a6d Updated to latest changes. 2005-02-12 16:09:07 +00:00
julmis b17a603812 Better fix for IE's too long statusbar text. Thanks Gustav ;-) 2005-02-12 16:05:59 +00:00
defacer 760e522b04 This small visual detail was trying to hide and escape. :P 2005-02-12 16:00:47 +00:00
moodler 425b4f1abe Err, fixed a typo 2005-02-12 15:56:03 +00:00
mits 4c786ce249 polished. 2005-02-12 15:50:17 +00:00
moodler 78ba4d0697 Save a db call by using SITE 2005-02-12 15:07:25 +00:00
martignoni 2356cd43fe Three forgotten strings :-) 2005-02-12 15:05:11 +00:00
moodler 4e00a4d923 A new discussion is now marked read by the current user right away 2005-02-12 15:01:39 +00:00
martignoni 368255c26b Small correction 2005-02-12 14:54:44 +00:00
moodler 3a68fbbb04 Show group icon or group name on the discussion listing 2005-02-12 14:53:48 +00:00
defacer 1372ef74aa When confirming deleting an event, changed OK/Cancel to Yes/No and added
some distance between those uncomfortably close buttons.
2005-02-12 14:46:20 +00:00
martignoni 67e2881d13 Added missing string 2005-02-12 13:10:12 +00:00
defacer a3f24f7cc5 Improvements in how incoming parameters are handled, how $editing is handled.
More consistency across course formats for editing stuff, using $PAGE.

Also a "bugfix": when turning editing off, cancel moving an activity if you
were in the middle of doing so.
2005-02-12 13:09:18 +00:00
defacer ff0c7de0b0 Removed dead code. 2005-02-12 12:49:46 +00:00
martignoni dbbd55c492 Typo corrected 2005-02-12 12:46:25 +00:00
defacer 446390fb47 Lots of improvements in markup and styles for courses.
Finalized and correctly distributed the calendar styles.
2005-02-12 12:40:04 +00:00
martignoni a9648a722f New strings for configuration sectioning 2005-02-12 12:01:03 +00:00
martignoni de2e0620a8 Small change for string 'editorsettings' 2005-02-12 11:46:34 +00:00
defacer e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
martignoni 82f1d13574 New strings for theme choice configuration 2005-02-12 11:30:19 +00:00
martignoni a12ef9a5e3 New feature: maintenance mode. 2005-02-12 11:22:56 +00:00
martignoni 0163240d58 Moved config strings to admin.php 2005-02-12 11:16:33 +00:00
martignoni 89dd1a8e97 Updated strings, moved from moodle.php 2005-02-12 11:15:22 +00:00
martignoni b6278325fc Screenshot support 2005-02-12 11:10:08 +00:00
martignoni 0e5103e053 New strings for theme choice 2005-02-12 11:08:04 +00:00
martignoni f8a1d181bb New string for the "parent folder" icon. 2005-02-12 11:05:11 +00:00
skodak e7fbd0b3f2 Chatd cleanup finished, from now on only bug fixing. 2005-02-12 10:54:25 +00:00
martignoni 21ccc31467 Added some new strings 2005-02-12 10:53:02 +00:00
defacer 9df8ff4429 Fix for bug 2532:
Due to some restructuring a notice went into the upcoming events block.
I didn't have that one on so I didn't notice (no pun intended) :)
2005-02-12 09:42:23 +00:00
mits 23ae111ba7 polished, translated some.
copied strings from moodle.php to admin.php
2005-02-12 09:14:50 +00:00
martignoni 92c6209335 New string for Shibboleth auth 2005-02-12 09:10:09 +00:00
martignoni a9d3202c38 New string for forum search 2005-02-12 08:58:09 +00:00
moodler 9044a3874e Cleaned up some bodgy search code and formatted according to guidelines .. 2005-02-12 04:41:17 +00:00
moodler c93f852dbc Some tidying up to remove notices and format code to guidelines :-) 2005-02-12 04:12:24 +00:00
moodler d2b059c6c9 FIxed some links for compliance 2005-02-12 03:51:18 +00:00
julmis 30a6aad981 Fixing Bug #2521 Focusing editor removes too long status bar line from IE. 2005-02-11 21:20:33 +00:00
gustav_delius 8930d42124 The table on view.php now also shows the marks achieved in each attempt in addition to the rescaled grade. 2005-02-11 19:51:29 +00:00
defacer 3c1348758d Fixed styles and improved lots of things in calendar. It should work all
right and even be a bit cooler than it was before. :)
2005-02-11 15:52:59 +00:00
djachenko 8846f07b50 ? ? -> ? ? 2005-02-11 12:08:31 +00:00
dlnsk 417b06d283 Important translation about how use Wiki 2005-02-11 11:08:40 +00:00
dlnsk 2c10ff480c Added dscription of module 2005-02-11 10:50:14 +00:00
dlnsk 02a2707485 Some modifications of translation 2005-02-11 10:48:03 +00:00
martignoni 7f786b6303 Corrected the erroneous translation of 'configautologinguests'. Thanks to Arnaud Saint-Georges! 2005-02-11 09:45:59 +00:00
defacer d232b8c701 Updating the guide and some comments to be up to date with the latest
and greatest inner workings. sigh.
2005-02-11 06:30:50 +00:00
defacer 9ecf051d4c Styles and markup improvements. 2005-02-11 05:27:19 +00:00
defacer edbe6c1b69 More styles and markup cleanup. The basic calendar screens should now be
pleasantly viewable in any browser (I 'm testing FF and IE).

Some things still don't satisfy me and some parts haven't been done yet.
But at least it doesn't look broken in IE anymore.
2005-02-11 03:54:33 +00:00
defacer 2ad2cbc302 Fixing more calendar styles (and some other details that caught my eye).
A personal note of thanks to that shitty excuse of a browser, IE, for
making my life a nightmare. And that's on XP SP2.
2005-02-11 03:08:30 +00:00
moodler 197becb829 Enrolment period -> Enrolment duration ... same thing but clearer to teachers maybe 2005-02-11 02:22:44 +00:00
stronk7 6a8fb7d0c6 Some little adds. 2005-02-10 23:46:07 +00:00
fiedorow d7e3f044c1 various improvements: better debugging, image positioning, XHTML validation 2005-02-10 22:19:08 +00:00
fiedorow f352814af5 various improvements: updated mimetex, image positioning, XHTML validation 2005-02-10 22:17:13 +00:00
skodak 2debdf0476 FF issue seems to be solved by explicit call to document.close() 2005-02-10 19:25:42 +00:00
skodak a32c7772c6 fixed deleting of old users when using chatd, other minor fixes, reverting of changes in chatmsg - found some weird problems in FF 2005-02-10 19:14:53 +00:00
defacer 5bbbe0be91 Changing the matching function that decides if a block is applicable for
display in a page. Previously it returned the FIRST match; now it returns
the BEST match.

This allows things like

 array('all' => true, 'mod' => false, 'mod-quiz' => true)

to work correctly regardless of the order the array elements appear in.

Also, encapsulated the check into a function (it has definitely become
non-trivial).
2005-02-10 18:43:18 +00:00
moodler 89f688b6c6 Removed some THEME 2005-02-10 18:22:31 +00:00
defacer 09fe365237 Fix for bug 2525:
Since the page type constants have migrated to local pagelibs, lose them.
2005-02-10 17:32:29 +00:00
moodler 28888608eb DOn't automatically unenrol students from courses with an unlimited
enrolment period, EVEN if the student has a use-by date.
2005-02-10 17:22:28 +00:00
moodler be468aca7e Remove old image 2005-02-10 16:03:27 +00:00
moodler 4fb00c2213 Renamed header gif, and extended the size to fit on my monitor :-) 2005-02-10 16:02:48 +00:00
moodler c2145e7845 Use a convert_high_ascii() function to make filenames friendlier. 2005-02-10 13:26:41 +00:00
koenr ee97fbe5a7 xhtml compliance
removing the valign
replacing alt with  alt=""
closing img-tag
2005-02-10 11:30:10 +00:00
koenr 64d79d168d extended guidelines for xml-compliance 2005-02-10 11:18:32 +00:00
martignoni 422b303779 XHTML compliant 2005-02-10 10:44:24 +00:00
moodler f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
moodler a59a00b79b More styles added as the THEME variable is removed from modules 2005-02-10 10:40:00 +00:00
moodler 32e2b30209 This more or less completes the PHP side of the 1.5 themes
Added $user->theme and $course->theme choices, controlled by admin
variables on the main config variables page.

By default this is all turned off, since multiple themes can be
a little disorienting.

A hidden feature is session themes ... you can change the theme
on any page by passing theme=xxxx as a parameter.  By default this
requires sesskey (so that people don't change theme on each other),
but this security can be switched off using a hidden variable
$CFG->allowthemechangeonurl = true;   Good for quick tests.
2005-02-10 10:28:27 +00:00
moodler 730967f2e7 Better checks for existing files 2005-02-10 09:15:20 +00:00
koenr 73cffa5416 xhtml compliance
removing the valign
replacing alt with  alt=""
closing img-tag
various other things I missed
2005-02-10 08:35:53 +00:00
koenr 0545f923bb xhtml compliance
removing the valign
replacing alt with  alt=""
closing img-tag
2005-02-10 08:23:46 +00:00
mjollnir_ 303d0af144 In email processing, change sitesecret (non existant) to (already used) siteidentifier 2005-02-10 07:53:52 +00:00
moodler 915602ea79 Adding theme fields for courses, users and groups 2005-02-10 07:46:20 +00:00
moodler 16fd89aa23 POintless README 2005-02-10 07:37:33 +00:00
moodler 527a293769 Removed unused files. Someday maybe we'll try XML schema again, maybe Moodle 2.0 2005-02-10 07:36:46 +00:00
moodler 1ac2128075 No message popups during secure quizzes 2005-02-10 05:13:05 +00:00
moodler e5b02a0878 Fixed a notice 2005-02-10 05:12:27 +00:00
moodler 1695b68032 New feature: maintenance mode.
Admin can put a site on hold during an upgrade or theme changing etc

Controlled by a file in dataroot, so it can also be controlled via command line:

    touch moodledata/1/maintenance.html

    rm moodledata/1/maintenance.html
2005-02-10 05:11:34 +00:00
defacer 4f0d565da6 Bringing Quiz in line with Martin's "make Chat into a showcase for pages" idea. 2005-02-10 01:59:11 +00:00
defacer 29ba5158ad Introducing instance ids as id attributes in blocks. This should completely
solve the problem where two instances of the same block did confusing things
when you tried to collapse one of them.

Incidentally, moving some styles for quiz_results block to where they belong.
2005-02-10 00:50:08 +00:00
defacer 7d50b363b5 Reworking of all calendar styles to address bug 2524.
**********************************************************************
* THIS IS NOT COMPLETED YET AND IN FACT IT'S QUITE BROKEN RIGHT NOW! *
**********************************************************************

My head is spinning and that's enough layout madness for one day.
2005-02-10 00:42:41 +00:00
stronk7 7c2f5523b3 Latest modifications added 2005-02-10 00:09:29 +00:00
koenr 63dc8ab940 xhtml compliance 2005-02-09 23:20:55 +00:00
koenr 255dcb52aa more guidance: trying to prevent frequent errors 2005-02-09 23:13:54 +00:00
koenr 6cf0d79bca More guidance: trying to prevent frequent errors 2005-02-09 23:12:49 +00:00
anvergara 6f79803000 Updated! 2005-02-09 22:45:38 +00:00
michaelpenne f7ffb898fa array/object initialization 2005-02-09 22:36:24 +00:00
michaelpenne 078ab023be array/object initialization and made essay question type work with unanswered lesson flow 2005-02-09 22:34:14 +00:00
michaelpenne d72b5b56dc I think just array/object initialization 2005-02-09 22:31:36 +00:00
michaelpenne 0f4be3f608 initialized arrays and objects, fixed a few bugs 2005-02-09 22:29:29 +00:00
martignoni 437fa2a748 Towards XHTML compliance 2005-02-09 22:15:10 +00:00
koenr 9fb96edd4d trying to be more clear for new languages 2005-02-09 21:39:14 +00:00
martignoni 12d3186f60 Modification for XHTML compliance 2005-02-09 21:39:12 +00:00
defacer 002ef48a50 Removing inline styles, adding a class. 2005-02-09 20:13:56 +00:00
defacer 9cbf12c076 Improving some style details etc.
WARNING: I have added border-spacing: 0px and border-collapse: collapse
to all TABLEs. This will change the visual result, but it's better to have
it in the CSS and override it when needed, rather than adding all those
cellpadding="0" cellspacing="0" to each table.
2005-02-09 19:56:16 +00:00
defacer 01315a50c7 Fixing a typo. 2005-02-09 19:52:33 +00:00
defacer 0e85e8f856 Extra . for cuteness :) 2005-02-09 19:51:21 +00:00
moodler a9d5f810b2 Less $THEME, more white chocolate 2005-02-09 17:15:27 +00:00
moodler 6744033797 Removed CHAT further 2005-02-09 16:47:41 +00:00
moodler 37dfb27974 Moved chat PAGE stuff out of core as an example 2005-02-09 16:44:35 +00:00
moodler 4eac76f75a Prevent some notices from bad calls to print_side_block_end 2005-02-09 16:17:03 +00:00
defacer 5ccb85f048 Voila! Blocks support now in chats! 2005-02-09 15:47:22 +00:00
defacer 76d37688fc Fixing allowed formats. 2005-02-09 15:45:54 +00:00
defacer de4505fef3 Removing bad slashes from HTML. 2005-02-09 15:42:05 +00:00
defacer 0ab589983e New class that models the behavior of a chat activity!
Isn't it so small and cute? ;-)
2005-02-09 15:39:07 +00:00
moodler fafd89a0f1 Removed $THEMEs and stuff.
I'm a little worried about this spaghetti code ... it's a mess!
2005-02-09 15:36:29 +00:00
defacer d1b7d61e74 Oops! Wrong optional_param() calls. 2005-02-09 15:31:47 +00:00
defacer d7a2023d04 Bring the param checking to the modern standard. 2005-02-09 15:30:15 +00:00
defacer 023c4bb737 A new constant for chat pages. 2005-02-09 15:26:43 +00:00
defacer b83eee7daa Putting all things that are common among activities into a new class
page_generic_activity. Then we can inherit almost all of the desired
behavior and just override a couple of functions to get going with page
support in a new activity.
2005-02-09 15:22:16 +00:00
moodler a710d8c616 Improved feedback after an action (on redirect) and also put a
navigation check link up the top.
2005-02-09 15:21:56 +00:00
moodler 2c5d79d437 Added some new strings and de-capitalised most of the others. :-) 2005-02-09 15:20:59 +00:00
defacer 8ff1d30259 Let $PAGE print the header, as it should be, instead of doing it manually. 2005-02-09 15:08:51 +00:00
defacer 55815b288d Streamlining class page_quiz, fixing things, removing needless comments. 2005-02-09 15:05:14 +00:00
martignoni 6a698f7a4b Towards XHTML compatibility (once again !) 2005-02-09 14:59:24 +00:00
moodler f8c883ce78 FIxed a notice 2005-02-09 14:45:19 +00:00
moodler 26ecdc5b93 Removed some variables from a copy/paste 2005-02-09 14:38:42 +00:00
urs_hunkler fc67621b90 I commented the buttons for "XHTML, "CSS" and "Section 508" out, because I saw the theme "orangewhite" in action on a public site. In the moment Moodle will match the standars they should IMO be placed at the footer again. 2005-02-09 14:35:43 +00:00
moodler 2cef72d23a Shane's reorganised the configuration variables 2005-02-09 13:50:35 +00:00
moodler 3e060c5c69 Updated strings, moved from moodle.php 2005-02-09 13:49:49 +00:00
carlesbellver 6432503e6a *** empty log message *** 2005-02-09 13:48:50 +00:00
moodler 816acb46d3 Support course idnumber as a way to call courses
http://moodle.org/mod/forum/discuss.php?d=18442
2005-02-09 13:20:24 +00:00
fiedorow e256e3ac78 highlight2 color for forum/search.php 2005-02-09 13:15:42 +00:00
moodler 9ca16fd456 Some cleaning up of configuration interfaces 2005-02-09 13:04:04 +00:00
moodler f0fd3436be Some cleanups just to make these pages look acceptable 2005-02-09 12:55:34 +00:00
moodler 2d47c851f9 Better selection of themes, and screenshot support 2005-02-09 12:44:36 +00:00
djachenko ba5318ef53 "" 2005-02-09 11:58:23 +00:00
martignoni 6453719c97 Towards XHTML compatibility 2005-02-09 11:03:44 +00:00
urs_hunkler 5bf2ef9feb added the "switch_minus" icon for hide/show and renamed switch to "switch_plus". Changed the themes "styles_layout" for "standard" and "orangewhite" to use the "plus" and "minus" icons. 2005-02-09 09:00:13 +00:00
urs_hunkler 24a44be1e7 added the "switch_minus" icon for hide/show and renamed switch to "switch_plus". 2005-02-09 08:58:57 +00:00
moodler bfca00947a Improved styling of headings 2005-02-09 08:29:58 +00:00
moodler 2f71f2a2b0 Some new styles 2005-02-09 08:29:00 +00:00
moodler 6e86ae68d8 Added a comment about safe mode permissions 2005-02-09 05:20:01 +00:00
moodler 4b9efec45e Default directory permissions of 02777 (for safe mode) are causing
some problems for various people ... I'm putting it back to the default.
2005-02-09 05:19:05 +00:00
moodler 730d1e9611 Fixed bodgy call to config.php (http://moodle.org/mod/forum/discuss.php?d=18293) 2005-02-09 03:48:45 +00:00
moodler 9f7bf72393 Zap old file 2005-02-09 03:46:44 +00:00
moodler 19221c7e06 Removed old script 2005-02-09 03:45:17 +00:00
moodler d73754ee84 Removed old file 2005-02-09 03:44:41 +00:00
defacer d4f7a8152d Redoing the hide/show thingy for blocks purely through CSS.
Instance id's next time, Urs! ;-)
2005-02-09 01:23:06 +00:00
martignoni 37121d3ab5 moving to xhtml doctype 2005-02-08 22:23:11 +00:00
martignoni 80b51cc00d First cut of email to module (or core) processing. 2005-02-08 22:10:36 +00:00
martignoni 504cbfdf2f Some strings needed to backup & restore metacourse info. 2005-02-08 22:04:09 +00:00
martignoni 07d295215a Another unclosed <p> 2005-02-08 21:57:35 +00:00
martignoni 0dd9a39c2a Typo corrected 2005-02-08 21:55:18 +00:00
martignoni 889e724902 Nolink is not only for glossaries 2005-02-08 21:53:56 +00:00
paca70 67bcfee642 updates. 2005-02-08 21:41:19 +00:00
skodak 475bd5cb71 fixed problems with forced course language 2005-02-08 21:30:47 +00:00
skodak a776c371e7 fixed typos in chat_force_language(), added encoding to message page, minor cleanup 2005-02-08 21:23:19 +00:00
borinsky2407 9a9ebde280 adapted from the de-version, should xhtml compatible 2005-02-08 20:52:47 +00:00
borinsky2407 43eb257412 adapted from the de-version, should xhtml-compatible 2005-02-08 20:51:09 +00:00
defacer 783453129b Fix for bug 2488:
Extending mdl_log column module to varchar(20).
It was already 20 chars in Postgres, so no changes there.
2005-02-08 20:29:17 +00:00
koenr e4d8d0bcc5 xhtml compliance 2005-02-08 19:28:59 +00:00
moodler fa966efe7a FIxed some old <p> tags 2005-02-08 18:33:08 +00:00
fiedorow 01e8cf8893 New highlight color for forum/search.php 2005-02-08 18:13:43 +00:00
fiedorow ff01c1f5db New string for forum search 2005-02-08 18:09:59 +00:00
defacer 4be2a84bfe New string for the "parent folder" icon. 2005-02-08 18:08:23 +00:00
fiedorow cdea3a531c Highlight search terms found only in HTML markup 2005-02-08 18:06:06 +00:00
defacer f4b351a30e Fix for bug 2491:
Implementing a "parent folder" icon in the file manager.
2005-02-08 18:03:43 +00:00
moodler 210eddc7df Various cleanups for XHTML and so on 2005-02-08 17:56:22 +00:00
moodler bcd4d06b2f Consistent admin pages 2005-02-08 17:34:02 +00:00
moodler 206483974f Just a little tidying up 2005-02-08 17:33:13 +00:00
moodler ac91569f91 Styles for notify and notice stuff 2005-02-08 17:11:28 +00:00
moodler a8f6842661 Fixing some of the standard notice functions, adding styles and buttons 2005-02-08 17:09:41 +00:00
moodler c7a9e29326 Just a robustness test 2005-02-08 17:07:31 +00:00
moodler 05049d161b Keep $THEME global in print_header for backward compatibility 2005-02-08 14:51:38 +00:00
moodler 3c5206598d FIxed some formatting 2005-02-08 14:49:57 +00:00
moodler 21c7f77048 Removed a lot of needless <p> tags 2005-02-08 09:36:21 +00:00
moodler b61aed4297 Fixed up some layout issues in the configuration files 2005-02-08 09:23:21 +00:00
moodler 33aa00b4c7 Removed some stupid paragraphs 2005-02-08 08:14:53 +00:00
moodler bdfd310316 Improved styles for admin/modules.php page 2005-02-08 08:13:23 +00:00
moodler fb830a1b60 Merged isteacher fix from stable 2005-02-08 07:45:53 +00:00
moodler 3dcdf943a2 Some better feedback about lack of XSLT functions 2005-02-08 07:23:04 +00:00
moodler 9ff5e44a93 Added Blackboard restore using XSLT. Works with BB 5.5 and BB 6.0.
Completely untested by me but it LOOKS like it should work.  It's quite
standalone, and is basically a single function call during the restore
precheck which looks in the backup to see if it's a BB file, then
converts it using XSLT.

Apart from a little tidyup and renaming, I added a check so that it
should just silently fail if XSLT functions aren't available

Many thanks to Ziba Scott <ziba@linuxbox.com> who wrote it!
2005-02-08 07:19:49 +00:00
moodler 9c41fb8eb4 Merged from stable bug 2513 2005-02-08 06:22:04 +00:00
martinlanghoff d6a49dab9f Merged from MOODLE_14_STABLE - fix_course_sortorder() bug #2509 - Should fix overlaps when moving categories with large gaps -- affects only mysql. Prevent from landing even near the newly assigned range during the temporary shift. 2005-02-08 03:42:20 +00:00
mjollnir_ 0bedb18792 Removing mdl_ in sync_metacourse 2005-02-08 03:39:40 +00:00
defacer 8a47e075b3 Changing the way that applicable formats for each block are defined:
The format for each page is now the same as the id attribute of the
BODY tag, which in turn is a simple function of the script's relative path:

The format for e.g. a quiz view page is "mod-quiz-view". The format for the
site index is "site-index". Exception: the format for courses is not just
"course-view", but "course-view-weeks" etc.

Obviously the applicable_formats() override for each block should now take
this into account. The matching rules now are:

* You can specify the full format, e.g. "mod-quiz-view" => true
  will allow the block to be added in quizzes
* Prefixes match the full page format, e.g. "mod" matches ALL activities
* You can use "*" as a wildcard, e.g. "mod-*-view" matches just the view.php
  page of all activities
* These rules interoperate, thus "mod-*" is the same as "mod"
* "all" remains as a catch-all situation
2005-02-08 02:59:44 +00:00
mjollnir_ bb64b51aa3 First cut of email to module (or core) processing.
This patch contains:

* email_to_user will set the envelope sender to a special bounce processing address (based on $CFG settings)
* email_to_user will accept (and set) a reply-to header, to be generated by the module calling the function.

* new functions:

	* generate_email_processing_address - ALWAYS use this to generate the reply-to header. reply-to header will look like this:

	(LIMIT: 64 chars total)
	prefix - EXACTLY four chars
	encodeded, packed, moduleid (0 for core) (2 chars)
	up to 42 chars for the modules to put anything they want it (can contain userid (or, eg for forum, postids to reply to), or anything really. 42 chars is ABSOLUTE LIMIT)
	16 char hash (half an md5) of the first part of the address, together with a site "secret"

	* moodle_process_email - any non-module email processing goes here (currently used for processing bounces)

* bounce handling:

	* config settings for bounce threshold and ratio (and whether to handle bounces at all)
	* if too many bounces occur against any given user, user_not_fully_set_up will force an email address change
	* associated functions (over_bounce_threshold, set_send_count, set_bounce_count)

* handling emails to noreply address (see below)

* new script - admin/process_email.php

	This script needs to be called from your mail program for anything starting with the 4 char prefix described above (and optionally, the noreply address)
	It will bounce emails to the noreplyaddress, with a friendly "this is not a real email address" message

	It will break down and unencode the email address into moduleid and validate the half md5 hash, and call $modname_process_email (if it exists). Arguments to these functions are: $modargs (any part of the email address that isn't the prefix, modid or the hash) and the contents of the email (read from STDIN).

* associated string changes/additions

* changes in config-dist.php to give clues as to how to set this up.

MODULE WRITERS!

take a look at new functions moodle_process_email and generate_email_processing_address  in moodlelib.php for ideas about how to

	* encode and unencode the arguments your module needs to do the processing
	* how to deal with multiple "actions" for any given module.

Martin Langhoff <martin@catalyst.net.nz> will be writing up some PROPER documentation, containing amongst other things config settings for different mail servers (this was developed against Postfix).  Feel free to email me with any feedback on the code or design, penny@catalyst.net.nz.  Or post on the developer fourm.
2005-02-08 02:57:14 +00:00
defacer b70b8fe1e0 Adding test for empty db password. 2005-02-08 02:43:36 +00:00
defacer f6b8182732 This isn't quite ready yet, but get this diff out of my sight... 2005-02-08 02:42:29 +00:00
defacer 83a305a7e7 Renaming some $course to $courseid to make it clear to anyone reading the code... 2005-02-08 01:34:14 +00:00
mits fb347d6c4d translated some. 2005-02-08 01:08:48 +00:00
stronk7 fff86611a2 Small typo (bug 2512)
(http://moodle.org/bugs/bug.php?op=show&bugid=2512)

Merged from MOODLE_14_STABLE
2005-02-08 01:07:45 +00:00
defacer 86a956a42a Fixing this to not show notices if a block doesn't have an id attribute. 2005-02-08 00:53:55 +00:00
defacer 0fdce319fb Centering the contents of the "add blocks" block. 2005-02-08 00:24:33 +00:00
defacer d49a3fc5a8 Removing the inline style, migrating to styles_layout.css 2005-02-08 00:22:37 +00:00
koenr 8c3270ef5c xhtml compliance 2005-02-08 00:12:17 +00:00
defacer 685416485b This is now automatically done, no need to do it twice. 2005-02-08 00:12:11 +00:00
defacer e1f76e76a9 Give an id attribute to the "Add Blocks" block so that the new hide/show
provisions in weblib don't print notices.
2005-02-08 00:00:21 +00:00
defacer 3524435159 The W3C valid way to write script tags is <script type="text/javascript">. 2005-02-07 23:56:54 +00:00
koenr de1315e3d5 forgot to commit 2005-02-07 23:54:25 +00:00
stronk7 0183a6c48e One minor problem restoring categories in XHTML solved 2005-02-07 23:45:19 +00:00
stronk7 e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
stronk7 1bbf415fe8 Now the restore process is XHTMLised 2005-02-07 23:28:52 +00:00
anvergara d160861fdf Cambiado "Periodo de Matriculaci?n" por "Periodo de vigencia de la matr?cula" y cambiada la explicaci?n correspondiente. 2005-02-07 23:24:54 +00:00
anvergara 7f29369723 Changed the enrolperiod string 2005-02-07 23:23:20 +00:00
borinsky2407 c546ca5d81 by c.borowski 2005-02-07 23:18:29 +00:00
borinsky2407 e4c54f455b by c.borowski@web.de 2005-02-07 23:17:43 +00:00
borinsky2407 c2418e53a4 *** empty log message *** 2005-02-07 23:02:29 +00:00
koenr 6c3c1c96a1 xhtml compliance -de_du done 2005-02-07 22:37:16 +00:00
mjollnir_ a45ee54ee1 Removing PHP notice in metacourse assign courses page (bug 2479) 2005-02-07 21:10:25 +00:00
mjollnir_ 832e87dfd8 Fixing formatting problem (extraneous <p>) 2005-02-07 21:04:53 +00:00
skodak 3dfd307fe0 maybe fixed double posts, fixed javascript errors, solved problems with reloading 2005-02-07 20:33:44 +00:00
koenr fb4b8fc8aa another go to get the notation of the be language correct. Hope this is the right one. 2005-02-07 18:27:43 +00:00
koenr b08c38b0dc removed untranslated markdown.html and a temporary file 2005-02-07 18:04:01 +00:00
stronk7 5dc2d8ef3a deleted some negations used to test the restore metadata process. :-) 2005-02-07 17:58:50 +00:00
stronk7 0e90d8ec2c Some strings needed to backup & restore metacourse info. 2005-02-07 17:55:12 +00:00
stronk7 cee6968fa1 Now metacourses are working in restore too!
Please test them!!
2005-02-07 17:52:58 +00:00
moodler 7c37216deb Nolink is not only for glossaries 2005-02-07 15:06:13 +00:00
moodler 27888a2038 Disable $CFG->forum_trackreadposts completely when the user is a guest
or not logged in.
2005-02-07 11:58:49 +00:00
moodler da17a899d7 Added class and id to print_table, and id to print_simple_box 2005-02-07 11:08:37 +00:00
koenr 4593b527fb xhtml compliance
removed head, html and body tags. Not allowed here since they are provided by moodle when parsing the page.
2005-02-07 10:41:52 +00:00
koenr c459de0b1e xhtml compliance
removed head, html and body tags. Not allowed here since they are provided by moodle when parsing the page.
2005-02-07 09:41:29 +00:00
mjollnir_ ffed6bf316 Better fix for 2479. This time I'm 99.999999% positive it's fixed ;) 2005-02-07 09:32:24 +00:00
mjollnir_ 835c8061b6 Removing db ids (found their way in from copying sql - bad) from last patch 2005-02-07 09:27:03 +00:00
mjollnir_ 178ccd11c0 Fixing bug 2479. Can't figure out a way to do it with a left join at this stage but the query doesn't look too bad. Anyone who thinks they can figure out a more elegant way for it is welcome\! 2005-02-07 09:22:07 +00:00
villate f83ea5e9c5 Translation of the teacher's manual (almost complete) 2005-02-07 08:54:28 +00:00
defacer 52b2223dec Some corrections. 2005-02-07 04:54:04 +00:00
moodler 106137d877 Fixed PARAM_ALPHA 2005-02-07 02:13:18 +00:00
moodler 333f44dab0 Handle longtimenosee of zero 2005-02-07 01:23:44 +00:00
moodler 002f03a172 Allow longtimenosee to be zero 2005-02-07 01:21:50 +00:00
mjollnir_ a5849937b4 More bug fixing - #2479 2005-02-07 01:00:57 +00:00
defacer 527d9cddbc First rough version of the "Health Center", so people can play around. 2005-02-07 00:45:41 +00:00
stronk7 cb0b08c56b Now spanish doc is XHTML at all! 2005-02-06 23:44:59 +00:00
stronk7 84c91012e0 More XHTMLised docs 2005-02-06 23:26:25 +00:00
stronk7 bc9e20695e More XHTML spanish docs... 2005-02-06 23:18:11 +00:00
stronk7 f2f906b3fd More XHTML valid documentation files 2005-02-06 23:01:08 +00:00
koenr d7240a0414 xhtml compliance
removed head, html and body tags. Not allowed here since they are provided by moodle when parsing the page.
2005-02-06 22:26:49 +00:00
koenr d2f13b5008 empty option 2005-02-06 21:55:07 +00:00
koenr ff28f76ab2 xhtml compliance 2005-02-06 21:36:15 +00:00
koenr d65c472ff5 xhtml compliance
removed head, html and body tags. Not allowed here since they are provided by moodle when parsing the page.
removed markdown.html - not translated
2005-02-06 21:28:06 +00:00
koenr 24acd72d5e Created with very ugly wordprocessor.
not xhtml-compliant -> should be replaced by nice HTMLl first
2005-02-06 21:09:27 +00:00
gustav_delius 2ce17a0d5a The html editor was inserting a paragraph with just a space in it which clearly created problems for fields that the user wanted to leave empty.
There was also a problem when switching to text mode and back again: the status bar showed Path: Path:. I have taken out the second one.
2005-02-06 21:04:10 +00:00
koenr 3f3d62ce91 Created with very ugly wordprocessor.
I took the garbage out, but I had to replace the tables with the English ones. This file took too long to handle.
2005-02-06 21:04:07 +00:00
stronk7 64376cf363 Using docsyles.css! 2005-02-06 20:27:30 +00:00
stronk7 65129b1e8a minor body change. 2005-02-06 20:25:42 +00:00
stronk7 b4d13042ca More XHTML docs... 2005-02-06 20:24:57 +00:00
koenr 3ad5e30f1a xhtml-compliance de php-files done 2005-02-06 20:19:50 +00:00
skodak 3fa66675b3 correction in require path for mimetypes 2005-02-06 20:06:08 +00:00
skodak 3abd61254c this file should be gone long ago, removing now 2005-02-06 19:46:09 +00:00
skodak b463ce3cae fixed pclzip import 2005-02-06 19:40:01 +00:00
koenr 1ef915cfc1 xhtml-compliance - da done 2005-02-06 19:32:09 +00:00
stronk7 a2013b4116 This file is out from the English version. Removed here too. 2005-02-06 19:24:58 +00:00
skodak 54318b0462 typo in comment 2005-02-06 19:23:32 +00:00
stronk7 b445960d53 Part of the spanish documentation is now XHTML. 2005-02-06 19:20:19 +00:00
koenr 00cae34edd another unclosed <p> 2005-02-06 18:59:13 +00:00
gustav_delius 0e2851b998 Avoid using <p> tags because different browsers treat them differently (e.g in firefox if a table cell starts with a <p> it will start with an empty line, in IE it will not). Use <div> instead. 2005-02-06 18:18:44 +00:00
gustav_delius 0726eb27bb replaced href="#" by href="javascript:void()" as suggested in bug #1980 2005-02-06 15:18:09 +00:00
martignoni e2b972cab8 Typo corrected 2005-02-06 14:48:06 +00:00
koenr 43892825f6 missing characterset 2005-02-06 12:42:13 +00:00
koenr 5aa0201706 last files moving to xhtml doctype
moving body background-color to stylesheet

forgot this one
2005-02-06 12:39:55 +00:00
koenr 2b7b471a32 last files moving to xhtml doctype
moving body background-color to stylesheet
2005-02-06 12:39:37 +00:00
koenr a055c69296 moving to xhtml doctype 2005-02-06 12:14:47 +00:00
koenr 354f976c42 wrong characterset
moving to xhtml doctype
2005-02-06 11:21:19 +00:00
gustav_delius 2b6271fccc I have changed the icon for removing a question from a quiz from X to >> and changed the label from 'Delete' to 'Remove' because it does not delete the question but only removes it from the quiz. 2005-02-06 10:42:31 +00:00
skodak 9824495127 detection of oversized requests from clients 2005-02-06 10:06:25 +00:00
gustav_delius 51d0c8b0bd edit column in question tables on edit.php are now wide enough to hold all icons without line break 2005-02-06 07:55:05 +00:00
gustav_delius f0148d973c If a question is removed from a quiz then also all existing responses (e.g. from teacher attempts) are removed. Thanks to Eloy for pointing out that this was missing, http://moodle.org/mod/forum/discuss.php?d=17167#83331 2005-02-06 07:45:40 +00:00
koenr 9664b4ea0f moving to xhtml doctype
removed the <ol><ol> construction and replaced it with a styl margin-left

removed the body fixed white color and replaced it with a style in docstyles.css
2005-02-06 00:59:14 +00:00
koenr 8c1f5b881b moving to xhtml doctype 2005-02-05 23:37:17 +00:00
urs_hunkler c24a1ccd08 I added all code to handle the cookies and the sideblock content, the icon and the patches for hiding/showing the content of the sideblocks.
How it works:
_ within the "sideblockheading" a DIV with class="hide-show" holds a link calling the JS containerDisplaySwitching(). To the user it's represented by the icon "switch.gif" (a plus in a square) at the right end side of the header.
_ all content of the sideblock is surounded by a new <div class="blockcontent" id="'.$attributes['id']."_cont\">"
_ a call of the JS containerDisplaySwitching() changes the state of the appropriate DIV with the content to "display:none/inline" and writes this state into a cookie.
_ at the end of every block I added a call to the JS "containerDisplaySet()". This reads the block's state and hides the content or leaves it visible with every page load.
_ in the stylesheet I added the positioning of the icon:
.sideblockheading .hide-show {
    float:right;
}
.sideblockheading a img.hide-show-image {
    padding-top:0.25em;
}
2005-02-05 21:37:53 +00:00
gustav_delius b37cacae47 It is now no longer possible to add or delete questions in a quiz that students have already attempted, see http://moodle.org/mod/forum/discuss.php?d=16479#86488 2005-02-05 21:03:04 +00:00
koenr 7f3c54ab17 xhtml-compliance 2005-02-05 20:51:23 +00:00
gustav_delius 6eaae5bdd2 fixed my own type (missing ;) 2005-02-05 20:00:15 +00:00
gustav_delius 6f7970138a Taken out some $THEME 2005-02-05 17:28:06 +00:00
fiedorow c43cb5ad4f Presents login as guest button if course allows guests. 2005-02-05 16:58:28 +00:00
fiedorow cb4501f401 Remove moodle_set_cookie call 2005-02-05 16:47:50 +00:00
fiedorow 508d0b3c61 Implements log in as guest for courses that allow guests. 2005-02-05 16:46:26 +00:00
fiedorow 9ca3b4f313 Bypass enrolment if guest shortcut for courses that allow guests. 2005-02-05 16:40:38 +00:00
koenr 3d9717ea4f A lot of new strings and help files. This language pack is nearly complete. All checked and corrected to xhtml-compliance. 2005-02-05 13:41:03 +00:00
martignoni 47c24951f6 Changed 'mainmenu' 2005-02-05 12:49:14 +00:00
martignoni 7da61a241e Strings in the lang file are now sorted 2005-02-05 12:48:16 +00:00
martignoni 288bbf5f62 Short days are now shorter (2 characters) 2005-02-05 12:03:55 +00:00
mits 0da3e76446 fixed locale 2005-02-05 08:04:04 +00:00
mjollnir_ ee1bef900a Fixing bug 2480 - meta course enrolment 2005-02-05 05:15:16 +00:00
defacer 6573a08f63 Changing !$course->category to $course->id == SITEID 2005-02-05 03:16:44 +00:00
defacer 1610aa4916 Rewriting "!$course->category" to "$course->id == SITEID" to make it clear. 2005-02-05 02:08:25 +00:00
stronk7 4fe36ff931 Abot more done about XHTML
(just goig to sleep)
2005-02-05 02:00:12 +00:00
stronk7 d8ffb057da This page is near to be XHTML!
Please, see bug 2496
(http://moodle.org/bugs/bug.php?op=show&bugid=2496)
2005-02-05 01:58:37 +00:00
defacer 756e182362 Enforcing the "email type" (text/HTML) user setting at core library level.
With well-written client code this should not be needed, but after getting
burned once I think it's a good idea to make it "smart".
2005-02-05 01:36:55 +00:00
defacer 673c1b2f13 Fixing a serious bug with PHP 5 only, which caused blocks to lose
their configuration data (there is an explanation but I don't think
anyone cares).

Actually it was an optimization and I had to disable it. All is fine now.
2005-02-05 01:32:15 +00:00
stronk7 93334ad588 backup logs are now XHTML 1.0 Transitional 2005-02-05 01:22:31 +00:00
stronk7 755fbe6318 Scheduled backup configuration page is XHTML 1.0 Transitional 2005-02-05 01:11:19 +00:00
stronk7 f2d5737825 Now manual backups are XHTML 1.0 Transitional.
And version bump!
2005-02-05 01:00:33 +00:00
skodak 342769e94d typo in javascript code, message submit did not work :-( 2005-02-04 22:58:28 +00:00
skodak 2ac0d13b6f reverted some unfinished changes in chatd - enter message 2005-02-04 21:14:19 +00:00
defacer 379a42cb26 Bugfix: don't send HTML digests to users who want simple text mail. 2005-02-04 21:13:28 +00:00
villate de293f37ce Updates for ver. 1.5 beta 2005020101 2005-02-04 21:00:35 +00:00
defacer 17ed7f8290 Additional notices under PHP5 fixed. 2005-02-04 20:57:16 +00:00
michaelpenne 4759d2c1eb changed Main Menu to Course Menu 2005-02-04 20:49:04 +00:00
defacer 246c206420 Fix for bug 2492: Notices thrown by pagelib.php.
It was an oversight on my part. Thanks Gustav!
2005-02-04 20:27:54 +00:00
villate f63a1f5f5b A few more new strings translated 2005-02-04 20:18:29 +00:00
michaelpenne 31062eefad changed a couple of <br> to <br /> 2005-02-04 20:11:48 +00:00
villate d2b596e5cf Complete translation for ver. 1.5 2005-02-04 20:09:26 +00:00
villate 107a1c1617 We have decide to replace forum by f?rum, which is the accepted spelling. 2005-02-04 20:02:50 +00:00
michaelpenne 5aeebbc894 re-arranged a lot of code. Only branch tables appear in slide show mode. Display left and slideshow works with tables now instead of stylesheets (helps with browser compatibility). Some XHTML fixes. Fixed grading essay questions for non-custom scoreing. Reformated a lot of output 2005-02-04 19:39:18 +00:00
michaelpenne ea6c76e0f2 removed a lot of styles because left menu and slideshow work in a table instead of styles. This helps with compatibility with more browsers 2005-02-04 19:35:43 +00:00
michaelpenne 9d1bd908f5 fixed the clock formating. 2005-02-04 19:34:22 +00:00
michaelpenne 62d5291318 this is Petrs security fix for import 2005-02-04 19:33:33 +00:00
michaelpenne 9127f2494d fixed a clean param function call 2005-02-04 19:31:24 +00:00
michaelpenne b7daa75d08 most changes in continue section. Took it out of slideshow. Made some display changes with display left (not style sheet dependent now) 2005-02-04 19:30:19 +00:00
stronk7 1d9169d312 Now group members are only included (backup and restore) if
we have selected to have users! Thanks to Etienne! Bug 2486
(http://moodle.org/bugs/bug.php?op=show&bugid=2486)

Merged from MOODLE_14_STABLE
2005-02-04 16:24:12 +00:00
stronk7 572248937e Now metacourse in supported in manual and scheduled backups. It can be configured
in both backups. Please check if the used structure and exported data has sense!
2005-02-04 14:33:51 +00:00
mits 7544920d2b polished. 2005-02-04 06:05:29 +00:00
mits 78317f879e polished. 2005-02-04 05:04:08 +00:00
mits a6ff8b2545 translated some. 2005-02-04 03:14:50 +00:00
skodak 94b3dde15b update code clarification - thanks Eloy! 2005-02-04 00:43:45 +00:00
mits 12819a0af1 polished. 2005-02-04 00:40:51 +00:00
koenr 5ff99bd6aa xhtml-compliance 2005-02-03 23:35:52 +00:00
stronk7 85304b4053 More differences. 2005-02-03 23:27:52 +00:00
stronk7 a589ccb37f Moving some strings to make them available in all the script. Not really sure about changes introduced in version 1.42! Penny? 2005-02-03 23:19:54 +00:00
skodak 01accf3efa PARAM_ALPHA now converts to lowercase; merged from MOODLE_14_STABLE 2005-02-03 22:53:49 +00:00
mjollnir_ 2276693799 Better attempt at fixing 2479 2005-02-03 22:34:42 +00:00
koenr 1383df791f please respect the rules of xhtml-compliance for new files in fully checked lang packs 2005-02-03 22:33:42 +00:00
mjollnir_ 6036cae854 Reverting last patch for bug 2479 2005-02-03 22:30:46 +00:00
mjollnir_ 6cc75c99f4 Fixing bug #2479 (parent courses showing in meta course search) 2005-02-03 22:21:30 +00:00
koenr 084247d3f5 xhtml-compliance 2005-02-03 22:21:00 +00:00
koenr 07d291d635 xhtml-compliance 2005-02-03 22:11:49 +00:00
koenr ec922e9355 xhtml-compliance 2005-02-03 20:50:14 +00:00
skodak 516121bd0d radical chat clean up, see forum for details 2005-02-03 20:39:27 +00:00
skodak 60ecca3a09 incorrect use of preg_quote(), add '/' to list of quoted chars - see man page; merged from MOODLE_14_STABLE 2005-02-03 19:37:11 +00:00
skodak f24148ef0f new parameter cleaning PARAM_BOOL and PARAM_ALPHANUM, merged from MOODLE_14_STABLE 2005-02-03 18:14:45 +00:00
gustav_delius adf3c01551 fixed stupid bug in code for adding random questions 2005-02-03 18:04:15 +00:00
moodler 428b9360de Latest version - very nice! 2005-02-03 11:12:47 +00:00
stronk7 9da0673aba Now actions for meta-courses (add, delete...) are using sesskey. 2005-02-02 19:13:24 +00:00
martignoni e5a7b7082c Perfecting the wording to distinguish between singular and plural. 2005-02-02 16:26:29 +00:00
martignoni 2c7908e1b6 Small fix 2005-02-02 16:23:26 +00:00
martignoni c950f03526 Better wording 2005-02-02 15:44:52 +00:00
martignoni 98ba5c3bab Added Learnwise import format string 2005-02-02 15:43:40 +00:00
martignoni 3d59926ed1 There is now a mechanism by which question types can have their own setup options 2005-02-02 15:42:43 +00:00
martignoni 74995b5a7c Polishing that Add/Edit Blocks button 2005-02-02 15:34:10 +00:00
martignoni 5d262a73e9 Messaging can now be completely disabled 2005-02-02 15:33:03 +00:00
martignoni af72fb5807 Initial checkin for import course content functionality 2005-02-02 15:30:36 +00:00
martignoni f821406d4f Added some new lang entries for mod.html 2005-02-02 15:23:30 +00:00
villate d6a97d7e39 A few refinements 2005-02-02 14:54:36 +00:00
defacer 60fe9736f4 Updating index page with all the latest from blocklib and pagelib. 2005-02-02 04:32:13 +00:00
defacer 768320dcc9 Update for the new APIs and simplification. 2005-02-02 02:46:06 +00:00
defacer c1d8705fd2 Change the semantics of blocks_print_adminblock() to make life easier to
developers who use pages. Conversely simplified the code a bit in courses.
2005-02-02 02:41:56 +00:00
defacer 7c6c051326 Utilizing page_id_and_class(), make a factory function page_create_instance()
that does not need the page type as an argument (autodetects from the URL).
2005-02-02 02:32:40 +00:00
defacer 68d5f00ae8 Isolating this in a function because it's quite useful
to access from elsewhere, too.
2005-02-02 02:25:50 +00:00
defacer 1319096389 Adding a useful mathematical shortcut. 2005-02-02 02:22:56 +00:00
stronk7 ac1d9a2212 One notice is out showing recent recent activity of deleted posts. 2005-02-01 23:57:58 +00:00
koenr aad9dfc0ef xhtml-compliance 2005-02-01 23:25:44 +00:00
koenr 669123f382 missing strings 2005-02-01 22:57:22 +00:00
martignoni 71ea8763a3 MAJOR NEW FEATURE: Tracking of read/unread posts 2005-02-01 21:51:42 +00:00
martignoni 51c8aa25ac Adding new strings for the editor 2005-02-01 21:38:57 +00:00
martignoni 664ed74a96 Latest updates to lang file for rss_client block 2005-02-01 21:35:30 +00:00
martignoni 04fc1bc706 Initial checkin of language for the quiz_results block. 2005-02-01 21:22:30 +00:00
martignoni 11e731a370 Added Jon's html block from contrib! Thanks, Jon! 2005-02-01 21:10:09 +00:00
martignoni d6132e0b53 Show a warning to admins if cron.php hasn't been run 2005-02-01 21:06:48 +00:00
mjollnir_ e5cf5750cf Modification for datalib (modify_database) to ignore lines that start with -- as well as # (postgres) 2005-02-01 20:45:46 +00:00
koenr 3eab47c62d uggly grammatical error 2005-02-01 19:44:55 +00:00
mits e7d1a7b21e translated some. 2005-02-01 15:04:50 +00:00
moodler 78c0d9094b Added all styles to forum posts 2005-02-01 11:30:41 +00:00
moodler 8b55d08598 Update copyright to 2005 2005-02-01 10:08:26 +00:00
defacer b959599b51 Allow this in quiz pages, too. 2005-02-01 10:03:54 +00:00
defacer 639276728c Allow quiz_results in quiz pages and allow multiple instances too
(this obviously is only useful in courses).
2005-02-01 10:03:21 +00:00
defacer 1ef61c260d Pull all blocks out of quiz pages. We can see about allowing them later. 2005-02-01 10:02:12 +00:00
defacer e7c66b1584 Updated to cover the latest API addition and made some minor corrections. 2005-02-01 09:19:31 +00:00
defacer d9f7e051b9 Perfecting the wording to distinguish between singular and plural. 2005-02-01 08:44:04 +00:00
defacer fc0551248e Polishing that Add/Edit Blocks button 2005-02-01 08:35:06 +00:00
moodler 18b9d66439 Moved theme changing to after SESSION exists 2005-02-01 08:00:58 +00:00
defacer c6a2a401ed Making the "Add block..." menu list alphabetically sorted ;-) 2005-02-01 07:59:09 +00:00
defacer e7c15eca42 Since people adding this block to the quiz screen will get an empty display
at first, show them a more friendly message instead.
2005-02-01 07:46:31 +00:00
defacer 8dffa4df07 Don't forget to kill all our block instances if we are deleted. 2005-02-01 07:40:58 +00:00
defacer 8bd3fad303 I need those constants a bit more easily accessible. 2005-02-01 07:39:21 +00:00
defacer 7221d319be Fixing all the details in the block instance configuration screen.
That wasn't so hard!
2005-02-01 07:34:17 +00:00
defacer bdfa14dd7f All right, we can now have blocks in quiz pages!
Let's test it a while and see what we learn from it.
2005-02-01 07:16:19 +00:00
defacer cadc69c64c Added a new class page_quiz, modelling the behavior of a quiz view page.
Not everything is quite right now, a few details (e.g. correct breadcrumbs)
have been ignored but most of the functionality is there.

Blocks in quizzes, here we come!
2005-02-01 07:12:39 +00:00
defacer 3edc57e189 Even more automation: now blocks_execute_url_action() checks if the user
has sufficient rights to execute the action automatically. It's therefore
safe to call without ANY checks being done first.
2005-02-01 06:55:02 +00:00
defacer 0144a0a701 Add a very useful feature to block_base to make instance config even more
convenient to use. And take advantage of it to make the block run faster.
2005-02-01 06:51:00 +00:00
defacer bf94f836a4 Being slightly more accurate. 2005-02-01 06:49:52 +00:00
defacer f58a15dee2 That link looks a little silly if we are viewing the quiz... 2005-02-01 06:40:50 +00:00
defacer e0a80e89f3 I 'm putting together a scheme to allow blocks in mod/quiz/view.php.
This will allow the block to work when displayed there.
2005-02-01 06:38:42 +00:00
defacer da71112bed Refining the way that blocks work: now you don't have to know anything
about what editing the blocks adds to your URL. blocklib will take care
of that internally.
2005-02-01 06:24:28 +00:00
mjollnir_ bf60471bc8 Fix for metacourses. Courses with course->metacourse shouldn't be offered in the courses to add dropdown 2005-02-01 04:51:28 +00:00
mjollnir_ 8a4e77ae1b Another fix for metacourses (lost auto_increment). This will preserve data. 2005-02-01 04:47:04 +00:00
moodler d897c9c416 Fixed up admin page formatting 2005-02-01 04:12:53 +00:00
moodler e8b8c3e05a Removed old styles 2005-02-01 04:05:04 +00:00
moodler 55cc6e5a27 Latest tags 2005-02-01 04:01:56 +00:00
moodler 9fad2dec0f Removed $THEME from around the place 2005-02-01 03:46:20 +00:00
moodler a2df2a1ac0 Updates from Charlie Williams and "wild girl"s fantastic flash friend
MP3 player now has a slider with loading information, and is slightly less high
(15px instead of 18px) so it fits better inline.

Source included.
2005-02-01 03:24:25 +00:00
moodler fe98d35d43 FIxes from tony for highlighting 2005-02-01 02:58:51 +00:00
martinlanghoff 4c3911f934 Merged from MOODLE_14_HEAD - Better behaviour of fix_course_sortorder() -- related to bug #2334 -- includes version bump to clear out recalcitrant sortorders 2005-02-01 01:47:45 +00:00
martinlanghoff 94afadb360 Merged from MOODLE_14_HEAD - Better behaviour of fix_course_sortorder() -- related to bug #2334 2005-02-01 01:37:14 +00:00
mjollnir_ d20f58e7e8 Fixing column_type for postgres (WHERE 0 is not valid so using LIMIT 0 instead) 2005-02-01 00:28:02 +00:00
koenr 63141e59c6 some new strings and a new translator for TR 2005-01-31 23:36:03 +00:00
defacer 7c81cc29b9 Added a new function, column_type(), based on ADOdb's MetaType().
Attempting to make ALTER TABLE for Postgres really smart... this is
the solution to bug 2460 if it works correctly.
2005-01-31 23:24:43 +00:00
koenr 68985c0dbe untranslated file 2005-01-31 23:00:52 +00:00
julmis 713126cd43 Remove last space from attribute list in cleanAttributes2 function. 2005-01-31 20:09:17 +00:00
mchurch 65504d11f4 Added read post
marking for posts over a day old to the upgrade procedure.
2005-01-31 19:26:55 +00:00
mchurch 90fd2b51aa Fixed insert_record call in forum_tp_add_read_record. Added read post
marking for posts over a day old to the upgrade procedure.
2005-01-31 19:24:14 +00:00
barias a5f6b0f256 Latest updates in spanish translation 2005-01-31 18:44:50 +00:00
stronk7 6c5b28232f Not change at glossary, Code for allowprintview was there. :-) 2005-01-31 18:11:51 +00:00
stronk7 6bdd02e40b Avoid some probles when returning to the original user after using the loginas feature.
(sesskey not set)
2005-01-31 18:10:50 +00:00
stronk7 2d81101163 Solved sesskey issue in calculated questions. Bug 2464
(http://moodle.org/bugs/bug.php?op=show&bugid=2464)
2005-01-31 16:40:08 +00:00
mchurch 489de4ae13 Fixed a special case issue with the news forum on the front page and
non-logged in users.
2005-01-31 15:04:10 +00:00
dhawes 160888f6cf removed check for guest after guests have already been rejected from page 2005-01-31 11:39:14 +00:00
moodler 855c0839fc Forum searching is now implemented using a lex-based method, which allows
extra capabilities such as:

  - "phrase searching"
  - user matching:    user:tony
  - subject matching: subject:thing

This code is all from Tony Hursh.   THANKS TONY!!
2005-01-31 07:41:47 +00:00
moodler 792a590da7 New libraries to support lexer-based searching. From Tony Hursh - thanks! 2005-01-31 07:39:03 +00:00
moodler b2432b7fbb Fixed xml again (bug 2413) 2005-01-31 07:17:54 +00:00
moodler cdf3925518 Messaging can now be completely disabled using $CFG->messaging 2005-01-31 07:11:42 +00:00
moodler cc15a607eb Now informs about old themes.
It's damn ugly, this page, but I'm just getting it to a useful state first
2005-01-31 06:13:28 +00:00
moodler d74d4f2053 Some changes in the way theme setup is achieved, there is now a function
for it called theme_setup
2005-01-31 05:59:13 +00:00
moodler d65a650133 Fixes for Theme preview 2005-01-31 05:58:03 +00:00
mjollnir_ 61e1af73ff Apparently I forgot to commit this new file when committing the import course content stuff. Here it is! 2005-01-31 04:26:22 +00:00
moodler a01fcda617 Less buttons 2005-01-31 04:16:36 +00:00
defacer b5039f5d15 Removing some diagnostic output that had been forgotten. 2005-01-31 03:47:14 +00:00
moodler 3eea7601ab New string 2005-01-31 03:35:45 +00:00
defacer 7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
defacer 4d411a997f Added new id selector for the "inactive accounts will be unenrolled" message. 2005-01-31 01:22:13 +00:00
defacer 2107c1f721 Changing the inline centering with an id. 2005-01-31 01:20:43 +00:00
defacer af04e86a78 Removing deprecated <font> and <center>. 2005-01-31 01:03:41 +00:00
defacer 40d4f7362a Removing <font> tags. I didn't add any styles because there was no
visible difference in text size after the removal.
2005-01-31 01:00:21 +00:00
defacer 686fafc187 Bugfix: don't revert to full details display when clicking on the sorting
links in the table headers. Remain in the display mode you were before.
2005-01-31 00:56:00 +00:00
defacer fddbcf9c68 Fixing my buggy implementation of isteacherinanycourse().
This fixes bugs 2455, 2456 and maybe some others Eagle Eyes didn't have
the time to find. ;-)
2005-01-31 00:48:23 +00:00
urs_hunkler 8cd1bc7804 this is a theme for Moodle for pdas. together with the course format "pda" it can be used for small screens. I started to define width of the blocks and the content to 240px. I tested it on a sony th 55 - it looks quite promissing. It's just a start ... 2005-01-30 23:32:05 +00:00
urs_hunkler dcf10978ca this is a course format for pdas. I changed the three column layout to a three row layout - the content is shown in one long row.
* first the content of the left column
* beyond the courses
* at last the content of the right column

It hasn't got a name to select in the language pack yet, so please selct it by [[formatpda]].
2005-01-30 23:09:35 +00:00
stronk7 14efbfc385 Nothing todo here. New fields were there! B-)
But I've spent sometime trying to simulate one exercise and
I haven't been able to do it. Probably my own stupidity, but
things didn't work as I expected! :-(
2005-01-30 22:49:24 +00:00
koenr c7645a3015 missed a serious error 2005-01-30 22:35:57 +00:00
koenr 68cbb1f093 missed a serious error 2005-01-30 22:33:19 +00:00
koenr 894034483a new hungarian files - XHTML checked at once 2005-01-30 22:24:17 +00:00
moodler 1e92ee743b A SESSION->theme can be set (only with sesskey) 2005-01-30 19:28:27 +00:00
moodler 8ba55c01ae New theme chooser (with better preview using iframes)
It's a bit rough but it works.
2005-01-30 19:27:46 +00:00
stronk7 626138c9b6 Added suppor for assignment->emailteachers 2005-01-30 19:03:46 +00:00
moodler c3f5569273 Added support for parent themes
Added support for user, course, session themes
2005-01-30 18:23:06 +00:00
moodler 3b765890f3 Updated to latest styles.php and config.php 2005-01-30 18:21:54 +00:00
moodler 6fde77de24 Modifications to allow parent theme, and some genral cleanups 2005-01-30 18:17:44 +00:00
julmis 55760c9a05 Added title attribute. 2005-01-30 18:13:25 +00:00
julmis 5096a8eada Adding <span class="nolink"> excluding. 2005-01-30 14:21:52 +00:00
urs_hunkler f67f8307a4 I changed the course colors again ;-) 2005-01-30 13:12:10 +00:00
stronk7 8a792ed10f group->password is now supported 2005-01-30 12:12:06 +00:00
stronk7 57aad2a02a added support for:
- user->policyagreed:
        if the destination server is different, reset it
   - user_students->enrol and user_teachers->enrol
        if not set or the destination server is different, set it to $CFG->enrol
somethings should be modified in the rest of moodle:
    - update all the 'manual' entries to 'internal'
    - modify the enrol_teacher() to use $CFG->enrol by default
    - make every enrol method set this field properly.
    - perhaps, mark metadata users with a new value too.
2005-01-30 11:39:12 +00:00
urs_hunkler 6a4c008b39 changed the style of .unread. I'm using this "hook" and the very short text "+ 1" to signalize about new posts unexcited but as an disquieter. 2005-01-30 11:34:30 +00:00
urs_hunkler 214dcd4216 changed the coursespecific colors for course 1 to 4 2005-01-30 11:28:17 +00:00
urs_hunkler 8b9ddabf55 added odd and even to the comments /* Alternate rows even */ and moved them to before the classes. so they can stay there and inform the reader about the function of r0 and r1. 2005-01-30 11:21:13 +00:00
urs_hunkler 546739f657 added a small space to the right for .unread. so the text stands not so sticky to the right border of the orange field ;-) 2005-01-30 11:18:50 +00:00
stronk7 90ccfd190f Added one missing key too. 2005-01-30 10:05:36 +00:00
moodler 4d759b7944 Fixed a typo 2005-01-30 09:31:46 +00:00
moodler 13706b5263 Added 'enrol' field to new user_students tables 2005-01-30 09:18:21 +00:00
moodler 92318548ce "enrol" field in user_students defaults to $CFG->enrol 2005-01-30 09:14:41 +00:00
moodler cabe3b1b23 Flatfile now stores itself in the enrolment type field 2005-01-30 09:09:44 +00:00
moodler e45746d8fe Moving all the config to config.php ... styles.php should now not
need to be touched for most themes.
2005-01-30 08:43:05 +00:00
moodler 01b3fb2e5f Added rows ... 2005-01-30 08:17:00 +00:00
moodler 19505667d4 Add c0,c1,c2,c3,c4 classes for columns in tables
Add r0,r1,r0,r1,r0 classes for rows in tables
2005-01-30 05:21:25 +00:00
moodler 9fd7165aaa Center-align some columns again 2005-01-30 05:14:03 +00:00
moodler 2b490e22fd Removed orange from calendar borders 2005-01-30 05:08:12 +00:00
moodler e01c7647a6 Removed a debugging string 2005-01-30 04:55:27 +00:00
moodler ebb906d9da Prevent message window on site policy page 2005-01-30 04:52:13 +00:00
moodler d0388ebe95 Added links to unread notices on course-view and forum-index 2005-01-30 04:47:09 +00:00
defacer 31686aea4c Merged from STABLE:
Stopgap measure for the wrong behavior discussed in SC#87.
I believe this ensures the required behavior, but we may still change
it because it can be confusing...
2005-01-30 04:39:55 +00:00
koenr 9c2867faf1 Unfortunately NCR notation of thislanguage disappeared in a former edit. Hope it won't happen again :-( 2005-01-29 22:33:53 +00:00
julmis 3bb0e0ce9f Adding nolink feature which uses <span class="nolink"> tag. 2005-01-29 20:03:07 +00:00
julmis 101037c379 Adding new strings for the editor 2005-01-29 20:02:13 +00:00
julmis e0d26dd834 Adding ed_nolink.gif image 2005-01-29 20:00:31 +00:00
urs_hunkler d3c402fba8 minor changes 2005-01-29 19:47:56 +00:00
urs_hunkler 8fa1c321cf changes to show different colors for course 1 to 5 on the course page. 2005-01-29 18:46:31 +00:00
urs_hunkler 84853a94d7 changes to deal with the forum class "unread" 2005-01-29 17:36:17 +00:00
julmis d00ffdf949 Adding <span class="nolink"> filter. It doesn't break in editor. 2005-01-29 16:45:08 +00:00
skodak 14d6c233fb changes in file/path cleaning SC#84, merged from MOODLE_14_STABLE 2005-01-29 15:53:24 +00:00
skodak db24312891 cleaned download filename SC#69, merged from MOODLE_12_STABLE 2005-01-29 15:16:32 +00:00
skodak 4ffdd3937f direct access to script forbidden SC#58, merged from MOODLE_14_STABLE 2005-01-29 14:18:45 +00:00
urs_hunkler 6eda0e8b03 updates for changed ID of the Moodle index page. 2005-01-29 14:17:04 +00:00
skodak 7789ffbf5e fixed clean_text() SC#76, merged from MOODLE_14_STABLE 2005-01-29 13:02:28 +00:00
moodler 7e33a33bf1 Course boxes should have a white background 2005-01-29 12:26:37 +00:00
moodler c09e00ba62 Fixed some recent buggy logic! Thanks, Eagle Eye! 2005-01-29 12:11:45 +00:00
moodler b4a773610d Added some padding on forum unread posts 2005-01-29 12:05:29 +00:00
moodler 7d89172f66 Fix styles when editing front page 2005-01-29 11:51:40 +00:00
moodler c5e266d233 Removed some styles 2005-01-29 11:41:43 +00:00
moodler d6c66e125d Added class for courseid 2005-01-29 10:49:48 +00:00
stronk7 0964ad965b one more thing 2005-01-29 10:43:40 +00:00
moodler 3ce16d70d7 Removed unmatched closing tag 2005-01-29 10:17:59 +00:00
skodak fd18328d42 better cleaning of imageurl SC#54, merged from MOODLE_14_STABLE 2005-01-29 10:03:09 +00:00
moodler aa040665f8 Don't cache that string. :-) 2005-01-29 10:03:00 +00:00
moodler 546699899a FIxed the wording of the unread post notices on the course page 2005-01-29 09:56:42 +00:00
moodler f37da85054 MAJOR NEW FEATURE: Tracking of read/unread posts
Many thanks to Mike Churchward for his work on this and persevering
with sending updated versions to me.  :-)

Shane and I have polished it up, rewritten a few parts (display-related)
and here it is, finally in CVS!

I think there will still need to be some optimisation for the SQL,
since it's still pretty intensive. Perhaps some sort of caching in
the session that gets modified along with the database whenever
something gets read.

However if there are problems the whole thing can be switched off
in the forum module config so this is not crucially urgent.
2005-01-29 09:49:42 +00:00
moodler be37582e3c New styles for forums 2005-01-29 09:39:56 +00:00
dhawes 7501d8a527 looks like I might have finally fixed the darned bug where guest users were able to see the add/edit feeds link 2005-01-29 05:06:43 +00:00
moodler 865a6f2658 In confirmation emails, use fullname() 2005-01-29 04:54:17 +00:00
dhawes cc370f3587 fix bug reported by Martin D. - now when you edit a feed you are returned to a page with the full feed listings rather than just the edited feed. As an added bonus when editing a feed you will see that feed's data on the edit page instead of simply the edit form. 2005-01-29 04:45:57 +00:00
moodler abea38d228 Change mimetype for xml files for better validation 2005-01-29 04:36:05 +00:00
moodler 80317ba569 Make the editing form bigger 2005-01-29 04:04:28 +00:00
moodler 0705dcc035 Removed some $THEME and added some new classes for the blockconfiginstance
and blockconfigglobal boxes
2005-01-29 04:01:15 +00:00
moodler 63689c58b1 Some fixes to avoid notices etc 2005-01-29 03:55:29 +00:00
moodler 86db09ef85 Added Jon's html block from contrib! Thanks, Jon! 2005-01-29 03:48:45 +00:00
dhawes c20d1fa77f re-enabled new developers debug cache setting for string 2005-01-29 03:08:55 +00:00
dhawes 81574dc5b5 added error output capture back 2005-01-29 03:07:43 +00:00
dhawes 445e8c8b9a new string for image feed display option in instance config 2005-01-29 03:03:18 +00:00
dhawes 81610483fd new instance config option to display feed's url if present 2005-01-29 03:01:18 +00:00
dhawes f51f48615d removed directory separator which is duplicated when rss_cache.inc creates filenames 2005-01-29 02:59:44 +00:00
dhawes 84b366b0a9 I had noticed that stale reads from cache were failing on the filesystem with an invalid md5 checksum of the filename - this should fix that 2005-01-29 02:57:07 +00:00
urs_hunkler 5c75c3ca03 took th favicon from another distribution, because the one in the cvs is corrupt. 2005-01-28 21:54:21 +00:00
urs_hunkler 80bcd3cf71 Changes for better cascading specially in for the fonts. To be able to predict the changes I had to turn off integration of the standard CSS in config.php. Martin, this is a really great feature ;-) 2005-01-28 21:52:05 +00:00
michaelpenne d9ef9b836d fixed some prefixes, not sure how this didnt get noticed before ;) 2005-01-28 19:31:41 +00:00
moodler ccad4459d6 The cron warning has been rewritten, and now has links. 2005-01-28 17:53:07 +00:00
moodler f49ed84bd2 Removed some THEME 2005-01-28 17:40:04 +00:00
moodler 425c45a746 Something I didn't check in ages ago 2005-01-28 17:39:21 +00:00
moodler da2bf59020 Fixed a typo 2005-01-28 17:35:43 +00:00
moodler 24e11ade04 Removing this directory 2005-01-28 17:27:04 +00:00
moodler e768789327 Moving XHTML_CSS_UH to orangewhite 2005-01-28 17:26:15 +00:00
moodler 93dcb13ed9 Only show page errors when debugging is on (in case we can recover) 2005-01-28 17:03:57 +00:00
moodler 18f16d61ff Fixes notices when username doesn't exist 2005-01-28 16:59:43 +00:00
drabureesh 3c14dccf97 New Arabic Translation update by Dr. Ali H. Abureesh, 1/27/05. 2005-01-28 14:08:55 +00:00
drabureesh bebeee64b7 New translation of help file, by Dr. Ali H. Abureesh, 01/27/05 2005-01-28 14:05:53 +00:00
urs_hunkler c8ce7bf361 Changes on the start page. 2005-01-28 11:35:59 +00:00
urs_hunkler 0314042d2a CSS file is replaced by styles_font.css. 2005-01-28 09:15:44 +00:00
defacer bbcbc3f85e Removing the extra debug info now that bug 2431 was fixed.
I can't believe that this insignificant workaround actually solved the
problem. This is most probably a bug with PHP and static initialization
of array variables.
2005-01-28 05:42:19 +00:00
drabureesh 6d6125b22f New Arabic Translation update by Dr. Ali H. Abureesh, 1/27/05. 2005-01-28 04:26:36 +00:00
defacer 0d7e0e8ada A small change for the static initialization in page_map_class,
and more debug added just before init is done.
2005-01-28 03:52:56 +00:00
dhawes dfedf5fdff more preferredtitle tweaks 2005-01-28 01:21:08 +00:00
dhawes 7eca7e10c5 more preferredtitle tweaks 2005-01-28 01:05:21 +00:00
defacer 2335781f1c Fixing incorrect use of optional_param. 2005-01-28 00:02:33 +00:00
stronk7 ad4f774cd4 THEME is out of this directory.
I hope to have done it correctly!
2005-01-28 00:01:20 +00:00
defacer cab5d3cd04 If there are no quizzes this block can monitor, print it in bold. 2005-01-27 23:59:12 +00:00
defacer 9acdd7b2f8 One more string here, I had forgotten to add it. 2005-01-27 23:58:10 +00:00
defacer febeb16113 Removing two error-suppression prefixes (@). I think that in the end,
the only purpose they served was to make debugging harder.
2005-01-27 23:57:37 +00:00
defacer e355a2d304 Bugfix: when configuring a block in the site index, the site name was
being displayed twice in the breadcrumbs.
2005-01-27 23:56:46 +00:00
defacer 5921e0a06a Fixed incorrect use of optional_param.
Fixed the double-header bug when configuring a block in the front page,
as reported in bug #2440. Credits to Dan Marsden for the report and the fix.
2005-01-27 23:48:16 +00:00
stronk7 18d20603ca Added one missing sesskey. 2005-01-27 23:32:41 +00:00
dhawes 8ada02c015 Latest updates to lang file for rss_client block including strings for newest features 2005-01-27 22:47:56 +00:00
dhawes 956425af6e Now supports new preferredtitle field for custom feed channel titles. Supports new instance config for displaying the channel link at the end of the feed item links. 2005-01-27 22:47:13 +00:00
dhawes 48005861f6 Moved a function directly into block. Changed some echo statements to print. Now supports new preferredtitle field for custom feed channel titles. 2005-01-27 22:45:50 +00:00
mits 011df35452 new help file translated. 2005-01-27 22:34:07 +00:00
michaelpenne 0295907963 added some new lang entries for mod.html 2005-01-27 21:37:41 +00:00
michaelpenne f862f00d54 variable cleaning and sesskey updates 2005-01-27 21:36:12 +00:00
michaelpenne 0733cc0062 made a change to lesson_clean_data_submitted and added some xhtml compliance fixes 2005-01-27 21:35:37 +00:00
michaelpenne d6847e5d95 uncommented the require style sheet (was there a problem?), also rearranged lesson settings into categories. 2005-01-27 21:33:35 +00:00
mjollnir_ a22fd258aa Fixing a typo in metacourses in mysql (id should be int 10 not int 1). Hopefully this is the end of it :( 2005-01-27 20:41:54 +00:00
mjollnir_ 483b71581d Taking out addition of wrongly named metacourse tables for first upgrade. Those who are tracking head will have already gotten it, but those upgrading from 1.4 to 1.5 don't need to see it. 2005-01-27 20:02:30 +00:00
stronk7 96e76b6291 Two missing parameters added 2005-01-27 19:43:42 +00:00
papita 9edcd64a76 adicionado pedido de ajuda 2005-01-27 19:23:37 +00:00
stronk7 94df8a48c3 Now scheduled backup supports new blocks.
Moved blocks code to library.
Fixed a missing global preventing restore to work.
2005-01-27 19:07:51 +00:00
mits 00363c7033 polished. 2005-01-27 18:53:36 +00:00
defacer b35bc4d8db Block now works as it intuitively should in separate groups mode as well.
For editing teachers, it shows separategroups as visiblegroups.
2005-01-27 17:40:46 +00:00
thepurpleblob 84bbe7f9d3 fixed some incorrect xhtml in the delete bit - missing quotes 2005-01-27 16:40:40 +00:00
stronk7 98aadd386c Added metacourses to the list. It's the last but I'll try it the first! :-) 2005-01-27 16:30:21 +00:00
thepurpleblob b90d6ed1e2 factored out functionality to check if question is in use on delete
will be using this to delete whole categories of questions (or not)
2005-01-27 16:18:27 +00:00
thepurpleblob bb5e13d514 factored out function to see if question is used in quiz into the library 2005-01-27 16:10:25 +00:00
urs_hunkler 89e9f3608b Sorted and commented CSS acording to the standard CSS files. Almost ready for a first go. 2005-01-27 12:35:48 +00:00
urs_hunkler d796e6d839 Minor changes. 2005-01-27 12:34:28 +00:00
thepurpleblob ddd8f87f7a multianswerchoice questions added to example questions. 2005-01-27 11:24:26 +00:00
thepurpleblob 2d4aa134d5 Addition code to handle 'multianswerchoice' type Learnwise questions. 2005-01-27 11:22:45 +00:00
mits d175f50f97 polished. 2005-01-27 08:25:07 +00:00
martinlanghoff af4e9e5fd4 Merged from MOODLE_14_STABLE - Reverting validation in current_language() due to performance concerns. 2005-01-27 07:10:41 +00:00
defacer 744fd5bb3b Styles for doc/contents.php. 2005-01-27 05:21:00 +00:00
defacer e78bd550b2 End the page with correct HTML. 2005-01-27 05:20:31 +00:00
defacer 5b13d65b07 Fixed SC#83 and the HTML to boot. I 'll add some styles to bring the
end result back to normal.
2005-01-27 05:01:16 +00:00
defacer 9c581405ab More HTML and CSS fun with the new block.
Incidentally, does Mozilla have a bug here? It won't apply the text-align
property to those TDs which have been given a class through a COLGROUP.
IE does it correctly all the way, and Firefox applies the other properties
but seems to take exception at the text-align. Weird.
2005-01-27 04:19:56 +00:00
defacer 3779fd556e Out goes the ORDER BY grade + 0 hack, now that grade is a float.
Also, fixed a logic error with sorting in group mode.
2005-01-27 03:53:20 +00:00
martinlanghoff b6c93894fb Merged from MOODLE_14_STABLE - Stronger validation of form data in user/edit, and validation of lang in current_language() -- closes SC#67 2005-01-27 03:51:33 +00:00
defacer 7a652b5f2b Switching back to an interger-rounded retrieved best grade. Will probably
be more human-friendly on screen.

e.g. "What does 66.67 out of 100 mean?"
2005-01-27 03:14:56 +00:00
defacer 28926a08e9 Changing that despicable grade column from mdl_quiz_grades to a
floating point data type, as it should be.
2005-01-27 03:10:57 +00:00
defacer 35f45a0d83 It seems that grades are saved with two decimal points of precision while
they are being retrieved as integers. Changed it to two decimals everywhere
and continuing to go about it...
2005-01-27 02:45:38 +00:00
defacer cb8057dee2 Semantically it's better if quiz_get_best_grade returns NULL
if there is no such grade.
2005-01-27 02:39:15 +00:00
mjollnir_ 873bf8758f Initial checkin for import course content functionality (uses backup/restore). Probably needs wording changes and new icon! Please test me *thoroughly*! 2005-01-27 02:35:10 +00:00
mjollnir_ f8688e0f37 Removing debug error_log calls in uploadlib 2005-01-27 02:30:45 +00:00
defacer d5838a4b20 Double quotes to single and blah blah. 2005-01-27 02:30:32 +00:00
mjollnir_ e3a232138a Fix for add_to_log to stop notification of invalid call to isteacher. Some actions aren't associated with a course and therefore isteacher shouldn't get called 2005-01-27 02:29:53 +00:00
defacer 9d6773603d Minor beautification, plus a detail: if the grade is 0.0, this function
would return a grade of 0, which is obviously not the intent here.
2005-01-27 02:28:04 +00:00
defacer e7a935aafa This was pulling out all those records and doing absolutely nothing
with them. Sanitized the place a bit.
2005-01-27 02:26:00 +00:00
mjollnir_ f63a559570 Fixing bug #2419 - missing global $CFG in upgrade for choice resulting in missing prefix 2005-01-27 02:17:35 +00:00
dhawes c4370fbfa4 fixed function name 2005-01-27 01:59:43 +00:00
dhawes d58a3c8a3d removed excess paren, again - still a type-o 2005-01-27 01:57:30 +00:00
dhawes 2a16ea3a43 removed excess param - type-o 2005-01-27 01:55:02 +00:00
dhawes b021c82d82 using rss_unhtmlentities for channel and item title as well as for item description 2005-01-27 01:43:29 +00:00
dhawes 0bae4f8c0f Moved function from blog/lib to rsslib. unhtmlentities is required to liberate some rss feed information from the clutches of encoding. 2005-01-27 01:24:33 +00:00
dhawes 319f73c933 Another bug discovered and squashed by Dan Marsden. Reversed logic fixed when editing feeds. 2005-01-27 00:55:13 +00:00
mits 692666f2ee README changed a little. 2005-01-26 23:19:01 +00:00
defacer eb111397cd Polishing the styles for the quiz_results block a bit. 2005-01-26 22:31:42 +00:00
defacer ba05c3aeeb More language strings for the quiz_results block. I think that will be all. 2005-01-26 22:23:39 +00:00
defacer 00a4237f24 Correcting a mistake: hide the block if there are no results for that quiz. 2005-01-26 22:22:55 +00:00
defacer 6b4dc5a31b New: The block now works in group mode too!
Bugfix: Grades were not being displayed correctly as percentages.
2005-01-26 22:14:22 +00:00
urs_hunkler 90a149ff14 Sorted and commented CSS acording to the standard CSS files. Not yet ready. 2005-01-26 21:45:19 +00:00
dlnsk 30458b5411 Major changes 2005-01-26 21:21:16 +00:00
urs_hunkler 7005a81c11 Optimized the Structure to make it even more "readable". 2005-01-26 20:18:17 +00:00
defacer 41dafe04ce Provisional fix for the "100% < anything else" bug.
If it's compatible with Postgres, then cool!
2005-01-26 19:59:08 +00:00
mits dfbffa05b3 new help files translated. 2005-01-26 17:33:16 +00:00
koenr d3ce500ab7 changed "samenvatting" (from course summary) to "beschrijving" - more intuitive 2005-01-26 17:06:40 +00:00
mits 80003aa00e polished. 2005-01-26 16:47:09 +00:00
mits e749f65065 translated some.
new translated file added.
2005-01-26 16:39:52 +00:00
urs_hunkler 331411de3c CSS properties supplemented to deal with unwanted post modernism effects ;-) 2005-01-26 16:26:24 +00:00
urs_hunkler 772e78be99 I've deleted the hard coded distance (<br />) and added CSS properties in the CSS files to define the distance between the sideblocks. 2005-01-26 15:57:00 +00:00
koenr 633305b4c9 missing strings 2005-01-26 15:33:50 +00:00
defacer eaba9c8510 Adding that nifty BODY id and class detection code to pages... I have the
feeling that this is the way to go, as more Moodle things will be converted
to use $PAGE in the future.
2005-01-26 15:33:50 +00:00
urs_hunkler 992b59719f Sorted and commented CSS. Now you find an intro with a short overview, a short index and the info where to place new CSS. It was a quite nitpicking work, so please help and look at it and tell me, if everything is all right - sort order, do you find anything fast, etc. 2005-01-26 15:10:47 +00:00
koenr ef86247e18 missing strings 2005-01-26 15:08:38 +00:00
koenr 93d882dfe9 missing string 2005-01-26 14:50:58 +00:00
koenr 6c1d90ce82 missing string for cron 2005-01-26 14:48:17 +00:00
koenr 8600514bc8 moving towards XHTML compliance 2005-01-26 14:47:26 +00:00
koenr d55e0b57a0 fixed $a->lastname (see http://moodle.org/mod/forum/discuss.php?d=1309): shouldn't be there 2005-01-26 14:29:08 +00:00
moodler c646b18032 Fixed inline comments (I had tried a couple of schemes). 2005-01-26 14:18:36 +00:00
moodler a3f293d2c8 Updated to use the new standardsheets variable 2005-01-26 14:17:28 +00:00
moodler f21330e3a0 Better handles an empty array. 2005-01-26 14:16:15 +00:00
moodler b3f748f655 There is a new configuration variable called
$THEME->standardsheets

that a theme can use to control how much of the
standard theme is included before the actual current
theme sheets.

When true, use all subsheets from "standard"

When not existent, use all subsheets from "standard" (this is to help old
themes work better out of the box)

When false, don't use standard at all

When an array of filenames, only use those (in that order).
2005-01-26 14:14:16 +00:00
koenr 7e30a66653 changed boodschap to bericht: shorter and more neutral 2005-01-26 11:34:38 +00:00
thepurpleblob 201d8027f8 Added bit for Learnwise import format. 2005-01-26 10:47:54 +00:00
urs_hunkler 05cb95413a I've deleted this folder because all work will be done ind the standard theme from now on. 2005-01-26 10:46:45 +00:00
thepurpleblob 183dfda0f2 Added Learnwise import format string 2005-01-26 10:41:43 +00:00
thepurpleblob 7452a56110 HTML Entities are now 'reversed' on import. 2005-01-26 10:37:16 +00:00
thepurpleblob 8f0876a98b Added example file of the learnwise import format 2005-01-26 10:36:31 +00:00
urs_hunkler c794d0a9bb removed loading of "styles.php" within the header, because it is in the meantime loaded by print_header. 2005-01-26 09:44:59 +00:00
urs_hunkler af7a638618 added CSS property to define the distance between the sideblocks, because I've deleted the hard coded distance (<br />) in weblib.php. 2005-01-26 09:17:24 +00:00
urs_hunkler 3a3b5a4b0c added loading "styles.php" 2005-01-26 09:15:16 +00:00
martignoni 45664c797f Update (part 2) 2005-01-26 07:53:45 +00:00
defacer cae0f35bd1 Added a few styles for the quiz_results block. 2005-01-26 04:27:48 +00:00
dhawes bb3e2d74bf final step in eliminating the type field recently removed from rss database 2005-01-26 03:31:34 +00:00
dhawes 87178d67fe removed references to 'type' field which was removed from rss table when latest version of magpie was adopted 2005-01-26 00:41:49 +00:00
dhawes 1eb099be3d changed an echo to a print, silly but I prefer print in php files and echo for debug and embedded html :) 2005-01-26 00:40:03 +00:00
dhawes 74d669f14e removed type field and added placeholder preferredtitle field 2005-01-26 00:38:01 +00:00
michaelpenne 07fe38c02b added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function (forgot comments before) 2005-01-26 00:30:46 +00:00
defacer 95ceba88f2 Initial checkin of language for the quiz_results block. 2005-01-26 00:29:42 +00:00
michaelpenne 57bfe93dca added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function 2005-01-26 00:25:20 +00:00
michaelpenne eb65aeb7fd security updates: parameter cleaning 2005-01-26 00:22:51 +00:00
defacer 98ad7484c8 First commit of the requested quiz_results block. 2005-01-25 23:49:36 +00:00
koenr 997a3a41fc moving towards XHTML compliance 2005-01-25 23:30:24 +00:00
koenr 0c7539fd3a moving towards XHTML compliance 2005-01-25 22:27:59 +00:00
mits 3404111c2a new help file translated. 2005-01-25 21:22:27 +00:00
thepurpleblob 1680925333 Adding Learnwise import - created by Alton College, Hampshire UK
Still to do testing etc.
2005-01-25 20:18:05 +00:00
koenr 7e11e3225d moving towards XHTML compliance missed nowrap="nowrap" 2005-01-25 20:05:18 +00:00
koenr e100047c9c moving towards XHTML compliance - missed nowrap="nowrap" 2005-01-25 19:39:34 +00:00
defacer 6385200609 Weren't these two mistakenly switched? Compare the results from
/index.php and /course/view.php to see what I mean.
2005-01-25 19:23:05 +00:00
defacer 6bc5558ce6 Adding some extra debug output when a specific error() occurs to help track
down a problem which has been reported in the forums (it is NOT a bug though).

THIS SHOULD BE REMOVED BEFORE 1.5 IS RELEASED!
2005-01-25 19:13:09 +00:00
moodler 538a22102b Removed some THEME stuff 2005-01-25 17:39:55 +00:00
moodler 4a2c4132d5 Removed some $THEME stuff 2005-01-25 17:16:34 +00:00
moodler 0bd31300d1 Fixed a small bug in the body tag 2005-01-25 17:13:48 +00:00
moodler 3c02d134da Removed $THEME from admin pages 2005-01-25 17:08:05 +00:00
moodler 1a0de2238b Standard sitetopic is white 2005-01-25 16:37:43 +00:00
mits 3fb86bca4c new help file translated. 2005-01-25 16:17:28 +00:00
dhawes a75758cda4 Fixed some improperly escaped double quotes within literal strings 2005-01-25 16:12:01 +00:00
moodler bc59b0b9f2 Removed stylesheet link, and renamed containerContent to content 2005-01-25 16:09:46 +00:00
martignoni 965358a4fb Update (partial, part 1) 2005-01-25 16:06:45 +00:00
urs_hunkler ee4dc51eec changed the name of the special course div to "course-contend" 2005-01-25 15:54:00 +00:00
moodler e89fb61ec5 Always include the standard style sheet in print_header!
Great idea, Shane!
2005-01-25 15:53:13 +00:00
urs_hunkler ccb2643a39 some corrections for the wiki and the admin pages concerning the new framework. 2005-01-25 15:48:16 +00:00
martignoni 773b51a1d5 It is now possible to base new questions on existing ones, see get_string('editingquestion', 'quiz'); 2005-01-25 15:28:09 +00:00
martignoni dfbe8766f9 Initial checkin for new meta courses feature. Please test!
See http://moodle.org/mod/forum/discuss.php?d=17269 for description.
2005-01-25 15:24:57 +00:00
urs_hunkler 29db66d23d Deleted style="text-align: center;" in the surounding DIV 2005-01-25 15:24:11 +00:00
urs_hunkler f254d4d991 Changed header.html, footer.html and the CSS files to work with the new DIV framework. Thanks Martin for making it being writing from weblib.php ;-) 2005-01-25 15:21:02 +00:00
martignoni c51e4392cc Updating editor strings. 2005-01-25 15:16:22 +00:00
martignoni 517c3b5635 Fix for bug 2372 2005-01-25 14:57:37 +00:00
moodler 2fe8a417f1 Removed THEME 2005-01-25 14:52:17 +00:00
moodler 90cec6d978 Added $CFG->block_rss_timeout to admin config, and also convert
RSS links to make them more XHTML compliant ( & --> &amp; )
2005-01-25 14:49:30 +00:00
dhawes a9c38b3be8 latest update for rss_client block 2005-01-25 14:44:57 +00:00
moodler 7290d99537 Reworked styles.php to make it more programmatic with an accurate lastmodified date 2005-01-25 14:40:15 +00:00
moodler 4ff025ea60 Added styles 2005-01-25 14:33:01 +00:00
moodler 039c0ec444 Removed some inline styles 2005-01-25 14:32:43 +00:00
moodler d30867b0bf Removed some THEME stuff 2005-01-25 14:28:47 +00:00
moodler 554cec9f27 Removed a lot of THEMES and some other clean up
A LOT of clean up and speed-up is still possible in these
important files by converting all "strings" to 'strings'
2005-01-25 14:18:51 +00:00
moodler 810393c804 Removed THEME from many course files 2005-01-25 14:03:43 +00:00
moodler acda2ddf06 Bit of a tidy up 2005-01-25 13:49:46 +00:00
moodler 4313a1ae97 Removed THEME from these files 2005-01-25 13:47:39 +00:00
moodler b77c41c103 Removed some THEME colours 2005-01-25 13:43:09 +00:00
moodler b5768b9e15 Removed $THEME from site topic 2005-01-25 13:40:26 +00:00
moodler b9aaef6c9c Blocks are 100% wide 2005-01-25 13:38:48 +00:00
moodler c147b8ab08 Removed $THEME from everywhere :-) 2005-01-25 13:36:57 +00:00
defacer bb8bbc7457 Giving a name to ML's baby ;-)
No, seriously, defining a suitable named constant for PARAM_LOCALURL (SC#54)
2005-01-25 13:35:14 +00:00
moodler 902b5318c6 Include a warning to not use this theme any more 2005-01-25 13:29:21 +00:00
moodler db70c04693 Standard theme is the one to use! Everybody switch to it!! :-) 2005-01-25 13:22:18 +00:00
moodler 3e92eca303 I've set the old THEME variables to bright green to help identify
where hard-coded colours need to be removed
2005-01-25 13:20:44 +00:00
moodler a8e1f343c0 IMPORTANT CHANGE TO THEMES!
This is the new standard theme, based on the excellent work by
Urs Hunkler (and I believe David Scotson had an influence)
who has started rationalising the old mess.

I've made this a very neutral, almost white theme.

[ Come to think of it maybe I've been looking at iPods and Mac Minis
  a bit too much recently.  ;-) ]

The idea is that the standard styles will be included by all
other themes (including custom themes) before local overriding
styles are applied.

This means that upgrades will cause less problems for custom themes.
It's a bit like the language packs, where "en" is always referenced
when a local language string isn't found.

PROGRAMMERS: All new styles MUST go into this "standard" theme,
and the default colours should match the plain white look.

Once this theme settles down a bit we need to upgrade all the other
packaged themes accordingly.
2005-01-25 13:17:15 +00:00
moodler 78bf592aba Latest standardxhtml 2005-01-25 11:20:21 +00:00
moodler 7bb6d80f33 IMPORTANT NEW FEATURE FOR CSS
print_header now produces a unique CSS class and id for each page,
allowing targeting of styles for any module or page.
2005-01-25 11:05:23 +00:00
moodler d3c8056258 Changes for XHTML and accessibility compatibility.
Tidied up layout and other minor changes.
2005-01-25 09:39:29 +00:00
moodler 6d85b65fc1 XHTML compatibility and other minor changes 2005-01-25 07:07:13 +00:00
martinlanghoff 76560c3175 Merged from MOODLE_14_STABLE - Tighter input validation fixes SC#54 2005-01-25 06:21:39 +00:00
moodler 8ca3606339 Fixed a variable reference 2005-01-25 06:20:28 +00:00
martinlanghoff c048e4f933 Merged from MOODLE_14_STABLE -- pending merges of shorttag fixes and SC#10 2005-01-25 06:13:36 +00:00
moodler 9995c33844 Missed one reference to rsslib.php 2005-01-25 06:10:38 +00:00
martinlanghoff 7744ea12b0 Merged from MOODLE_14_STABLE - clean_param() now handles PARAM_URL 2005-01-25 06:09:39 +00:00
moodler 48b29ba423 Moved rsslib.php from the rss directory to the lib directory with the
other libraries
2005-01-25 06:09:31 +00:00
martinlanghoff 371a2ed0e5 Merged from MOODLE_14_STABLE - clean_param() now handles PARAM_HOST (old pending merge) 2005-01-25 06:08:06 +00:00
martinlanghoff 3f1cdd2a31 Merged from MOODLE_14_STABLE
Importing validateurlsyntax.php from http://www.canowhoopass.com/guides/regex/index.php as of 15/Dec/2004, provides
 - validateUrlSyntax()
 - validateEmailSyntax()
 - validateFtpSyntax()
2005-01-25 06:05:21 +00:00
martinlanghoff 5e9cd397ea file validateurlsyntax.php was initially added on branch MOODLE_14_STABLE. 2005-01-25 06:02:47 +00:00
moodler 3b0c2a5852 Removed magpie from this place 2005-01-25 05:58:34 +00:00
moodler cdf74b0b67 Added magpie to MOodle library 2005-01-25 05:46:27 +00:00
martinlanghoff 758b9a4d80 Merged from MOODLE_14_STABLE - Fixing bug 2334 - where fix_coursesortorder() sometimes leaves overlapping sortorder values across categories 2005-01-25 05:27:41 +00:00
martinlanghoff acba70d2db Merged from MOODLE_14_STABLE - Ensuring correct sortorder at the beginning of the category when creating courses. 2005-01-25 05:03:43 +00:00
mjollnir_ 5f37b628ae Update for meta courses. New table renamed from meta_course to course_meta (and upgrade script provided in mysql.php and postgres7.php) and new field in course table renamed from meta_course to metacourse. Associated changes in code. Please test me! 2005-01-25 04:33:02 +00:00
defacer 9292b6afc0 More polishing. 2005-01-25 03:13:13 +00:00
defacer d49f500f52 Oops, I committed this along with the function renames by mistake. Anyway,
now fixing a small cosmetic glitch and giving the correct commit message:

The latest and greatest version of the blocks documentation is here... Lots
of work and polishing to make it as useful as possible. I daresay that it's
pretty complete for its purpose now.
2005-01-25 03:01:09 +00:00
defacer 1345403a7c Renaming 4 internal-use-only class methods by prefixing an underscore.
I want to make a point that people should NOT be calling them.
2005-01-25 02:57:30 +00:00
dhawes c0c6f36bf2 bug #2420 fix 2005-01-25 01:57:56 +00:00
koenr 9c8febab60 start of conversion to XHTML
All capitals moved to lowercase, also some " added for arguments
Needs manualy checked for closing tags etc.
2005-01-24 23:25:27 +00:00
mjollnir_ be4f36a3a7 New files for meta courses 2005-01-24 22:23:01 +00:00
mjollnir_ b61efafba5 Initial checkin for new meta courses feature. Please test!
See http://moodle.org/mod/forum/discuss.php?d=17269 for description.
2005-01-24 22:21:28 +00:00
gustav_delius ea2d8d8a27 fixed bug in paging bar on participants list 2005-01-24 17:40:47 +00:00
mits 222d5566e2 polished. 2005-01-24 16:03:33 +00:00
ralf-bonn adf493d54e text corrections 2005-01-24 15:45:46 +00:00
thepurpleblob 84a93f1c24 Added empty array into question object for multiplier field in numeric questions
Stops a bunch of warnings when quiz is imported
2005-01-24 15:45:20 +00:00
ralf-bonn c65f162fc2 First german translation 2005-01-24 15:40:54 +00:00
urs_hunkler 163c0c2385 Added docstyle.php for the changed german docs.
Within the docs a JS loads the theme CSS if opend within Moodle. Within docstyles.php the standard doc styles can be overwritten.
2005-01-24 15:04:13 +00:00
urs_hunkler 1d333f76af Added docstyle.php for the changed german docs to my theme for testing.
Within the docs a JS loads the theme CSS if opend within Moodle. Within docstyles.php the standard doc styles can be overwritten.
2005-01-24 13:53:29 +00:00
urs_hunkler fffb40d915 Added docstyle.php for the changed german docs.
Within the docs a JS loads the theme CSS if opend within Moodle. Within docstyles.php the standard doc styles can be overwritten.
2005-01-24 12:43:11 +00:00
urs_hunkler e2b9cccaf2 Changed background color to white, instead of taking it out of config.php. 2005-01-24 12:41:24 +00:00
urs_hunkler c1a0356dc7 Added a JS to open the styles from the theme folder for the doc pages.
In the theme "standardxhtml" I added a stylesheet file "docstyles.php" to overwrite the theme independend "docstyles.css".
2005-01-24 12:32:31 +00:00
urs_hunkler 8aa1bb556c Added docstyle.php for the changed german docs.
Within the docs a JS loads the theme CSS if opend within Moodle. Within docstyles.php the standard doc styles can be overwritten.
2005-01-24 12:27:27 +00:00
mits d7f3d2298c polished. 2005-01-24 09:44:41 +00:00
dhawes 7c560a6239 Moved validate feed from table to add and edit form only. 2005-01-24 03:42:54 +00:00
dhawes 23e00b4185 cleanup of feed edit page and form 2005-01-24 03:24:54 +00:00
dhawes 3fcae4c4f9 removed extra break 2005-01-24 03:24:19 +00:00
dhawes d674fae8e7 removed debug code left over :( 2005-01-24 03:00:10 +00:00
dhawes 947becc731 feed titles are stored and displayed again - silly bug 2005-01-24 02:58:19 +00:00
dhawes 327b622dfa quotes update 2005-01-24 01:21:16 +00:00
defacer 344932658c Undoing the commit of some esoteric development stuff by mistake. 2005-01-23 23:59:29 +00:00
mits 66c61c0b50 polished. 2005-01-23 23:28:09 +00:00
stronk7 12f7885b2b upgrading to 1.5
steps 1, 2 and 3 done.
2005-01-23 23:24:58 +00:00
dhawes b2262aa90a fix for bug reported by Dan Marsden - feeds can be added again :) 2005-01-23 23:21:42 +00:00
urs_hunkler c92a67d195 Added a duplicate of standardxhtml to work on it. Please make your changes only in the theme "standardxhtml" 2005-01-23 22:56:19 +00:00
urs_hunkler 038770851c due to a false commit the three files must be deleted 2005-01-23 22:48:22 +00:00
urs_hunkler 1f67c4b460 First I extracted 3 css files from "styles.php": "layout.css", "typographie.css" and "color.css". This leads to better handling and the files can be better overlooked. When woring on the color you find only this definitions in one file, them sam econcerns to typhographie and layout (positioning, measurement of objects, borders etc.)
I started to resort the css files and added comments to make them easier readable and understandable.

The file "typography.css" is not jet sorted.
2005-01-23 22:36:00 +00:00
dhawes 29a6bbd1e8 latest magpie. moved from rss folder to lib. 2005-01-23 22:10:06 +00:00
defacer 04280e857e Renamed set_user_sesskey() to just sesskey(). SC#74 2005-01-23 22:07:13 +00:00
dhawes 800e573926 moving to moodle/lib 2005-01-23 22:02:03 +00:00
defacer 9407d4563f According to the final comments in SC#65:
Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.

The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
2005-01-23 21:38:01 +00:00
urs_hunkler cae46b18c6 changed size and section 508 gif. the w3c logo is not correct for section 508. 2005-01-23 20:59:52 +00:00
urs_hunkler 67a296d301 updated div names for the glossary framework 2005-01-23 20:34:23 +00:00
dhawes c307266c76 Fixed error discovered by Gustav - after updating to use newest magpie I failed to update all instances of rss fetching. 2005-01-23 19:40:33 +00:00
stronk7 aeca84178b First TODO list to check/implement in 1.5. Just double-checking again now! 2005-01-23 17:16:10 +00:00
dhawes 2965682a21 latest changes to rss_client block. Now uses latest magpie file for fetch, parse and cache. Still caches the result string as well to avoid excessive file reads and network hits. Fixed bug where non-admin users were not seeing the add/edit feeds link within the block when all users are allowed to edit. Now uses moodles' format_text function on entire block contents. 2005-01-23 16:16:28 +00:00
dhawes 1ddd7bd00b smarty template file example 2005-01-23 15:58:04 +00:00
dhawes 4445368893 date manipulation script 2005-01-23 15:55:03 +00:00
dhawes b6442a5e3a magpie templates. SMARTY examplesls 2005-01-23 15:52:52 +00:00
dhawes ae4b445f6e magpie help files 2005-01-23 15:50:52 +00:00
dhawes 33fa9405b9 magpie's modified version of Snoopy class 2005-01-23 15:48:57 +00:00
dhawes 100ed1cf2b Magpie 0.7.1 - all relevant files. Simplog had been using only one of these files and it was renamed. Simplog had written an Atom feed parser based on magpie and was losing out on much of the magpie functionality because of it. This latest release supports Atom feeds so the need to for separate objects is gone. By using the full release upgrades become easier in the future. We also gain some of magpie's lost feature set such as the use of a modified Snoopy http client for retrieving feeds instead of an fopen() call - which means that php.ini does not need to be modified to turn allow_url_fopen to On. 2005-01-23 15:47:31 +00:00
dhawes 2be9581d65 latest version works with new magpie 0.7.1 files 2005-01-23 15:37:47 +00:00
dhawes 30e953153b RSS and Atom now handled by latest version of magpierss (magpierss.sourceforge.com). class.RSS.php was a renamed include file from magpie which was 2 versions old. I've reworked the code to use the official magpie release which should allow for easier upgrades in the future. 2005-01-23 15:35:45 +00:00
stronk7 a3f6fc66fe Changed some sesskey behaviours SC#73 (admin part) 2005-01-23 11:49:13 +00:00
stronk7 94ff12c429 Changed some sesskey behaviours SC#73 (admin part)
Plus some minor alignment and CFG->htmleditor not being saved.
2005-01-23 11:26:00 +00:00
mits 3a53c56569 translated some. 2005-01-23 09:13:48 +00:00
gustav_delius e6d10b266b fixed sesskey bug reported by Eloy. Thanks Eloy. 2005-01-23 09:10:34 +00:00
moodler 6a855f5b89 Searching was still calling $usexml Bug #2413 2005-01-23 05:55:02 +00:00
moodler acef58f4c3 Removed some old stuff 2005-01-23 05:49:39 +00:00
moodler 09e42fc937 Stop people browsing auth modules 2005-01-23 04:18:32 +00:00
moodler 9433635200 Stop people browsing enrolment modules 2005-01-23 04:17:41 +00:00
moodler e00f0fddfe To stop people browsing filters 2005-01-23 04:16:07 +00:00
moodler 6c4785c2f2 To stop people browsing modules 2005-01-23 04:15:13 +00:00
moodler 108adee2ff User preferences were not getting set! 2005-01-23 02:30:15 +00:00
gustav_delius 0353801a2b There is now a mechanism by which question types can have their own setup options. Because this does not change anything unless it is used I hope it is o.k. that I am submitting this without asking first. This is based on code by Mad Alex. 2005-01-22 22:27:16 +00:00
stronk7 4530d4372a Changed some sesskey behaviours SC#73 (admin part) 2005-01-22 21:02:12 +00:00
stronk7 7a0a2f49fc Changed some sesskey behaviours SC#73 (admin part) 2005-01-22 20:53:28 +00:00
gustav_delius 0fc48cbfa5 question.php now uses sesskey. This means that all question type plug-ins will have to add it to their edit forms. 2005-01-22 20:08:45 +00:00
stronk7 4e27a2b92e Changed some sesskey behaviours SC#73 (admin part) 2005-01-22 19:53:28 +00:00
gustav_delius 010ec024b8 made multiple.php save to database in addition to $SESSION->modform and also introduced sesskey 2005-01-22 19:14:35 +00:00
gustav_delius fc1bc87bb0 better parameter validation and some code cleanup for category.php 2005-01-22 19:03:05 +00:00
gustav_delius 4acc80ead1 if the current category is deleted then revert back to the default category 2005-01-22 18:59:10 +00:00
stronk7 1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
gustav_delius 56b2152f69 better parameter validation and general code cleanup for edit.php 2005-01-22 18:17:33 +00:00
ralf-bonn 55716dd57c Corrections in the text 2005-01-22 16:31:26 +00:00
gustav_delius 873b77f0f5 previously I had forgotten to save sumgrades 2005-01-22 16:13:08 +00:00
moodler 0fd764ffe9 Fixed a commented-out error message! 8-o 2005-01-22 16:04:14 +00:00
gustav_delius 4ac04efaf7 quiz edit.php now saves changes to the quiz in the database as soon as the teacher makes them, see http://moodle.org/mod/forum/discuss.php?d=17167 2005-01-22 15:42:22 +00:00
gustav_delius 446d87651b fixed my own stupid single/double quote mistake 2005-01-22 15:22:06 +00:00
julmis 773919b17a Added $CFG->aspellpath check in editor_get_dictionaries function. 2005-01-22 11:19:20 +00:00
julmis 19fafd2311 Adding more checkboxes to editor settings (fontname, fontsize, formatblock). 2005-01-22 11:01:34 +00:00
julmis 1bed7afc2b Enhancing editor settings. 2005-01-22 10:58:25 +00:00
julmis 23342b406e Updating editor strings. 2005-01-22 10:55:25 +00:00
borinsky2407 a5d4e10c92 *** empty log message *** 2005-01-22 10:52:28 +00:00
martinlanghoff e069b3e2fe Merged from MOODLE_14_STABLE - Closing SC#66 - more 2005-01-22 09:06:51 +00:00
martinlanghoff 1ad9d071c9 Merged from MOODLE_14_STABLE - Closing SC#66 2005-01-22 09:00:42 +00:00
moodler bb3b56c633 Using divs to do the indenting, rather than <UL>
This probably needs to be named class
2005-01-22 08:45:47 +00:00
moodler a61b898a30 Ensure that $CFG->siteidentifier is always defined (32-byte key) 2005-01-22 03:27:37 +00:00
moodler 9ef2b3f3aa Fixed some formatting problems (not caused by my last checkin!)
- <hr> and <br> weren't being processed.
  - Now, space runs are replaced differently which makes code look better.
2005-01-22 02:40:07 +00:00
michaelpenne 29a014c05a corrected the sesskey code 2005-01-21 23:13:53 +00:00
dlnsk a39021e0e3 corrected links under questions 2005-01-21 19:52:57 +00:00
michaelpenne 4ea3ce2fcb added sesskey code to remove the sesskey error from updating the lesson from view.php 2005-01-21 19:02:57 +00:00
djachenko d3354f5be8 "" 2005-01-21 15:23:32 +00:00
urs_hunkler 17be567191 This is in principle the theme I've shown in the forums. I changed the colors and made it XHTML 1.0 suitable. It relies on the new DIV framework I added to the course, forum and the wiki pages. The layout-table with named cells is used for the course pages.
For an overvies of the DIV framework and the DIVs in the header and footer please look at http://moodle.org/mod/wiki/view.php?id=2935&userid=0&groupid=0&wikipage=CoursePage

The CSS is not yet well structured - it's just working for a starting. For the offical release I'll have to rebuild the CSS to match the final needs. It's lacking an easy CSS for beginners too.

Please tell me, if you find some bugs or have some remarks - or if you just like it ;-)

Thank you
Urs
2005-01-21 14:21:14 +00:00
moodler f3f7d9e409 Changes for XHTML and accessibility compatibility. General tidy up. 2005-01-21 05:07:51 +00:00
moodler f6ad05ef44 Can now pass the image tag text to the helpbutton function. Tidied up the
emoticonhelpbutton function to use new helpbutton function.
2005-01-21 05:04:24 +00:00
moodler a7ba1215b0 Admins can ALWAYS post, even when blocked. 2005-01-21 05:04:02 +00:00
moodler 31dedddba7 Fix help link 2005-01-21 04:58:16 +00:00
moodler 34027b1b41 Minor change 2005-01-21 04:38:46 +00:00
moodler b1b1705aa4 Changes for XHTML and accessibility compatibility.
General code cleanup.
2005-01-21 04:23:38 +00:00
dhawes 79dd93a920 refactored a big scary function a bit. hopefully it is more readable this way. this change also paved the way for extra caching in the block's config structure. 2005-01-21 03:27:38 +00:00
dhawes 37fe05a345 added in an extra layer of cache. The rendered string is now cached in block's config. If the config settings are changed the config entry is overwritten and the cached string is lost - which is perfect - it gets rebuilt to the new specifications on next page load. If the filesystem cache has expired then the stored config string is ignored and a fresh read is sought. 2005-01-21 03:23:26 +00:00
dhawes 6cee965c7a minor spacing cleanup 2005-01-21 03:20:56 +00:00
ikawhero d3dcbc2922 Added a class around helpbutton links so that enclosing <font> tags can
be removed from HTML code
2005-01-21 02:37:02 +00:00
moodler 4b22e391e4 Don't show message shortcut icons when not logged in 2005-01-21 02:29:29 +00:00
gustav_delius cf68266001 newer version of overlib is smaller and better. This comes straight from http://www.macridesweb.com/oltest/. 2005-01-20 21:45:58 +00:00
drabureesh 8fd6eda466 Amost all the files are completely translated into Arabic.
activitynames.php (Fully Translated)
admin.php (Partially Translated)
algebra.php (Fully Translated)
appointment.php (Fully Translated)
assignment.php (Fully Translated)
attendance.php (Fully Translated)
auth.php (Partially Translated)
block_course_list.php (Fully Translated)
block_course_summary.php (Fully Translated)
block_online_users.php (Fully Translated)
block_rss_client.php (Fully Translated)
block_section_links.php (Fully Translated)
block_social_activities.php (Fully Translated)
book.php (Fully Translated)
brainstorm.php (Fully Translated)
calendar.php (Fully Translated)
censor.php (Fully Translated)
certificate.php (Fully Translated)
chat.php (Fully Translated)
choice.php (Fully Translated)
countries.php (Fully Translated)
dialogue.php (Fully Translated)
editor.php (Fully Translated)
emailprotect.php (Fully Translated)
enrol_database.php (Fully Translated)
enrol_flatfile.php (Partially Translated)
enrol_internal.php (Fully Translated)
enrol_ldap.php (Partially Translated)
enrol_paypal.php (Partially Translated)
error.php (Partially Translated)
exercise.php (Partially Translated)
forum.php (Fully Translated)
glossary.php (Partially Translated)
hotpot.php (Partially Translated)
install.php (Partially Translated)
journal.php (Fully Translated)
label.php (Fully Translated)
lesson.php (Partially Translated)
mediaplugin.php (Fully Translated)
message.php (Partially Translated)
moodle.php (Partially Translated)
multilang.php (Fully Translated)
pix.php (Fully Translated)
questionnaire.php (Partially Translated)
quiz.php (Partially Translated)
resource.php (Partially Translated)
scorm.php (Partially Translated)
survey.php (Partially Translated)
tex.php (Fully Translated)
webquest.php (Fully Translated)
wiki.php (Partially Translated)
workshop.php (Partially Translated)
2005-01-20 21:07:40 +00:00
dhawes bab450a05a cleaned up some quotes. Removed reference to blog for an image, now use the standard rss xml.gif image from moodle install 2005-01-20 01:35:04 +00:00
dhawes d6501ee371 if there are multiple feeds within a single block the title of each feed is shown with a horizontal rule between feeds 2005-01-20 01:32:58 +00:00
dhawes 19c6481869 cleaned up a bad copy/paste in a few if statements 2005-01-20 01:01:48 +00:00
dhawes 53195528a1 minor tweak to error output text 2005-01-20 00:10:23 +00:00
dhawes 53034e080a now displays a link to the full error text if there is a problem loading a feed (and debug is on) rather than display the full text inline 2005-01-19 23:59:21 +00:00
dhawes 7530140579 I couldn't find a way to do this so I added this file. When an RSS feed fails to load and debug is on the rendered page could get quite ugly. I now capture the error into a string and simply show the user a 'load feed error' link pointing to this new error page. This new error page simply displays the full error message with more detail about why that particular feed failed to load (from file or url, etc) 2005-01-19 23:55:25 +00:00
dhawes c7ac239b80 updated rss_client functions to return any errors encountered along the way (assuming that the feed could not be loaded) in an object as ->ERROR. This matches the object that is returned, it would have a ->ERROR string if there was a problem as well. 2005-01-19 23:51:27 +00:00
borinsky2407 cba143c354 CVS; admin.php dialogue.php lesson.php
CVS;algebra.php                  docs                mediaplugin.php
CVS;appointment.php              editor.php          moodle.php
CVS;assignment.php               emailprotect.php    multilang.php
CVS;attendance.php               enrol_database.php  pix.php
CVS;auth.php                     enrol_flatfile.php  questionnaire.php
CVS;block_course_list.php        enrol_internal.php  quiz.php
CVS;block_course_summary.php     enrol_ldap.php      README
CVS;block_online_users.php       enrol_paypal.php    README.txt
CVS;block_rss_client.php         error.php           resource.php
CVS;block_section_links.php      event.php           scheduler.php
CVS;block_social_activities.php  exercise.php        scorm.php
CVS;book.php                     fonts               survey.php
CVS;calendar.php                 forum.php           tex.php
CVS;censor.php                   glossary.php        text.html
CVS;chatarea.php                 help                webquest.php
CVS;chat.php                     hotpot.php          wiki.php
CVS;choice.php                   install.php         workshop.php
CVS;countries.php                journal.php
2005-01-19 21:20:50 +00:00
borinsky2407 27478427e1 *** empty log message *** 2005-01-19 21:01:36 +00:00
mits aae7f211e0 translated some. 2005-01-19 20:58:07 +00:00
urs_hunkler 680afe2e26 _ added the DIV framework for new CSS 2005-01-19 13:16:29 +00:00
moodler 00666d4f25 Fixed bug 2040 relating to the last character being chopped off in the
html2text conversion.

While there I tidied up the source and fixed up a problem where the links
were being printed BEFORE the text they refer to (now they are directly after)
2005-01-19 12:12:34 +00:00
urs_hunkler fe32b4f6d7 _ added the DIV framework for new CSS 2005-01-19 12:02:52 +00:00
gustav_delius ef0921d1ff It is now possible to base new questions on existing ones, see get_string('editingquestion', 'quiz'); 2005-01-19 09:50:33 +00:00
urs_hunkler 08bcdcbea2 _ added the div framework 2005-01-19 09:26:45 +00:00
gustav_delius 0befd376af fixed missing courseid in breadcrumbs 2005-01-19 08:11:49 +00:00
martinlanghoff a10171eb39 Merged from MOODLE_14_STABLE. Issue a warning when overriding $CFG settings. 2005-01-18 22:59:41 +00:00
mjollnir_ b2597e0bad Initial support for postgres for rss client block table 2005-01-18 21:58:28 +00:00
mits 19f5ef3549 translated some. 2005-01-18 21:36:15 +00:00
urs_hunkler 5c0f8cab97 table ID was written behind the closing tag of the table - corrected. 2005-01-18 19:53:56 +00:00
gustav_delius ff6048dd10 messagetext in history shoulld not be wrapped in paragraph tags 2005-01-18 19:26:01 +00:00
moodler 3ace7329a1 Some not-very-significant cleanups while fixing another bug 2005-01-18 18:30:09 +00:00
moodler 0182c65cec Fixed the problem with enrolments not sticking.
Also commented out Smarty stuff for now (for better performance in 1.5)
2005-01-18 18:28:25 +00:00
urs_hunkler b2f3dbc54f _added div framework (wrapper, header, nav-bar, containerContent, footer) 2005-01-18 11:13:37 +00:00
urs_hunkler dc140b6cc0 _ added ids for the layout table 2005-01-18 11:11:26 +00:00
urs_hunkler daa27ce409 _ added the div framework 2005-01-18 11:08:58 +00:00
urs_hunkler 8c336db182 _ added the div framework
_ added the ids for the layout table with the 3 cells
2005-01-18 11:05:46 +00:00
ikawhero 35a6dcc72c New class for form help links. 2005-01-18 10:04:04 +00:00
ikawhero 2e708fa096 General tidy up of code, changes for XHTML and accessibility compatibility. 2005-01-18 09:46:01 +00:00
ikawhero c7444a36a5 General removal of <nolink> tags for XHTML compatibility.
Moved from the glossary filter as the filter may not be enabled.
2005-01-18 06:57:59 +00:00
barias 679388ae77 Latest updates in spanish translation 2005-01-18 06:49:21 +00:00
moodler 7933cc6be5 Just a little bit more reobust in the face of badly-behaved blocks 2005-01-18 06:03:26 +00:00
dhawes 221a85301e using localized string instead of hard coded english for print header functioncall 2005-01-17 23:22:16 +00:00
defacer bc6c7c26b6 Better comments and some more diagnostic messages to help with bug hunting.
Also changed a > to >= to make the polling interval precice to the second.
2005-01-17 22:26:20 +00:00
barias 102b9d710e Latest updates in spanish translation 2005-01-17 22:08:22 +00:00
martinlanghoff 6ebaf0edcb Fixed bogus warnings about empty LDAP contexts. 2005-01-17 21:07:00 +00:00
martinlanghoff 35de9e2487 Ported from MOODLE_14_STABLE - Show a warning to admins if cron.php hasn't been run 2005-01-17 20:59:17 +00:00
kaipe efa9b7fa01 Fixed a bug that was reported by James Balfour:
Numerical/Calculated questions failed to grade negative responses on questions with units.
2005-01-17 20:14:16 +00:00
barias 6babaf002d Latest updates in spanish translation 2005-01-17 19:43:48 +00:00
dhawes e8181a56b4 moved functions from templib.php to rsslib.php for rss_client block 2005-01-17 18:03:15 +00:00
djachenko 8bcfcc0f79 "" 2005-01-17 17:55:29 +00:00
stronk7 fcff0e2ff7 Latest changed added from english version. 2005-01-17 17:14:01 +00:00
stronk7 f516e2b9cf Changed required templib.php to rsslib.php. This will, at least, allow to
install and use 1.5dev. Not completely, but usable...
2005-01-17 17:12:24 +00:00
moodler e525e3d32f Works with slasharguments off now 2005-01-17 15:21:00 +00:00
defacer abea5d6940 Fix for bug 2371:
The alt text is now the same as the tooltip for the block control icons in
editing mode (i.e., language pack configurable).
2005-01-17 14:51:18 +00:00
defacer 4ee6e69aaf Fix for bug 2372:
Renamed a string in the language file (the code was looking for a different
name than the one that existed).
2005-01-17 14:29:27 +00:00
defacer 3cacefda86 Fix for bug 2377:
Make it more difficult for instances with invalid blockid to be added to
mdl_block_instance. This could result in warnings, although nothing more
serious than that.

Credits to Eloy and especially Dan Marsden for reporting and providing info.
2005-01-17 14:26:17 +00:00
djachenko 8dd3a58bf5 \"?\" ? ? \"?\" 2005-01-17 12:18:31 +00:00
koenr afa159dc68 Updated translationguide.html, learning from the errors I've seen when making the language packs XHTML compliant. 2005-01-17 07:24:04 +00:00
martinlanghoff d3e6cd798a Merged from MOODLE_14_STABLE - Added an early session_write_close() to loglive.php and log.php pages 2005-01-17 05:42:27 +00:00
barias 4742b339ff Latest updates in spanish translation 2005-01-17 00:34:57 +00:00
dhawes 765b5b3586 moved functions into rsslib.php. Passed this by Eloy and got his OK first 2005-01-16 21:20:15 +00:00
gustav_delius 798b70a12f If the focus is on the section that is being moved then move the focus along. Fixes bug 2026 2005-01-16 17:54:34 +00:00
gustav_delius 181b888e16 ugly hack to fix bug 1824 about wrong fullname format in log info. 2005-01-16 17:27:40 +00:00
moodler 532255f848 Updated it a little 2005-01-16 15:49:04 +00:00
ralf-bonn 30e46d28a1 *** empty log message *** 2005-01-16 14:38:04 +00:00
ralf-bonn ca5b9b89f8 Corrections in the text 2005-01-16 14:36:52 +00:00
moodler 04337d7531 A little utility script to perform search and replace on the whole database.
It's not linked from anywhere yet.

I'm not sure if this will work on PostgreSQL ... can someone test that?
2005-01-16 13:49:30 +00:00
gustav_delius 713492e36c corrected typo in previous commit 2005-01-15 21:59:41 +00:00
gustav_delius dc9e582553 fixed bug 1887 2005-01-15 21:55:25 +00:00
gustav_delius 61e59ace64 implemented fix for restore problem given in bug #1589 2005-01-15 21:49:22 +00:00
julmis 210c6aed36 Adding Lorenze Nicola's regexpression. 2005-01-15 20:08:46 +00:00
julmis 2ce21ad961 Bug fix for Bug #2222 2005-01-15 18:50:38 +00:00
julmis e6f4c5feb4 Fix for Bug #2387 2005-01-15 18:33:03 +00:00
ralf-bonn 6b9ead4981 Corrections in the text 2005-01-15 18:32:07 +00:00
ralf-bonn fe4f99a8ac Corrections in the text 2005-01-15 16:42:00 +00:00
ralf-bonn 4e15e4638f First german translation 2005-01-15 15:46:42 +00:00
mits d1226df3d8 polished. 2005-01-15 10:19:26 +00:00
martignoni 8eb7f7343a Updated translationguide.html with instructions for making the language packs XHTML compliant. 2005-01-14 19:49:17 +00:00
martignoni 59a6e090d4 Added cookie detection string 2005-01-14 19:12:38 +00:00
martignoni 3bd1243ebe Now print-view availability for students can be configured by glossary.
Bug 2080 (http://moodle.org/bugs/bug.php?op=show&bugid=2080)
2005-01-14 19:09:53 +00:00
martignoni 9dcbd061a5 Two new strings for the new calendar preference. 2005-01-14 19:07:42 +00:00
ralf-bonn 76113ee972 Corrections in the text 2005-01-14 17:34:56 +00:00
moodler cbc9da2a1b FIxed a missing brace (bug 2386) 2005-01-14 16:45:35 +00:00
gustav_delius ee563adc91 added the utf8 languages to the list of exceptions in the function break_up_long_words(). 2005-01-14 11:53:10 +00:00
stronk7 68600084f4 One space out 2005-01-14 08:36:48 +00:00
ralf-bonn 6707021791 Corrections in the text 2005-01-14 07:24:04 +00:00
koenr b5e9c44bbb new helpfile 2005-01-14 02:37:56 +00:00
koenr 2f8eca8ecc new helpfile 2005-01-13 22:12:58 +00:00
ralf-bonn 697eab9ebf Corrections in the text 2005-01-13 21:54:08 +00:00
koenr 5c0dc0ac31 filling in missing strings 2005-01-13 20:37:46 +00:00
ralf-bonn 18c6828a1e Corrections in the text 2005-01-13 20:32:17 +00:00
gustav_delius b18a43275c if you use \n in single-quoted strings it will not be converted to a line break. 2005-01-13 17:53:23 +00:00
moodler d3709d95c4 Changes for XHTML compatibility and other HTML code cleanup 2005-01-13 10:08:23 +00:00
mits f7328de445 new file translated. 2005-01-13 08:13:18 +00:00
moodler 5aeaeb575f Removed valign attribute from <table> tag for XHTML compatibility 2005-01-13 07:55:24 +00:00
moodler eed11c8a81 Missing help file!! 2005-01-13 07:11:36 +00:00
mits b3adaee866 translated some. 2005-01-13 04:03:56 +00:00
mjollnir_ 6c4e8471cd Merged from MOODLE_14_STABLE: Fixing warning about invalid argument for foreach in course/lib.php in log selector form 2005-01-13 03:56:34 +00:00
moodler 6710ec8713 Recent activity functions should have been in lib.php, not locallib.php 2005-01-13 03:04:48 +00:00
moodler 32503db1c6 FIxes for bug 2379 (merged from stable) 2005-01-13 03:02:23 +00:00
martinlanghoff 39f6559530 Fix bug #2334 - New unique undes in course table causes course move to fail
There were several issues in fix_coursesortorder() that were fixed. Mainly:
 - the recursive calls dropped the $safe parameter
 - we did not even try to maintain uniqueness in the sortorder field across categories

http://moodle.org/bugs/bug.php?op=show&bugid=2334
2005-01-13 02:34:45 +00:00
ralf-bonn 0dc12569e5 Corrections in the text 2005-01-12 20:39:47 +00:00
ralf-bonn e51d049569 Corrections in the text 2005-01-12 20:03:24 +00:00
defacer 8b81a21e80 Two new strings for the new calendar preference. 2005-01-12 12:10:17 +00:00
defacer 054193be87 Merging fix for reopened bug 1384 from STABLE.
Fix for bug 2252:
You can now choose to have the calendar "remember" your filter settings
between logins.

Some extra code in calendar/lib.php for DST. It doesn't currently affect
how Moodle works.
2005-01-12 11:55:01 +00:00
defacer 1a33f699b2 Merging fix for bug 2264 & improvements from MOODLE_14_STABLE 2005-01-12 11:40:46 +00:00
defacer 642fd913d3 Capitalized $user->sessionIP to $USER->sessionIP. Probably was a typo,
considering the comment just above.
2005-01-12 11:33:45 +00:00
defacer 9f1f6dafa4 Added some COMMENTED experimental code in make_timestamp (behavior doesn't
change at all), and one more optional parameter.

Changed usergetdate() to work with gmdate() instead of gmstrftime().

Small update of the PHPdoc info for get_current_group().
2005-01-12 11:17:18 +00:00
koenr 491f47f424 Updated translationguide.html, learning from the errors I've seen when making the language packs XHTML compliant.
Please check the modification for errors to content and english language before I anounce this modification in the language forum!!
2005-01-12 09:53:15 +00:00
koenr 103ed50d38 new file - thanks to Emilio Delgado 2005-01-12 09:34:19 +00:00
koenr 655799d860 moving towards XHTML compliance 2005-01-12 09:31:31 +00:00
koenr 7f0eedf0d8 file not completed - better show the English one if existst 2005-01-12 09:16:46 +00:00
koenr 77c8375a91 moving towards XHTML compliance
A lot of errors in this part: doc type included, opening and closing html, head and body tags, unnecessary use of span and font tags.
I will update transltation.html with more information to avoid this in the future.
2005-01-12 08:50:09 +00:00
koenr e104080ab6 moving towards XHTML compliance 2005-01-12 08:30:50 +00:00
moodler 21b69d1c4d Removed some old docs 2005-01-12 07:53:50 +00:00
moodler def6a51c37 Removing some old icons 2005-01-12 07:52:06 +00:00
ralf-bonn dbe6600992 Corrections in the text 2005-01-12 07:12:47 +00:00
gustav_delius c1edf51947 When setting up a new quiz the teacher is always redirected to the question edit page so there is no need for two buttons on mod.html 2005-01-12 07:03:25 +00:00
gustav_delius 9f9cff594c Just some comment text to explain the $QUIZ_QUESTION_TYPE array. 2005-01-12 06:30:32 +00:00
stronk7 41c980286b Now print-view availability for students can be configured by glossary.
Bug 2080 (http://moodle.org/bugs/bug.php?op=show&bugid=2080)
2005-01-12 00:55:38 +00:00
koenr 608e923c08 moving towards XHTML compliance 2005-01-11 22:11:43 +00:00
ralf-bonn f4e4e711fb Corrections in the text 2005-01-11 22:09:26 +00:00
koenr 665b20ea3a New strings translated - thanks to Emilio Delgado
moving towards XHTML compliance
2005-01-11 20:55:31 +00:00
ralf-bonn 172acd54c4 Corrections in the text 2005-01-11 20:53:40 +00:00
gustav_delius e76640e26e fixed short php tag spotted by Mad Alex 2005-01-11 20:03:16 +00:00
defacer 67677908a0 Fixing the alt attributes for the icons used to move/hide etc. blocks when
editing is on. Also a few minor corrections for things inside comments.
2005-01-11 19:38:19 +00:00
moodler f218c95ebc Paypal added support for Australian Dollars! Yay! 2005-01-11 15:07:49 +00:00
moodler 99f40f4188 Prevents a notice on installation 2005-01-11 14:04:31 +00:00
moodler 30b88cb774 Removed accidental code 2005-01-11 13:07:19 +00:00
moodler 792197b095 Added cookie detection, based on Petr's code. Thanks!
A notice will be printed on the login page if the session cookie can not be set.
2005-01-11 12:43:29 +00:00
stronk7 420158ba41 Delete orphaned categories remaining in server. Bug 2140
(http://moodle.org/bugs/bug.php?op=show&bugid=2140)
2005-01-11 12:40:41 +00:00
stronk7 dc0426bd83 Take out some double-slashes (//) in paths to langfiles and
included one more file_exists() check to avoid tons of
warnings when looking for files under dataroot mainly.
2005-01-11 12:24:37 +00:00
stronk7 b5c5f9286a Maintain whitespace when importing glossary entries. Aplied to
blackboard import of questions too. Bug 2310.

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

Merged from MOODLE_14_STABLE
2005-01-11 11:29:01 +00:00
stronk7 792a76d810 Maintain whitespace when importing glossary entries. I forgot to
commit this! Bug 2310.

Merged from MOODLE_14_STABLE
2005-01-11 11:24:03 +00:00
moodler ba9231f5ff Merged bug 2363 fix from stable 2005-01-11 11:14:15 +00:00
moodler a7b32ed3b6 Changes for XHTML and accessibility compatibility 2005-01-11 08:38:27 +00:00
moodler b3a2b9dd49 SMall cleanups on print_footer, and you can now call it with "none" 2005-01-11 08:26:35 +00:00
moodler 15cf5d2174 Don't show "No courses in this category" if there are sub-categories 2005-01-11 08:00:26 +00:00
moodler e05bcf2fae 1. On category listing, don't print category count at all if it's zero anyway
2.  Cleaned up some complex code to use 'strings' instead of "parsed strings".
2005-01-11 07:56:45 +00:00
moodler bb774ac1d5 Fixed typo 2005-01-11 07:07:57 +00:00
moodler 4dbc9c828b Fixed some spelling errors 2005-01-11 07:05:26 +00:00
moodler 1040374833 Add categories editing even with one category 2005-01-11 07:01:04 +00:00
moodler 03a21942cf Old messages are no longer replaced by new messages in the messages
pane of the discussion window
2005-01-11 05:09:08 +00:00
koenr d99f0a5bc3 moving towards XHTML compliance 2005-01-10 22:42:44 +00:00
koenr 430cb55e99 changing message for nosuchemailadres 2005-01-10 21:53:03 +00:00
mjollnir_ 075ff4698a Merged from MOODLE_14_STABLE: Adding slashes to backup_log.info as courses with an apostrophe in their fullname cause sql errors 2005-01-10 21:48:04 +00:00
skodak 577f51902e fixed typo 2005-01-10 21:32:44 +00:00
skodak ae68eb9c15 fixed typos 2005-01-10 21:31:41 +00:00
koenr dbb6c16af0 moving towards XHTML compliance 2005-01-10 21:30:58 +00:00
koenr f6b72da267 moving towards XHTML compliance
corrected wrong characterset
2005-01-10 21:23:14 +00:00
skodak 6175411bcb typo - missing semicolon 2005-01-10 21:08:29 +00:00
aredkin 96f27d1212 corrected 2005-01-10 17:48:31 +00:00
aredkin 6d13b1912e *** empty log message *** 2005-01-10 17:44:10 +00:00
aredkin f8ad02a701 correction 2005-01-10 17:38:36 +00:00
moodler 2765411a34 New and upgraded sites will be given a default .htaccess file in their
dataroot directory SC#64
2005-01-10 15:26:43 +00:00
martignoni d3de5e6c65 Typos corrected 2005-01-10 15:11:58 +00:00
moodler d0dc2b989c Moodle now supports language packs found under dataroot/lang (they
take priority over all other locations).

Later we can add support to download language packs from within Moodle,
and edit/manage new packs more easily.
2005-01-10 14:11:13 +00:00
stronk7 8a2583d977 Latest changes added to es. 2005-01-10 08:59:06 +00:00
moodler 985c93197c Fixing the admin directory check (again ;-)) 2005-01-10 08:04:44 +00:00
martinlanghoff 27a0c5f608 Ported from MOODLE_14_STABLE. SC#62 - Prevent database values from overriding $CFG values defined in config.php -- Credits go to Petr Skoda. 2005-01-09 21:54:48 +00:00
ralf-bonn 21e9e62195 *** empty log message *** 2005-01-09 19:32:22 +00:00
ralf-bonn a0982ab605 standardization of strings between activities 2005-01-09 19:31:53 +00:00
ralf-bonn d658d0b12f standardization of strings between activities 2005-01-09 19:08:41 +00:00
ralf-bonn fa2142f21d text corrections 2005-01-09 16:08:10 +00:00
moodler 63d288118a Split up the Javascript stuff into static and non-static.
This will reduce the size of each page somewhat.
2005-01-09 15:10:12 +00:00
moodler c9267f7d28 FIxed the "S" on Skoda to use the diacritical 2005-01-09 13:30:09 +00:00
ralf-bonn db28a940e4 strings added and text corrected 2005-01-09 13:26:59 +00:00
ralf-bonn ded18780b5 xhtml checked 2005-01-09 13:20:11 +00:00
moodler 70347a3000 Added some important people! 2005-01-09 13:03:18 +00:00
koenr be7a54d12a moving towards XHTML compliance 2005-01-09 00:21:27 +00:00
martignoni 1a7e5179f7 Small typo 2005-01-08 23:22:36 +00:00
martignoni 45583af63a Listing of sub-categories 2005-01-08 23:21:15 +00:00
martignoni 79a5040d5e Email alerts to teachers 2005-01-08 23:19:20 +00:00
koenr b8682402cc moving towards XHTML compliance 2005-01-08 23:16:11 +00:00
martignoni 6b43d09b74 Moving towards XHTML compliance 2005-01-08 23:13:11 +00:00
martignoni f63515425d Moving towards XHTML compliance and other small corrections 2005-01-08 22:49:14 +00:00
gustav_delius 76cacec819 split quiz lib.php into a locallib.php for functions that are only used from within the quiz module and a much smaller lib.php for functions that are used from elsewhere in Moodle. 2005-01-08 20:06:00 +00:00
koenr ed0e1a2ed0 moving towards XHTML compliance 2005-01-08 19:57:27 +00:00
koenr d489ecfa77 moving towards XHTML compliance 2005-01-08 17:57:59 +00:00
mathusiast b92c4397e8 Testing a commit 2005-01-08 16:56:40 +00:00
stronk7 41f3270dab Typo. Bug 2351.
Merged from MOODLE_14_STABLE
2005-01-08 10:49:38 +00:00
koenr 99240fb67a moving towards XHTML compliance 2005-01-08 08:04:35 +00:00
koenr 3ff20ca145 moving towards XHTML compliance 2005-01-07 23:55:49 +00:00
koenr 51e293e2c3 moving towards XHTML compliance 2005-01-07 22:53:55 +00:00
koenr f424d6b799 moving towards XHTML compliance 2005-01-07 21:51:21 +00:00
mits 16a2617bcc translated some. 2005-01-06 22:38:31 +00:00
koenr 823ca3916f moving towards XHTML compliance 2005-01-06 20:44:56 +00:00
moodler 1c394da4f6 Removing a notice on PHP 5 2005-01-06 13:23:02 +00:00
moodler c30b1bc038 FIxed a few silly bugs. Seems to test out OK now. 2005-01-06 13:15:10 +00:00
moodler 7123e12e03 Unset password change AFTER creating the new $USER variable, otherwise
you get asked to change it twice.
2005-01-06 12:56:05 +00:00
moodler 13af52a6d3 When using set_user_preference on other people, don't change the preference in $USER 2005-01-06 12:50:03 +00:00
moodler bb6c3f3ad2 Fixed my erroneous fix from last checkin 2005-01-06 08:46:12 +00:00
moodler 0181cf725d This bug stopped this page from even working .... 2005-01-06 02:38:50 +00:00
martinlanghoff b3adf3de4e Merged from MOODLE_14_STABLE - Fixed warning in ipatlas, thanks to Jens Gammelgaard <jens.gammelgaard@optimon.dk> 2005-01-06 02:07:35 +00:00
koenr a4a4a78729 releasenotes outdated -> moved to old 2005-01-05 20:08:11 +00:00
gustav_delius 85ceebe2d3 It is now possible to have also questions in all subcategories listed on edit.php. Because there can be a large number of questions the list of questions is now paged.
The random questions have another option specifying whether they can choose their questions also from subcategories or not. This option is stored in the unused questiontext field.
2005-01-05 20:07:58 +00:00
koenr 868b127949 should be reviewed by someone speaking Belarusian, since it appears not to be complete. I added the IMHO missing part in English, but I won't spent time to correct the html before the content is ok. 2005-01-05 20:05:07 +00:00
koenr 4c16f82da6 moving towards XHTML compliance 2005-01-05 20:03:24 +00:00
martignoni f1802208db New feature: Maximum-number-of-questions-per-page 2005-01-05 19:01:06 +00:00
martignoni 0259b2b11e String added: 'minutes' 2005-01-05 18:51:29 +00:00
martignoni f13112cdd1 Fixes for missing language strings as per bug 2340 2005-01-05 18:49:20 +00:00
koenr df57f2df48 moving towards XHTML compliance 2005-01-05 18:31:57 +00:00
moodler d6d080e26c Er, made a typo myself. This works now. 2005-01-05 17:47:01 +00:00
moodler 697fa7265d Fix faulty call to table_column 2005-01-05 17:42:57 +00:00
moodler 9de39eaefb Removing the whitespace from the popup links 2005-01-05 17:40:38 +00:00
gustav_delius 1da1f5a890 It is now possible to have also questions in all subcategories listed on edit.php. Because there can be a large number of questions the list of questions is now paged.
The random questions have another option specifying whether they can choose their questions also from subcategories or not. This option is stored in the unused questiontext field.
2005-01-05 17:27:23 +00:00
moodler 59c005b76e Email alerts to teachers
------------------------

Added a small new feature to the assignment module to alert teachers when
new emails come in.  This feature adds one new field (which is tested) but
the operation of the new code has not been tested yet at all (apart from
PHP syntax) and very likely has bugs in it.

I'm checking this in so I can do tests on test.moodle.com which has email
set up properly.

I'm off to bed right now but if anyone else wants to test this feature
before tomorrow please do!   :-)

While I'm rambling here in CVS, I need to have a good look soon at Pablo's work
on Assignment and see if I can merge it all in...
2005-01-05 17:13:44 +00:00
moodler e848159413 SOme code tidyups, and fixes for missing langauge strings as per bug 2340 2005-01-05 15:31:43 +00:00
martignoni 180545d5c0 Typo corrected 2005-01-05 14:14:09 +00:00
koenr 582c1aee5d removed empty files 2005-01-05 13:52:27 +00:00
martignoni 95a4994322 Corrections of the translation 2005-01-05 13:50:16 +00:00
koenr a0c4b4a8b1 moving towards XHTML compliance (very small changes) 2005-01-05 13:42:24 +00:00
koenr 7ccff2ebfb moving towards XHTML compliance (very small changes) 2005-01-05 13:37:26 +00:00
koenr ffab41af47 moving towards XHTML compliance 2005-01-05 13:11:44 +00:00
koenr 0f02a622a9 moving towards XHTML compliance 2005-01-05 12:01:10 +00:00
koenr d59a2daf99 moving towards XHTML compliance 2005-01-05 09:13:05 +00:00
koenr 5a4adea604 moving towards XHTML compliance
Changed some old code to the new approach in writing.html, reading.html and questions.html -> needs to be translated!
2005-01-05 09:04:21 +00:00
moodler 9ae3253e6e $ME is not always reliable in this case 2005-01-05 07:22:08 +00:00
stronk7 04ad0d91e8 Now text sent to PayPal can be 'sanitised' to avoid
some diacritics (spanish for now) break the enrol process.
Only German and French diacritics are supported for now by PayPal.
Functionality can be easily expanded to other characters.
It make the sanitity when $CFG->sanitise_for_paypal is enabled.

Merged from MOODLE_14_STABLE
2005-01-05 00:28:26 +00:00
martinlanghoff 559027a76c Merged from MOODLE_14_STABLE
Fixes bug 2334 http://moodle.org/bugs/bug.php?op=show&bugid=2334

Courses will sometimes fail to be moved across categories if there are collisions in the sortorder field, due to a combined unique index.

With this fix, the 'category move' logic is aware of sortorder and will do The Right Thing(tm) putting the course at the beginning of the category: MIN(sortorder)-1 WHERE category=$destcategory->id .

Also added further cleanup patches.
2005-01-04 22:52:29 +00:00
defacer 0f256abc0c Fix for bug 2336:
I accidentally removed the editing button from courses when fixing bug 2328.
Fortunately, Gustav was on the lookout.
2005-01-04 19:43:09 +00:00
martignoni c50e95d4b3 Corrected file encoding 2005-01-04 09:39:56 +00:00
mits 6b586d7de6 translated some. 2005-01-03 21:54:05 +00:00
moodler 2973ec1879 History links with context now scroll directly to the message, not
just the day.

Must go to bed.  :-)
2005-01-03 17:05:30 +00:00
moodler e6ca691237 SMall fixes 2005-01-03 16:29:59 +00:00
koenr ee4c7d6216 already first tweaks 2005-01-03 16:21:16 +00:00
koenr e60a037ca9 initial translation of new message function 2005-01-03 16:17:26 +00:00
koenr 860a2ac912 filling in missing strings 2005-01-03 16:16:28 +00:00
moodler 0125a71bb9 Improved offline/online logic and display 2005-01-03 15:41:13 +00:00
moodler 973cda9d96 Fixed some bugs in my last checkin 2005-01-03 15:27:32 +00:00
moodler f520438cf1 Some tidy up of some code and the information display in a discussion window.
The online status of the other user is now more accurate, and will not
keep updating once the user has gone offline.
2005-01-03 15:20:56 +00:00
moodler 38c6a92809 Big improvements on message searching. It now highlights the results, and
shows you the fragment containing the results (not just a shortened version)
2005-01-03 12:16:06 +00:00
moodler fd7006f6b4 Some tweaks here and there to the display 2005-01-03 10:49:40 +00:00
koenr e4eb5a273d new Hungarian help files by Karoly Fabricz [kfabricz@vnet.hu] 2005-01-03 09:03:31 +00:00
kaipe d70ccc495c New feature:
Maximum-number-of-questions-per-page
2005-01-03 00:41:33 +00:00
defacer edb42f0924 Fix for bug 2328:
* When configuring a block instance, "Turn editing off" button is not
  shown anymore.

* When configuring a block instance, the breadcrumbs are now better,
  providing a link to the course page. This could be done in a much
  better way if we had a comprehensive template system but it will
  suffice for now.
2005-01-02 15:20:15 +00:00
gustav_delius ac27e47dc4 Hierarchical question categories from mediagonal, see http://moodle.org/bugs/bug.php?op=show&bugid=1947 2005-01-02 15:10:50 +00:00
moodler e3a40eb6f5 Trying a better log icon 2005-01-02 14:39:56 +00:00
moodler e59437f5bd Some new strings 2005-01-02 14:33:55 +00:00
moodler ce2d60ad59 Some tidy-ups and some styles 2005-01-02 14:33:17 +00:00
moodler f857e7de93 New log icon 2005-01-02 14:14:28 +00:00
martignoni cd183d4850 New string 'editingteachershort' 2005-01-02 10:56:01 +00:00
martignoni e7dc2ee3e7 Changed user interface for adding multiple random questions, see http://moodle.org/mod/forum/discuss.php?d=16531#78785 2005-01-02 10:52:31 +00:00
martignoni fb3f94c020 Improved an error message, see http://moodle.org/bugs/bug.php?op=show&bugid=504&pos=0 2005-01-02 10:50:22 +00:00
martignoni 44551ca5d4 Fixed form error checking for cloze questions, see bug http://moodle.org/bugs/bug.php?op=show&bugid=697 2005-01-02 10:48:31 +00:00
martignoni 984f2d25d4 New strings for Messaging facility 2005-01-02 10:43:33 +00:00
martignoni 8196326e46 Latest update for rss client block localization 2005-01-02 10:25:27 +00:00
gustav_delius 15939a2fc9 Introduced the language string 'editingteachershort' and set it to 'Editor'. Also fixed a typo. This closes bug 1949 2005-01-02 07:42:24 +00:00
gustav_delius 34283aa87d The teacher now can choose whether to see the advanced quiz
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.

There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709

Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708. To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.

mod.html now has a "Save changes" and a "Save changes and edit questions" button.

"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".

After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
moodler 405f01ee2d Emailing is now working well, and more GUI cleanups 2005-01-01 16:00:35 +00:00
moodler e520509acb Tidying up icons and layout 2005-01-01 11:47:18 +00:00
moodler 36f01e7b1b New log display stuff for message contacts 2005-01-01 08:41:13 +00:00
moodler de8647f8f7 Transparent user face 2005-01-01 08:01:03 +00:00
moodler 2358b66461 Stop and Go icons 2005-01-01 07:42:11 +00:00
mits 2768bbf725 translated some. 2005-01-01 07:25:19 +00:00
moodler 5fb86983dd Typo in popup params 2005-01-01 04:39:01 +00:00
moodler 62119d659d Fixed up some history linking 2005-01-01 04:37:40 +00:00
moodler b9ee063899 Added access to discussion histories 2005-01-01 04:23:09 +00:00
moodler f66e1977bb Added parameter to print_user_picture to allow links with target windows 2005-01-01 04:22:19 +00:00
moodler 8fc8e7ed84 Smaller text window for typing and safer display of first names 2005-01-01 02:49:03 +00:00
gustav_delius 3cebccea7b defined $timeago 2004-12-31 20:42:53 +00:00
gustav_delius 444f6252dd fixed some small bugs 2004-12-31 20:02:45 +00:00
fiedorow 84b3c159df Merging /admin/ fix 2004-12-31 18:46:59 +00:00
fiedorow 34417488cf Merging forum search fix 2004-12-31 18:42:27 +00:00
defacer a2017e62da Latest updated guide. The Appendixes need more work but up till there
it's pretty much final.
2004-12-31 16:35:29 +00:00
fiedorow 98c872b63e add closing tag, see bug #2324 2004-12-31 16:20:05 +00:00
fiedorow 06870aa324 fixing a couple of instances of hardcoded /admin/ 2004-12-31 16:12:58 +00:00
fiedorow ff4bc07f7e fixing an instance of hardcoded /admin/ 2004-12-31 16:08:26 +00:00
fiedorow 51b0e824d2 Fixed missing / separator 2004-12-31 15:41:23 +00:00
fiedorow 9ccdcd97ee Fix for bug #2323 - forum search problem 2004-12-31 15:23:50 +00:00
mits 4f2ed95b61 translated one string.
This is the final translation of year 2004 :)
2004-12-31 09:28:50 +00:00
moodler c2a75e442c Some HTML tidyups 2004-12-31 08:51:21 +00:00
moodler f54b0f24d6 Some styles for the RSS client listing 2004-12-31 08:21:16 +00:00
moodler 839bbd4d10 This block now works without blog 2004-12-31 07:42:22 +00:00
dhawes 9723afd1d0 bug fixes 2004-12-31 03:38:22 +00:00
dhawes 6825eec6f9 latest update for rss client block localization 2004-12-31 03:16:32 +00:00
dhawes fd6360ecac minor bug fixes 2004-12-31 03:11:03 +00:00
dhawes e999246f3f bug fixes - had let a blog specific function sneak back in 2004-12-31 02:22:30 +00:00
moodler 3fca929936 No changes, just rearranging code a little 2004-12-31 02:17:44 +00:00
moodler b1b4e59618 Minor fixes 2004-12-31 01:53:59 +00:00
moodler 7556ac089d Some tab styles while I'm testing 2004-12-31 01:53:11 +00:00
gustav_delius a62356fcdd removed many php warnings and streamlined code 2004-12-30 22:51:24 +00:00
dhawes 2502395fae fixing an instance of hardcoded /admin/ as per Zbigniew Fiedorowicz's fix (in 1.4.3+?) 2004-12-30 19:10:44 +00:00
dhawes 8766b89f93 a little cleanup 2004-12-30 18:27:40 +00:00
dhawes 92ce1eb2ef Updated for better reporting when loading from remote url fails. Now displays error when adding URL when it cannot load even when ->debug is off. Added new feature - select multiple feeds to display in each block instance. 2004-12-30 18:08:38 +00:00
petcheverry 10f2f07908 file assignment.class.php was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-12-30 16:16:46 +00:00
petcheverry 9c861f1863 file submissions.php was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-12-30 16:16:46 +00:00
petcheverry 3e1fb0752e file upload.php was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-12-30 16:16:46 +00:00
petcheverry 547de3c73a file mod.html was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-12-30 16:16:46 +00:00
moodler e608dddda5 Message windows now popup from any page 2004-12-30 12:54:22 +00:00
mits 1693a94028 re-translated. 2004-12-30 11:26:48 +00:00
moodler eb820b8b92 Use the proper preview image 11x11 2004-12-30 08:28:58 +00:00
moodler 4d396b4989 New icon at 11x11 for preview 2004-12-30 08:24:31 +00:00
moodler 106317cb03 Further tweaking, while we're at it. ;-) 2004-12-30 08:07:18 +00:00
mits ece8f7bc77 re-translated help file which was mentioned on:
http://moodle.org/mod/forum/discuss.php?d=16695
2004-12-30 01:22:24 +00:00
mits 28ac7a640d translated some. 2004-12-29 23:27:30 +00:00
gustav_delius 0dc4810a9a Changed user interface for adding multiple random questions, see http://moodle.org/mod/forum/discuss.php?d=16531#78785 2004-12-29 22:57:35 +00:00
moodler 94d807790c Updated version 2004-12-29 16:12:08 +00:00
gustav_delius 71d1ef585f added alt text to icons 2004-12-29 10:03:53 +00:00
gustav_delius 2d09198e5f avoid division by zero when the sum of grades is zero 2004-12-29 09:22:33 +00:00
gustav_delius fa92dd2437 improved an error message, see http://moodle.org/bugs/bug.php?op=show&bugid=504&pos=0 2004-12-29 07:48:21 +00:00
gustav_delius df4fe0009b avoids error when exporting 0 questions 2004-12-29 07:21:55 +00:00
gustav_delius 089a284b88 sort category question list by type then name as suggested in http://moodle.org/bugs/bug.php?op=show&bugid=2045
Also removed a PHP notice
2004-12-29 07:19:54 +00:00
ikawhero 8d6380f7cc New strings added 2004-12-29 03:55:14 +00:00
ikawhero 082864f91c Fixed keyword searching
Added functions for printing contact links
2004-12-29 03:54:33 +00:00
moodler caa0f2ffa2 No need to show profile editing link to guests 2004-12-28 17:52:05 +00:00
moodler b603ccb72c Hide Messages block from guests 2004-12-28 17:50:35 +00:00
mits cb071a1d74 translated one string... 2004-12-28 16:47:52 +00:00
moodler bc8ccf6b18 First quick go at a Messages block. Needs polishing but seems to work. 2004-12-28 16:34:13 +00:00
mits ab3cf9957b new lang file translated. 2004-12-28 16:05:26 +00:00
moodler 34dd5900e4 FIxed my last hasty checkin 2004-12-28 15:12:46 +00:00
moodler 3c6b56daa4 Viewing site front page is now logged. 2004-12-28 15:11:16 +00:00
moodler 114176a25e add_to_log now always updates user->lastaccess 2004-12-28 14:59:29 +00:00
moodler 4cd37687c8 Moved a string (out of order) 2004-12-28 13:57:38 +00:00
moodler 7ccab9b1d5 Added messaging buttons to the online users list 2004-12-28 13:50:17 +00:00
moodler 2fc1b1feb8 Add messaging buttons to the user profile 2004-12-28 13:49:44 +00:00
moodler e8e2d7f12f Latest messaging system
Needs a lot of work still but you can now manage your contact list
and send/receive messages from people so it's usable!
2004-12-28 13:49:15 +00:00
moodler f7ea3a0b10 New strings for Messaging facility 2004-12-28 13:45:04 +00:00
moodler c408677db6 Temporary message icon (currently the same as email...) 2004-12-28 12:20:28 +00:00
moodler bbd587a753 Changes to the generaltab classes to distinguish between selected and non
selected tabs
2004-12-28 10:04:49 +00:00
gustav_delius b63850e8d4 Fixed form error checking for cloze questions, see bug http://moodle.org/bugs/bug.php?op=show&bugid=697 2004-12-28 09:12:40 +00:00
moodler e53c030b7a Added format field for messages 2004-12-28 08:56:20 +00:00
moodler 0eacb23ccc Updated message databases with better time storage, and also some logging
for message reading and writing
2004-12-28 07:40:26 +00:00
scop22 75b496cc1f Some new strings translated in Korean language pack 2004-12-28 07:39:49 +00:00
moodler c3dd541003 More links for other non-activity modules 2004-12-28 07:26:18 +00:00
moodler 1b1a5f7ec2 Merged fix from stable 2004-12-28 02:46:47 +00:00
gustav_delius b403c32aa0 Reinstated the line in stripslashes_safe() that removes the slash that escapes a backslash. Martin removed this line in March. Why? 2004-12-27 23:40:42 +00:00
moodler a7ca4cd150 When teachers view quizzes (attempting or reviewing) they see a small
link with the actual question id of that question.  The link creates
a popup so that they can edit that question directly.
2004-12-27 14:52:24 +00:00
moodler c9a945caed Fixed a string name 2004-12-27 14:34:38 +00:00
carlesbellver bf8936d316 *** empty log message *** 2004-12-27 12:38:31 +00:00
moodler 1376ebb1c1 Undoing the "login as student" link that chooses a student at random. 2004-12-27 02:29:46 +00:00
gustav_delius 48d3eadabc I have put a "Login as Student" link into the admin block. 2004-12-26 20:18:24 +00:00
mits c0b8ff1ef4 new help file translated. 2004-12-26 17:02:03 +00:00
gustav_delius dc511e9fdb removed php notice and fixed line endings 2004-12-26 16:09:12 +00:00
gustav_delius 8fbb315db3 fixed missing string error that I introduced when improving the breadcrumbs. 2004-12-26 14:55:50 +00:00
moodler d99bab2d1d Some changes that may help on safe mode ... see bug 2093
The new directory permissions maintain group mode better,
and the manual chown is now removed to prevent safe mode
from getting upset.
2004-12-26 14:45:39 +00:00
gustav_delius b63c0ee521 Fixes a bug with user events created by an activity module.
The old code assumed that the courseid would always be set but that is only the case for course events, not for user or group events. (See http://moodle.org/mod/forum/discuss.php?d=4466#20827 for a discussion about the meaning of the courseid field in the event table)
I also made the $courseid argument to get_coursemodule_from_instance() optional. It is not needed and in some cases it will not be know, as for example for non-course events created by activity modules.
2004-12-26 13:58:07 +00:00
mits 6741221e34 translated few... 2004-12-25 19:04:37 +00:00
martignoni cd62f2d4b1 Three new strings for quiz config page 2004-12-25 17:42:50 +00:00
mits 4adee6cbc7 translated some string and added a new helpfile. 2004-12-24 23:44:07 +00:00
mits 37fd4e6c26 polished. 2004-12-24 19:03:24 +00:00
mits d964f29d7c translated some string and added a new helpfile. 2004-12-24 18:50:57 +00:00
thepurpleblob d75bc0b272 Now supports shortanswer import. Cleaned up the CDATA import too. 2004-12-24 11:16:43 +00:00
djachenko a90aa87792 "" 2004-12-23 17:00:56 +00:00
djachenko 11923633d1 Change \"?\" to \"? ?\" 2004-12-23 16:20:05 +00:00
djachenko e9d307f76d "" 2004-12-23 15:52:15 +00:00
moodler 9e6e750294 SLightly more robust loading of defaults 2004-12-23 09:07:43 +00:00
moodler 4940a905c8 Removing this before translators waste time on it 2004-12-23 09:02:58 +00:00
moodler 4c6c0e01a2 Extended print_user_picture to support a pixel size in the old
$large = true/false
field ... you can now specify an arbitrary size in there.
2004-12-23 08:58:15 +00:00
mits 1313852db2 translated some. 2004-12-23 08:05:11 +00:00
gustav_delius 78036f7835 Fixed event handling. Events must be deleted with delete_event.
Instead of modifying event dates the quiz module currently deletes them and adds new ones. This could be improved in the future.
2004-12-23 07:28:14 +00:00
gustav_delius a5c0990e5d New quiz config page to allow admin to set defaults and hide options on the quiz setup page. 2004-12-23 07:09:33 +00:00
mjollnir_ 0044147e10 Merged from MOODLE_14_STABLE: Added empty rather than just testing variable, added trim to search string in get_users and get_users_listing 2004-12-22 23:11:27 +00:00
martinlanghoff 301045e472 Merged from MOODLE_14_STABLE
Fixed upgrade bug that could show up in cases where:

- installations with large numbers of courses in a category AND 'hidden' courses in those categories
- where the database upgrade was performed while NOT in a logged-in-admin session
fix_course_sortorder() would fail to guarantee the uniqueness of course,sortorder and the new unique index on that column would fail  to be created.

Sigh.
2004-12-22 22:47:28 +00:00
koenr 6c4149f5f4 changed release date 2004-12-22 09:33:07 +00:00
koenr 36b6399ebd new language: Belarusian - be - by Maryia Davidouskaia [maryia@iatp.by] and her team
I repaired a lot of unescaped ' in the php-files - I hope I catched them all
2004-12-22 09:30:58 +00:00
martignoni 3ee5fa6346 Fix wording of 'configforceloginforprofiles' 2004-12-22 06:18:31 +00:00
moodler 07496589ba More XHTML from Shane 2004-12-22 02:59:21 +00:00
moodler b60f0ee556 Validator ignores sesskeys 2004-12-22 02:56:16 +00:00
moodler 089e9eae78 Added trick to allow sesskey to be ignored in certain cases
(helps with XHTML testing)
2004-12-22 02:54:47 +00:00
moodler 1e44343940 Some leftover XHTML changes ... 2004-12-22 02:53:05 +00:00
moodler d23e2291a5 Checking in some old changes from Shane, I think ... just spacing ... 2004-12-22 02:51:54 +00:00
mits dab4593f89 new document translated. 2004-12-21 22:58:52 +00:00
martignoni aa707daa67 Two new strings 2004-12-21 21:46:37 +00:00
mjollnir_ 2e1898b21c Merged from MOODLE_14_STABLE: Fixing postgres bug on unique constraint 2004-12-21 18:30:19 +00:00
barias e204a8cc08 Latest updates 2004-12-21 07:03:25 +00:00
barias 2ee55a4dd1 Markdown's translation into Spanish by A. Vicent, A. Navarro and B. Arias. 2004-12-20 20:28:56 +00:00
moodler 1e982a498d Sigh, removing some links 2004-12-20 16:11:43 +00:00
moodler 4a8036f4b3 Renaming wrongly-named file 2004-12-20 16:07:42 +00:00
moodler f5ea7c3774 Latest from Ralf 2004-12-20 15:33:07 +00:00
thepurpleblob 37df8c250c Fixed typo that has crept in. 2004-12-20 15:31:27 +00:00
thepurpleblob 75e496f73d Fixed a couple of bugs in the xml formatting. Issue with Markdown text
still to resolve.
2004-12-20 14:34:07 +00:00
gustav_delius 267ef6f28f Improved breadcrumbs on editing pages 2004-12-20 14:26:37 +00:00
moodler 5a9639146e Merged from stable 2004-12-20 02:50:26 +00:00
koenr 8c78a9b4fd typo 2004-12-19 16:44:42 +00:00
stronk7 99f363bf66 Now backup names are cleaned completely, avoiding some problems
with translations and manually typed names with diacritics.
Thanks to Marian Zvalo!

Merged from MOODLE_14_STABLE
2004-12-19 16:18:10 +00:00
martignoni d30981d7bb Two missing strings added 2004-12-19 14:43:27 +00:00
martignoni da20b3bcd1 Added string 'pageheaderconfigablock' 2004-12-19 14:40:44 +00:00
martignoni ddf7133d23 Typo corrected 2004-12-19 14:31:32 +00:00
martignoni 08d5ae293c Change to string 'dsthumanreadable' 2004-12-19 14:30:03 +00:00
martignoni 4e56014d8b Small corrections 2004-12-19 14:24:16 +00:00
martignoni 5c4a004dbf Typos corrected 2004-12-19 14:20:46 +00:00
martignoni 7b5151a26b File added 2004-12-19 14:11:44 +00:00
moodler cf5560fb97 Merged guest login fix from stable 2004-12-19 14:11:18 +00:00
moodler e85a8915d7 Two new strings 2004-12-19 13:25:47 +00:00
martignoni 52a635737d Added missing string for ldap_opt_deref 2004-12-19 13:25:14 +00:00
martignoni 48e49f9387 New strings for calendar 2004-12-19 13:12:54 +00:00
martignoni a9bf2515b4 Some small corrections 2004-12-19 12:28:07 +00:00
mits 3bc13447c7 polished and translated new strings. 2004-12-19 10:41:10 +00:00
koenr ac865d9e56 polishing 2004-12-19 09:27:53 +00:00
koenr 63187393bd new file 2004-12-19 09:26:56 +00:00
koenr e74946c77e filling in missing strings 2004-12-19 08:54:07 +00:00
stronk7 485d102488 The entrylist format now shows the approval button.
Bug 2291.
(http://moodle.org/bugs/bug.php?op=show&bugid=2291)

Merged from MOODLE_14_STABLE
2004-12-18 20:29:33 +00:00
koenr bcb5381780 filling in missing strings 2004-12-18 20:25:44 +00:00
koenr ace85cb84c new file 2004-12-18 20:15:32 +00:00
stronk7 cdd577fb4e Release updated to 1.4.3 and some XMTL compliance changes. 2004-12-18 19:16:22 +00:00
koenr ec8e831fbf filling in missing strings 2004-12-18 17:57:13 +00:00
martignoni 2c96fef943 More changes to the user interface. See http://moodle.org/mod/forum/view.php?id=740. 2004-12-18 15:04:21 +00:00
martignoni d1c1179b68 Various tweaks of admin interface 2004-12-18 14:57:05 +00:00
martignoni e813a8659f Added periods at the end of some sentences. 2004-12-18 14:11:50 +00:00
martignoni 88b9ebfd27 Workshop module now works with dates rather than phases 2004-12-18 14:10:32 +00:00
martignoni ea9ee14b36 New strings for the secure popup window 2004-12-18 14:02:23 +00:00
martignoni cb8f6f558e New feature that makes it possible to specify the number of decimals
for the correct answer in calculated questions
as well as some minor refactoring and debugging.
2004-12-18 14:01:04 +00:00
martignoni 15d475f269 string for 'back' in preview question 2004-12-18 13:58:09 +00:00
martignoni 4185224e7a Adding fix for idnumber duplication problem and other small things 2004-12-18 13:55:18 +00:00
kaipe c03d783201 Question type RANDOM now stores responses just like any other question type.
Therefore all workarounds are removed from lib.php and an isolated workaround is included in random/questiontype.php in order to ensure backward compability.
2004-12-18 13:55:18 +00:00
martignoni 6f95910098 New string 'mustchangepassword' 2004-12-18 13:52:07 +00:00
martignoni 94164d5e2f Fix to 'policyagree' 2004-12-18 13:49:27 +00:00
martignoni 4883e490a8 New feature: Site Policy Agreements. 2004-12-18 13:48:12 +00:00
martignoni e91202746d New "Calendar" section in Admin -> Configuration. 2004-12-18 13:40:50 +00:00
martignoni e76195a78c New file added 2004-12-18 13:30:57 +00:00
martignoni fd9666cb50 Updating release notes ready for 1.4.3 2004-12-18 12:52:42 +00:00
moodler a8b88447a9 Info about other language packs, thanks Koen! 2004-12-18 05:58:23 +00:00
koenr 16d61783d6 dutch 1.4.3 release notes: added some other new translations 2004-12-18 04:05:18 +00:00
koenr 42fbaab071 dutch 1.4.3 release notes 2004-12-17 19:46:14 +00:00
stronk7 ced8b969e6 Just activating validation in Head to be able to test it. 2004-12-17 17:24:13 +00:00
moodler 35bac30293 Updated with glossary searching 2004-12-17 15:42:36 +00:00
stronk7 b7237c1ed6 Changes since 1.13.2.4 upto 1.13.2.9 in MOODLE_14_STABLE
applied to HEAD!!!

Some validation code has changed and I've leave it commented
exactly as it's in MOODLE_14_STABLE. Not sure why!!
2004-12-17 14:52:06 +00:00
moodler f1e006f13d Updated latest release notes 2004-12-17 07:31:44 +00:00
moodler 0d345ede6a Some rewording 2004-12-17 04:26:37 +00:00
mits 0c4aa0ab4a translated new strings. 2004-12-17 04:15:38 +00:00
dhawes a7c17aa0c7 fixed lang string reference and added link to add/edit feeds from admin page 2004-12-17 03:39:10 +00:00
mjollnir_ 68ba62d21a Merged from MOODLE_14_STABLE: Adding fix for idnumber duplication problem in restoring from backup discussed at http://moodle.org/mod/forum/discuss.php?d=16297 2004-12-17 03:04:24 +00:00
dhawes 0eb35827c6 first addition of extra rss files needed by rss_client block. templib functionality should be moved to rsslib.php if Eloy is OK with that 2004-12-17 02:45:21 +00:00
mjollnir_ 91b4c5eee9 Postgres compliance for dst_preset table 2004-12-17 02:20:04 +00:00
mjollnir_ 24cc8ec9ba Merged from MOODLE_14_STABLE: Committing skodak's fixes for sc#40 and #42 2004-12-17 01:43:06 +00:00
defacer bb4a2e85c0 New features implemented:
* Configurable defaults for the calendar upcoming events lookahead and
   maximum upcoming events displayed (bug #1623)

 * Configurable setting for which days of the week are treated as weekend
   (bug #1919)

 * Configurable setting for which day starts the week (the admin can now set
   this as the default for new users and guests without messing with language
   packs) (no butracker issue)
2004-12-16 18:49:57 +00:00
defacer 54598fb04e The user editing screen and the change password screen didn't play very
well with debug = on. In fact the change password screen didn't play at all.

Made a few small changes to fix notices and now everything works OK.
Added a missing language string.

*****************
This problem may very well exist in MOODLE_14_STABLE too! Unfortunately I
don't have access to a 1.4 checkout right now, so it will have to wait.
*****************
2004-12-16 17:26:29 +00:00
thepurpleblob d6b3c7b82e Added xml format import. First pass for testing.
Just multiple choice and true/false at the moment and needs further
testing and polishing.
2004-12-16 15:54:51 +00:00
moodler 172186b8c4 Draft beginning of new messaging system that Martin and Shane are working on. 2004-12-16 12:40:36 +00:00
moodler ffce79c050 New tables for messaging system, plus completion of the dst_preset
tables in Postgres and new installs
2004-12-16 12:39:17 +00:00
moodler 945c636394 Added blank printing style (http://moodle.org/mod/forum/discuss.php?d=13071&parent=77710) 2004-12-16 11:54:45 +00:00
moodler ad1a74e0ed Protect review page as well 2004-12-16 11:51:37 +00:00
moodler b2ff4c0aac New strings for the secure popup window 2004-12-16 08:42:33 +00:00
moodler 6c83959e33 Quizzes can now be opened in a popup window. Javascript must be enabled.
An attempt has been made to make the popup as secure as possible by disabling
various browser capabilities through javascript.
2004-12-16 08:05:23 +00:00
moodler ec99718966 Filled out a missing string that caused people some consternation in the forums 2004-12-16 07:32:37 +00:00
moodler bcdcbcccc0 Merged logging from stable 2004-12-16 02:13:19 +00:00
stronk7 c5152930f5 Now filename is fixed to rss.xml. SC#23 2004-12-15 23:21:25 +00:00
skodak a0fb9e8e65 merged from MOODLE_14_STABLE; updated zipping code - see bug #2228 2004-12-15 21:59:30 +00:00
moodler 0f06e85abb Merged course listing fix from stable 2004-12-15 13:33:40 +00:00
moodler 2d2da684c6 Merged changes from stable (notice fix) 2004-12-15 13:24:19 +00:00
moodler 20dd7de2cb fix merged from stable 2004-12-15 13:13:18 +00:00
stronk7 ff4240129c Some checks are now done. SC#18.
Merged from MOODLE_14_STABLE
2004-12-15 09:03:39 +00:00
defacer 86f092d25e New "Calendar" section in Admin -> Configuration.
Includes preliminary support for DST!
Includes "admin sees all events or only own?" setting (bug 1972)

WARNING: Modified moodlelib.php to explicitly specify NOT-DST when
calling mktime() and gmmktime(). This is essential since we don't want
PHP to second-guess us for the DST matters, but... it may affect existing
code?
2004-12-15 07:14:41 +00:00
defacer 548c4e2e55 Fix for bug 2285: chatd shows all chat users as present in every chatroom
Should be fixed, but needs testing.
2004-12-15 07:08:31 +00:00
skodak 62faef84c4 fixed $course->id 2004-12-15 06:32:32 +00:00
mits 35cf1d37e4 New translated file added. 2004-12-15 04:32:41 +00:00
stronk7 be88433c7e filename is the 5th parameter. Now it's cleaned and used
by the send_file() function.
2004-12-14 20:28:23 +00:00
stronk7 fa6ed70c93 Minimum change (curiosly PHP doesn't warn about it). 2004-12-14 19:40:51 +00:00
skodak e7f927a0fc new handling of uploaded files, please TEST, TEST, TEST 2004-12-14 18:57:51 +00:00
dhawes 93c7d6dae0 first add of new rss client block. please take a moment to test its features and provide feedback (now added to the correct folder moodle/lang/en) 2004-12-14 18:12:09 +00:00
dhawes 12a33d9ff6 oops, this should have been put in the moodle/lang folder. moving 2004-12-14 18:10:48 +00:00
dhawes 72035d793e first add of new rss client block. please take a moment to test its features and provide feedback 2004-12-14 18:09:20 +00:00
moodler c7e65290e4 Merged fix from stable for wrong function 2004-12-14 11:08:04 +00:00
moodler 61242972a3 Merged parameter checking from stable 2004-12-14 08:52:33 +00:00
moodler dad3f933fb Allow groups to have enrolment keys in addition to the course enrolment key.
If a user enrols with a group key they will be added to the course and to
the group.
2004-12-14 08:12:12 +00:00
moodler 4ed533dfaf Added a function to add a user to a group 2004-12-14 08:05:49 +00:00
moodler f5a1c0c064 New field popup to control new feature: launch quiz in fullscreen popup window 2004-12-14 06:43:22 +00:00
moodler 1a5bc0467f Field added to groups table to allow group specific enrolment keys 2004-12-14 06:41:18 +00:00
moodler 21da9db80b When posting a new topic, display the forum description to help
orient the posting.  Also changed some headings slightly to make more
sense.
2004-12-14 06:26:43 +00:00
moodler 49aa374281 Changed new discussion link to a form button 2004-12-14 05:59:30 +00:00
defacer 7692b11451 At last, fixed that despicable notice when logging in by converting direct
array access to get_user_preference(), as it should be.

Removed reload_user_preferences() call, it's not needed and I saw one other
such call somewhere around here which M.D. has commented out (without creating
trouble, obviously).
2004-12-13 18:38:18 +00:00
defacer ccb42b9a70 Fixed some warnings for foreach() on empty array, when upgrading a site
with no workshops in it.
2004-12-13 18:32:20 +00:00
thepurpleblob 0cc29b85c4 Fixed typo in escaping exported text. 2004-12-13 17:28:34 +00:00
thepurpleblob ca6477c5ac Can now export HTML - dangerous characters are converted to entities. 2004-12-13 11:37:45 +00:00
martinlanghoff e35d275e1f Merged from MOODLE_14_STABLE
Fixes bug #2147 http://moodle.org/bugs/bug.php?op=show&bugid=2147

The config.php generated by install.php was missing $CFG->admin -- credit goes to serge.laot@wanadoo.fr for the report and patch.
2004-12-13 07:38:43 +00:00
martinlanghoff a45de11f5b Merge from MOODLE_14_STABLE - Fixed SC#30 - credits go to skodak 2004-12-13 06:48:57 +00:00
stronk7 00a3a66a45 Some dyslexic problem solved! :-D
Merged from MOODLE_14_STABLE
2004-12-13 01:31:54 +00:00
stronk7 3a558dd9a8 Now activity names are sorted by name length to avoid Bug 2282
(http://moodle.org/bugs/bug.php?op=show&bugid=2282)

Merged from MOODLE_14_STABLE
2004-12-13 01:25:23 +00:00
mjollnir_ b8b932924b Merged from MOODLE_14_STABLE: Added addslashes back in to username field after splitting it out for lowercasing 2004-12-12 20:43:19 +00:00
stronk7 c062fee637 Check added. SC#23
Merged from MOODLE_14_STABLE
2004-12-12 12:54:32 +00:00
stronk7 14ed121a90 Some checks added. SC#34.
Merged from MOODLE_14_STABLE
2004-12-12 12:34:59 +00:00
gustav_delius eb89027f5b More changes to the user interface. See http://moodle.org/mod/forum/view.php?id=740. 2004-12-12 11:20:07 +00:00
thepurpleblob 77cfab9ba9 Now correctly escapes 'reserved' characters when exporting GIFT format. 2004-12-12 10:48:05 +00:00
moodler 8579e15617 Merged fix SC22 from STABLE, even though this file will be rewritten
with Petr's new file handling soon!  :-)
2004-12-12 07:09:51 +00:00
moodler bee41f23ee Merged sc28 from stable 2004-12-12 07:01:35 +00:00
moodler f9f4d999fe Merged recent fixes to FULLME in stable 2004-12-12 06:49:26 +00:00
moodler 6b94a807d2 Merged new MOODLE_INTERNAL constant from stable, used to prevent
direct access to some scripts
2004-12-12 04:33:13 +00:00
barias 4989c4172a *** empty log message *** 2004-12-11 20:49:39 +00:00
barias 97eb14d8fd *** empty log message *** 2004-12-11 19:44:14 +00:00
barias 78470a5bd4 *** empty log message *** 2004-12-11 17:40:26 +00:00
barias 9042cc48c0 *** empty log message *** 2004-12-11 00:57:12 +00:00
stronk7 69baafdea7 Now search function look into aliases too.
Bug 2242
(http://moodle.org/bugs/bug.php?op=show&bugid=2242)

Merged from MOODLE_14_STABLE
2004-12-11 00:54:37 +00:00
stronk7 fcb06dd512 Updating PclZip credits to 2.4RC1 2004-12-10 19:16:51 +00:00
stronk7 b5104c34f1 Skipping empty categories in restore. They shouldn't exist but
I've received some examples of this these days.

Merged from MOODLE_14_STABLE
2004-12-10 18:27:53 +00:00
moodler 1372b482df Fixed the include to use PluginDir 2004-12-10 12:22:39 +00:00
moodler 5debee2de4 Added latest knowledge on caching techniques to HEAD 2004-12-10 06:20:54 +00:00
mjollnir_ 6740dd6494 Merged from MOODLE_14_STABLE: Upload users should lowercase username field just as user/edit.php does 2004-12-10 04:16:02 +00:00
mits 200f544977 translated some. 2004-12-10 02:33:17 +00:00
mjollnir_ bf35eb157c Small bug fix in sql in log page for site errors (infected file uploads & login errors) 2004-12-09 21:35:20 +00:00
thepurpleblob 3397020814 Bug in export of multichoice-multianswer questions fixed.
Thanks to Nguyen Tuan Anh for spotting this and providing the fix!
2004-12-09 16:18:23 +00:00
gustav_delius 1c4e73b614 Now teachers can again grade assessments. Also various tweaks of admin interface. This is work in progress. Heavy testing and further development will take place during the coming days, so consider this code as unstable. 2004-12-09 09:34:43 +00:00
ikawhero 9a1eb4997f Changes for XHTML and accessibility compatibility 2004-12-09 08:01:25 +00:00
carlesbellver dd9416c1d6 *** empty log message *** 2004-12-09 07:53:12 +00:00
mchurch 03c6f3bf7d Modified to ouput proper XHTML - especially if it already was XHTML.
See bug #2230.
2004-12-08 22:05:44 +00:00
moodler 68c3b07794 FIx for display of first session, from stable 2004-12-08 13:47:06 +00:00
gustav_delius 47162a5b59 fixed cutoffime misprint 2004-12-08 10:39:06 +00:00
gustav_delius 9e5b9a2084 fixed missing ) and undefined $timenow 2004-12-08 10:09:25 +00:00
gustav_delius dabfc89899 added periods at the end of some sentences. 2004-12-08 09:10:06 +00:00
gustav_delius 9a41fb44c0 removed duplicated sentences from emails 2004-12-08 08:29:11 +00:00
paca70 736215d307 Some updates 2004-12-08 08:14:07 +00:00
ikawhero 85d25fd70d Minor change to enlarge the textarea for topic summary editing.
Was too small for summaries that included large headings or images.
2004-12-07 23:49:51 +00:00
gustav_delius cb0d44c59f fixed warning when realuser is not set. 2004-12-07 08:33:52 +00:00
gustav_delius 2317a9f3b0 Fixed date check 2004-12-07 07:41:49 +00:00
gustav_delius adfefeb12a $this->course was used but not defined. 2004-12-07 07:32:16 +00:00
gustav_delius a36a1759cf course.guest was not loaded from database but used in code. 2004-12-07 07:27:02 +00:00
michaelpenne bca6b842ca fix class stats for essay questions 2004-12-06 20:33:44 +00:00
gustav_delius 5e5b03eba0 use filter_text instead of text_to_html 2004-12-06 20:20:27 +00:00
kaipe 180bcb2740 New feature that makes it possible to specify the number of decimals
for the correct answer in calculated questions
as well as some minor refactoring and debugging.
2004-12-05 13:02:49 +00:00
kaipe 2ad1b388f7 Updating database and backup/restore in order to make it possible
for teachers to choose number of decimals for calculated questions.
Can someone please check if the database update for postgres7 turns out alright?
2004-12-05 12:56:01 +00:00
gustav_delius ab98918f09 Workshop module now works with dates rather than phases, see http://moodle.org/mod/forum/discuss.php?d=15541. 2004-12-05 11:49:18 +00:00
mudrd8mz 47cb2991e5 Some fixes and update (some changes in workshop - uff... quite hard to understand this great module ;-) 2004-12-03 15:13:37 +00:00
miksik f52a853d63 Initial version, hopefully XHTML compatible 2004-12-03 10:09:28 +00:00
mits dbf4282acc polished.
and put space into both sides of "(" and ")" to make Japanese visiblity much better
2004-12-02 23:07:03 +00:00
djachenko f6d932c474 Small correct 2004-12-02 13:53:56 +00:00
djachenko bcbccb7d23 Small correct 2004-12-02 12:08:26 +00:00
defacer 9c6bf80e71 Removed last instance of the evil SECS_IN_DAY constant that is the ticket
to wrong code when DST comes into play

Fixed calendar_get_upcoming to perform DST corrections according to the
server's TZ (now the users as calendar doesn't support that, but it's a start)

Removed some dead code
2004-12-01 21:54:49 +00:00
defacer cb48251dec Fixed some warnings I introduced a while back by incorrect use of optional_parameter() 2004-12-01 21:52:09 +00:00
defacer 77e9d3cf4c Minor code style changes 2004-12-01 21:49:23 +00:00
defacer 070e261647 Fixed set_user_preference to make changes immediately available ($user was lowercased)
Updated all user preferences functions to behave well even if $USER or $USER->id is not defined
2004-12-01 21:47:02 +00:00
michaelpenne 8061400e0f updated essay and short answer code to work with quotes (single and double) 2004-12-01 21:02:07 +00:00
michaelpenne 611e79fd75 updated essay code to work with quotes being used in user answer and teacher response 2004-12-01 21:00:49 +00:00
stronk7 ec6dc3f6d7 New rss_geterrorxmlfile() function added
and some optional data checked.

Merged from MOODLE_14_STABLE
2004-12-01 19:51:45 +00:00
skodak 690f358b62 merged from MOODLE_14_STABLE;
Preparation for new file.php, new function get_file_argument() SC#5
2004-11-30 19:44:08 +00:00
mits f87f10acb3 translated some. 2004-11-30 19:12:15 +00:00
mudrd8mz 11d614c540 Update and fixes towards 1.4.2 (still incomplete) 2004-11-30 18:44:29 +00:00
stronk7 87290b788d Updated to 2.4RC1. This should terminate
some know incompatibilities.
Bug 2234
(http://moodle.org/bugs/bug.php?op=show&bugid=2234)

Merged from MOODLE_14_STABLE
2004-11-30 17:57:42 +00:00
moodler 6a0b58b23a Merged lang fix from stable 2004-11-30 03:48:13 +00:00
moodler 1c58180bce Merged lastpostid from stable 2004-11-30 02:53:08 +00:00
moodler f025416cb0 Merged fix from stable 2004-11-30 01:42:44 +00:00
koenr ce1332f537 one > too much
Thanks Hans!
2004-11-29 20:38:01 +00:00
scop22 3ab32cfc0f New strings translated in moodle.php and quiz.php; wiki.php finished 2004-11-29 15:45:14 +00:00
moodler 268c64855a Added name of the last poster to the discussion listing
- thanks to Dmitry for his patch!   (dlnsk % mail.ru)
2004-11-29 08:18:32 +00:00
moodler 59b39c7380 Tweaks to the policy form (wider iframe and added a proper question to answer) 2004-11-29 08:10:37 +00:00
moodler 3af01b513d Sesskey fixes 2004-11-29 06:35:49 +00:00
moodler e3f30ef2d6 Restore sessionIP when returning from loginas mode 2004-11-29 06:22:39 +00:00
moodler 957b51989c After agreeing to site policy, you get redirected back to where you
were going.

Also, guests get asked to agree for EVERY SESSION.
2004-11-29 06:22:12 +00:00
mits 561c0c4a80 translated some. 2004-11-29 05:56:55 +00:00
moodler 861a9cfa28 Set sessionIP when logging-in as a user 2004-11-29 05:45:01 +00:00
moodler 027a160469 New feature: Site Policy Agreements.
If the admin specifies a Policy Agreement (via URL in the config variables)
then each user is required to see and agree to that document once before
continuing.

To get everyone to see it again (on an update, say) one just needs to issue:

   UPDATE user SET policyagreed = 0
2004-11-29 05:30:36 +00:00
dhawes 5809683fba fixed a comment whose details had been left behind in the recent api change 2004-11-29 04:38:07 +00:00
defacer 9b12850043 Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.
2004-11-29 04:19:05 +00:00
dhawes a9e91540df replaced old MoodlePage class call with new page_base call 2004-11-29 00:48:28 +00:00
stronk7 1c144d0eed Changed some parameters. SC#33.
Merged from MOODLE_14_STABLE
2004-11-28 23:54:11 +00:00
barias c532b7841a *** empty log message *** 2004-11-28 21:34:19 +00:00
barias e13c069c05 Latest spanish translation. 2004-11-28 21:26:09 +00:00
stronk7 19479ebdfb Calculate NEXT course->sortorder in restore to avoid
sortorder grown always (by fix_course_sortorder()).

Merged from MOODLE_14_STABLE
2004-11-27 23:33:39 +00:00
koenr 2b62fed134 start of a Vietnamese languagepack in UTF-8
Thanks to Thai-Hoa Nguyen
2004-11-27 12:09:35 +00:00
martignoni 45ca58305b Revert bad change (search string) 2004-11-26 20:02:31 +00:00
martignoni e9b8d89a52 This time, the correction is good! 2004-11-26 19:59:53 +00:00
martignoni d3ea47244b Changed "search" string for more explicity 2004-11-26 19:57:51 +00:00
moodler 3f8eeff210 Merged from stable 2004-11-26 15:42:05 +00:00
moodler b64dab0e5d Changes for XHTML and accessibility compatibility 2004-11-26 09:33:02 +00:00
moodler caf261b0c3 Changes for XHTML and accessibility compatibility 2004-11-26 07:07:06 +00:00
stronk7 36ce6ea2d1 Solve some visualisation issues in encyclopedia format. I think that now
it will be correct!

Merged from MOODLE_14_STABLE
2004-11-26 01:22:41 +00:00
martinlanghoff 1da35f2942 Merge from MOODLE_14_STABLE
Fix for bug 2227 "bug in pclzip.php causing scorm errors"
http://moodle.org/bugs/bug.php?op=show&bugid=2227

Credits go to skodak
2004-11-26 00:57:58 +00:00
mjollnir_ a2ddd957f2 Merged from MOODLE_14_STABLE: In get logs don't join on the user table for just counting the records 2004-11-25 21:56:32 +00:00
defacer db019d9358 Ummm... more changes due to the renaming. 2004-11-25 17:35:25 +00:00
defacer 99110470ba Somehow I forgot to commit these and the whole page setup wasn't working
after renaming MoodlePage => page_base.
2004-11-25 17:23:57 +00:00
carlesbellver e5ba6b6fff *** empty log message *** 2004-11-25 15:02:54 +00:00
moodler 08cb1a69a4 Style for quiz feedback updated 2004-11-25 10:03:57 +00:00
moodler 8ac17ba443 Changes for XHTML and accessibility compatibility 2004-11-25 10:01:56 +00:00
martinlanghoff 71dcd6c014 Merged form MOODLE_14_STABLE
Fixed an issue with postgres database upgrade code -- drop either index or constraint if they exist


Merge of patchset arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-430
2004-11-25 00:02:58 +00:00
mits 8eb1e7ff81 new translated file added. 2004-11-25 00:00:13 +00:00
mjollnir_ 7472315e3c Merged from MOODLE_14_STABLE: Fixed bug in dialogue where plain text email notification had no break between the url and the ---- that was causing GET requests like mod/dialogue/view.php?id=foo--------- and subsequent invalid sql 2004-11-24 23:51:04 +00:00
stronk7 e2cf5316c1 New paging system for glosaries.
100% compatible with Moodle's one.
Supports more options. Perhaps we could use it
sitewide.

Merged from MOODLE_14_STABLE
2004-11-24 23:37:46 +00:00
mjollnir_ 56e9c38161 Merged from MOODLE_14_STABLE: Fix for postgres-invalid-sql (must have AS between field and alias) 2004-11-24 23:24:32 +00:00
koenr 7331b86485 string for 'back' in preview question 2004-11-24 22:49:54 +00:00
martinlanghoff b692d2be05 Merge from MOODLE_14_STABLE
Additional fixes for indexes in postgres. A few unique indexes may have been created non-unique. Still deferring the version bump -- please review the patch!

Merge of patchsets
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-423
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-425
2004-11-24 22:48:58 +00:00
koenr 33bb37e1df *** empty log message *** 2004-11-24 20:53:51 +00:00
mjollnir_ f3c9e7f9c3 Merged from MOODLE_14_STABLE: Fixing typo in mysql.sql for unique key for user_teachers on course userid 2004-11-24 19:00:24 +00:00
koenr 0c06c9dd65 filling in missing strings 2004-11-24 15:33:38 +00:00
gustav_delius b61536bc9b insert line break before language selection menu to make front page look similar to Moodle 1.4 2004-11-24 09:40:20 +00:00
gustav_delius 4de5f7bbdf added some missing styles to make Latest News and Recent Activity blocks look the same as in Moodle 1.4 2004-11-24 09:38:04 +00:00
gustav_delius ab0e4dd42f If a block is unknown then ignore it rather than throwing fatal error. In future one might want to have a dummy block that is displayed in this case to alert the user to the fact that some block code is missing. 2004-11-24 09:16:39 +00:00
mits ef45f25e7d translated some. 2004-11-24 05:45:34 +00:00
martinlanghoff 9530c61dbf Merge from MOODLE_14_STABLE
raise_memory() now uses get_real_size(), duplicate function return_bytes() removed.

Issue discussed in 2202 (http://moodle.org/bugs/bug.php?op=show&bugid=2202).
Also seen as arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-424
2004-11-24 03:56:39 +00:00
martinlanghoff b110348b71 Merge from MOODLE_14_STABLE.
Student and teacher enrolments now unique + version bump

Made student and teacher enrolments unique, enforced at the database level. This patch also removes a cleanup job in moodle's cron that removed duplicate enrolments.

Merge of patchset  arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-422
2004-11-24 02:25:36 +00:00
mjollnir_ a56f0d607b Merged from MOODLE_14_STABLE: Forum: Do not trust userid from hidden form field, use $USER->id instead for db inserts 2004-11-23 23:34:34 +00:00
mjollnir_ 76feee3f86 Merged from MOODLE_14_STABLE: Fix for invalid sql in postgres - don't query log table for what was in log display if log->info is not set 2004-11-23 23:27:18 +00:00
mjollnir_ 63758a7848 Merged from MOODLE_14_STABLE: Requires bump for glossary for last patch - needs db_lowercase and db_uppercase 2004-11-23 23:16:08 +00:00
mjollnir_ ef0fc810bf Merged from MOODLE_14_STABLE: Bug fix for forum rating redirects - manifested itself in invalid sql in postgres 2004-11-23 23:13:52 +00:00
mjollnir_ 6b7f8df2ec Merged from MOODLE_14_STABLE: Fixing use of UCASE and LCASE in glossary which are not postgres friendly - two new functions in datalib, db_uppercase and db_lowercase which return the database-correct functions to use. Some were already fixed in HEAD - those have been left as they were 2004-11-23 23:05:06 +00:00
mjollnir_ 38279ad6d8 Merged from MOODlE_14_STABLE: Attempt to fix bad constraint name in wiki and version bump (honoring partial freeze) and requires bump (needs changes in execute_sql to not show adodb feedback) 2004-11-23 22:40:48 +00:00
paca70 3c55bb0f9d Fixed typo. Time to sleep... 2004-11-23 21:34:38 +00:00
paca70 e80c7d5d15 Closed bug #2209
Don't replace & if it's part of encoded character.
2004-11-23 21:29:21 +00:00
rkingdon 693f6eb5cf Cron routine does not send "graded" emails until releasegrades date;
grades are "not available" in index page until after the relaesegrades
date; phasing of three phase workshop tidied up.
2004-11-23 20:52:54 +00:00
defacer e89d741af3 New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.
2004-11-23 18:53:34 +00:00
mjollnir_ 905e80d273 Merged from MOODLE_14_STABLE: Attempt to fix the unique index on quiz_attemptonlast_datasets for postgres (requires version bump in quiz AND requires bump in quiz for the getting rid of adodb feedback in execute_sql 2004-11-23 05:04:53 +00:00
mjollnir_ f1f2c12527 Merged from MOODLE_14_STABLE: Update log_display to use postgres friendly concat functions for firstname lastname 2004-11-23 03:53:41 +00:00
moodler f7abd64afb Merged changes from stable 2004-11-23 03:43:24 +00:00
mjollnir_ 7b07a935c5 Merged from MOODLE_14_STABLE: Fixing weird forum bug to do with forum ratings (manifested itself in invalid postgres sql) 2004-11-23 02:49:51 +00:00
moodler ae6d640123 Minor HTML fixes 2004-11-23 02:47:07 +00:00
moodler cc28a5b560 Just a code tidy up 2004-11-23 02:41:45 +00:00
mjollnir_ 1604a0fc2b Merged from MOODLE_14_STABLE: More small sql tweaks to avoid invalid postgres sql 2004-11-23 02:05:47 +00:00
mjollnir_ df7ebd69ab Merged from MOODlE_14_STABLE: Fix for invalid sql (for postgres) in cron cleanup of duplicate enrolments. Possibly soon to be overridden by a unique index 2004-11-23 01:05:11 +00:00
mjollnir_ 8b19b04085 Bug fix for patch related to forcing searching in course/student.(html|php) if too many users, and bump to MAX_USERS_PER_PAGE to 5000 2004-11-23 00:39:29 +00:00
mjollnir_ 60fdc71463 Slight change to log page so that for > 5000 courses or users we don't straight off load the huge drop down menus but instead default to whatever is normally selected, with an option for 'More' to display the full drop down for either. Also includes an Martin L patch for sql query that brought postgres to it's knees (Martin L patch is destined for MOODLE_14_STABLE as well) 2004-11-23 00:16:24 +00:00
koenr 0dcc5d3fce noticed a couple typo's while translating 2004-11-22 23:35:33 +00:00
koenr 2fc010061d filling in missing strings 2004-11-22 22:07:27 +00:00
koenr fab930e0ef typo 2004-11-22 21:35:25 +00:00
mjollnir_ 6a6f25af85 Merged from MOODLE_14_STABLE: Fix for bug #2207 - sortorder now honored in front page listing 2004-11-22 21:30:26 +00:00
koenr 387d8632f1 changing thislanguage to NCR so it displays properly in the languagelist 2004-11-22 21:24:34 +00:00
koenr d2c66e66d1 Added some new files
Deleted a lot of English strings / files
Corrected a lot of errors in html
Help-files should be xhtml compliant

CAN SOMEONE WHO ACTUALLY CAN READ THE LANGUAGE PLEASE CHECK
2004-11-22 21:09:47 +00:00
rkingdon 03371565eb Fixes teacher's view of 3 phase workshops. 2004-11-22 19:09:06 +00:00
julmis 361855e6e7 Adding support for Mac OS X Camino browsers see bug #2176 2004-11-22 18:38:33 +00:00
moodler b5c6d80dfe I've not tested this at all :-( but it was sent to me by the original
author of this feature as a bug fix.

PLEASE TEST!   (See bug 2179 for example)
2004-11-22 16:25:29 +00:00
moodler 735547525a Added dummy constructor to keep PHP5 happy. 2004-11-22 16:09:06 +00:00
martignoni b5e74921f3 String trysearching added 2004-11-22 16:00:13 +00:00
martignoni 71bce841c6 Confirmation for deleting course categories 2004-11-22 15:58:35 +00:00
martignoni 604c058b35 Changed $ongoingcustom definition 2004-11-22 15:51:41 +00:00
martignoni 6088c640d8 Added new lang entries for lesson module 2004-11-22 15:49:18 +00:00
martignoni f14aa0a774 A few new strings for Version 2004111000. 2004-11-22 15:11:02 +00:00
villate eefebe2471 A few new variables translated 2004-11-22 14:51:47 +00:00
moodler 35a0379ac2 Merged sesskey fix in social activities block from stable 2004-11-22 14:44:24 +00:00
scop22 31ad9e60b3 Fix buggy string in moodle.php 2004-11-22 13:59:36 +00:00
scop22 d4bf677d37 Many new translated strings in some major modules: lesson.php, quiz.php, moodle.php, survey.php, wiki.php 2004-11-22 13:01:20 +00:00
carlesbellver 530935f148 *** empty log message *** 2004-11-22 07:59:33 +00:00
martinlanghoff b36a8fc4f5 Auth/LDAP
Bugfix - value truncation to fit Moodle database
- Added truncate_userinfo() to cleanup data coming from external auth
- Fixed auth_user_create() to truncate user info as appropriate

Auth_ldap_user_sync
- created external script that calls the function
- much faster update strategy on postgres and mysql: auth_sync_users now to uses bulk inserts into a temp table, and then use LEFT JOINs and plain old SELECTs to determine what users it has to insert.
- we now loop over smaller sets of data -- we are still memory-bound, but (a) it'll be easy to use LIMIT to manage that and (b) memory use is much lower now in all cases.
- postgres: phased commits in auth_user_sync() for the batch user upload phase
- Several feature and performance enhancements:
  - if a value is removed from ldap, it will be cleared from moodle
  - no-op updates (where the data does not change) are skipped
  - if a user disappears and then reappears in LDAP in two separate calls to auth_user_sync(),the account will be marked deleted and then be revived. before, the account would have been deleted and created anew.

Multi-source ldap values:

The LDAP auth module now accepts a comma separated set of LDAP field names. When creating or updating a user record, auth/ldap will retrieve all the relevant fields. The right-most values overwrites all the others.

This is particularly useful when updating the user's email address from an LDAP source, which may contain the email address in one of several fields (traditionally: mail, mailForwardingAddress, mailAlternateAddress).

If a value is updated and is set to update external auth and this field is using this multi-source ldap configuration, the auth/ldap module will retrieve the old value, find which field it was sourced from, and update that field in LDAP. If it fails to find the original source of the value, it will log it in error_log.


Log of patchsets applied:
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-131
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-137
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-139
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-172
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-173
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-189
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-190
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-208
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-212
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-216
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-279
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-282
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-287
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-294
2004-11-22 07:46:10 +00:00
mjollnir_ 1a31c2b366 Merged from MOODLE_14_STABLE: Don't need to select course.* in rebuild course cache 2004-11-22 05:46:18 +00:00
mjollnir_ e6d1d120b1 Merged from MOODLE_14_STABLE: Changes to calls to get_courses to not get all fields 2004-11-22 05:41:14 +00:00
mjollnir_ ed040b1f2d Merged from MOODLE_14_STABLE: Recent course/scale optimisations 2004-11-22 05:22:20 +00:00
mjollnir_ b565bbdfe2 Merged from MOODLE_14_STABLE: Fixes in datalib and backuplib for postgres invalid sql 2004-11-22 04:24:30 +00:00
mjollnir_ a967637614 Merged from MOODLE_14_STABLE: modify_database function change - if no ; in single line sql strings, add it 2004-11-22 04:11:07 +00:00
mjollnir_ 01669f1619 Merged from MOODLE_14_STABLE: Fixed another instance of getting all fields from all courses (in log selector) 2004-11-22 03:35:31 +00:00
mjollnir_ da862d410f Merged from MOODLE_14_STABLE: Fix for calendar set filters to not query the database for groups of a course if it doesn't use groups 2004-11-22 03:17:49 +00:00
martinlanghoff 911378628f Fixed typo in index name 2004-11-22 02:58:23 +00:00
martinlanghoff 64031bbb0f Enrol/LDAP - initial commit, a bit rough around the edges.
This code is in production in a high-volume environment, so it has already proven to be reliable and scalable. Configuration is still tricky, and some corner cases may or may not be handled elegantly.

Please test!
2004-11-22 02:41:41 +00:00
martinlanghoff 6e8ca9837e Enrol/LDAP - enrol_student() and add_teacher() now populate the 'enrol' field. 2004-11-22 02:38:31 +00:00
martinlanghoff 5cd796869e Enrol/LDAP - DB Patches + version bump
These patches add an 'enrol' column to the user_students and user_teachers tables for the enrolment plugins to be able to keep track of source of the enrolments. Follows similar conventions to the user table with its 'auth' field.

This is a merge of the following patches:
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-187
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-192
2004-11-22 02:36:14 +00:00
mjollnir_ 4f3fecf4a6 On enrol students to a course page, force searching if too many users to display (controlled by MAX_USERS_PER_PAGE - not previously used and bumped up to 1000 as a more reasonable limit) - trying to put 30,000 users in a drop down menu crashes some browsers 2004-11-22 01:40:18 +00:00
mjollnir_ eb46f6a322 Merged from MOODLE_14_STABLE: Indexes for workshop and version bump (honoring partial freeze) 2004-11-21 22:03:48 +00:00
mjollnir_ 81c41b659e Merged from MOODLE_14_STABLE: Indexes for wiki and version bump (honoring partial freeze) 2004-11-21 21:16:41 +00:00
mjollnir_ 5417b5b07a Merged from MOODLE_14_STABLE: Indexes for survey and version bump (honoring partial freeze) 2004-11-21 20:43:27 +00:00
koenr 59aa644972 filling in missing strings (finely understood 'instances' :-') ) 2004-11-21 17:49:50 +00:00
rkingdon 5c2b2dd83a User Pictures to dialogue headers. 2004-11-21 15:30:14 +00:00
paca70 706552f038 Updates for postgres 2004-11-21 15:01:33 +00:00
moodler 72b9f333b9 Merged fix for hiding unneeded sections in course navmenu 2004-11-21 06:28:17 +00:00
rkingdon 7decbe4b12 Added vetting of conversationid; fixed bug 2194 (Problems with
backup/restore); Tidied Postgres table.
2004-11-21 04:01:10 +00:00
defacer 3c7e1b65be Fixes for slightly incorrect behavior on days where the DST setting changes.
Not quite correct in some places though (those require more attention).
2004-11-20 20:10:03 +00:00
defacer 0fa6d31143 Removed a useless space :) 2004-11-20 19:44:28 +00:00
defacer 331063054a Slight change to the HOWTO to be more clear.
Removed the $course var from MoodleBlock (useless now).
2004-11-20 19:36:47 +00:00
dhawes 7e8dc20869 spacing and quotes cleanup 2004-11-20 19:06:29 +00:00
defacer 3088137459 Fixed a couple PHP notices which cropped up 2004-11-20 18:30:31 +00:00
moodler 76ca0f31fd Merged fix for bugs 2199 and 2200 from stable 2004-11-20 17:51:04 +00:00
martinlanghoff c95aa089a8 Merged from MOODLE_14_STABLE: Fixing handling of empty memory_limit for PHP without memory_limit (mostly Windows binaries) 2004-11-20 10:38:43 +00:00
mjollnir_ 429a24b7fc Merged from MOODLE_14_STABLE: Fixing bug # 2199 - missing some teacher roles in course/category.php 2004-11-20 10:38:01 +00:00
skodak d52d5a8e85 merged from MOODLE_14_STABLE; updated parameter cleaning, preparation for new file.php SC#5 2004-11-19 21:28:29 +00:00
mjollnir_ 7e0286af89 Merged from MOODLE_14_STABLE: Indexes for scorm and version bump (honoring partial freeze) 2004-11-19 05:28:51 +00:00
mjollnir_ a5e2b34dac Merged from MOODLE_14_STABLE: Indexes for resource and version bump (honoring partial freeze) 2004-11-19 05:00:40 +00:00
mjollnir_ 556b96786e Merged from MOODLE_14_STABLE: Indexes for quiz and version bump (honoring partial freeze) 2004-11-19 04:14:13 +00:00
defacer 9e094fd54b Silly me... forgot to update url_get_path when I moved this thing in here. 2004-11-19 03:29:16 +00:00
defacer db9b01eda2 Proof of concept for the things you can do with the new Blocks and Pages APIs.
What's important to stress here is that this demo is completely self-contained;
it does not require modifying ANY core Moodle code.
2004-11-19 03:16:56 +00:00
mjollnir_ 33a55a6d55 Merged from MOODLE_14_STABLE: Indexes for lesson and version bump (honoring partial freeze) 2004-11-19 03:13:05 +00:00
mjollnir_ 6513df237c Merged from MOODLE_14_STABLE: Indexes for label and version bump (honoring partial freeze) 2004-11-19 03:05:38 +00:00
defacer a177631062 Updated the configuration-handling logic to the same level as the new instance-
configuration handlers. Much more easy to use and precise.
2004-11-19 03:01:31 +00:00
defacer 482dbe0cd4 Correct construction of SQL clauses (fix for SC#20).
Improved conformance with the new _param() functions a bit.
2004-11-19 02:47:00 +00:00
defacer f8582e3e0a Tweaked class MoodleBlock some. Removed a useless function (how did it get in here?)
and renamed handle_config(), print_config() to config_save(), config_print() for
consistency with the new instance_ functions().

Removed that old and obsolete README file.
2004-11-19 02:41:32 +00:00
defacer 2456d7c815 Updated the two standard blocks that have configuration features to work
with the latest version of the Blocks API.
2004-11-19 02:36:57 +00:00
defacer 833d033623 First version of the Developer Documentation: Blocks how-to.
Still a bit rough around the edges and definitely will see refining.
Almost killed me, though. I hope it turns out to be useful.
2004-11-19 02:32:48 +00:00
mjollnir_ 4b0626c985 Fixed another version problem, this time not _as_ serious as just in UNSTABLE DEVELOPMENT 2004-11-19 02:30:40 +00:00
mjollnir_ 58336c87a2 Merged from MOODLE_14_STABLE: Indexes for journal and version bump (honoring partial freeze) 2004-11-19 02:02:38 +00:00
martignoni ab0f642d80 Changed "search" string for more explicity 2004-11-18 18:53:21 +00:00
skodak 00d9cd1409 merged from MOODLE_14_STABLE;
fixed encoding of html entities in tex expressions - SC#7
2004-11-18 10:08:14 +00:00
moodler 6958042464 Merged default categpory fix from stable 2004-11-18 07:32:31 +00:00
moodler 906fef94ed Use the defined defines that we defined (eg FORUM_FORCESUBSCRIBE) 2004-11-18 06:41:51 +00:00
moodler 75169b06c4 FIxed the call to forum_add_user that was breaking student enrollment 2004-11-18 06:40:11 +00:00
moodler ade736f13c When there are no courses to list in the block, then include a link for adding one. 2004-11-18 06:33:23 +00:00
mjollnir_ 1ad49e00d9 Merged from MOODlE_14_STABLE: Indexes for glossary and version bump 2004-11-18 04:38:52 +00:00
rkingdon ee3dddc1c9 Allow student submissions to be edited/deleted in the Submission phase of
workshops.
2004-11-18 04:24:31 +00:00
mjollnir_ d21e88a938 Merged from MOODLE_14_STABLE: Indexes on forum and version bump 2004-11-18 04:10:47 +00:00
moodler 1734f08ea4 In execute_sql, if feedback is not required then don't even show the
ADOdb feedback.  Makes those careful DROPs look less frightening!  :-)
2004-11-18 03:36:52 +00:00
mjollnir_ 275c630a4a Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - main tables 2004-11-18 02:55:33 +00:00
martinlanghoff bce7197321 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-335 Now memory_limit can be overriden by higher config settings from php.ini, commandline, httpd.conf, .htaccess 2004-11-18 02:55:06 +00:00
martinlanghoff 0c3e818cb1 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-321 Fixed bug in user search: now we trim() the search string 2004-11-18 02:47:02 +00:00
mjollnir_ 327613bcb6 Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - exercise module 2004-11-18 02:42:33 +00:00
mjollnir_ 1ef51a6c42 Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - dialogue module 2004-11-18 02:40:24 +00:00
mjollnir_ 782fe16bbc Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - choice module 2004-11-18 02:39:16 +00:00
mjollnir_ 756fe81e15 Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - chat module 2004-11-18 02:37:58 +00:00
martinlanghoff 2b49ae96a6 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-305 - Postgres SQL bugfix for instance_is_visible() 2004-11-18 02:37:52 +00:00
mjollnir_ 362d9c0e7e Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - attendance module 2004-11-18 02:35:42 +00:00
mjollnir_ d66122e2a8 Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - assignment module 2004-11-18 02:33:49 +00:00
martinlanghoff 6315b1c8b6 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-222 - SQL improvements\n Better SQL performance for get_courses() and get_courses_page() calls, specially from the categories page. This gives much better performance when browsing existing courses 2004-11-18 02:31:53 +00:00
mjollnir_ 2171c83396 Merged from MOODLE_14_STABLE: Indexes for exercise and version bump 2004-11-18 01:57:04 +00:00
mjollnir_ 62bf565657 Merged from MOODLE_14_STABLE: Indexes and version bump for dialogue 2004-11-18 01:35:32 +00:00
mjollnir_ 15e0081234 Merged from MOODLE_14_STABLE: Indexes and version bump for choice 2004-11-17 23:03:56 +00:00
mjollnir_ 74dbfd4daf Merged from MOODLE_14_STABLE: Indexes for chat and version bump 2004-11-17 22:54:16 +00:00
mjollnir_ f75d0a479c Merged from MOODLE_14_STABLE: Indexes and version bump for attendance 2004-11-17 22:11:52 +00:00
mjollnir_ ce64ebf9b7 Merged from MOODLE_14_STABLE: Indexes and version bump for assignment 2004-11-17 21:49:48 +00:00
mjollnir_ ed38d55a41 Version bump for new indexes 2004-11-17 07:49:04 +00:00
mjollnir_ ffa5f71b4b Merged from MOODLE_14_STABLE:
Add a unique key to guarantee that course,sortorder is unique. Allows fix_course_sortorder and ordering operations to be much faster. (martinlanghoff)

Plus more indexes for user table (mjollnir_)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-231
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-236
2004-11-17 07:47:03 +00:00
mjollnir_ 17f3e7d05b Merge from MOODLE_14_STABLE: Indexes on faux foreign keys and often used fields, one more set and version bump to come. 2004-11-17 07:09:08 +00:00
mjollnir_ ba87a4daf5 Merged from MOODLE_14_STABLE:
Fixes to fix_course_sortorder() and course/category.php pages. (martinlanghoff)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-160
  Minor fix: moodle would crash on high number of courses when doing course creation -- should be more scalable now

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-164
Fix a bug I have introduced in fix_course_sortorder() - v2

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-210
  Fixed nested transaction in fix_course_sortorder()

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-215
  Performance and memory usage fixes for re-sort courses function

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-268
  Major performance and correctness improvements in the functions that move courses up and down, reorder by name, and in fix_course_sortorder(). All now assume course-sortorder is unique (this is enforced at the DB)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-332
  fix_coursesortorder() bugfixes and logic simplification

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-333
  courses listing enhancements: bugfix on re-ordering, keep the right page on actions
2004-11-17 06:57:28 +00:00
mjollnir_ 1ed5abc877 Merge from MOODLE_14_STABLE: moodle--eduforge--1.3.3--patch-207(partial) + moodle--eduforge--1.3.3--patch-408 - added begin_sql() and commit_sql() (martinlanghoff) 2004-11-17 05:31:21 +00:00
mjollnir_ 72ccca5632 Merge from MOODLE_14_STABLE: moodle--eduforge--1.3.3--patch-201 - optimized calls to get_courses() to retrieve only required fields (martinlanghoff) 2004-11-17 05:05:14 +00:00
mjollnir_ 17c88613b4 Bug fix for sql for new workshop tables for mysql 2004-11-17 03:17:05 +00:00
michaelpenne cc72031abe changed ongoingcustom definition 2004-11-17 01:07:17 +00:00
michaelpenne 324da715f2 updated lesson_calculate_ongoing_score to match the grading algorithm used in view.php. Also suppressed a warning in lesson_print_tree_link_menu function. 2004-11-17 01:05:39 +00:00
michaelpenne 8bca120ff0 Changed the grading algorithm. Now it divides points earned by total points possible. Before was dividing points earned by max grade. Also updated essay grading to work much more reliably and fixed some formatting problems with essay emails. 2004-11-17 01:02:14 +00:00
stronk7 1b4002e0b7 Just changing some parameters stuff to new functions...
See SC and Bug 1837

Merged from MOODLE_14_STABLE
2004-11-17 00:14:34 +00:00
stronk7 2b99ea9efb Print view isn't accesible if the activity is hidden.
Bug 1837
(http://moodle.org/bugs/bug.php?op=show&bugid=1837)

Merged from MOODLE_14_STABLE
2004-11-16 23:36:35 +00:00
stronk7 62067fe3ae Header is out and "Site:" is in.
Partially solved Bug 1837
(http://moodle.org/bugs/bug.php?op=show&bugid=1837)

Merged from MOODLE_14_STABLE
2004-11-16 23:12:21 +00:00
rkingdon 0446243690 Stock comments can now contain single quotes. 2004-11-16 20:49:25 +00:00
stronk7 1757627af3 Now hidden sections are hidden completely from student view if
"invisible sections" are configured in course settings.
Patch sent by Geoff Wilbert. Thanks!
See Bug 2185
(http://moodle.org/bugs/bug.php?op=show&bugid=2185)

Merged from MOODLE_14_STABLE
2004-11-16 17:30:45 +00:00
mits 3060f68e3d translated some. 2004-11-16 16:22:32 +00:00
mjollnir_ ff84f65428 Confirmation for deleting course categories 2004-11-16 02:21:31 +00:00
martignoni c806c346a3 Changed $thischarset to iso-8859-1. Thanks to Koen! 2004-11-15 21:56:09 +00:00
rkingdon 3f6a03249d Fixed some error messages in assessments.php which gave the wrong table
(workshop_elements) should be workshop_grades.
2004-11-15 19:10:52 +00:00
rkingdon b6cc3466aa Fixed bug in the "checking for a rapid submission" code. 2004-11-15 18:18:43 +00:00
moodler bb043e3843 Fixing up any references to obsolete language pack ma_nt 2004-11-15 09:34:04 +00:00
koenr db82c8dd7c typo 2004-11-15 06:44:15 +00:00
mits fc2d622929 translated some. 2004-11-15 06:25:40 +00:00
aredkin c6b7337e99 *** empty log message *** 2004-11-15 05:36:44 +00:00
kaipe 813ac2e00a The previous update was supposed to be an enlargement of answer in quiz_responses (not quiz_answers)
It is now correct and the mistake never made it to the stable version :-)
2004-11-13 19:25:13 +00:00
koenr ff2a53e622 moving ma_nt to mi_nt where it should be 2004-11-13 18:56:50 +00:00
kaipe c4fb195046 Fixed a typo that was introduced with revision 1.4 - I believe that revision must have been developed with some sort of script... 2004-11-13 18:51:47 +00:00
kaipe 401f9a6a78 Changed to absolute path for reaching the questiontype dependent editing page layout file.
This should increase robustness - some installations have faced problems with the previously used relative references.

This fix should be merged with the stable branch asap
2004-11-13 18:29:25 +00:00
kaipe 80acb051d9 Fixed typo 2004-11-13 18:18:06 +00:00
mits 22f98b29bd translated new strings. 2004-11-13 04:59:10 +00:00
papita a1be52af7f Latest changes for 1.4 2004-11-13 02:50:06 +00:00
rkingdon cb0a172434 Display of current/final grades now has the individual lists order by
grade.
2004-11-13 01:00:17 +00:00
rkingdon 65e187edb6 Version 2004111000. This removes the unnecesary emails about grading of
assessments.
2004-11-12 19:30:12 +00:00
defacer 6b853ff4c7 Oops... fix for the fix :-) 2004-11-12 18:47:39 +00:00
defacer 5715e97bce Fixed a warning which appears if you move a block to a
position which doesn't currently have any blocks.
2004-11-12 18:44:54 +00:00
defacer c8e0b57900 Pages/blocks code updates:
NEW: The code now supports dynamically plugging your own Pages and block position
identifiers into Moodle without messing with the main libraries at all.

UPDATE: Many functions in blocklib now use pass-by-reference for speed.

UPDATE: Class MoodlePage has been made more presentable and robust.
2004-11-12 18:39:25 +00:00
rkingdon 9a21768212 Version 2004111000 of workshop. 2004-11-12 17:28:07 +00:00
rkingdon 647da475de A few new strings for Version 2004111000. 2004-11-12 17:26:49 +00:00
rkingdon 8611f03a6d New help file; minor changes 2004-11-12 17:24:56 +00:00
koenr 4ef4a5664b take 2: Albanian language pack 2004-11-12 17:09:51 +00:00
koenr ac599dc1f4 filling in missing strings... 2004-11-11 21:55:45 +00:00
koenr 02591a8eb5 adjusments for security and releasedate 2004-11-11 19:43:21 +00:00
bobopinna 085778e23b Patched a nav.event data model problem 2004-11-11 14:25:59 +00:00
moodler 7c6c30ed2b Changes for XHTML and accessibility compliance 2004-11-11 12:07:08 +00:00
koenr 44e7949db4 correction for =signup.php error see discussion http://moodle.org/mod/forum/discuss.php?d=14952#71422 2004-11-11 09:47:55 +00:00
bobopinna fda8674060 New version by Luca Arese 2004-11-11 08:21:22 +00:00
bobopinna 81e4e4ca4d New version by Luca Arese 2004-11-11 08:10:46 +00:00
moodler f20ff20449 Merged fix from STABLE to hide hidden teachers in a course with separate groups 2004-11-11 08:10:01 +00:00
moodler ab00ea8ccf Merged changes from STABLE 2004-11-11 07:57:52 +00:00
moodler 7054372371 More secure use of parameters, merged from stable 2004-11-11 07:45:27 +00:00
moodler 6aac6eef8c Access fixes, merged from stable 2004-11-11 07:44:14 +00:00
moodler 6a6002f68c Merged changes from stable 2004-11-11 07:42:04 +00:00
carlesbellver 72d785325c *** empty log message *** 2004-11-11 07:30:00 +00:00
carlesbellver 5fe2230a80 *** empty log message *** 2004-11-11 07:22:59 +00:00
moodler 999b098992 Upgraded release notes 2004-11-11 07:06:21 +00:00
moodler 5977cfa376 Merged from stable 2004-11-11 07:03:53 +00:00
moodler ec11cd9c66 Merged payment fix from stable 2004-11-11 06:51:53 +00:00
moodler 9957501099 Merged fix to allow teacher to always take quiz 2004-11-11 02:22:08 +00:00
koenr 0bdc5ea568 changing thislanguage to NCR so it displays properly in the languagelist of utf-8 languages
Correcting the corrected correction ;-)
2004-11-10 22:18:11 +00:00
dhawes e0134f842c added comments and some spacing cleanup 2004-11-10 16:43:57 +00:00
moodler 6f61241cfb Merged fixes from stable 2004-11-10 15:48:48 +00:00
paca70 a35bbc99c9 Updates/fixes from Mio Taalas. 2004-11-10 14:22:32 +00:00
moodler 27d394caf9 Merged removed notice from stable 2004-11-10 14:19:40 +00:00
mits c9d3762590 Fixed a variable that had been accidentally lowercased ($CFG) 2004-11-10 14:11:56 +00:00
moodler 44f42b55c4 Fix lowercased variable 2004-11-10 14:07:48 +00:00
moodler e200a26ec0 Merged robustness check from stable 2004-11-10 14:06:20 +00:00
carlesbellver ae5e0d24ad *** empty log message *** 2004-11-10 13:32:54 +00:00
moodler 8f88f8c7d9 Adding Arabic updates 2004-11-10 12:01:35 +00:00
paca70 d55896efab Come corrections from Mio Taalas. Thanks. 2004-11-10 09:50:46 +00:00
mits ec90d36631 translated some. 2004-11-10 03:12:52 +00:00
moodler f37e86cc73 Bumping up the number. Main reason is that I'm testing CVS mail 2004-11-10 02:22:30 +00:00
stronk7 ae06e00e75 Old-awaiting for 1.4.2 release changes in the glossary.
Now, print view is different for each format (consistent with it).
New, custom formats can, optionally, define their print view. Else
the default one will be used.
With this, 1.4.x glossary developments are finished and we can start
solving some pending things in 1.5...

Merged from MOODLE_14_STABLE
2004-11-09 23:23:04 +00:00
mjollnir_ 36c2c0efee glossary attachments fix to allow optional file upload 2004-11-09 21:02:39 +00:00
mits a35f1e65a8 polished. 2004-11-09 16:43:44 +00:00
carlesbellver 3db1e847c0 *** empty log message *** 2004-11-09 12:48:57 +00:00
defacer f032aa7a5f MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.
2004-11-08 19:36:07 +00:00
paca70 dea3ce5b03 Added missing string for ldap_opt_deref 2004-11-08 19:34:43 +00:00
defacer 4362b39978 Latest changes for the blocks/pages features.
NOTE TO TRANSLATORS: Please do not be quick to translate this. It may still change.
2004-11-08 19:21:23 +00:00
defacer 681ad23b3d Bugfix: The table prefix_block in blocks/db/postgres7.sql was incorrectly constructed as prefix_block.
Thanks to Penny Leach for pointing it out.
2004-11-08 19:18:19 +00:00
paca70 8021cc54c1 Allow config how aliases are derefered. 2004-11-08 18:13:00 +00:00
moodler 624dc86a4d Very early version of Shibboleth plugin, looking for feedback 2004-11-08 15:08:19 +00:00
bobopinna 1bb6ad15cf Translated by Luca Arese 2004-11-08 13:34:20 +00:00
paca70 52192a5ce7 Prevent error messages when username is not member of group 2004-11-08 10:55:57 +00:00
carlesbellver c86939ee32 *** empty log message *** 2004-11-08 09:46:30 +00:00
mjollnir_ cfd146aefa Wiki integration with upload class.
Changes in two upload forms and in moodle_binary_store.php - moodle_binary_store_file

These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-363
    Penny Leach <penny@catalyst.net.nz>
    wiki integration with upload class.
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-364
    Penny Leach <penny@catalyst.net.nz>
    fixed lost submit button from last wiki upload patch, also fixed bug related to generating db id for attached files

Full logs:

Revision: moodle--eduforge--1.3.3--patch-363
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Nov  8 11:18:08 NZDT 2004
Standard-date: 2004-11-07 22:18:08 GMT
Modified-files: mod/wiki/ewiki/ewiki.php
    mod/wiki/ewiki/plugins/moodle/downloads.php
    mod/wiki/ewiki/plugins/moodle/moodle_binary_store.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-363
Summary: wiki integration with upload class.
Keywords:


Revision: moodle--eduforge--1.3.3--patch-364
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Nov  8 16:01:29 NZDT 2004
Standard-date: 2004-11-08 03:01:29 GMT
Modified-files: mod/wiki/ewiki/plugins/moodle/downloads.php
    mod/wiki/ewiki/plugins/moodle/moodle_binary_store.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-364
Summary: fixed lost submit button from last wiki upload patch, also fixed bug related to generating db id for attached files
Keywords:
2004-11-08 05:32:18 +00:00
mits ff61707012 translated some. 2004-11-08 05:29:50 +00:00
mjollnir_ f7f36ce260 few wayward typos breaking postgres workshop install 2004-11-08 05:26:27 +00:00
stronk7 71c235bca4 New release of the multilang filter:
- 100% compatible with previous "Multilang" filter.
    - Supports a new "short" syntax to make things easier. Simply use:
        <lang lang="XX">
    - It needs less resources and executes faster.
    - It Allows any type of content to be used. No restrictions at all!

Merged from MOODLE_14_STABLE
2004-11-07 17:11:57 +00:00
moodler 9cc9b7c169 Merged mailout fix from STABLE 2004-11-07 15:27:19 +00:00
martignoni 7b0e3827ac Update to last mods 2004-11-07 11:47:27 +00:00
barias 85c55f0369 Latest spanish translation. 2004-11-07 11:34:05 +00:00
paca70 a4a6012517 Updates 2004-11-07 09:33:28 +00:00
paca70 63fa3f8014 If selected news count is zero, dont print forum headers. 2004-11-07 09:12:45 +00:00
mudrd8mz acb23f9e45 First quick update for 1.4.2. Some files still incomplete 2004-11-06 22:45:48 +00:00
koenr 3ff96b2865 changing thislanguage to NCR so it displays properly in the languagelist of utf-8 languages
Very strange: displays correctly in firefox and not in IE :-(
2004-11-06 00:41:54 +00:00
koenr d1ba78c701 changing thislanguage to NCR so it displays properly in the languagelist of utf-8 languages 2004-11-06 00:37:08 +00:00
koenr fec5e3601e changing thislanguage to NCR so it displays properly in the languagelist of utf-8 languages 2004-11-06 00:30:13 +00:00
koenr 7f57bd8358 changing thislanguage to NCR so it displays properly in the languagelist 2004-11-05 23:18:15 +00:00
koenr 6bcaedefdd The Kannada Translation in UTF-8.
Thanks to Hari Prasad Nadig [hpnadig@gmail.com] and his team
2004-11-05 18:40:59 +00:00
scop22 93996ffeab New language strings added in several files, especially in workshop.php 2004-11-05 12:52:42 +00:00
stronk7 90ee39c0e3 Updated to 1.4.2 release 2004-11-05 08:20:55 +00:00
moodler 2038a163d8 Merged sesskey fix from stable 2004-11-05 06:29:48 +00:00
moodler 29a84fcb6a Fix blockname string 2004-11-05 06:29:18 +00:00
barias 77ce9a69ff Minor changes in spanish translation 2004-11-04 22:07:19 +00:00
barias a43c1fbee3 Minor changes in spanish translation 2004-11-04 18:22:41 +00:00
moodler 80711843ef Copied from stable 2004-11-04 16:58:30 +00:00
moodler 379c6084bd Added sesskey to some buttons 2004-11-04 16:58:00 +00:00
skodak a7668713dd merged from MOODLE_14_STABLE:
initialized $image and moved filemtime after file_exists
2004-11-04 09:34:27 +00:00
moodler 2a488ba553 Some XHTML compatibility changes 2004-11-04 09:24:51 +00:00
moodler df5da3fc88 Fixed missing prefix 2004-11-04 08:55:19 +00:00
moodler c1177e371f Fixed a comment without // at the start in block restoring 2004-11-04 08:12:33 +00:00
skodak 650874544b merged from MOODLE_14_STABLE: initialized variables - the same as algebra/pix.php 2004-11-04 08:00:39 +00:00
moodler 56c178a754 Merged search trim from stable 2004-11-04 07:15:50 +00:00
moodler 81b7339acf Merged change from stable 2004-11-04 07:06:28 +00:00
mits 8bdbbd987c translated some. 2004-11-04 07:00:44 +00:00
moodler 9b74055f4b Merged pathinfo fix from stable 2004-11-04 07:00:12 +00:00
stronk7 0a23fdb759 Now courses are deleted from backup_courses when they have been
deleted from Moodle. See:
http://moodle.org/mod/forum/discuss.php?d=13633

Merged from MOODLE_14_STABLE
2004-11-04 00:10:33 +00:00
carlesbellver ed3d2f482d *** empty log message *** 2004-11-03 11:48:09 +00:00
moodler d491049d2e Merged from stable 2004-11-03 02:02:15 +00:00
moodler 5938401cff Updated Resource, Wiki and Scorm to use the new files/index.php to
choose files.   The old coursefiles.php is obsolete.
2004-11-02 12:53:32 +00:00
moodler 8e73aa9705 Copied from STABLE 2004-11-02 12:45:04 +00:00
martignoni c484958bc2 Blocks are now saved to and restored from course backups! 2004-11-02 10:54:40 +00:00
villate 44b6575136 Initial translation for new modules 2004-11-02 09:55:24 +00:00
villate 7b1ed85666 More translations contributed by moodle-pt community 2004-11-02 09:18:09 +00:00
paca70 5b9ce58cdc Corrected typo in mysql.sql
Added support for postgresql.
BTW is it posible to use table_column() function also with mysql, that would make
mysql-code easily portable to other database-files.
2004-11-02 08:51:24 +00:00
mits 43004050cc translated some. 2004-11-02 03:45:50 +00:00
michaelpenne f4a246d2a5 help file for modattempts option in lesson settings. Empty at the moment though 2004-11-01 20:50:54 +00:00
stronk7 4070cddfb2 Bug 2140 solved partially. Now categories are
deleted properly.

Delete of orphan categories will be done later...

Merged from MOODLE_14_STABLE
2004-11-01 20:50:03 +00:00
michaelpenne 983e7d0e2a added new lang entries for lesson module 2004-11-01 20:48:51 +00:00
michaelpenne 9390ae0017 added fields: useranswer field in lesson_attempts, and added modattempts to lesson and lesson_default tables, and removed essay table creation 2004-11-01 20:47:08 +00:00
michaelpenne 8f4c2d41e4 added alter table commands to insert useranswer field in lesson_attempts, and added modattempts to lesson and lesson_default tables 2004-11-01 20:44:06 +00:00
michaelpenne 2e75518667 added a link to report, changed conditions for displaying essay link, modified the essay functions to reflect the new view of an essay question, and updated view.php to work with modattempts option 2004-11-01 20:41:55 +00:00
michaelpenne eb73cd47e0 moved output from inside this file, to lesson.php and view.php. Also now uses lang file. 2004-11-01 20:39:30 +00:00
michaelpenne f50e2abc74 can restore the new backup code now 2004-11-01 20:37:16 +00:00
michaelpenne 37eeba778f report displays statistics regarding users attempts for a particular lesson. If a student has attempted a lesson, a link will appear when you edit the lesson to view statistics. This feature works best with the newest version of lesson because lesson now retains more information regarding how the user answered a given question. Old lesson attempts will not display correctly. 2004-11-01 20:35:45 +00:00
michaelpenne d01e2b0ba2 added a new setting which is modattempts 2004-11-01 20:27:28 +00:00
michaelpenne 9959aab238 on line #277, return null instead of throwing an error 2004-11-01 20:25:42 +00:00
michaelpenne ecb00e05e2 increased the lesson version number 2004-11-01 20:21:21 +00:00
michaelpenne b986908256 changed lesson_calculate_ongoing_score function and added some comments 2004-11-01 20:18:26 +00:00
michaelpenne db22702089 endofcluster pages are not displayed anymore, shortanswer wrong answers are interpreted correctly, added user answer tracking to attempts so it can be used later by report.php, essays are no longer insterted into an essay table... now kept in the useranswer field in attempts, fixed a problem with grading numerical questions, modified to work with modattempts option, fixed a problem with grading matching questions and fixed addpage so that it displays multichoice with the multianswer option 2004-11-01 20:15:11 +00:00
michaelpenne 493c24e5a8 backup now actually backs up. Includes all of our database changes 2004-11-01 19:53:06 +00:00
moodler 9814a0eda6 Merged $parent initialisation from stable 2004-11-01 12:49:04 +00:00
paca70 1b2a38043b Theres no enums in postgresql 7.x. Fix for this. 2004-10-31 14:36:35 +00:00
mits 4275bed49b translated some and new pre-translated file added. 2004-10-31 04:59:37 +00:00
moodler d4eec24384 Merged fix from stable 2004-10-31 04:10:37 +00:00
gustav_delius cdef00de3e Merged from STABLE. Fixed a bug that allowed teachers to upload images of arbitrary size 2004-10-30 22:51:12 +00:00
mits dad9bb654e translated some. 2004-10-30 00:57:08 +00:00
defacer a94329a8ed Fix for bug #2004 (Bug of the Year! :D):
Events in each day are now displayed ordered by starting time, and not by
eventid as before. Thanks to Gustav for pointing this out!
2004-10-29 17:21:19 +00:00
defacer 21fca825f2 Merging Martin's removal of the <style> allowed tag to HEAD. I tagged the
other version as MERGED, too.
2004-10-29 17:17:57 +00:00
defacer 3ecf46a193 Blocks are now saved to and restored from course backups!
Backward compatibility is maintained, i.e. you can restore ANY version
backups without problems in 1.5. When "adding backup data to an existing
course", no blocks are added. I 'm not sure what the correct behavior
would be in this case.

When restoring a backup from Moodle <= 1.2, the new course SHOULD be given
default blocks when it is restored. I have not actually tested this, my
tests were with version 1.3 and 1.4 backup format.
2004-10-29 17:07:11 +00:00
defacer 89a5baaba1 Major cleanups (removed things no longer used by the new backup).
Microsoft must surely be jealous (do more with less).

Fixed a bug: if somehow the block weights in a page become discontinuous,
moving things up and down will slowly improve the situation until it's back
to normal again. It would just fail without notice before.

Fixed a bug: you could add multiple instances from a block that didn't
allow it if, after adding the first, you just hit Refresh in your browser.

Fixed a typo: missing / inside filepath
2004-10-29 16:56:59 +00:00
mits a2f9d32338 polished. 2004-10-29 12:51:13 +00:00
moodler 325505f4ed XHTML changes and general tidy up 2004-10-29 06:50:52 +00:00
mits 54f4aacac5 polished, translated some. 2004-10-28 23:56:23 +00:00
paca70 a29a33a820 Updates from Anne Ranne, Thanks. 2004-10-28 14:30:42 +00:00
skodak ccfdf3f2cf merged from 14_STABLE -
removed incorrect global $USER
2004-10-28 14:18:33 +00:00
scop22 ee2b4f1220 Add many new files to the Korean language pack; all encoded in euc-kr 2004-10-28 13:51:57 +00:00
scop22 3293a5c000 Major update of existing files in Korean Language Pack; all fully encoded in euc-kr 2004-10-28 13:06:31 +00:00
paca70 585c23419d Some more code to support password expiration 2004-10-28 11:40:55 +00:00
dhawes c7e3bc51e2 spacing updates and addition of some phpdoc comments 2004-10-28 01:26:33 +00:00
mits 746e476fbb polished. 2004-10-28 01:16:27 +00:00
dhawes d041e44fb1 spacing, tab and quote cleanup 2004-10-28 00:10:29 +00:00
mits c87f970c5c polished and new translated files added. 2004-10-27 18:48:48 +00:00
bobopinna 3784ee8daf Translate by Luca Arese 2004-10-27 13:42:59 +00:00
bobopinna 97609de627 Traslated by Claudio Maggi 2004-10-27 07:14:03 +00:00
moodler c6c558d785 Merged in changes for lastaccess on site level from stable 2004-10-27 06:01:20 +00:00
skodak 453c406e31 merged from 14_STABLE -
updated htmleditor invocation (from files/index.php)
2004-10-26 19:57:18 +00:00
gustav_delius 2f3b54ae54 Put back call to forum_add_student in enrol_student() that Martin took out by mistake in revision 1.355 2004-10-26 19:53:48 +00:00
skodak 4b5865662d xhtml compliance $id and $wdir not quoted in forms 2004-10-26 19:44:55 +00:00
skodak 23eb1cc518 merged from 14_STABLE -
changes:
* sesskey;
* only editing teachers can use it;
* time modified - used filemtime (consistency with files/index.php, better for Win32);
* directory sizes shown;
* removed unused "torte" action;
* updated breadcrums (active folder not linked and &raquo;);
* updated comments;
* some other fixes from files/index.php.

Please test, test, test.
2004-10-26 19:25:53 +00:00
bobopinna 083eccc26b updated to 1.5devel 2004-10-26 16:08:55 +00:00
mits 7e25324530 polished. 2004-10-26 14:37:08 +00:00
mits c017eb4883 polished. 2004-10-26 14:33:54 +00:00
mits 924d9eff11 polished. 2004-10-26 14:32:05 +00:00
mits abfc3b56e9 polished. 2004-10-26 13:08:33 +00:00
moodler 52159a0df4 More changes for XHTML compatibility 2004-10-26 09:28:54 +00:00
moodler 20b57d6aac Fixed minor JS bug in printing out editor configuration 2004-10-26 08:43:41 +00:00
moodler e61d4b39a0 Merged fix from stable 2004-10-26 07:42:33 +00:00
moodler 2a003a903c Changes in the way optgroups are handled for XHTML compatibility 2004-10-26 07:42:08 +00:00
mits c266b97d96 polished and translated some. 2004-10-26 00:12:58 +00:00
barias bc31537f6a Latest upgrades 2004-10-25 23:16:28 +00:00
moodler ccc62c6e42 Fixed typo ... bug 2124 2004-10-25 15:25:58 +00:00
dhawes 6195e04a9d clarified comments and added some spacing. 2004-10-25 03:30:48 +00:00
dhawes a9c75a9caf fix to allow instance configuration for blocks that allow multiple but have been set by the local admin to only display one instance per page 2004-10-25 03:20:02 +00:00
dhawes 43038ce6d7 added comment for new specialization function 2004-10-25 00:09:47 +00:00
stronk7 e101802eb5 Added sesskey to more actions + bug fix when detecting directory traversals.
From skodak!

Merged from MOODLE_14_STABLE
2004-10-24 23:57:25 +00:00
dhawes 59b2920778 added spacing 2004-10-24 21:49:58 +00:00
skodak 763692fd55 merged from 14_STABLE - fixed warning in Activity report/Outline - oops, wrong line 2004-10-24 21:08:06 +00:00
jpuntd e633cfff62 *** empty log message *** 2004-10-24 20:09:05 +00:00
dovix e7f8bf2b71 new Hebrew translation 2004-10-24 18:13:46 +00:00
dovix 0f5e65351a updated Hebrew translations 2004-10-24 18:08:27 +00:00
mits df6db1b3e9 change for XHTML compliant mentioned on http://moodle.org/mod/forum/discuss.php?d=13418 2004-10-24 16:20:46 +00:00
dhawes e1b8bdf8e3 some spacing added 2004-10-24 15:52:25 +00:00
dhawes 27ec21a0f6 some quote cleanup and some spacing added 2004-10-24 15:51:25 +00:00
mits f916307f5c polished. 2004-10-24 12:30:40 +00:00
stronk7 2515cd169b Now everything in files/index.php is using sesskey.
Patch submmited by skodak.

Merged from MOODLE_14_STABLE
2004-10-24 00:26:00 +00:00
koenr f5dfc06ddf missing strings 2004-10-23 22:18:38 +00:00
koenr b43877928e Changed send pasword button 2004-10-23 22:09:35 +00:00
skodak 5c05d23b4b merged from 14_STABLE - fixed warning in Activity report/Outline 2004-10-23 19:21:30 +00:00
skodak b56681b0a3 typo during xhtml update 2004-10-22 20:17:01 +00:00
mits ba7c042761 polished. 2004-10-22 17:11:00 +00:00
mits f7b45dfbc0 translated some. 2004-10-22 17:09:30 +00:00
paca70 67db6177de Some fixes for postgresql 2004-10-22 17:03:37 +00:00
paca70 f3133619f0 Upgrades for protgresql. 2004-10-22 14:56:49 +00:00
paca70 4c20cd82f2 Fixed some "not defined" messages 2004-10-22 13:46:28 +00:00
paca70 d08ffdd36d That virtualscales issue is hopefully fixed now. 2004-10-22 13:25:10 +00:00
paca70 90c6ded264 Lib.php postgresql compatibly fix
graph.php $virtualscales was used uninitilized, fixed.
2004-10-22 13:20:35 +00:00
paca70 40869b2ead Prevent errors if lang/$lang/moodle.lib does not exists 2004-10-22 11:14:42 +00:00
paca70 774c4d2bc3 Use dirroot to check admin directory 2004-10-22 10:17:25 +00:00
paca70 2df3a7219d Check if url-based fopen() is enebled before trying to use it. 2004-10-22 10:15:56 +00:00
paca70 359ee5c5b3 Updates 2004-10-22 09:46:59 +00:00
moodler d526e68ee7 XHTML and accessibility compliance 2004-10-22 07:45:58 +00:00
dhawes 4bab5275b2 some string quote and spacing cleanup 2004-10-22 02:33:18 +00:00
koenr d0806f4cef forgot to check in 2004-10-21 18:35:35 +00:00
moodler 062369857b Merged bug 2114 fix from STABLE 2004-10-21 15:50:58 +00:00
paca70 c1872e32a8 Updates 2004-10-21 11:18:11 +00:00
paca70 6cd150cbb9 Updates 2004-10-21 10:26:59 +00:00
stronk7 60bd11cfc9 Solved one annoying bug where label texts in sections != first
was being always cleared, preventing some tags to be there!

Merged from MOODLE_14_STABLE
2004-10-20 23:26:49 +00:00
mits bf766aed81 polished and new translated file added. 2004-10-20 21:41:02 +00:00
paca70 c72931cb35 Updates from Marianna Leikomaa, thanks again. 2004-10-20 10:08:28 +00:00
paca70 c6d3883634 Updates 2004-10-20 10:02:51 +00:00
martignoni 1917c50b8c XHTML compatibility 2004-10-20 10:01:12 +00:00
martignoni 55506815eb Strings for new blocks implementation 2004-10-20 09:56:16 +00:00
martignoni 6c3376ef16 Strings for the new blocks implementation 2004-10-20 09:47:00 +00:00
mits 9d84836c61 translated new strings. 2004-10-19 22:15:49 +00:00
defacer 9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
moodler 2defdcd7d5 Changes for XHTML and accessibility compliance 2004-10-19 10:34:02 +00:00
moodler 66f99e7240 Some XHTML changes 2004-10-19 10:33:06 +00:00
moodler 492dc7b9c6 Some changes for XHTML and accessibility compliance 2004-10-19 09:37:01 +00:00
moodler 4ac2157453 Changes for XHTML and accessibility compliance 2004-10-19 09:19:48 +00:00
moodler 43beba82e1 XHTML and accessibility compatibility 2004-10-19 07:09:09 +00:00
moodler 5c48d24437 More changes for XHTML compatibility.
Remove some left over test code.
2004-10-19 06:40:47 +00:00
mits 7ff4d9baac translated some. 2004-10-18 18:58:29 +00:00
paca70 e0f5a5be1d Allow auth_ldap_connect() to take binddn ja bindpwd
CVS: ----------------------------------------------------------------------
2004-10-18 16:33:25 +00:00
moodler 169fc66a15 Merged small speed improvements from STABLE 2004-10-18 06:00:26 +00:00
stronk7 76e2bc3b77 Strip control chars when unzipping.
Merged from MOODLE_14_STABLE
2004-10-17 23:44:16 +00:00
stronk7 0085c88953 Now Wiki's FileManager is using central zip & unzip functions.
Merged from MOODLE_14_STABLE
2004-10-17 23:16:17 +00:00
stronk7 261dac37a6 Now Editor's FileManager is using central zip and unzip functions.
NOTE: What is the courseimages.php file, I haven't tested it because
I didn't find how to do it!

Merged from MOODLE_14_STABLE
2004-10-17 23:11:14 +00:00
stronk7 664ae635d5 Now Scorm's FileManager is using central zip and unzip functions.
Merged from MOODLE_14_STABLE
2004-10-17 22:49:51 +00:00
stronk7 a095707760 Small change in condition...
Merged from MOODLE_14_STABLE
2004-10-17 22:36:03 +00:00
koenr 53806d4683 added alt content 2004-10-17 22:29:05 +00:00
stronk7 1c1520c5bb Included some filename transformations to work like info-zip.
Directory traversal protection added.

Working under Win32, MacOS X and BSD (and rest of Unix, I hope).

Patch file from Petr. Thanks!

Merger from MOODLE_14_STABLE
2004-10-17 22:28:53 +00:00
stronk7 4f9b2efd50 Now resource's FileManager is using central zip & unzip functions.
Merged from MOODLE_14_STABLE
2004-10-17 19:36:27 +00:00
paca70 e472709ddd Usersync is almost working now. Only unescaped dots etc.. can broke
database updates.
2004-10-17 18:04:26 +00:00
rkingdon 6a1bdf48df The first and second assessments of each submission are now "graded" by
the workshop cron function. They are given the maximum grading grade.
2004-10-17 16:35:32 +00:00
rkingdon b14f1130a3 Non-editing teacher not allowed to change the phase of a Exercise nor
delete the teacher's submission(s).
2004-10-17 16:00:54 +00:00
rkingdon eb407d969f Non-editing teachers not allowed to change wthe workshop phase nor delete
teacher submissions.
2004-10-17 15:53:19 +00:00
koenr 072dcd8cb4 added alt content 2004-10-17 15:22:04 +00:00
stronk7 e941292002 Now pclzip generated files are compatible with info-zip
(linux, macos x, win32, bsd...) based extractors. This
include command-line flavours, stuffit and so on...

Thanks to Petr!!

We have to remember to apply this patch when we update the
pclzip in th future (if their authors don't include it).

Merged from MOODLE_14_STABLE
2004-10-17 13:36:13 +00:00
moodler 193ba8e7c4 Enlarge answer field to TEXT (see http://moodle.org/mod/forum/discuss.php?d=10333) 2004-10-17 04:08:32 +00:00
martignoni 5df6740bd3 Towards XHTML conformity 2004-10-16 20:10:17 +00:00
martignoni 34f3855e9d Towards XHTML comformity (almost done!) 2004-10-16 19:30:56 +00:00
stronk7 d752a8691f ZIP_METHOD included in backup for future tests at restore time. 2004-10-16 17:49:14 +00:00
stronk7 05f1bd8bca Not mandatory but I prefer to initialise it.
Merged from MOODLE_14_STABLE
2004-10-16 17:38:12 +00:00
stronk7 17841181b6 Now backup and restore are using central zip & unzip functions.
Merged from MOODLE_14_STABLE
2004-10-16 17:34:56 +00:00
moodler 0e919226b1 Merged from stable 2004-10-16 17:30:51 +00:00
stronk7 8d67a044b7 Added the optional showstatus parameter to unzip_file() to avoid
sending any output if desired.

Merged from MOODLE_14_STABLE
2004-10-16 16:33:40 +00:00
papita bcf5accdba minor changes 2004-10-16 16:19:06 +00:00
stronk7 40385a0219 Syncronished with 14_STABLE. Bump to 1.4.2. 2004-10-16 16:11:18 +00:00
koenr e299a6d45e added some guidelines for administrators 2004-10-16 14:41:15 +00:00
koenr b29eca2ee0 new file added 2004-10-16 14:28:07 +00:00
koenr 8f0b070247 new file 2004-10-16 14:26:31 +00:00
koenr af854162eb xhtml-compliance should be ok 2004-10-16 14:00:41 +00:00
koenr a12eab3035 xhtml-compliance should be ok 2004-10-16 13:38:18 +00:00
stronk7 7e6b7f8da2 Latest patches from skodak included in param functions.
Simple and double quotes are out now.
Full paths in unzip are now hidden too.

Please test it. It could have some pending changes yet!

And please, don't forget to move the floating tag in STABLE
when changes are done there!! It causes a lot of problems
when trying to merge later from STABLE to HEAD again.

Merged from MOODLE_14_STABLE.
2004-10-16 11:39:52 +00:00
koenr e57dbb89e5 several updates by Dovix (dovix2003@yahoo.com) 2004-10-16 11:35:48 +00:00
julmis 9597bf1d88 Cleaning xhtml code. 2004-10-16 09:19:34 +00:00
julmis 955dbfaeef Adding hide buttons feature. 2004-10-16 09:11:00 +00:00
mits f090961e90 polished and a new pre-translated file added. 2004-10-16 06:36:48 +00:00
papita ea8480921f updates by paula 2004-10-15 18:14:19 +00:00
moodler 3981ecbeaf More XHTML fixes 2004-10-15 12:23:43 +00:00
koenr 73a1105ba1 new file 2004-10-15 10:49:49 +00:00
moodler 08684ee95c Merged PHP5 fix for bug 2073 from STABLE 2004-10-15 09:54:04 +00:00
moodler 97bcc61f03 Changes for XHTML compatibility 2004-10-15 08:48:28 +00:00
moodler 53f39b328c Merged prettier error from stable 2004-10-15 08:47:12 +00:00
moodler 6eee2203bc Minor change for XHTML compatibility 2004-10-15 08:31:16 +00:00
moodler 86d7efc345 Changes for XHTML and accessibility compliance 2004-10-15 08:30:30 +00:00
paca70 986feea0b8 Sync is almost working now... 2004-10-15 07:24:10 +00:00
koenr 3c35ff7da9 new file 2004-10-14 22:17:22 +00:00
mits bd0a343020 removed thischarset,thisdirection,thislanguage to avoid these words are displayed. 2004-10-14 21:51:27 +00:00
mits b130fae76b translated some. 2004-10-14 20:38:13 +00:00
paca70 6c7f68c73d Firstsync seems to work, but basic sync is broken right now.
I'll return to this in two days.
2004-10-14 11:31:53 +00:00
paca70 3d449701d0 More updates... auth_sync_users will work dome day.... 2004-10-14 10:43:59 +00:00
paca70 b7af1ee832 Checked in some work with user syncronization 2004-10-14 10:03:38 +00:00
paca70 d0e2f755ea Some updates to sync code 2004-10-14 05:06:35 +00:00
koenr 93f999fa1a xhtml-compliance should be ok 2004-10-13 21:34:34 +00:00
koenr 17a28ea99a polishing, modifications and xhtml compliance, all at once 2004-10-13 21:29:41 +00:00
koenr b0760534b0 new file 2004-10-13 19:05:34 +00:00
koenr 6e507c4418 xhtml-compliance should be ok 2004-10-13 19:04:21 +00:00
mits 688abdb6ff all quiz module related translation done. 2004-10-13 16:57:07 +00:00
koenr 9b1063e2eb new file, xhtml compliant 2004-10-13 14:03:42 +00:00
koenr a380766ba9 xhtml-compliance should be ok 2004-10-13 13:52:42 +00:00
paca70 fb9206ca09 Started rewrite of auth_sync_users 2004-10-13 12:23:20 +00:00
koenr c457ed085d xhtml-compliance should be ok 2004-10-13 11:57:58 +00:00
paca70 f894a7914a auth_iscreator return now three posible values:
null = not supported (Dont change user status)
false =  user not creator
true = user is creator
2004-10-13 07:16:24 +00:00
paca70 911aba7dd8 Return null in case creators are not defined 2004-10-13 06:50:13 +00:00
koenr 3f6bc1f2af typo 2004-10-12 23:05:58 +00:00
rkingdon 1c1df31ca0 On the Workshops submissions with no assessments are flagged as such rather than given a zero grade. 2004-10-12 19:38:57 +00:00
skodak bfce67a179 merged from 14_STABLE, the merging is getting a bit messy :-O
added sesskey to update_module_button(), error reported in moodle forum d=13835;
I made a quick fix - it seemed critical to me
2004-10-12 18:47:39 +00:00
anvergara f8fb6ea230 Added to es lang 2004-10-12 17:45:30 +00:00
mits 0eccd43625 translated some. 2004-10-12 13:16:40 +00:00
jpuntd fc9c255cb8 removed 2004-10-11 18:15:10 +00:00
mits 66a00a00f7 translated some. 2004-10-11 07:22:51 +00:00
koenr 3e016f144c polishing translatione and working towards XHTML-compliance 2004-10-11 06:12:40 +00:00
stronk7 76dc1ad2cf Under Win32, we need backslashes in paths. Now it works!!
Merged from MOODLE_14_STABLE
2004-10-10 23:25:57 +00:00
stronk7 6cf2fe0336 Added some needed strings.
Merged from MOODLE_14_STABLE
2004-10-10 22:48:59 +00:00
stronk7 ae9f68625e Deleted some unsused strings.
Merged from MOODLE_14_STABLE
2004-10-10 22:46:57 +00:00
stronk7 48eeac7963 Delete some debug info.
Merged from MOODLE_14_STABLE
2004-10-10 22:00:30 +00:00
stronk7 343fc72785 Now this script is using the new, central unzip_file() function.
TEST, TEST!!!

Merged from MOODLE_14_STABLE
2004-10-10 21:58:43 +00:00
stronk7 b3020784d6 Central unzip_file() function included:
- Supports both internal and external zip execution.
    - Displays the results of the execution.
    - All Petr's patched added.
    - External zip execution in Win32 supported.
Please TEST, TEST, TEST.

Merged from MOODLE_14_STABLE
2004-10-10 21:46:13 +00:00
skodak 00548bfacf small fix for previous merge - I hope the last one :-( 2004-10-10 20:42:11 +00:00
skodak de87c32835 one more cleaned - merged form 14_STABLE 2004-10-10 20:37:58 +00:00
skodak d3b65a9bf5 fixed line endings broken by my WinMerge 2004-10-10 20:32:51 +00:00
stronk7 e1f84e70da Order logs by creation order (id)
Merged from MOODLE_14_STABLE
2004-10-10 18:48:03 +00:00
skodak 59e2d6aa5f merged from 14_STABLE - cleaned text from forms 2004-10-10 17:37:48 +00:00
paca70 260500db78 Files for postgresql 2004-10-10 16:10:48 +00:00
paca70 e542033a19 Added selective user disable, activate and creation. 2004-10-10 07:54:42 +00:00
paca70 bbdba907e5 Updates 2004-10-10 07:30:36 +00:00
paca70 e09ecb0604 Allow password changes with standard password change dialog if
$CFG->{'auth_'.$USER->auth.'_stdchangepassword'} is true.
2004-10-10 06:26:29 +00:00
jpuntd f9aa73d1b9 fixed some typos 2004-10-10 03:55:58 +00:00
stronk7 1a11dfd14a iNow FileManager is using the new, central zip_files() function.
Only tested under MacOS X. It should support all the new
features of that function (Win32 external zip, imporved security...).

TODO: Create the unzip_file() function and use it here too!!
      Apply this changes to the rest of filemanagers (coursefiles.php...)
      TEST, TEST, TEST...!!

Merged from MOODLE_14_STABLE
2004-10-10 01:20:59 +00:00
stronk7 ef1e97c7ec Now the zip_files() function is working better:
- More checks are done
- Non existing files are out
- Both internal an external are supported and protected
- All Petr's patchs applied
- Included support to Win32 external zip.

TODO: Create a paralel unzip_file() function
      Use this functions in all the FileManager scripts

THOUGHT: External zip seems to work always adding files to
      zip file if it exists, where PclZip resets the file.
      Perhaps a rm (or delete) should be included in the
      command chain. Analyse it!!

Merged from MOODLE_14_STABLE
2004-10-10 01:07:47 +00:00
stronk7 26082098d9 Use of cleardoubleslashes() added to the backup and restore functions.
They will be changed to calls to new, central zip and unzip functions.
(coming soon)

Merged from MOODLE_14_STABLE
2004-10-09 23:19:53 +00:00
koenr a4f495e619 filling in missing strings 2004-10-09 22:54:24 +00:00
koenr 4145e17130 fixed a left to right related problem
see http://moodle.org/mod/forum/discuss.php?d=13668&parent=65906
Thank you dovix
2004-10-09 21:54:11 +00:00
koenr 002ea5204a NCR for thislanguage 2004-10-09 21:40:20 +00:00
koenr 891c7031f0 version 1.4 from Anders Berggren [andersbe@ikt-pedagogen.se] 2004-10-09 21:05:05 +00:00
koenr 5a4a62f745 First set for the Bulgarian language pack
Translated by Andrew Ivanov [red_eye@abv.bg]
2004-10-09 20:32:42 +00:00
stronk7 5b224948aa course/view.php is using sesskey
(changes in blocks done, please check them)

Merged from MOODLE_14_STABLE
2004-10-09 20:16:05 +00:00
stronk7 967cd1164b course/unenrol.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 19:08:01 +00:00
stronk7 5bcfaece3d course/teacher.php is using sesskey.
(POST form too)

Merged from MOODLE_14_STABLE
2004-10-09 19:02:35 +00:00
stronk7 a60399f0fe course/student.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 18:51:12 +00:00
stronk7 92604dbcf8 course/scales.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 18:33:44 +00:00
mits 283fde50cf translated some. 2004-10-09 17:48:49 +00:00
stronk7 8b92f5bb7d course/mod.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 17:23:28 +00:00
stronk7 d99ceac20f course/index.php is using sesskey.
Merged form MOODLE_14_STABLE
2004-10-09 13:22:59 +00:00
stronk7 d84e70d049 course/groups.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 12:03:55 +00:00
stronk7 740c44428e course/group.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 11:47:36 +00:00
stronk7 bb207404e8 course/grades.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 11:37:48 +00:00
paca70 d9184e20cd Added changes from mysql.php 2004-10-09 06:33:50 +00:00
paca70 cfa56cffef Added missing , 2004-10-09 06:27:17 +00:00
rkingdon 54c014ebc7 New version which adds events and amends them in the event table. 2004-10-08 21:41:10 +00:00
mits 88f45a13e1 new translation file added. 2004-10-08 20:50:32 +00:00
mits d995e33f29 translated one string. 2004-10-08 20:29:07 +00:00
mits 9594aa32f4 added JAPANESE FONT INSTALL INSTRUCTION on /lang/ja_utf8/fonts 2004-10-08 20:01:53 +00:00
stronk7 676eb5e8df course/editsection.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-08 18:32:27 +00:00
stronk7 38c8de9591 course/edit.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-08 18:13:05 +00:00
stronk7 56fcb59a51 course/delete.php is using sesskey
Merged from MOODLE_14_STABLE
2004-10-08 17:58:38 +00:00
mits 6b22eb8785 polished. 2004-10-08 17:23:16 +00:00
stronk7 abf45bedf0 course/category.php is using sesskey
Merged from MOODLE_14_STABLE
2004-10-08 16:52:20 +00:00
moodler 78a5d54391 Bump the version since installation actually works now. :-) 2004-10-08 16:20:11 +00:00
moodler 6ac98433a7 Changes for XHTML compatibility 2004-10-08 14:43:35 +00:00
moodler 20277b1019 Changes for XHTML compatibility and accessibility.
Removed redundant <p> tags
2004-10-08 14:24:43 +00:00
moodler 7c9f6f4195 Tidied up some HTML 2004-10-08 14:06:02 +00:00
moodler d7d21c383c Minor changes for XHTML compatibility 2004-10-08 13:58:33 +00:00
moodler 3d90760aa2 Just added support for "site" format, for completeness. 2004-10-08 13:46:55 +00:00
moodler 195d7cf291 Site can now have proper blocks on an install 2004-10-08 13:46:06 +00:00
moodler bcb5605ee1 Minor change for XHTML compatibility 2004-10-08 13:39:46 +00:00
moodler bb9436edd1 Classes added for XHTML compatibility in main code 2004-10-08 13:35:36 +00:00
moodler de78568276 Changes for XHTML compatibility 2004-10-08 13:34:48 +00:00
moodler 5526e0fa64 Make sure the new admin user has the sessionIP set properly the first time 2004-10-08 13:16:34 +00:00
moodler 3f3a1b360f Main admin can never change their own authentication method from "manual" 2004-10-08 13:15:13 +00:00
martignoni 0c4e063d82 New string 'confirmsesskeybad' 2004-10-08 06:20:55 +00:00
moodler 3af575075c Merged new stuff from stable 2004-10-08 06:11:17 +00:00
moodler 6d8f47d64f Checked in something that hadn't been 2004-10-08 06:06:03 +00:00
moodler c7029edf84 Merged latest from stable 2004-10-08 05:41:52 +00:00
moodler df69f6485a Error message for sesskey 2004-10-08 03:59:56 +00:00
mits cc9f800cf9 polished. 2004-10-08 01:41:36 +00:00
ikawhero f13075f14f Fixed string error 2004-10-08 00:18:36 +00:00
mits d85ad43363 polished. 2004-10-08 00:15:15 +00:00
mits 65932627e4 added JAPANESE FONT INSTALL INSTRUCTION on /lang/ja/fonts 2004-10-07 23:55:02 +00:00
koenr 90f0b6e522 xhtml-compliance should be ok 2004-10-07 23:22:59 +00:00
mits a76d2f4070 polished. 2004-10-07 22:01:47 +00:00
koenr 668c1cd5b2 xhtml-compliance should be ok 2004-10-07 21:30:00 +00:00
mits d041803d9b polished. 2004-10-07 20:40:44 +00:00
koenr c22b112f03 xhtml-compliance should be ok 2004-10-07 20:09:25 +00:00
moodler 1d9dd1d2a1 Merged from stable 2004-10-07 15:22:47 +00:00
stronk7 ad4e0fcc30 New version of this. Merged from MOODLE_14_STABLE.
It won't work until moodlelib.php was merged!! Tons of conflicts!!
2004-10-07 14:18:43 +00:00
stronk7 230478bf5e PclZip library upgraded to 2.1 2004-10-07 14:10:03 +00:00
carlesbellver f5b84ca150 *** empty log message *** 2004-10-07 11:44:17 +00:00
mits 6a0f4e2f74 Thanks to everyone who have supported our translation project! 2004-10-07 11:35:15 +00:00
moodler fbc6c4295f Changes for XHTML compatibility 2004-10-07 11:24:31 +00:00
moodler 3479c82fab Style changes for XHTML compatibility 2004-10-07 11:23:30 +00:00
moodler 44ff1b8791 Changes for XHTML compatibility 2004-10-07 09:18:33 +00:00
moodler 1ddd15afbd Changes for XHTML compatibility 2004-10-07 08:46:30 +00:00
carlesbellver bb2ed58327 *** empty log message *** 2004-10-07 08:34:25 +00:00
moodler 657e7903b6 Some changes for XHTML compatibility 2004-10-07 08:08:56 +00:00
moodler c347053d5e Changes for XHTML compatibility 2004-10-07 07:25:19 +00:00
moodler 647213f731 Some changes for XHTML compatibility 2004-10-07 05:52:39 +00:00
mits b8c95952e0 polished and new translated file added. 2004-10-06 21:25:22 +00:00
adamtpaw 14f8056590 Translation of Moodle v1.4 .1 2004-10-06 21:18:19 +00:00
stronk7 1066e0dc62 Changed some conditions against the $USER variable
to work fine under PHP5.

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

Merged from MOODLE_14_STABLE
2004-10-06 16:52:24 +00:00
mits ed1da52b1b polished and new translated file added. 2004-10-06 14:51:59 +00:00
mits e63a4e9e90 polished. 2004-10-06 14:21:41 +00:00
mits 89556307f8 new translated files added. 2004-10-06 14:14:38 +00:00
paca70 a1afba4e8c Updates 2004-10-06 04:14:33 +00:00
stronk7 13e1a37198 Now sesskey is working fine at installation time.
Bug 2049
(http://moodle.org/bugs/bug.php?op=show&bugid=2049)

Merged from MOODLE_14_STABLE
2004-10-06 00:08:08 +00:00
stronk7 f4646b44c1 Now RSS links ae showed properly in SITE course when
user isn't logged.

Solve a problem with if($USER) under PHP5.
2004-10-05 23:21:38 +00:00
koenr cc7716b382 xhtml-compliance should be ok 2004-10-05 21:13:52 +00:00
rkingdon 2d7189cdac Addition of exercise_refresh_events function. 2004-10-05 20:16:28 +00:00
koenr b5c8ddafaf xhtml-compliance should be ok 2004-10-05 20:02:50 +00:00
mits e154365fc8 Changed a little. 2004-10-05 13:57:54 +00:00
koenr 0ac386ff7f xhtml-compliance should be ok 2004-10-05 05:54:10 +00:00
mits 4562cbc8fe new translated file added. 2004-10-05 05:53:13 +00:00
stronk7 b2ddd9d7ae Now RSS links are displayed ok in SITEID course.
Bug 2048.
(http://moodle.org/bugs/bug.php?op=show&bugid=2048)

Merged from MOODLE_14_STABLE
2004-10-04 22:21:30 +00:00
mits d657654c9f new translated file added. 2004-10-04 21:12:38 +00:00
koenr 85eced2af1 xhtml-compliance should be ok 2004-10-04 20:48:29 +00:00
koenr 2904f22bea changed nl (thislanguage string) back to Nederlands 2004-10-04 18:57:08 +00:00
mits 88a9188ae2 new translated file added. 2004-10-04 18:56:51 +00:00
koenr 9ff87c34d1 updated files by Emilio Delgado [informatikaria@ueu.org]
He will be coordinating the basque translation from now on.
2004-10-04 18:07:59 +00:00
paca70 8f579f1857 Updates 2004-10-04 17:34:58 +00:00
koenr e4ecb47ac4 updated files by Emilio Delgado [informatikaria@ueu.org]
He will be coordinating the basque translation from now on.
2004-10-04 17:05:26 +00:00
dhawes 761155628f Additional phpdoc comments for get_string and print_string functions - example usage added and argument types documented 2004-10-04 16:44:54 +00:00
mits b7c253585d polished. 2004-10-04 16:08:42 +00:00
moodler 492581591e Merged fix for stopped email from STABLE 2004-10-04 15:49:40 +00:00
moodler 03c40645c1 Merged sesskey fixes from STABLE 2004-10-04 13:50:37 +00:00
martignoni b1eb37620e Typo corrected 2004-10-04 08:58:30 +00:00
mits 83a4d730a2 polished. 2004-10-04 06:04:52 +00:00
mits e37518c7bc new translated file added. 2004-10-04 05:56:02 +00:00
koenr 511c8a2510 changing "leraars" to "leraren" for concistency and better fitting for cultural differences 2004-10-03 22:32:05 +00:00
koenr 647b1cf285 *** empty log message *** 2004-10-03 22:31:14 +00:00
koenr 32f0b26866 xhtml-compliance should be ok 2004-10-03 22:00:47 +00:00
koenr b1f4f26eeb fixed typo's pollished translation, xhtml-compliance should be ok 2004-10-03 20:33:56 +00:00
ralf-bonn 2045a43136 *** empty log message *** 2004-10-03 17:50:10 +00:00
ralf-bonn 953adf17b0 ?bersetzung erg?nzt f?r 1.4.2 2004-10-03 17:25:55 +00:00
stronk7 4cfc640037 admin/user.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 17:19:36 +00:00
koenr 6d8ceecc5d fixed typo's pollished translation, xhtml-compliance should be ok 2004-10-03 16:51:01 +00:00
defacer 233ca8bf60 Undoing an incorrect instance of htmlentity encoding a &. Probably got in
with all the XHTML frenzy. Thanks to Daryl for helping to debug this! :-)
2004-10-03 16:40:20 +00:00
stronk7 8a68d4c0f3 admin/uploaduser.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 16:08:27 +00:00
stronk7 4fa24bb889 admin/register.php is now using sesskey.
Solved a minor bug with the use of one incorrect string.

Merged from MOODLE_14_STABLE
2004-10-03 15:28:35 +00:00
stronk7 5ba7f1b70b admin/modules.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 15:09:31 +00:00
mits 8c100ddb37 Vast change for XHTML compliant mentioned on http://moodle.org/mod/forum/discuss.php?d=13418 2004-10-03 11:28:30 +00:00
barias 549e2a30be Latest upgrades 2004-10-03 10:47:31 +00:00
paca70 2c319f5e55 New and updated helpfiles
Thanks to Marianna Leikomaa!
2004-10-03 10:26:26 +00:00
stronk7 ebfff4e014 admin/module.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 09:48:08 +00:00
stronk7 48ba274660 admin/lang.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 09:18:19 +00:00
koenr 13d064c20e *** empty log message *** 2004-10-03 06:51:48 +00:00
koenr 596fb1ef19 changed "top" to "naar boven" 2004-10-03 06:51:18 +00:00
moodler 9ff24fb76a Merged siteidentifier from stable 2004-10-03 03:47:31 +00:00
stronk7 58a1c3ea32 admin/filters.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 00:32:13 +00:00
mits cce8275fd9 polished and translated some. 2004-10-03 00:28:27 +00:00
stronk7 d2df6e0933 admin/enrol.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 00:21:26 +00:00
stronk7 e2b459ad22 admin/editor.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 00:07:27 +00:00
stronk7 1c2614a1f1 admin/creators.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 23:52:42 +00:00
stronk7 16567e7ef9 admin/blocks.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 23:34:09 +00:00
stronk7 c1b70c8edc admin/block.php is now using sesskey.
And bug where one object was used like an array.

Merged from MOODLE_14_STABLE
2004-10-02 23:15:51 +00:00
stronk7 398ef378dc admin/block.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 23:13:37 +00:00
barias 4cd803df04 Latest upgrades 2004-10-02 23:06:04 +00:00
stronk7 d72fdff5ee admin/xxx is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 22:46:11 +00:00
stronk7 17ecd09f71 admin/backup.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 22:44:03 +00:00
koenr 181586fc6d changed last "docent" to "leraar" for concistency (see http://moodle.org/mod/forum/discuss.php?d=2098#9433) 2004-10-02 20:28:32 +00:00
koenr 24fa2d9848 filling in missing strings 2004-10-02 19:59:13 +00:00
stronk7 df0d5501d9 admin/auth.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 19:50:16 +00:00
stronk7 ad97e350fc admin/admin.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 19:22:52 +00:00
skodak d36f8be4b8 merged from STABLE - missing htmlSpecialChars() in INPUT's value 2004-10-02 19:01:42 +00:00
julmis c802303cc4 Making code more xhtml compatible 2004-10-02 17:09:39 +00:00
rkingdon ac220a6d80 Corrected password protected workshops (they showed the assignment!);
minor
html additional to edit assessments page.
2004-10-02 16:04:56 +00:00
moodler 4f91674c4b Merged visibility fix from stable 2004-10-02 15:29:49 +00:00
moodler 170ed2a1cf Set the sesskey for new admins 2004-10-02 15:22:11 +00:00
moodler 975a33e7e7 OK, aligning this to the same as STABLE ... there's been a bit of a mixup
about this file.  It's now standard with the single addition of a constructor
to set this->PluginDir, and this is now used for the language file includes.
2004-10-02 13:11:57 +00:00
julmis a21daa9803 Fixed insertImage routine for gecko based browser
- use createElement instead of insertimage
- Added title automatically from alt value
2004-10-02 09:51:14 +00:00
barias 37a80771a0 Latest upgrades 2004-10-02 09:44:43 +00:00
martignoni 9e36161bc1 Towards XHTML 2004-10-02 08:59:15 +00:00
martignoni 7ceff435d5 Change some terms 2004-10-02 08:11:31 +00:00
martignoni 7e12564494 More XHTML compatibility 2004-10-02 07:40:25 +00:00
moodler 14444c5ef0 Fixing Shane's last checkin 2004-10-02 03:20:16 +00:00
ikawhero 24c54604d3 Merged changes from stable branch 2004-10-02 00:09:24 +00:00
koenr b35bc9b8f6 initial translation by Koen Roggemans 2004-10-01 22:54:07 +00:00
koenr 0250654022 filling in missing strings 2004-10-01 22:44:25 +00:00
koenr dbace83c65 finally translated (1.4.1 AND 1.4.2) 2004-10-01 20:05:08 +00:00
koenr 653ba34e95 new files by Eric Schneiders 2004-10-01 18:55:48 +00:00
martignoni 3e0a046e38 Some improvements to 'Site teacher' translation 2004-10-01 18:12:42 +00:00
moodler 345fa15ea7 Merged from stable 2004-10-01 15:19:12 +00:00
moodler 7228f7963f Merged sesskey stuff from stable 2004-10-01 15:06:39 +00:00
carlesbellver 0581a6ad86 *** empty log message *** 2004-10-01 12:50:16 +00:00
moodler e0d346ff91 Added optional_param and required_param just to get it on the plate 2004-10-01 12:09:52 +00:00
stronk7 6446885595 Included one more translation of links from
assignments to resources. Required in bug 2027.
Easy and not risky.

Merged from MOODLE_14_STABLE
2004-10-01 11:33:26 +00:00
stronk7 6f84a9d2db Some clear_text() and format_text() calls added.
Merged from MOODLE_14_STABLE
2004-10-01 10:32:34 +00:00
stronk7 ed187d7506 Sync with 14_STABLE version. Not needed but, for now I prefer
both being the same.
2004-10-01 09:27:32 +00:00
stronk7 c286325360 Undo las changes. Point releases are only for STABLE branches. 2004-10-01 09:02:27 +00:00
stronk7 65a7a27907 New version syntax. 2004-10-01 08:38:53 +00:00
stronk7 eb811077de Bump (sync with 14_STABLE) 2004-10-01 07:31:44 +00:00
martignoni fbcc29a4b5 Typos corrected 2004-10-01 06:30:08 +00:00
ikawhero 5c4b19d38d Bug in path for language strings fixed 2004-10-01 04:51:05 +00:00
paca70 2be3872c88 Moved configuration defaults to new function auth_ldap_getdefaults()
Now the information can be used anywhere. config.html comes to mind at first.
2004-10-01 04:39:03 +00:00
papita 16aede7eb9 merged files from STABLE 2004-10-01 04:13:42 +00:00
papita 671419c14c file hotpot.php was initially added on branch MOODLE_14_STABLE. 2004-10-01 04:12:09 +00:00
papita 9c477db39d file emailprotect.php was initially added on branch MOODLE_14_STABLE. 2004-10-01 04:12:09 +00:00
papita e9632edd3d file enrol_database.php was initially added on branch MOODLE_14_STABLE. 2004-10-01 04:12:09 +00:00
moodler decec3da38 Merged parameter cleaning from stable 2004-10-01 02:43:09 +00:00
moodler 3f1d5c1182 Clean error messages (merged from stable) 2004-10-01 02:25:02 +00:00
moodler cb59215c7f Merged from stable 2004-10-01 02:19:29 +00:00
moodler 81d849fd41 Merged fix from stable 2004-10-01 02:16:05 +00:00
mits 407f31e408 polished and translated some. 2004-09-30 23:58:42 +00:00
stronk7 3a009de26c Release Notes updated to 1.4.2! 2004-09-30 22:34:11 +00:00
martignoni 17af57f7f6 Release notes for version 1.4.2 2004-09-30 21:40:45 +00:00
mits f2bfbd44e2 polished and translated one string on moodle.php 2004-09-30 21:38:41 +00:00
gustav_delius 3da3bf18e2 Martin, did you really mean to switch XHTML on in the standard standard theme? 2004-09-30 20:39:35 +00:00
gustav_delius dfc12289a3 after removing empty line at top of section the editing icon was now a bit cramped in, so added an empty line below it but only if editing is on. 2004-09-30 18:56:08 +00:00
gustav_delius eab617f96c removed spurious empty line at start of sections 2004-09-30 18:43:24 +00:00
paca70 8347b5628a Corrections to phpdoc comments. 2004-09-30 18:38:40 +00:00
moodler 8778900a0c Release notes for 1.4.2.
Hopefully we can release this in about 24 hours.
2004-09-30 18:11:57 +00:00
martignoni 727d0227d9 Some typos corrected 2004-09-30 12:52:34 +00:00
martignoni a4bb535f9c Config for dbsessions variable 2004-09-30 12:34:00 +00:00
paca70 13dcf22d39 Added phpdoc comments
Moved from ldap_get_entries to binarysafe auth_ldap_get_entries().

Added 'count'-attribute to auth_ldap_get_entries() result.
2004-09-30 11:34:38 +00:00
paca70 f739b64d9b Updates for postges 2004-09-30 11:29:42 +00:00
moodler b0542a1e20 Jump -> go on popup menus 2004-09-30 10:52:48 +00:00
moodler 34b5847a1a Some changes for XHTML and accessibility compliance 2004-09-30 08:42:34 +00:00
moodler c9fc958803 Some style additions 2004-09-30 08:41:53 +00:00
moodler f54e245898 Fixed a notice as per bug 2020 (and tidied some code) 2004-09-30 08:35:55 +00:00
moodler c6edaf80db Fixing display of costs 2004-09-30 08:35:24 +00:00
moodler 9de24b62ee Config for dbsessions variable 2004-09-30 08:04:56 +00:00
moodler 16570a27c3 Fixed an extra slash 2004-09-30 07:56:27 +00:00
aredkin 4b1228dd00 *** empty log message *** 2004-09-30 07:22:54 +00:00
aredkin 69245cad02 New one 2004-09-30 07:09:03 +00:00
martignoni cda8a9ae4b Changed everywhere <b> with <strong> 2004-09-30 07:04:52 +00:00
moodler 18fc7e7c67 Moving style information from XHTML code to stylesheets 2004-09-30 06:52:49 +00:00
moodler 9f39c19012 Some changes for XHTML and accessilibity compliance 2004-09-30 06:46:26 +00:00
moodler 42b90599be SESSIONS-IN-DATABASE SUPPORT
Support for a new configuration variable called $CFG->dbsessions
which enables sessions via database.  Based on code from Jason Cole's
team - thanks!
2004-09-30 06:02:39 +00:00
mits 855c11a67b translated some 2004-09-30 05:39:28 +00:00
mjollnir_ 436d4c6bf5 close bracket in wrong place 2004-09-30 04:18:41 +00:00
mjollnir_ 777b9e0faf More changes to use fullname function rather than firstname lastname
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-108
    2004-09-30 03:31:29 GMT
    Penny Leach <penny@catalyst.net.nz>
    final changes to use fullname

Full logs:

Revision: moodle--eduforge--1.3.3--patch-108
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 30 15:31:29 NZST 2004
Standard-date: 2004-09-30 03:31:29 GMT
Modified-files: login/confirm.php mod/scorm/report.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-108
Summary: final changes to use fullname
Keywords:
2004-09-30 03:43:40 +00:00
mits f50f0b2b52 polished. 2004-09-30 01:21:16 +00:00
mits 81f07b485d Polished and new translated file added. 2004-09-29 22:39:55 +00:00
koenr 123a7dd167 completely reworked fr_ca lang pack thanks to Jean-Fran?ois Nadeau
Slowly working to one fr lang pack
2004-09-29 22:39:02 +00:00
barias eb890a524e Latest upgrades 2004-09-29 22:29:51 +00:00
mits 420a4a7047 fixed encode EUC-JP to UTF-8. 2004-09-29 22:28:41 +00:00
julmis f5a55bc1dc Merging from MOODLE_14_STABLE 2004-09-29 22:20:36 +00:00
martignoni 019bc577fe Added missing strings 2004-09-29 21:41:16 +00:00
mjollnir_ 92e754ebd2 Fixed firstname lastname to call to fullname function 2004-09-29 21:32:53 +00:00
martignoni 02f58f864c Fixed typos 2004-09-29 21:30:16 +00:00
rkingdon b514883a04 Minor tidy of "not graded" workshops to supress grades appearing in
student pages.
2004-09-29 21:28:55 +00:00
martignoni 4f11bf2dbc Typo corrected 2004-09-29 21:23:46 +00:00
martignoni 7d8efc9478 A first attempt at adding accessibility for the jump menus 2004-09-29 21:21:58 +00:00
mjollnir_ 2e23c59ddc fixed bad newlines and changed firstname lastname to call to fullname function 2004-09-29 21:13:53 +00:00
dhawes 2f87145ba2 Further documented new *SECS contants where they are declared as well as in each function that uses them 2004-09-29 18:56:50 +00:00
mits 97e9a418cf new help file added. 2004-09-29 18:53:42 +00:00
mits 7360e00839 translated new strings. 2004-09-29 18:21:56 +00:00
dhawes 822a106319 Added a file level phpdoc docblock tag. Also converted double quote strings to single quote literals. 2004-09-29 18:19:39 +00:00
mits c8123fe5ae polished. 2004-09-29 17:57:32 +00:00
rkingdon ff1d392aa1 Allow teachers to edit examples from Admin page; Count of ungraded
asessment now excludes warm and hot assessments; change a &amp; back to a
& in a redirect call.
2004-09-29 16:52:24 +00:00
martignoni 1e55858281 Added new lang info for lesson mod 2004-09-29 15:22:45 +00:00
stronk7 7777f4fc97 More use of SITEID
Merged from MOODLE_14_STABLE
2004-09-29 15:20:32 +00:00
moodler 037dcbb6a9 A first attempt at adding accessibility for the jump menus, by adding a
button after them when Javascript is not enabled.

Button is currently named "Jump".  Could be something else.
2004-09-29 14:00:35 +00:00
moodler 2750feef82 A script that will jump to a given URL. Very simple. 2004-09-29 13:47:16 +00:00
martignoni 03e4740750 Typos corrected 2004-09-29 11:40:58 +00:00
martignoni 38d0d9a4c1 A few extra strings for version 2004092700 2004-09-29 09:42:47 +00:00
martignoni 6c27088bd1 Strings added for version 2004092400 2004-09-29 09:36:35 +00:00
martignoni 5172f44c95 Lot of changes to bring it up-to-date 2004-09-29 09:27:06 +00:00
moodler 6159ce6582 Fixed typo from recent addition of all the DAYSECS etc ... 2004-09-29 09:12:55 +00:00
martignoni 9630c22ce2 New config variable $CFG->tracksessionip 2004-09-29 08:43:33 +00:00
martignoni 3a51cc7a36 String 'deleteattempts' added 2004-09-29 08:32:19 +00:00
martignoni dc49f254c6 Added release notes for 1.4.1 2004-09-29 08:27:47 +00:00
moodler 7a2c8b00d6 Merged SQL fixes from stable 2004-09-29 07:56:33 +00:00
martignoni 98197e6b6c New strings added 2004-09-29 07:12:16 +00:00
moodler de9bc13e8a Merged pathname checking from stable 2004-09-29 07:02:22 +00:00
moodler 1e448f63f4 Merged fix from stable 2004-09-29 06:58:21 +00:00
moodler d030268d68 Merged pathname checks from stable 2004-09-29 06:52:24 +00:00
mits 2d1facbc84 polished again. 2004-09-29 05:53:02 +00:00
mits 8dda13f4f0 polished. 2004-09-29 05:45:13 +00:00
moodler 1ca84b296f Merged filename checks from stable 2004-09-29 05:35:04 +00:00
mits feaecbfe48 Quiz module string translation done.
Now get around to help files...
2004-09-29 03:54:45 +00:00
moodler 79035d46c7 Merged resource->type checks from stable 2004-09-29 03:12:31 +00:00
mits 606da9edd0 translated some. 2004-09-29 02:54:19 +00:00
mjollnir_ ea09b04bbd Postgres bufix 2004-09-29 00:45:06 +00:00
stronk7 4db75a5cb2 Merged quotes from MOODLE_14_STABLE 2004-09-28 23:20:13 +00:00
koenr 375a2fb98a filling in missing strings 2004-09-28 19:48:21 +00:00
michaelpenne 800abfe61d fixed a wrong lang call on line #1176 2004-09-28 19:22:30 +00:00
michaelpenne c732188674 changed $pages[$count][0] to $pageid on line #617 2004-09-28 19:15:20 +00:00
dhawes da72d76d30 added '@access private' docblock tags to functions that should not be called directly 2004-09-28 16:40:26 +00:00
rkingdon 3903e0729b New fields in version 2004092700. 2004-09-28 16:30:29 +00:00
moodler ac87e23424 Merged from STABLE 2004-09-28 15:58:13 +00:00
rkingdon 1bf58ea60b Version 2004092700 - tidy up of simple assignment case; addition of
password and submission late flag.
2004-09-28 15:49:49 +00:00
rkingdon 6e0609cf85 A few extra strigs for version 2004092700. 2004-09-28 15:47:35 +00:00
rkingdon d42db02f61 A couple of new help file for version 2004092700. 2004-09-28 15:46:33 +00:00
moodler 7ecd7c616d Merged parameter function from STABLE (and added phpdoc) 2004-09-28 15:41:36 +00:00
koenr 7d492dde2a typo 2004-09-28 13:27:21 +00:00
paca70 c72eac85d7 Added basic configuration for rfc2307bis 2004-09-28 12:50:33 +00:00
paca70 089b19f631 Fixed bug 2012
Started work with bug 2007
Bug 1969 is partacaly fixed. ldap-module supports now password expiration.
Some work with bugs 761 and 1730

Changes in login/index.php
Reordered some code to make variables reusable in multiple places.
Added redirection in case of expired password
2004-09-28 12:39:20 +00:00
mits 86fd04ff4c polished. 2004-09-28 12:33:34 +00:00
mits 08b37efddd polished. 2004-09-28 12:30:16 +00:00
moodler 72b4e28353 Some changes for XHTML and accessibility compliance 2004-09-28 09:47:14 +00:00
moodler 857e46c39a Changes for XHTML and accessibility compliances 2004-09-28 09:02:33 +00:00
moodler 8ef1e12f74 Merged fix for unclean oldname from renaming ... from stable. 2004-09-28 08:05:18 +00:00
paca70 7a5672c90c Replaced time related "magic numbers" with constants, what are hopefully
more easier to read.
2004-09-28 05:53:08 +00:00
mits 77439abb7f translated some. 2004-09-28 05:31:04 +00:00
dhawes 674fb525d2 fixed misplaced comments on CFG and USER globals 2004-09-28 02:51:56 +00:00
dhawes ca811dc55a comments for file, class and public methods converted to phpdoc style comments 2004-09-28 02:16:42 +00:00
mits 9ea1d57d72 polished. 2004-09-28 02:10:58 +00:00
rkingdon f4f03900e9 One extra string for attachments. 2004-09-27 17:47:36 +00:00
rkingdon 1410bd2695 Added code for remove attachments 2004-09-27 17:46:41 +00:00
mits 2d9abf5d14 polished again. 2004-09-27 17:10:17 +00:00
mits c7fcbc71a1 polished. 2004-09-27 17:05:43 +00:00
mits 52390e5f60 polished and translated some. 2004-09-27 16:14:09 +00:00
rkingdon a557e354ed Version 2004092400 - in line student submission (plus attachments);
addition of on-the-fly grading of assessments; some bugs cleared.
2004-09-27 14:41:17 +00:00
rkingdon cb4df2b669 New hep files for version 2004092400; minor additional to
ungradedassessments help file.
2004-09-27 14:38:14 +00:00
moodler 366dfa6090 New config variable $CFG->tracksessionip will force Moodle to always
check that the user's IP number never changes
2004-09-27 14:35:37 +00:00
rkingdon 3f58d60002 Strings added for version 2004092400. 2004-09-27 14:35:18 +00:00
moodler b873cae07a FIxed wierd typo 2004-09-27 14:33:06 +00:00
paca70 d89430abdf Changes to configuration interface 2004-09-27 14:19:32 +00:00
moodler e7d3e86135 Tidied up a bit, and removed the CVS version which caused some people confusion 2004-09-27 13:50:55 +00:00
moodler 1a86eccccd Closed hole when using userid information from form data (merged from STABLE) 2004-09-27 13:26:06 +00:00
moodler ce791f885e Merged change from STABLE, to fix possible $auth variable problem 2004-09-27 12:52:25 +00:00
moodler 4037263a06 Fixed bug with quotes (finally?) 2004-09-27 09:32:59 +00:00
moodler 052fe105eb Fixing bad call to table_column ("after" field not needed) 2004-09-27 08:05:56 +00:00
paca70 d53748e6bf Ficed bug on " -> ' conversion 2004-09-27 05:15:21 +00:00
mits 49d5b64261 translated some. 2004-09-27 04:54:17 +00:00
mits 35cd38ddbf UTF-8 version files added. 2004-09-27 03:24:24 +00:00
moodler f5fa70c488 Closed script security problem (merged from STABLE) 2004-09-27 01:48:24 +00:00
barias c2095d7290 ?ltimos cambios incorporados 2004-09-26 19:18:00 +00:00
dhawes 88a7228ae2 Converted comments to phpdoc comments - file is in need of additional comments. I also took the opportunity to convert double quote strings to single quote literals. 2004-09-26 05:10:38 +00:00
dhawes 99c2531671 Converted comments to phpdoc style. Functions require additional documenting. 2004-09-26 04:57:07 +00:00
dhawes b68275d52a Converted comments to phpdoc style 2004-09-26 04:54:03 +00:00
dhawes a93ea924a0 Converted comments to phpdoc style comments 2004-09-26 04:49:39 +00:00
dhawes c9b5ebf583 Expanded phpdoc tags. Added file docblock tag, class property docblock tags and expanded some function docblocks. Also added some spacing and converted some double quotes to single quotes 2004-09-26 04:43:51 +00:00
dhawes dc6682d0ff Conversion of double quoted strings to single quoted literals 2004-09-26 04:31:56 +00:00
moodler 83f3c62dbe Fixed my recently introduced bug with the redirect bug 2000 2004-09-26 02:42:54 +00:00
moodler d0d56205f4 Fixed some of Daryls typos 2004-09-26 02:10:38 +00:00
mits 066cb530fe typo. 2004-09-25 21:35:13 +00:00
gustav_delius 7ecb19bba0 added explanation for format and visible fields in event table 2004-09-25 20:27:15 +00:00
mits b1d83dade0 Polished. 2004-09-25 19:12:22 +00:00
mits c860a1e2b8 Polished. 2004-09-25 18:29:23 +00:00
stronk7 ca83aa54ed Updated xmilze to official new 1.0.1 version
(it's 'our' version with some comments).

Merged from MOODLE_14_STABLE
2004-09-25 16:22:25 +00:00
moodler 346d4eab7d New phpmailer 1.7.2 merged from STABLE 2004-09-25 16:02:38 +00:00
moodler 3d1f31a563 file phpmailer.lang-fr.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler 143f5a692a file phpmailer.lang-nl.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler 0053120767 file phpmailer.lang-tr.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler 6873c29242 file phpmailer.lang-no.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler 45880675af file phpmailer.lang-se.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler b87a0f6e86 file phpmailer.lang-de.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler ba76799db9 file phpmailer.lang-cz.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler 71d2fabb85 file phpmailer.lang-es.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler df3e22cb36 file phpmailer.lang-it.php was initially added on branch MOODLE_14_STABLE. 2004-09-25 16:01:32 +00:00
moodler ea8dedc882 Merged change to restore $CFG->prefix from stable 2004-09-25 15:33:06 +00:00
moodler e351205034 Merged SITEID check for require_login from stable 2004-09-25 15:23:10 +00:00
moodler f6f319f852 Merged fox for bug 1991 to head 2004-09-25 15:19:40 +00:00
dhawes d740c724ac Converted many double quoted strings to single quote literals 2004-09-25 15:17:08 +00:00
moodler 6d8e38e973 Merged from stable - Only break up subject lines for recent activity bug 1995 2004-09-25 13:11:22 +00:00
moodler e41ddc4b02 user id and course id are both now optional 2004-09-25 12:53:35 +00:00
stronk7 4894189c0c Added backup & restore to SITE page.
Some changes from hardcoded '1' to SITEID.

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

Merged from MOODLE_14_STABLE
2004-09-25 11:37:10 +00:00
dhawes da8759cb8f Phpdoc comments added to define moodle globals. Also converted double quote strings to single quote literals 2004-09-25 05:30:03 +00:00
dhawes 89dcb99da2 More phpdoc work 2004-09-25 05:29:21 +00:00
mits 21b25af31f Polished. statistical term!! 2004-09-25 02:13:34 +00:00
mits 603a24523b Polished and translated some. Math.... 2004-09-25 02:02:11 +00:00
dhawes c6d15803f6 Additional phpdoc compatible comments added. 2004-09-25 01:29:37 +00:00
dhawes 4723e40941 Double quote strings converted to single quote literals - inspired by missing escapes on quote characters inside echo strings found by ottenhoff and noted in comment to bug 1981 2004-09-24 23:18:17 +00:00
dhawes 5620acd80a Some double quote strings converted to single quote literals and conversion of many tabs to spaces - inspired by error in associative array dereferencing found by ottenhoff and noted in comment to bug 1981 2004-09-24 23:10:49 +00:00
mits ae93ea265f Polished. 2004-09-24 22:56:40 +00:00
dhawes 9ea8fa21f5 Fixed double end comment tag and conversion of tabs to spaces - inspired by error in doudle end comment tag found by ottenhoff and noted in comment to bug 1981 2004-09-24 22:40:48 +00:00
mits f4eed772cf Polished and new translated file added. 2004-09-24 22:39:58 +00:00
dhawes 70e728fbbc Converted double quote strings to single quote literals - inspired by error in double quotes found by ottenhoff and noted in comment to bug 1981 2004-09-24 22:28:50 +00:00
mits bdcc6a222a Polished and new translated file added. 2004-09-24 22:20:43 +00:00
dhawes fbc21ae8c9 More phpdoc comments added and updated. Also a few double quote string to single quote literal changes. 2004-09-24 21:28:22 +00:00
mits cea9a06e40 Polished. 2004-09-24 20:33:50 +00:00
stronk7 70bbfd3186 Scheduled backup improvements:
- Old (>4 hour) directories are deleted at the beginning of the
  execution, so the disk full problem should be out!
- There are 2 types of errors:
    - Controlled errors: The backup process finish although something
        has been wrong.
    - Uncontrolled errors: The backup process dies (memory fault, apache
        problem, electric problem...:-)).
- Now scheduled backup is able to detect previous uncontrolled errors to
  avoid repeating the same course always. It'll be deferred to the next
  execution.
- Every time that a backup cycle has finished, admins will receive an email
  with the summary of the execution.
- The 'ERROR' text will be present in email subjects if something was wrong.

With this, all should be ok (I hope).

Merged from MOODLE_14_STABLE
2004-09-24 19:20:32 +00:00
mits c3cb1fdc25 Polished. 2004-09-24 18:56:02 +00:00
gustav_delius e82cd4489c fixed missing <br> reported by Ray 2004-09-24 18:49:13 +00:00
stronk7 4626f768f2 3 new strings for scheduled backups.
Coming from 14_STABLE
2004-09-24 18:43:14 +00:00
mits d1dcf66920 Polished. 2004-09-24 17:53:55 +00:00
mits 075768739f translated some. 2004-09-24 16:10:20 +00:00
stronk7 41bac9d0af The get_directory_list() function was being executed with
directories excluded so backup_delete_old_dirs() was no
working fine! This should delete REALLY old dirs in sites
with problems in their scheduled backup.

Merged from MOODLE_14_STABLE
2004-09-24 11:51:12 +00:00
paca70 e66cbf7c6f Some updates 2004-09-24 09:11:56 +00:00
paca70 65012195ef Fixed typo 2004-09-24 08:56:47 +00:00
paca70 ba1ceab2f5 Postgresql does not like modified prefix 2004-09-24 08:36:05 +00:00
paca70 55bcf883c3 Fixes for new postgres database creation 2004-09-24 07:49:40 +00:00
paca70 ad95a28f2b Added easy interface to specify ldap-attribute types and objectclasses.
Just select ldap-server type and you are done. Old variables can still be used
to override builtin settings.


TRANSLATORS NOTICE:
Some ldap-fields are now optional!
2004-09-24 07:14:44 +00:00
paca70 686650dd3e Added easy interface to specify ldap-attribute types and objectclasses.
Just select ldap-server type and you are done. Old variables can still be used
to override builtin settings.
2004-09-24 06:49:57 +00:00
moodler 11e16b9698 Merged additions from stable (for PAM) 2004-09-24 04:47:23 +00:00
moodler a1ef7cbe9f Merged PAM from stable 2004-09-24 04:46:11 +00:00
moodler 5b06bef18c Moved info into README 2004-09-24 04:45:19 +00:00
moodler dae2aa54a3 file lib.php was initially added on branch MOODLE_14_STABLE. 2004-09-24 04:42:46 +00:00
moodler 80f74085ca file config.html was initially added on branch MOODLE_14_STABLE. 2004-09-24 04:42:46 +00:00
mits df52ba2a33 Polished. 2004-09-24 01:12:45 +00:00
michaelpenne 033c143250 put in Sebastien Michels change on line #911 2004-09-23 20:30:00 +00:00
mits 12f4f18ca7 Polished.
Well... Quiz module is one of the hardest modules to translate.
2004-09-23 19:02:05 +00:00
moodler a3224cc359 Merged improved database plugin for enrolment 2004-09-23 17:02:40 +00:00
moodler 4ebae17119 Merged earlier redirecftion for site course 2004-09-23 17:02:02 +00:00
moodler e5912bca11 Tidy filter from Hannes Gassert <hannes at mediagonal dot ch>
If you have Tidy installed as part of your PHP, you can use this
filter to convert all user text into XHTML on the fly.
2004-09-23 12:33:14 +00:00
moodler cc57a111fc Changes for XHTML and accessibility compliance 2004-09-23 12:25:49 +00:00
moodler 87d32352a9 Some changes for XHTML and accessibility compliance 2004-09-23 12:09:19 +00:00
moodler c6d234a0ed Turning off "usexml" for forum/mod/view.php 2004-09-23 11:51:14 +00:00
moodler 39cac7b6c0 Merged fixes from STABLE that allow creator to restore to any course 2004-09-23 11:34:47 +00:00
moodler 09e8a2f8e8 Changes for XHTML and accessibility compliance 2004-09-23 11:01:22 +00:00
mits e7bcc5b28b Polished. 2004-09-23 10:29:34 +00:00
moodler 23e021e13f Merge ratings fix for PHP5 from stable 2004-09-23 07:50:05 +00:00
moodler c7fe5c6fdc Merged new functions for get_courses and get_courses_page from STABLE 2004-09-23 07:46:41 +00:00
moodler f60e7cfe12 Don't strip backslahes from highlighted text 2004-09-23 07:41:37 +00:00
moodler fe51520688 Installer now checks that MySQL extension is present - see bug 1982 2004-09-23 05:40:53 +00:00
dhawes 8c3dba735b Added more phpdoc comments 2004-09-23 05:10:21 +00:00
dhawes d48b00b40e Added some more skeleton phpdoc comments and fixed a few more quote conversion issues 2004-09-23 04:36:43 +00:00
moodler 6eb3e776fc Bugfixes for my recent checkin 2004-09-23 04:15:19 +00:00
moodler a3f1f815a9 OK, finished the fixes I wanted to add to the recent LDAP changes
for user field locking and forcing of password changing

  - Locked user fields always apply (for any authentication method).
    Currently these can only be defined in the LDAP auth screen
    but later these can be brought out as part of the generic
    interface for defining user fields and their behaviour.

  - Fields are now locked using Javascript and will work for any
    user fields that exist (list is not hard coded anymore).

  - Admins can always edit locked fields.

  - Admins can always force a password change.  The checkbox reflects
    the current status of this, and the admin can UNSET the checkbox
    if they want.  It is no longer necessary for the admin to change
    the old password for this to take effect, either.
2004-09-23 03:56:53 +00:00
moodler e290e48690 Fixed string for user images 2004-09-23 03:17:25 +00:00
moodler ae01b52a70 One line I changed 2004-09-23 02:59:12 +00:00
dhawes 7cf1c7bd2b Additional phpdoc comments and fixes for bugs 1981 and 1984 2004-09-23 02:48:41 +00:00
mits a881d3c5fb Polished. 2004-09-23 00:27:14 +00:00
mits 8ffa0ab67b Polished. 2004-09-23 00:17:49 +00:00
mjollnir_ 69a9b3d1bb Fixed handlevirus.php so that files resolve better to users.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-93
    2004-09-22 22:46:10 GMT
    Penny Leach <penny@catalyst.net.nz>
    fix for resolving filenames in handlevirus

Full logs:

Revision: moodle--eduforge--1.3.3--patch-93
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 23 10:46:10 NZST 2004
Standard-date: 2004-09-22 22:46:10 GMT
Modified-files: admin/handlevirus.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-93
Summary: fix for resolving filenames in handlevirus
Keywords:
2004-09-22 23:20:41 +00:00
mits d89c761092 Polished. 2004-09-22 21:14:40 +00:00
mits 25eb60a91c New translated file added. 2004-09-22 19:21:11 +00:00
michaelpenne 909e6c79d8 Fixed a bug regarding cluster jumps. Before, if end of cluster's jump was next page, it would throw an error. 2004-09-22 19:14:51 +00:00
mits 28a64f953b Polished 2004-09-22 19:09:20 +00:00
mits 60ee449679 Polished. 2004-09-22 19:02:38 +00:00
paca70 8dad1541a2 Added utf8_decode when reading info from ldap.
Thanks to stronk7 pointing this out.
2004-09-22 18:50:03 +00:00
koenr 78ae2f1b79 language settings 2004-09-22 18:07:26 +00:00
koenr f8d450fcf8 typo 2004-09-22 18:06:51 +00:00
mits 6549f523f1 Polished. 2004-09-22 17:44:10 +00:00
dhawes d4419d55a2 Conversion of double quoted string to single quoted literals. Also added some extra spacing around concatenated strings for easier reading. 2004-09-22 16:15:23 +00:00
mits da52cde6f6 Polished. 2004-09-22 14:59:30 +00:00
mits 96ae8f6d2f translated some. 2004-09-22 14:50:14 +00:00
dhawes b0ccd3fb32 Conversion of double quoted string to single quoted literals. Also added some extra spacing around concatenated strings for easier reading. 2004-09-22 14:39:15 +00:00
koenr fe2df55677 typo 2004-09-22 13:47:38 +00:00
paca70 026e8973a9 Fixed missed variable name 2004-09-22 11:33:41 +00:00
paca70 8bf59996b5 escaped two "'s 2004-09-22 11:23:42 +00:00
paca70 a6698a1387 Added more commentts about user cretion. 2004-09-22 11:07:45 +00:00
paca70 d43ced93fc Use only atrributes marked as "updateremote" when creating new ldap-users. 2004-09-22 11:06:42 +00:00
paca70 0b543a6508 Added support for multiiple ldap-servers.
When first server(s) are down there delay before connecting secondary servers.
	So you system feels slow if first server is down, but Moodle still authenticates to sedondary servers.

Other major change:
auth_ldap_bind fuction is removed.
	due phps ldap_connect() limitations auth_ldap_connect() does now also ldap_bind()
	to see if server is up.
2004-09-22 09:41:20 +00:00
paca70 8c9c0e8588 Cleaned config.html
Added configuration for expired passwords.
2004-09-22 08:28:56 +00:00
mits c84c8d7a7b Polished. 2004-09-21 22:20:38 +00:00
michaelpenne 1663b64f1e changed the order of db updates. now the order is old to new. 2004-09-21 22:16:46 +00:00
michaelpenne 7143a2841e added an include for lib.php
changed the display of page titles
changed matching such that if two matching items match to the same answer, that answer only apprears once in the drop down menu.
Changed how the grade essay question link apprears.  Only appears if there is an essay to grade.
2004-09-21 22:15:30 +00:00
michaelpenne 3de88244c4 added option to delete a users attempt records. Sends an email if delete was seccessful or not. 2004-09-21 22:13:08 +00:00
michaelpenne 1535c81ba3 added code to handle deleting of user attempts 2004-09-21 22:12:04 +00:00
michaelpenne d19d9ef16d Fixed some problems with matching 2004-09-21 22:11:00 +00:00
mits 2d766f6c00 Polished and translated file added. 2004-09-21 21:49:25 +00:00
michaelpenne 7471d889aa New help file. Blank though :( 2004-09-21 19:50:10 +00:00
michaelpenne 0fe78d9481 Added a new lang definition 2004-09-21 19:48:39 +00:00
mits 3861c5bdd5 Polished. 2004-09-21 19:11:50 +00:00
mits 46d8457b52 Polished and translated files added. 2004-09-21 19:02:22 +00:00
paca70 0a307f230c Updates 2004-09-21 13:20:41 +00:00
paca70 c29890b5d8 Some cleanups 2004-09-21 13:20:13 +00:00
gustav_delius 8f0cd6ef0f Resolved problems with previous replacement of
& to &amp; and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
mits 1814319f43 translated strings changed based on /en/moodle.php 2004-09-21 11:02:23 +00:00
moodler 7c7d9120c2 Tidied up some XHTML 2004-09-21 10:52:55 +00:00
moodler 7cf66d6524 FIxed bugs and tidied up 2004-09-21 09:35:33 +00:00
moodler cd3a9f4687 Changed some strings for XHTML compliance 2004-09-21 09:22:20 +00:00
moodler 4f55eaf29d Tidied up for XHTML and accessibility compliance 2004-09-21 09:21:26 +00:00
moodler 39588a7eaa FIxed a path (I'd just moved this) 2004-09-21 08:41:54 +00:00
moodler 0f5706a3f3 Working but unpolished script to convert all MySQL tables to InnoDB format
Not linked, just call it directly
2004-09-21 08:40:18 +00:00
mits 81b8487e6e New translator added. 2004-09-21 08:12:00 +00:00
paca70 4586d60c69 To fix problems with auth_forcepasswordchange 2004-09-21 06:32:36 +00:00
paca70 4bde37a18e Removed $user_external and annd isset() around editlocks 2004-09-21 06:09:09 +00:00
paca70 5e671f2eed updates 2004-09-21 05:40:08 +00:00
mits 9696ec04a6 New translated files added. 2004-09-21 02:29:25 +00:00
moodler a88a5385e3 Updated README and removed empty files 2004-09-21 01:41:34 +00:00
mits 95d17e7d64 Polished. 2004-09-21 01:12:22 +00:00
mits 1589c3fded Polished and some translated files added. 2004-09-21 00:26:29 +00:00
defacer 5ef50b7764 Small code sanitization 2004-09-20 22:37:40 +00:00
mits 252542de97 translated some 2004-09-20 21:12:57 +00:00
koenr bcf802bcd6 new translation: Basque language (Euskara)
Thanks to Jos? Sanchez (txeli@aeknet.net) !
2004-09-20 21:07:18 +00:00
martignoni 71e7e2f2f7 New strings for LDAP auth 2004-09-20 21:04:07 +00:00
paca70 0257cc73e0 Postgres updates 2004-09-20 17:48:59 +00:00
paca70 be784d1a77 1. Postgres updates.
2. add log-values for mysql and postgres when creating new database.
 CVS: ----------------------------------------------------------------------
2004-09-20 17:48:19 +00:00
paca70 5a2432d47b Just to be sure that value columns type is text.
Postgres cannot change column types at time change was made.
2004-09-20 17:45:33 +00:00
mits ca05cf1fb3 translated some. 2004-09-20 16:49:25 +00:00
rkingdon 65d92fbcd9 Fixed bug #1952. 2004-09-20 15:01:41 +00:00
rkingdon aa8f2d1ec1 Fixed bug #1952; fixed bug in upload form; and assessment form now
displays the correct grade.
2004-09-20 14:59:41 +00:00
bobopinna 7f02f534d0 Fixed a problem with onbeforeunload 2004-09-20 14:35:24 +00:00
bobopinna 59c71f4b37 Updated XHTML tags and attributes in order to pass W3C validation 2004-09-20 13:50:38 +00:00
rkingdon 96ed00f636 In SEPARATEGROUPS mode the student's list of teachers is now limited to
those in the student's group.
2004-09-20 13:04:56 +00:00
martignoni 3de75335ac Small things to bring it up-to-date! 2004-09-20 11:30:32 +00:00
martignoni 80a43a7b65 Toward XHTML compliance (ter) 2004-09-20 11:20:11 +00:00
martignoni 7eb88f0214 Two new strings 2004-09-20 11:17:05 +00:00
moodler d35757eb25 Merged/cleaned changes from MOODLE_15_LDAP to HEAD ...
please don't use the MOODLE_15_LDAP branch any more.
2004-09-20 09:08:57 +00:00
moodler 9f2e099849 Latest tags 2004-09-20 08:54:12 +00:00
carlesbellver 9d91bb17b3 *** empty log message *** 2004-09-20 08:27:51 +00:00
mjollnir_ 8930f90071 Logging new file paths from backup/restore. Since the files don't have any metadata, we're logging against the logged in user (ie, the teacher restoring the course).
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-85
    2004-09-20 05:33:06 GMT
    Penny Leach <penny@catalyst.net.nz>
    adding log entries when restoring files
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-86
    2004-09-20 05:34:59 GMT
    Penny Leach <penny@catalyst.net.nz>
    fix related to logging uploads

Full logs:

Revision: moodle--eduforge--1.3.3--patch-85
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 20 17:33:06 NZST 2004
Standard-date: 2004-09-20 05:33:06 GMT
Modified-files: backup/lib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-85
Summary: adding log entries when restoring files
Keywords:

Revision: moodle--eduforge--1.3.3--patch-86
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 20 17:34:59 NZST 2004
Standard-date: 2004-09-20 05:34:59 GMT
Modified-files: lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-86
Summary: fix related to logging uploads
Keywords:
2004-09-20 05:51:42 +00:00
mjollnir_ 4bf5e3e2f6 Better attempts for handlevirus to find files to deal with them, added an instruction.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-82
    2004-09-20 00:52:11 GMT
    Penny Leach <penny@catalyst.net.nz>
    better attempt to find files in handlevirus.php based on output from clam
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-83
    2004-09-20 01:16:22 GMT
    Penny Leach <penny@catalyst.net.nz>
    better instructions for handlevirus.php running


Full logs:

Revision: moodle--eduforge--1.3.3--patch-82
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 20 12:52:11 NZST 2004
Standard-date: 2004-09-20 00:52:11 GMT
Modified-files: admin/handlevirus.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-82
Summary: better attempt to find files in handlevirus.php based on output from clam
Keywords:

Revision: moodle--eduforge--1.3.3--patch-83
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 20 13:16:22 NZST 2004
Standard-date: 2004-09-20 01:16:22 GMT
Modified-files: admin/handlevirus.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-83
Summary: better instructions for handlevirus.php running
Keywords:
2004-09-20 01:36:16 +00:00
mjollnir_ db290a6efc Fix for forums to behave slightly in a more friendly manner for reporting stuff about file uploads.
Also told upload class to not complain if there isn't a file selected.

These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-81
    2004-09-19 23:48:54 GMT
    Penny Leach <penny@catalyst.net.nz>
    fix for forum to print out messages including virus stuff and increase in time before redirect as there is more to read

Full logs:

Revision: moodle--eduforge--1.3.3--patch-81
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 20 11:48:54 NZST 2004
Standard-date: 2004-09-19 23:48:54 GMT
Modified-files: mod/forum/lib.php mod/forum/post.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-81
Summary: fix for forum to print out messages including virus stuff and increase in time before redirect as there is more to read
Keywords:
2004-09-20 00:04:44 +00:00
defacer 02ce384808 Merging fix for bug 1957 from MOODLE_14_STABLE. 2004-09-19 22:25:21 +00:00
gniske 9ef95d14bb updatet languagefiles and added missing strings 2004-09-19 21:42:43 +00:00
mits 9263039fe6 Polished and new translated some. 2004-09-19 20:49:17 +00:00
gniske 44d95969b2 updatet languagefiles and added missing strings 2004-09-19 20:30:34 +00:00
koenr bd3da8a2ff filling in missing strings 2004-09-19 20:09:02 +00:00
mits d1877a6a2c Polished. 2004-09-19 18:52:43 +00:00
mits 23eae5f025 Polished whole ja lang files.
Changed "matawa = or" from Kanji to Hiragana to make the expression more soften.
The meaning is not changed.
This is final vast polish.
2004-09-19 18:27:09 +00:00
koenr 4e8e70335f filling in missing strings 2004-09-19 18:14:50 +00:00
mits e76bf5858a New translated file added. 2004-09-19 14:50:44 +00:00
koenr f1f377145f filling in missing strings 2004-09-19 11:59:59 +00:00
koenr 59a61954e5 outdated file (no longer in use and containing short tags) 2004-09-19 11:31:24 +00:00
koenr 9d3f11519b outdated file (several import formats missing) 2004-09-19 11:18:53 +00:00
koenr 6c830bc1f6 fixed short tags 2004-09-19 11:00:16 +00:00
mits 1afec1330d Polished. 2004-09-19 01:29:53 +00:00
skodak d1a6dd2716 short php tags - Bug #1956 2004-09-18 22:36:09 +00:00
mits 201764c4d1 translated some. 2004-09-18 21:26:09 +00:00
mits 4e409d4193 Polished whole ja lang files.
Changed "tame = for" from Kanji to Hiragana to make the expression more soften.
The meaning is not changed.
2004-09-18 20:58:10 +00:00
mits 6f0ada8125 Polished 2004-09-18 18:41:42 +00:00
mits 176dbc3b78 Polished 2004-09-18 18:34:16 +00:00
rkingdon 50b92d13a3 Adding help files previously deleted into HEAD 2004-09-18 16:38:20 +00:00
defacer 4c7d113714 Nit-picking corrections... behavior doesn't change at all. 2004-09-18 16:14:54 +00:00
moodler 23f160464a Merged changes from stable to fix bug 1957 2004-09-18 13:17:23 +00:00
martignoni d73adc5469 Encoding corrected 2004-09-18 12:24:18 +00:00
martignoni 09e6bb2df2 Update to last modifications 2004-09-18 12:17:41 +00:00
mits d186f8d280 Polished. 2004-09-18 11:21:34 +00:00
mits 18f3da253d Polished and new translated some. 2004-09-18 11:11:00 +00:00
mits a67b519130 Polished 2004-09-18 07:54:34 +00:00
mits 549f4bea05 translated some 2004-09-18 07:40:44 +00:00
mits 7361f25f40 Polished 2004-09-18 07:19:35 +00:00
mits 140a519c5c Polished 2004-09-18 07:17:09 +00:00
mits afb12cb079 Polished whole ja langfile.
Changed "dekiru = be able to" from Kanji to Hiragana to make the expression more soften.
The meaning is not changed.
2004-09-17 16:42:37 +00:00
mits 9b83f8c80a Polished and translated file added. 2004-09-17 15:59:03 +00:00
gustav_delius 5ddaa2e237 resolved a conflict ith previous commit 2004-09-17 10:28:08 +00:00
mjollnir_ eee8d9c8f5 bumps for version and requires for modules that use new upload class 2004-09-17 05:46:12 +00:00
mits 90e0ca32e1 Polished and new translated some. 2004-09-17 05:04:32 +00:00
mjollnir_ 9603814743 Small bug fixes for upload class.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-75
    2004-09-17 03:19:50 GMT
    Penny Leach <penny@catalyst.net.nz>
    bug fix for upload class related to optional file uploads (like in user/edit.php)
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-76
    2004-09-17 03:23:17 GMT
    Penny Leach <penny@catalyst.net.nz>
    bug fix for upload class related to optional file uploads (like in user/edit.php)
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-77
    2004-09-17 03:42:10 GMT
    Penny Leach <penny@catalyst.net.nz>
    more fixes for upload class

Full logs:

Revision: moodle--eduforge--1.3.3--patch-75
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 17 15:19:50 NZST 2004
Standard-date: 2004-09-17 03:19:50 GMT
Modified-files: lib/uploadlib.php user/edit.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-75
Summary: bug fix for upload class related to optional file uploads (like in user/edit.php)
Keywords:

Revision: moodle--eduforge--1.3.3--patch-76
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 17 15:23:17 NZST 2004
Standard-date: 2004-09-17 03:23:17 GMT
Modified-files: lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-76
Summary: bug fix for upload class related to optional file uploads (like in user/edit.php)
Keywords:

Revision: moodle--eduforge--1.3.3--patch-77
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 17 15:42:10 NZST 2004
Standard-date: 2004-09-17 03:42:10 GMT
Modified-files: lang/en/moodle.php lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-77
Summary: more fixes for upload class
Keywords:
2004-09-17 04:21:41 +00:00
moodler cb4be1c7dc Merged moving of spellcheck button 2004-09-17 03:54:38 +00:00
moodler 38fcc21592 Merged PHP5 fix from stable 2004-09-17 03:00:20 +00:00
moodler a3721d25d9 Upgraded to cover things like new upload files class 2004-09-17 01:42:59 +00:00
mjollnir_ c80b75857d Changes to log view page so that infected files comes under 'site errors'.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-73
    2004-09-17 00:05:28 GMT
    Penny Leach <penny@catalyst.net.nz>
    better logging for uploads and infected files, as well as changing the log page view slightly so that site errors yields infected files as well

Full logs:

Revision: moodle--eduforge--1.3.3--patch-73
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 17 12:05:28 NZST 2004
Standard-date: 2004-09-17 00:05:28 GMT
Modified-files: course/lib.php lib/uploadlib.php
    lib/weblib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-73
Summary: better logging for uploads and infected files, as well as changing the log page view slightly so that site errors yields infected files as well
Keywords:
2004-09-17 00:10:53 +00:00
mjollnir_ 7604c7db98 Logging infected files to error_log AND moodle log table.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-72
    2004-09-16 22:30:44 GMT
    Penny Leach <penny@catalyst.net.nz>
    logging infected files to error_log and the moodle log table, slight change to instructions in handlevirus.php

Full logs:

Revision: moodle--eduforge--1.3.3--patch-72
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 17 10:30:44 NZST 2004
Standard-date: 2004-09-16 22:30:44 GMT
Modified-files: admin/handlevirus.php lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-72
Summary: logging infected files to error_log and the moodle log table, slight change to instructions in handlevirus.php
Keywords:
2004-09-16 23:12:20 +00:00
mits 955db8b169 Polished and new translated files added. 2004-09-16 18:36:57 +00:00
gustav_delius 4fd59da7ab added missing </center> 2004-09-16 18:33:35 +00:00
gustav_delius ad954fc574 closed some <input>s 2004-09-16 18:23:38 +00:00
rkingdon dfeaa008d3 Added second argument ($cm) to groupmode() calls in
_get_available_students function.
2004-09-16 17:33:59 +00:00
gustav_delius 839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
michaelpenne e5c6a35c22 Fixed the primary key problem in the mysql. 2004-09-16 16:20:59 +00:00
villate c0025da068 Completed for ver. 1.4 2004-09-16 14:11:21 +00:00
villate d11920ff10 Translation by Moodle PT contributors 2004-09-16 14:07:36 +00:00
villate 9194e0d320 Translations contributed by Tiago Nunes 2004-09-16 14:04:02 +00:00
mits 46fb81752a Polished. 2004-09-16 13:25:26 +00:00
defacer 99235a67cd Merging changes from MOODLE_14_STABLE 2004-09-16 10:55:17 +00:00
defacer c3d3b6d48b Fixing the logic errors my previous commit introduced. Notice how easily writing
"cute" code (courseid > 1, both checking for non-zero and non-courseid value)
can lead to mistakes later. And it's my own code, even...

Also removed one obsolete function.
2004-09-16 10:30:40 +00:00
defacer 9064751bc3 Fixed all hard-coded SITEID references. Thanks to Eloy for pointing it out!
(In the end there were more than we thought; I just searched for all "1"s)
2004-09-16 10:14:44 +00:00
andreabix 0e71599da4 eliminated unwnted double space CRs 2004-09-16 09:45:23 +00:00
kaipe 84250ebb12 Fixes bug #1854 2004-09-16 06:35:49 +00:00
moodler b3484504bb Merged randomisation fix from stable 2004-09-16 05:43:19 +00:00
mjollnir_ 12e6ee6e8e Added clam_log_upload where move_uploaded_file is in quiz/format/coursetestmanager/format.php (validated and scanned before given to function)
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-71
    2004-09-16 04:48:07 GMT
    Penny Leach <penny@catalyst.net.nz>
    difficult to integrate quiz coursetestmanager format with the upload stuff so added logging as well. files are scanned from import.php before passed to coursetestmanager format to process

Full logs:

Revision: moodle--eduforge--1.3.3--patch-71
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:48:07 NZST 2004
Standard-date: 2004-09-16 04:48:07 GMT
Modified-files: mod/quiz/format/coursetestmanager/format.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-71
Summary: difficult to integrate quiz coursetestmanager format with the upload stuff so added logging as well. files are scanned from import.php before passed to coursetestmanager format to process
Keywords:
2004-09-16 04:50:21 +00:00
mjollnir_ 95c603d35d Integration of upload code with quiz import
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-70
    2004-09-16 04:41:12 GMT
    Penny Leach <penny@catalyst.net.nz>
    upload class integration with quiz import

Full logs:

Revision: moodle--eduforge--1.3.3--patch-70
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:41:12 NZST 2004
Standard-date: 2004-09-16 04:41:12 GMT
Modified-files: mod/quiz/import.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-70
Summary: upload class integration with quiz import
Keywords:
2004-09-16 04:42:59 +00:00
mjollnir_ 6e30064b5d Integration of upload code with lesson - html form
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-69
    2004-09-16 04:31:47 GMT
    Penny Leach <penny@catalyst.net.nz>
    added the upload class stuff for the upload form for lesson

Full logs:

Revision: moodle--eduforge--1.3.3--patch-69
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:31:47 NZST 2004
Standard-date: 2004-09-16 04:31:47 GMT
Modified-files: mod/lesson/import.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-69
Summary: added the upload class stuff for the upload form for lesson
Keywords:
2004-09-16 04:33:29 +00:00
mjollnir_ 3dc2cd2dee Integration of upload code with lesson.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-68
    2004-09-16 04:22:37 GMT
    Penny Leach <penny@catalyst.net.nz>
    upload class integration with lesson

Full logs:

Revision: moodle--eduforge--1.3.3--patch-68
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:22:37 NZST 2004
Standard-date: 2004-09-16 04:22:37 GMT
Modified-files: mod/lesson/import.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-68
Summary: upload class integration with lesson
Keywords:
2004-09-16 04:25:55 +00:00
mjollnir_ 2d53dd68ec Small fix for assignment regarding integration with upload class.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-67
    2004-09-16 04:21:28 GMT
    Penny Leach <penny@catalyst.net.nz>
    tiny fix for assignment integration

Full logs:

Revision: moodle--eduforge--1.3.3--patch-67
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:21:28 NZST 2004
Standard-date: 2004-09-16 04:21:28 GMT
Modified-files: mod/assignment/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-67
Summary: tiny fix for assignment integration
Keywords:
2004-09-16 04:25:24 +00:00
fiedorow 16da26a666 With authentication defined on per user basis, all user administration methods should be available, regardless whether the default site method is internal or external 2004-09-16 01:50:41 +00:00
fiedorow 7098a2c06b UI for admin to change authentication method for given user 2004-09-16 01:45:20 +00:00
mjollnir_ 81d425b43c Integration of new centralised upload code with user profile, and group profile, as well as an enhancement to upload class to be configured to be silent.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-66
    2004-09-16 00:03:41 GMT
    Penny Leach <penny@catalyst.net.nz>
    changes to upload class to be silent if we want it to be, integration with editing user profile and group profile (which meant changes in lib/gdlib.php as well as course/group-edit and group.php and user/edit.html and edit.php


Full logs:

Revision: moodle--eduforge--1.3.3--patch-66
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 12:03:41 NZST 2004
Standard-date: 2004-09-16 00:03:41 GMT
Modified-files: course/group-edit.html course/group.php
    lib/gdlib.php lib/uploadlib.php user/edit.html
    user/edit.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-66
Summary: changes to upload class to be silent if we want it to be, integration with editing user profile and group profile (which meant changes in lib/gdlib.php as well as course/group-edit and group.php and user/edit.html and edit.php
Keywords:
2004-09-16 00:16:48 +00:00
mjollnir_ 46c5446e34 Integration of new centralised upload code with admin/uploaduser.php and fix in upload class so preprocess_files returns false if there are no files!
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-65
    2004-09-15 22:31:09 GMT
    Penny Leach <penny@catalyst.net.nz>
    upload class now returns false in proprocess_files if there are no files (duh), + admin/uploaduser using upload class

Full logs:

Revision: moodle--eduforge--1.3.3--patch-65
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 10:31:09 NZST 2004
Standard-date: 2004-09-15 22:31:09 GMT
Modified-files: admin/uploaduser.php lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-65
Summary: upload class now returns false in proprocess_files if there are no files (duh), + admin/uploaduser using upload class
Keywords
2004-09-15 22:42:10 +00:00
mjollnir_ 16ffe14a93 Integration of new centralised upload code with wiki/wikifiles.php - this is the choose initial page part, not the upload a page into the wiki part.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-63
    2004-09-15 21:56:38 GMT
    Penny Leach <penny@catalyst.net.nz>
    wikifiles integration with upload class - this is just the initial page part, not the upload a file into the wiki parg


Full logs:

Revision: moodle--eduforge--1.3.3--patch-63
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 09:56:38 NZST 2004
Standard-date: 2004-09-15 21:56:38 GMT
Modified-files: mod/wiki/wikifiles.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-63
Summary: wikifiles integration with upload class - this is just the initial page part, not the upload a file into the wiki parg
Keywords:
2004-09-15 22:07:27 +00:00
michaelpenne 5e7856af58 Added a lot of new features to lesson mod. Check them out :)
MarkNielsen
2004-09-15 20:32:24 +00:00
michaelpenne 91d5d7b418 Added new lang help info for lesson mod - MarkNielsen 2004-09-15 20:28:47 +00:00
michaelpenne 728bb2a12e Added new lang info for lesson mod - MarkNielsen 2004-09-15 20:23:31 +00:00
mits 2af1a79d6e translated some. 2004-09-15 19:12:02 +00:00
rkingdon ba69e0e349 Simplified first paragraph and removed reference to teachers grading
assessments.
2004-09-15 17:28:59 +00:00
villate d0a4710433 Updates contributed by Moodle-PT comunity 2004-09-15 17:21:22 +00:00
mits 596c688c1c New translated file added. 2004-09-15 16:41:37 +00:00
mits 579d83c29e Translated some 2004-09-15 13:59:29 +00:00
martignoni a5a9b15a32 Corrected line breaks 2004-09-15 09:38:06 +00:00
martignoni 7a4f85b710 More typos and improvements 2004-09-15 09:24:57 +00:00
martignoni e928e4362b On more typo 2004-09-15 09:16:53 +00:00
martignoni 19e1e0d319 One forgotten string ;-) 2004-09-15 09:15:52 +00:00
martignoni 800737c291 Centralised file upload code, integration with clam AV 2004-09-15 08:44:30 +00:00
mjollnir_ 960db9965f Integration of new centralised upload code with lib/editor/coursefiles.php and courseimages.php
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:


arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-60
    2004-09-15 03:27:36 GMT
    Penny Leach <penny@catalyst.net.nz>
    upload class integration for lib/editor/coursefiles.php and courseimages.php

Full logs:

Revision: moodle--eduforge--1.3.3--patch-60
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Wed Sep 15 15:27:36 NZST 2004
Standard-date: 2004-09-15 03:27:36 GMT
Modified-files: lib/editor/coursefiles.php
    lib/editor/courseimages.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-60
Summary: upload class integration for lib/editor/coursefiles.php and courseimages.php
Keywords:
2004-09-15 03:57:00 +00:00
mjollnir_ 3bb4d8440b Integration of new centralised upload code with files/index.php
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-59
    2004-09-15 02:41:00 GMT
    Penny Leach <penny@catalyst.net.nz>
    upload/virus integration with course files

Full logs:

Revision: moodle--eduforge--1.3.3--patch-59
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Wed Sep 15 14:41:00 NZST 2004
Standard-date: 2004-09-15 02:41:00 GMT
Modified-files: files/index.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-59
Summary: upload/virus integration with course files
Keywords:
2004-09-15 02:43:40 +00:00
mjollnir_ 21de6ca1db Integration of new centralised file upload code with workshop module.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-57
    2004-09-14 23:37:49 GMT
    Penny Leach <penny@catalyst.net.nz>
    added important instruction to handlevirus.php

Full logs:

Revision: moodle--eduforge--1.3.3--patch-57
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Wed Sep 15 11:37:49 NZST 2004
Standard-date: 2004-09-14 23:37:49 GMT
Modified-files: admin/handlevirus.php
    mod/workshop/locallib.php mod/workshop/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-57
Summary: added important instruction to handlevirus.php
Keywords:
2004-09-15 00:03:04 +00:00
mchurch b02193e605 Fixed 'remove_teacher' to remove the teacher from any groups. 2004-09-14 23:54:23 +00:00
mjollnir_ 18b8fbfa0d Centralised file upload code, integration with clam AV, integration with some modules: assignment, exercise, forum, glossaryt, resource, scorm (more to come soon).
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-15
    final touches to sears stuff until testing can begin, beginning of magical uploadey wrappery function goodness

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-18
    Virus scanning on upload

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-19
    made emacs use spaces instead of tabs and fixed lib/moodlelib.php where it was bad in the new functions; few wording changes, added in support for clamdscan

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-20
    handlevirus.php = new script to handle output of clamscan (designed for cron clamscan), changes to strings for emailing out virus notifications, changes to moodlelib - slightly different notice reporting in handle_infected_file and new function for replacing file with message

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-21
    refactor to filter out invalid lines in input to handlevirus

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-22
    modified assignment to use hande_file_upload

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-25
    bug fix for handle_file_upload

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-26
    Small fix for non thinking brain doing something silly

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-35
    small fix to switch order of items in drop down to allow sensible defaults

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-36
    small changes to strings file

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-38
    taken stuff out of moodlelib to put in upload class

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-39
    new upload class -in a changeset by itself just in case - not quite finished

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-40
    tweaks to upload class - clam_scan_file can now take a path as an argument, not just an entry from _FILES, there is better handling of failure and notification, more allowance for module writers to keep control in general. Also slightly nicer strings entries for a few things

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-41
    upload class integration with assignment module, bug fix, slight tweak

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-42
    small changes to uploadlib, integration with assessment and assignment

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-44
    tweaks for assessment and assignment for uploading

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-48
    integration with exercise module

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-49
    integration of virus stuff with forum module

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-50
    integration of upload class and glossary module

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-51
    just in case glossary_move_attachments is ever used, we change the log entries before we move the files. also  moved clam_log_upload out of the class

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-52
    virus scanning for imports for glossary

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-53
    relog entries when moving files attached to forum posts

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-54
    resource module integration with virus scanning

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-55
    scorm integration with upload/virus class

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-56
    fix for handlevirus.php since upload class changes


Full logs:

Revision: moodle--eduforge--1.3.3--patch-15
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Wed Sep  1 17:28:13 NZST 2004
Standard-date: 2004-09-01 05:28:13 GMT
Modified-files: lang/en/moodle.php lib/moodlelib.php
    mod/assessment/sears.php mod/assessment/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-15
Summary: final touches to sears stuff until testing can begin, beginning of magical uploadey wrappery function goodness
Keywords:

Revision: moodle--eduforge--1.3.3--patch-18
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep  2 15:49:54 NZST 2004
Standard-date: 2004-09-02 03:49:54 GMT
Modified-files: admin/config.html lang/en/moodle.php
    lib/moodlelib.php mod/assessment/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-18
Summary: Virus scanning on upload
Keywords:

Revision: moodle--eduforge--1.3.3--patch-19
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep  2 17:06:14 NZST 2004
Standard-date: 2004-09-02 05:06:14 GMT
Modified-files: lang/en/moodle.php lib/moodlelib.php
    mod/assessment/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-19
Summary: made emacs use spaces instead of tabs and fixed lib/moodlelib.php where it was bad in the new functions; few wording changes, added in support for clamdscan
Keywords:

Revision: moodle--eduforge--1.3.3--patch-20
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep  3 16:06:05 NZST 2004
Standard-date: 2004-09-03 04:06:05 GMT
New-files: admin/.arch-ids/handlevirus.php.id
    admin/handlevirus.php
Modified-files: lang/en/moodle.php lib/moodlelib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-20
Summary: handlevirus.php = new script to handle output of clamscan (designed for cron clamscan), changes to strings for emailing out virus notifications, changes to moodlelib - slightly different notice reporting in handle_infected_file and new function for replacing file with message
Keywords:

Revision: moodle--eduforge--1.3.3--patch-21
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep  6 11:37:31 NZST 2004
Standard-date: 2004-09-05 23:37:31 GMT
Modified-files: admin/handlevirus.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-21
Summary: refactor to filter out invalid lines in input to handlevirus
Keywords:

Revision: moodle--eduforge--1.3.3--patch-22
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep  6 13:07:48 NZST 2004
Standard-date: 2004-09-06 01:07:48 GMT
Modified-files: mod/assignment/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-22
Summary: modified assignment to use hande_file_upload
Keywords:

Revision: moodle--eduforge--1.3.3--patch-25
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep  6 16:32:11 NZST 2004
Standard-date: 2004-09-06 04:32:11 GMT
Modified-files: lib/moodlelib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-25
Summary: bug fix for handle_file_upload
Keywords:

Revision: moodle--eduforge--1.3.3--patch-26
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep  6 16:51:50 NZST 2004
Standard-date: 2004-09-06 04:51:50 GMT
Modified-files: lib/moodlelib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-26
Summary: Small fix for non thinking brain doing something silly
Keywords:

Revision: moodle--eduforge--1.3.3--patch-35
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 10:09:53 NZST 2004
Standard-date: 2004-09-09 22:09:53 GMT
Modified-files: admin/config.html
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-35
Summary: small fix to switch order of items in drop down to allow sensible defaults
Keywords:

Revision: moodle--eduforge--1.3.3--patch-36
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 10:11:29 NZST 2004
Standard-date: 2004-09-09 22:11:29 GMT
Modified-files: lang/en/moodle.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-36
Summary: small changes to strings file
Keywords:

Revision: moodle--eduforge--1.3.3--patch-38
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 10:17:24 NZST 2004
Standard-date: 2004-09-09 22:17:24 GMT
Modified-files: lib/moodlelib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-38
Summary: taken stuff out of moodlelib to put in upload class
Keywords:

Revision: moodle--eduforge--1.3.3--patch-39
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 10:21:21 NZST 2004
Standard-date: 2004-09-09 22:21:21 GMT
New-files: lib/.arch-ids/uploadlib.php.id lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-39
Summary: new upload class -in a changeset by itself just in case - not quite finished
Keywords:

Revision: moodle--eduforge--1.3.3--patch-40
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 11:58:24 NZST 2004
Standard-date: 2004-09-09 23:58:24 GMT
Modified-files: lang/en/moodle.php lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-40
Summary: tweaks to upload class - clam_scan_file can now take a path as an argument, not just an entry from _FILES, there is better handling of failure and notification, more allowance for module writers to keep control in general. Also slightly nicer strings entries for a few things
Keywords:

Revision: moodle--eduforge--1.3.3--patch-41
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 12:38:02 NZST 2004
Standard-date: 2004-09-10 00:38:02 GMT
Modified-files: lib/uploadlib.php mod/assignment/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-41
Summary: upload class integration with assignment module, bug fix, slight tweak
Keywords:

Revision: moodle--eduforge--1.3.3--patch-42
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 15:30:20 NZST 2004
Standard-date: 2004-09-10 03:30:20 GMT
Modified-files: lib/uploadlib.php mod/assessment/upload.php
    mod/assessment/view.php mod/assignment/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-42
Summary: small changes to uploadlib, integration with assessment and assignment
Keywords:

Revision: moodle--eduforge--1.3.3--patch-44
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Fri Sep 10 16:54:40 NZST 2004
Standard-date: 2004-09-10 04:54:40 GMT
Modified-files: mod/assessment/lib.php
    mod/assignment/lib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-44
Summary: tweaks for assessment and assignment for uploading
Keywords:

Revision: moodle--eduforge--1.3.3--patch-48
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 13 09:57:03 NZST 2004
Standard-date: 2004-09-12 21:57:03 GMT
Modified-files: lang/en/moodle.php
    mod/exercise/locallib.php mod/exercise/upload.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-48
Summary: integration with exercise module
Keywords:

Revision: moodle--eduforge--1.3.3--patch-49
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 13 11:35:46 NZST 2004
Standard-date: 2004-09-12 23:35:46 GMT
Modified-files: mod/forum/lib.php mod/forum/post.html
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-49
Summary: integration of virus stuff with forum module
Keywords:

Revision: moodle--eduforge--1.3.3--patch-50
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 13 14:00:29 NZST 2004
Standard-date: 2004-09-13 02:00:29 GMT
Modified-files: lang/en/glossary.php mod/glossary/edit.html
    mod/glossary/edit.php mod/glossary/lib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-50
Summary: integration of upload class and glossary module
Keywords:

Revision: moodle--eduforge--1.3.3--patch-51
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 13 15:13:02 NZST 2004
Standard-date: 2004-09-13 03:13:02 GMT
Modified-files: lib/uploadlib.php mod/glossary/lib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-51
Summary: just in case glossary_move_attachments is ever used, we change the log entries before we move the files. also  moved clam_log_upload out of the class
Keywords:

Revision: moodle--eduforge--1.3.3--patch-52
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 13 15:26:56 NZST 2004
Standard-date: 2004-09-13 03:26:56 GMT
Modified-files: mod/glossary/import.html
    mod/glossary/import.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-52
Summary: virus scanning for imports for glossary
Keywords:

Revision: moodle--eduforge--1.3.3--patch-53
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 13 16:02:22 NZST 2004
Standard-date: 2004-09-13 04:02:22 GMT
Modified-files: mod/forum/lib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-53
Summary: relog entries when moving files attached to forum posts
Keywords:

Revision: moodle--eduforge--1.3.3--patch-54
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 13 16:58:37 NZST 2004
Standard-date: 2004-09-13 04:58:37 GMT
Modified-files: mod/resource/coursefiles.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-54
Summary: resource module integration with virus scanning
Keywords:

Revision: moodle--eduforge--1.3.3--patch-55
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Tue Sep 14 16:15:47 NZST 2004
Standard-date: 2004-09-14 04:15:47 GMT
Modified-files: mod/scorm/coursefiles.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-55
Summary: scorm integration with upload/virus class
Keywords:

Revision: moodle--eduforge--1.3.3--patch-56
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Wed Sep 15 10:33:23 NZST 2004
Standard-date: 2004-09-14 22:33:23 GMT
Modified-files: admin/handlevirus.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-56
Summary: fix for handlevirus.php since upload class changes
Keywords:
2004-09-14 22:58:13 +00:00
gustav_delius e0b7b090d3 towards XHTML compliance 2004-09-14 20:39:28 +00:00
mits 7a57f367ce Polished and new translated files added. 2004-09-14 18:07:43 +00:00
mits fda4129df4 translated some. 2004-09-14 17:04:56 +00:00
carlesbellver 1252b08b96 *** empty log message *** 2004-09-14 11:12:50 +00:00
moodler f77c261e4d FIxes to qualified_me suggested by Greg Barnett 2004-09-14 08:41:17 +00:00
mchurch d2481a47ba Fixed strip_pages bug. 2004-09-13 23:03:42 +00:00
mits 90c78e649f polished 2004-09-13 22:39:00 +00:00
mits 3ca53c0a22 translated some. 2004-09-13 22:19:14 +00:00
mits 01453eb748 Polished. 2004-09-13 21:25:48 +00:00
mits 752cb064c1 polished 2004-09-13 20:30:45 +00:00
martignoni 4163af8dd4 towards XHTML compliance 2004-09-13 19:03:19 +00:00
koenr 6b95e6b1c2 New language: Ukrainian
Thanks to Andriy Olefirenko
2004-09-13 18:52:48 +00:00
koenr 831f406502 Updated Estonian files
deleted English files in the et language pack
2004-09-13 18:23:08 +00:00
mits 4adb1e6a68 translated some. 2004-09-13 18:15:30 +00:00
koenr 777ad59c7b deleted English files in language pack 2004-09-13 17:45:47 +00:00
koenr 46d6ecf0ea estonian update 2004-09-13 17:16:53 +00:00
aredkin 35a8e77016 from Alex Djachenko 2004-09-13 14:53:41 +00:00
martignoni add3cdf657 Small correction 2004-09-13 12:46:15 +00:00
martignoni 378f858b49 New file added 2004-09-13 12:45:48 +00:00
mits 6cf88a6d7d Polished. 2004-09-13 09:21:58 +00:00
moodler 5889ed3a19 Latest version from Anders Berggren 2004-09-13 08:33:05 +00:00
moodler 6d9b3de4e0 Auto-detection of type, apparently. 2004-09-13 08:21:46 +00:00
moodler b797605898 Merged XML UTF-8 fixed from stable (see bug 1927) 2004-09-13 08:17:09 +00:00
mits f02511d686 Polished. 2004-09-13 04:03:34 +00:00
gustav_delius 26686b7ae3 closed some br and img tags 2004-09-12 22:39:20 +00:00
gustav_delius 1c5d9bbbec closed some br tags 2004-09-12 22:29:44 +00:00
gustav_delius b4510d5333 closed some input tags 2004-09-12 22:23:51 +00:00
gustav_delius 98ea2a6e02 closed some image tags 2004-09-12 21:55:34 +00:00
gustav_delius 9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +00:00
gustav_delius 730a5f5abe fixed capitalization and quoting of attribute values 2004-09-12 20:45:41 +00:00
gustav_delius a43bbd9a15 fixed quoting of attribute values 2004-09-12 20:30:43 +00:00
gustav_delius d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
gustav_delius 41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
mits 2fd5f551a9 New translator 2004-09-12 15:14:36 +00:00
gustav_delius 1c61c8d6bc fixed capitalization and quoting of attribute values 2004-09-12 15:06:29 +00:00
gustav_delius a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
mits 4f5dc6645d Polished. 2004-09-12 14:14:27 +00:00
mits 1d59bcdf6f New translated files added.
Now another translator in Japanese moodle!!
2004-09-12 13:32:53 +00:00
gustav_delius dcb1bd3c9a towards XHTML compliance 2004-09-12 13:21:01 +00:00
gustav_delius 24f2b65a4d towards XHTML compliance 2004-09-12 12:21:27 +00:00
stronk7 f13cfd75e2 Updated the help-list and add directorypaths 2004-09-12 09:47:39 +00:00
stronk7 cb037ebe17 Some typos...solved. 2004-09-12 09:20:07 +00:00
stronk7 86aeb6949e 1.4.1 ready!! 2004-09-12 08:45:33 +00:00
moodler 456e8b31a4 Release notes for 1.4.1
I'll release this version in about 8 hours, just in case any of the
translators want to translate these release notes.
2004-09-12 08:02:06 +00:00
mits c90681f5a1 Translated some and new translated files added. 2004-09-12 06:54:21 +00:00
gustav_delius 7ef0797dea some fixes for XHTML compliance 2004-09-12 01:34:24 +00:00
gustav_delius 0cdd138180 some fixes for XHTML compliance 2004-09-12 00:21:21 +00:00
rkingdon 32dc4fe352 First stab at XHTML conformance. 2004-09-11 19:47:29 +00:00
rkingdon 8ea9ac5fd4 Additional explaination for Short Answers and the asterix character. 2004-09-11 15:49:40 +00:00
mits c8134cc5f0 Polished 2004-09-11 14:33:06 +00:00
moodler e08d4492fd SOme tidying up of the english. 2004-09-11 14:10:23 +00:00
martignoni 01379f9452 New missing files added 2004-09-11 10:22:04 +00:00
martignoni 2a6a58560d String 'mailnotification' 2004-09-11 09:36:53 +00:00
mits c25c8401c9 Polished 2004-09-11 03:03:06 +00:00
moodler 4d21507fab Bumping it just for kicks 2004-09-11 01:44:13 +00:00
mits 836a22225d Translated some 2004-09-10 22:02:15 +00:00
rkingdon 8544774f37 Slightly improved version for checking short answers. 2004-09-10 21:38:15 +00:00
rkingdon c02f173799 Correction to Short answers, now checks the answers in order (first to
last) and stops checking if a match is found.
2004-09-10 20:58:50 +00:00
rkingdon 414f3a1938 Change name of option from Mail default to Mail notification, fix bug
#1929. First stage XHTML conformance.
2004-09-10 18:48:51 +00:00
rkingdon df084203a7 Minor change to title (bug #1929) 2004-09-10 18:45:49 +00:00
rkingdon 9be8c24785 Addition of Mail notification string (bug #1929) 2004-09-10 18:44:51 +00:00
mchurch 91fa15e4c2 Fixed a bug in export caused by the removal of email filters. 2004-09-10 18:38:25 +00:00
moodler 5219d07c63 String thisdirection should be 'ltr' or 'rtl' 2004-09-10 07:55:26 +00:00
moodler 09f275ce55 Merged from stable 2004-09-10 06:05:29 +00:00
mjollnir_ a6c7e600bc bug related to postgres - inserts into prefix_exercise_assessments were failing,
because generalcomment and teachercomment were not null and didn't have defaults.
for some reason mysql allows this but postgres complains. I've set empty string defaults and added into mysql for consistency.
2004-09-10 04:42:01 +00:00
moodler 01a5135d87 Added some instructions for translators on some important strings 2004-09-10 02:20:58 +00:00
rkingdon 3e906ba934 Prints correct phase for newly created exercise (when phase is 0). 2004-09-09 21:17:07 +00:00
rkingdon d08e0e1321 Spurious $ in a page heading removed. 2004-09-09 21:11:12 +00:00
rkingdon 28584bc0a6 Fixed bug in resumitting work - datalib now looks at record->id value. 2004-09-09 18:47:07 +00:00
stronk7 539f698d73 Important changes about how view.php (and print.php) retrieve records
from BD to be displayed. Some SQL statements have been modified to
get target records, avoiding a lot of post-processing causing some
bugs like Bug 1912
(http://moodle.org/bugs/bug.php?op=show&bugid=1912)

Merged from MOODLE_14_STABLE
2004-09-09 18:31:50 +00:00
martignoni 797ba17e78 Some new strings 2004-09-09 18:09:11 +00:00
mits f3454d962c Polished. 2004-09-09 17:37:28 +00:00
mits f0fedddd28 Polished and new translated file added. 2004-09-09 16:24:35 +00:00
stronk7 0cfd2c86dc Added Hannes Gassert too! :-D 2004-09-09 15:52:07 +00:00
moodler e5a86e3117 Added Hannes Gassert 2004-09-09 15:33:58 +00:00
petcheverry ea304bc3ea file update_tables.sql was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-09-09 15:15:27 +00:00
petcheverry f5ce3e9a9a file mod2.php was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-09-09 13:25:00 +00:00
petcheverry e3b085d9a0 file assignment.class.php was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-09-09 13:23:11 +00:00
petcheverry 31483be125 file mod.html was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-09-09 13:23:11 +00:00
petcheverry f32364e8d5 file common_end.html was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-09-09 13:23:10 +00:00
petcheverry eae7813f87 file common.html was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-09-09 13:23:10 +00:00
petcheverry 48b3b1a948 file postdata.html was initially added on branch MOODLE_14_ASSIGNMENTREFACTOR. 2004-09-09 13:23:10 +00:00
mchurch c49ae4ae77 Fixed potential undefined variable. 2004-09-09 12:52:24 +00:00
fiedorow a8f27ff58d Do not redeclare auth_user_login upon login failure 2004-09-09 12:37:34 +00:00
defacer 3395a558c9 Importing fix for bug 1921 from stable. 2004-09-09 11:55:00 +00:00
defacer 9a624c52b1 Capitalizing first letter of each block title word. 2004-09-09 11:39:57 +00:00
defacer 8113661471 Merging addslashes() change from stable. 2004-09-09 10:58:25 +00:00
defacer deaa884234 Full XHTML 1.0 compliance. I hope I didn't miss anything. 2004-09-09 10:41:23 +00:00
defacer 67b1b6c2cc Small fixes, moving towards XHTML compliance. 2004-09-09 10:26:11 +00:00
moodler 631cf796d4 Merged enrolment fixes frm stable 2004-09-09 09:43:51 +00:00
stronk7 61c72439c5 Solved an small issue when "not clasified" was selected and
we tried to edit categories.

Merged from MOODLE_14_STABLE
2004-09-09 09:06:18 +00:00
moodler 7d8c2ec3df SITEID is more flexible 2004-09-09 06:59:48 +00:00
moodler 4c5e7f1f13 Removed the word "real" from English string:
"Hide my real email address from everyone"

  because it doesn't make sense!!
2004-09-09 05:31:33 +00:00
stronk7 f74fd81898 Increase memory_limit to 128 in backups & restore.
Merged from MOODLE_14_STABLE
2004-09-08 22:47:19 +00:00
mchurch 3cb4dc4202 Making file XHTML 1.0 Transitional compliant... 2004-09-08 21:37:11 +00:00
mchurch 8bd84b4d36 More XHTML 1.0 Transitional compliance. 2004-09-08 21:36:12 +00:00
mchurch 6ccf1c631a Changed some tags for XHTML 1.0 Transitional compliance. 2004-09-08 21:27:11 +00:00
mchurch e5e81e7892 Tags changed for XHTML 1.0 Transitional compliance. 2004-09-08 21:25:33 +00:00
mchurch 1c919752a2 Modified a bunch of tags to make them XHTML 1.0 Transitional compliant. 2004-09-08 19:24:38 +00:00
stronk7 2c0f08b3df Changed to plural (directorypath-->directorypaths)
Merged from MOODLE_14_STABLE
2004-09-08 18:11:43 +00:00
stronk7 8dc516a460 *** empty log message *** 2004-09-08 18:04:57 +00:00
stronk7 9f4bb085f4 Added one new file about directory paths syntax.
Please, review it!!
2004-09-08 18:01:32 +00:00
julmis a44b339b1f Merging from MOODLE_14_STABLE 2004-09-08 16:58:50 +00:00
stronk7 388c5e96c3 Added a help button about directory paths...
Merged from MOODLE_14_STABLE
2004-09-08 16:49:47 +00:00
stronk7 edee13bfe8 Added two old missing strings for scheduled backups. 2004-09-08 16:36:59 +00:00
mits 237adb75e6 Polished. 2004-09-08 16:36:37 +00:00
mits 4ead2fe88a Polished. 2004-09-08 16:28:11 +00:00
moodler 7c3aa35887 Merged smiley/Markdown fixes 2004-09-08 16:18:45 +00:00
moodler 65ee9c16b3 Merged fixes for get_course_users from stable 1.4 2004-09-08 15:46:43 +00:00
rkingdon b25b9f2dce New help files for version 2004081100. 2004-09-08 11:27:59 +00:00
andreabix 5d6bb02f7c Added XHTML header definition and footer validation links 2004-09-08 07:53:53 +00:00
moodler 91d39e19ef Merged increased memory limit from stable 2004-09-08 07:11:48 +00:00
moodler 7e6bf1253a Repeated fixes made in stable:
- moved two functions from locallib.php to lib.php
  - include mimetypes.php so mimeinfo works
2004-09-08 06:43:57 +00:00
mits c58874c6ff New translated file added. 2004-09-08 05:45:14 +00:00
mits a24d23e6e7 Polished and new translated files added. 2004-09-08 03:42:56 +00:00
mudrd8mz 15704220f9 Some strings fixed 2004-09-07 23:29:28 +00:00
mudrd8mz b435ff7509 Re-adding Czech font and README.txt 2004-09-07 23:28:08 +00:00
koenr cbcf7ed400 initial translation by Koen Roggemans 2004-09-07 22:47:12 +00:00
koenr 50850a6825 filling in missing strings 2004-09-07 22:46:29 +00:00
koenr 28ebe4609a special thanks 2004-09-07 21:59:02 +00:00
koenr f784ab8517 polishing login->inloggen 2004-09-07 21:46:48 +00:00
koenr 3ff3dee8c8 polishing login -> inloggen 2004-09-07 21:46:09 +00:00
koenr 092cd5a4ee magnificant job from L.Vandijck, spotting loads of typo's, spelling errors, grammar errors, etc.
Thanks a lot!
Part III: the help-files
2004-09-07 21:27:11 +00:00
koenr 7a51f0435f magnificant job from L.Vandijck, spotting loads of typo's, spelling errors, grammar errors, etc.
Thanks a lot!
Part II: the doc-files
2004-09-07 20:49:47 +00:00
koenr a2df6f6649 updating to new feature 2004-09-07 20:30:36 +00:00
martignoni 0eccf83c21 Strings of new version added 2004-09-07 20:30:32 +00:00
martignoni d1319eaff4 Little phrase improvement 2004-09-07 20:12:03 +00:00
martignoni b4670898f1 New string 'disablecamel' 2004-09-07 20:06:41 +00:00
martignoni 99e0fe8914 Added many missing strings 2004-09-07 20:05:07 +00:00
martignoni f32c4464cb New string 'pleasemakeyourownassessment' 2004-09-07 19:50:00 +00:00
martignoni 8158c4fdcc Completion of string 2004-09-07 19:45:33 +00:00
martignoni a2d02ab3bc Added some new strings 2004-09-07 19:40:59 +00:00
rkingdon e7bdaa98a6 Tidy up of help files, new version of Managing.html, minor changes for
version 2004081100.
2004-09-07 16:26:58 +00:00
rkingdon a0cf22f4fc Additional strings fro version 2004081100. 2004-09-07 16:19:27 +00:00
rkingdon 4cd23ea295 Version 2004081100: auto grading of assessments. 2004-09-07 16:17:32 +00:00
mits 77eedcdcd6 Polished and new translated file added. 2004-09-07 15:22:51 +00:00
moodler 0eff2a843b FIxed typos from stable 2004-09-07 14:15:17 +00:00
moodler 76112421d8 Merged from stable 2004-09-07 14:13:19 +00:00
moodler 857b798b90 Added better headers to forum posts to allow threading, better filtering etc.
Based on: http://opensource.mediagonal.ch/moodle/patches/mailheaders/
2004-09-07 14:04:33 +00:00
moodler 8deb0ff5e2 Merged file path improvements from stable 2004-09-07 13:39:41 +00:00
mits 838f0ed539 Polished. 2004-09-07 13:26:10 +00:00
mits ce586b4011 Polished, Translated some. 2004-09-07 13:22:56 +00:00
minkowski 20f59f514a Thai Language for 1.4 Stable (1.5dev) 2004-09-07 13:05:47 +00:00
carlesbellver 7f4551cb96 *** empty log message *** 2004-09-07 11:58:32 +00:00
martignoni 690fa4bee2 Typo corrected 2004-09-07 11:17:23 +00:00
carlesbellver 415ce9bd45 *** empty log message *** 2004-09-07 10:51:05 +00:00
defacer de79ec4550 Merging patch for improved calendar block behavior from MOODLE_14_STABLE. 2004-09-07 10:31:18 +00:00
moodler f971d5021e XHTML tidy up 2004-09-07 10:18:52 +00:00
moodler f7263a16a4 Make the footer more compliant with the validator 2004-09-07 10:18:29 +00:00
mits 7991f49271 translated some. 2004-09-07 10:15:53 +00:00
moodler 46a52eacab Added show source because it's useful 2004-09-07 10:15:40 +00:00
moodler 95ea15e43b Added links to validaton services 2004-09-07 10:00:02 +00:00
moodler de7e4ac97d Set ampersands for automatic URL parameters 2004-09-07 09:49:41 +00:00
moodler 79dee413e9 Improvements to uploading error feedback (from Shane) 2004-09-07 09:25:51 +00:00
moodler 357b5286b8 HTML tidy up 2004-09-07 08:54:43 +00:00
moodler 003c49cb7d Better login 2004-09-07 08:23:11 +00:00
moodler 05bd797a37 Addeda type to the javascript 2004-09-07 08:12:40 +00:00
moodler 031c49fabb HTML code tidy up 2004-09-07 08:05:25 +00:00
moodler 98de6431e9 Fixed a typo, whoops 2004-09-07 08:04:02 +00:00
moodler 9610a66e21 Allow Validator from http://validator.w3.org/ and the Cynthia 508 checker.
It only works when you are using the new standardxhtml theme.

This is temporary while we do testing and validation.

I highly advise using Mozilla/Firefox and the Web Developer extension

   http://www.chrispederick.com/work/firefox/webdeveloper/
2004-09-07 07:38:44 +00:00
moodler 8fa41bc93d Temporary theme to help with XHTML testing and validation 2004-09-07 07:01:00 +00:00
ikawhero 000713693e file web.gif was initially added on branch MOODLE_14_STABLE. 2004-09-07 06:24:27 +00:00
paca70 7427070a50 Use get_site() to define SITEID
eVS: ----------------------------------------------------------------------
2004-09-07 05:15:37 +00:00
koenr ba4278486a magnificant job from L.Vandijck, spotting loads of typo's, spelling errors, grammar errors, etc.
Thanks a lot!
Part II: the doc-files
2004-09-06 21:44:55 +00:00
barias 2488e1ffdd ?ltimos cambios incorporados 2004-09-06 18:25:39 +00:00
koenr fbded66910 unnecessary file 2004-09-06 16:36:42 +00:00
moodler c423badc88 Merged fix from stable 2004-09-06 15:50:47 +00:00
moodler ed4c878d65 Some changes to moodlelib functions 2004-09-06 15:34:35 +00:00
moodler 85a1d4c9bc Made the check for allowable emails into a new function 2004-09-06 15:21:22 +00:00
mits d07b36cba1 translated some. 2004-09-06 15:09:10 +00:00
moodler 37d83d9951 Admin can now also 'login as' course creators 2004-09-06 14:03:17 +00:00
mits 9cdf16bbfd Translated some. 2004-09-06 12:57:36 +00:00
mits f44e752a10 Polished 2004-09-06 12:17:08 +00:00
mits e473ea014e Polished, Translated some 2004-09-06 12:01:10 +00:00
koenr b0b4295333 new files and updates.
Thanks to webmaster@tuzlic.com
2004-09-06 11:17:35 +00:00
defacer 480dda610c Fix for bug 1892:
Hidden teachers are not shown anymore in the less detailed participants view.

PS1: Can you believe I didn't know you could hide a teacher? :o
PS2: I just _LOVE_ using lambda functions! It's soooooooo very cool it makes
     me think I may be programming in the wrong language! :P
2004-09-06 08:06:55 +00:00
defacer a22f831372 Merging from MOODLE_14_STABLE. 2004-09-06 07:55:29 +00:00
stronk7 f79bfd2d2b Now entries are showed correctly in categories view if they belong
to multiple categories.

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

Merged from MOODLE_14_STABLE
2004-09-06 07:54:52 +00:00
carlesbellver b6b4e92d51 *** empty log message *** 2004-09-06 06:40:02 +00:00
moodler 21f0148566 Two new config variables allow certain email addresses to be allowed or not. 2004-09-06 04:38:40 +00:00
moodler ebd5239628 FIxed a SITEID bug (you can't put defines inside strings) 2004-09-06 04:28:07 +00:00
mits 6065cbda7a Polished 2004-09-06 00:49:55 +00:00
koenr 85bdb9e3af dramatic typo! 2004-09-05 22:43:33 +00:00
koenr 2117bb0f44 magnificant job from L.Vandijck, spotting loads of typo's, spelling errors, grammar errors, etc.
Thanks a lot!
Part I: the php-files
2004-09-05 22:41:00 +00:00
mits 38e95daf29 Polished. 2004-09-05 21:18:15 +00:00
mits 7816b0f14c Polished 2004-09-05 21:17:07 +00:00
mits 40f292e3e9 translated some. 2004-09-05 14:22:41 +00:00
paca70 ced7ca9ef9 Added latest changes to postgres files 2004-09-05 11:26:19 +00:00
mits b7d005a96e Translated some 2004-09-05 10:59:03 +00:00
stronk7 6faaf9a6c9 Now user->guid is in backup & restore
Merged some pending changes from STABLE too.
2004-09-05 10:19:03 +00:00
mits 906abd97af Polished. 2004-09-05 10:07:44 +00:00
stronk7 b9aa568912 Added new fields to backup/restore 2004-09-05 09:47:05 +00:00
stronk7 a06f9887da Changed the way to determine the site course...
Merged from MOODLE_14_STABLE
2004-09-05 09:23:23 +00:00
martignoni 5930c30005 Correct encoding! 2004-09-05 08:55:13 +00:00
martignoni 1c85997dcc All upgrades now print a warning, allowing people to avoid accidental upgrading 2004-09-05 08:54:14 +00:00
moodler be5fd6311c Merged fixed name from STABLE 2004-09-05 07:31:26 +00:00
moodler f251a0115a Removed duplicate fonts 2004-09-05 05:13:58 +00:00
mits e225598ce3 Polished. 2004-09-05 03:48:57 +00:00
mits 83bf3a1f0e Polished. 2004-09-05 03:36:10 +00:00
anvergara 9a72b15973 Updated 2004-09-04 23:19:36 +00:00
moodler 6981792762 All upgrades now print a warning, allowing people to avoid accidental upgrading 2004-09-04 15:47:30 +00:00
defacer 74aa7233f5 For small courses, "more details" is default. 2004-09-04 14:41:14 +00:00
gustav_delius 03f191ad65 added little edit icons on participants list, see bug 1896 2004-09-04 13:51:19 +00:00
martignoni 000a463add Revert to previous version 2004-09-04 13:41:53 +00:00
martignoni 1985dab5c2 Revert to previous revision 2004-09-04 13:34:01 +00:00
gustav_delius 5a2dea02dc keeping time information when student becomes teacher 2004-09-04 13:23:08 +00:00
martignoni c5e6911b28 Merge from HEAD 2004-09-04 13:17:42 +00:00
defacer eceb9c5ce4 Small change, checking for file existence is arguably better this way. 2004-09-04 13:14:20 +00:00
martignoni c2f152ac21 New strings for the user list type selection feature. 2004-09-04 11:51:10 +00:00
martignoni 19017b49f0 Small change 2004-09-04 11:48:26 +00:00
martignoni 0ad9722d42 New filter for Email protection 2004-09-04 11:47:23 +00:00
martignoni dcdb706731 Extra string for password option 2004-09-04 11:46:42 +00:00
paca70 2ca24fc3ab Use getremoteaddr() in place of getenv("REMOTE_ADDR") and $_SERVER["REMOTE_ADDR"] 2004-09-04 11:30:16 +00:00
paca70 5961942732 Use getremoteaddr() to get client address.
CVS: ----------------------------------------------------------------------
2004-09-04 11:02:45 +00:00
paca70 f97ab1ec36 New function to get client address 2004-09-04 10:54:54 +00:00
stronk7 59e996cc7d String changed for clarity
Bug 1880
(http://moodle.org/bugs/bug.php?op=show&bugid=1880)
2004-09-04 09:14:40 +00:00
mits 60668b909b Polished. 2004-09-04 08:32:01 +00:00
moodler 20229ca246 Merged fixes for display of correctanswers from stable 2004-09-04 08:12:23 +00:00
mudrd8mz 106f3dfbe4 emaildisabled/emailenabled strings fixed 2004-09-04 02:15:09 +00:00
anvergara c54975a80d Updated! 2004-09-04 00:53:40 +00:00
mudrd8mz 264f66a095 New files in 1.4 2004-09-04 00:43:47 +00:00
mudrd8mz 77c70f770f Update for 1.4
Some documentation (including installation manual) comes obsolete. Modules Survey and Choice are renamed.
---
Aktualizace cestiny pro verzi 1.4
Nektere cesti dokumentace (vcetne instalacni prirucky) jsou neaktualni. Dosavadni modul Dotaznik (Survey) byl prejmenovan na Pruzkum (kvuli vyvijenemu modulu Questionnaire) a modul Hlasovani byl prejmenovan na zabehlejsi Anketa.
2004-09-04 00:42:37 +00:00
mits a65ff46670 Polished. 2004-09-03 23:57:38 +00:00
skaldrom 5323756b05 Reactivated Cancel when editing. 2004-09-03 21:25:52 +00:00
skaldrom d81b414374 Cancel means Abbruch 2004-09-03 21:09:05 +00:00
skaldrom 1c6fc1e75f Removed Wikinews 2004-09-03 21:05:04 +00:00
skaldrom 087fef3ed4 Fix for Bug #1603 - Shortening URLs in Wiki pages
- Renamed wikipage in page (URL and variable)
- When groupid or userid is 0, it is not shown anymore (I hope I have changed all places)
2004-09-03 21:02:27 +00:00
mchurch 658724df8f Added failsafe code in case config files haven't been updated. 2004-09-03 20:19:16 +00:00
mchurch 3eecaaf46d Added new config directives for default block functions. 2004-09-03 20:11:20 +00:00
mchurch 25d18413cf Added new default block definition functionality. 2004-09-03 20:09:36 +00:00
mchurch b18a962512 Added config files and block default directives to use with new course
default block function.
2004-09-03 20:06:54 +00:00
skaldrom d9742e4071 Fix for Bug #1820 - wiki export does not keep correct links
Create filenames with + (next+page.html).
2004-09-03 20:01:47 +00:00
julmis 766634bb5c Added spell-check icon 2004-09-03 19:50:29 +00:00
mchurch 63574ba81f Added <tt> and <code> tags to valid tags. 2004-09-03 18:00:41 +00:00
mits cca8ca475b Polished. 2004-09-03 14:46:00 +00:00
moodler 179c9a500f Merged fixes for over-keen cleaning from STABLE 2004-09-03 12:44:11 +00:00
carlesbellver 98cb29d02a *** empty log message *** 2004-09-03 12:05:12 +00:00
paca70 3a5a0e62dc First attempt to describe authentication interface 2004-09-03 11:55:22 +00:00
defacer 8f87188ce8 Fix for bug 1882:
Added empty index.html file to prevent directory contents disclosure.
2004-09-03 10:58:55 +00:00
paca70 01e2ea5fa3 New field "guid" added to table user.
This can be userd to store "global unique identifier" from external databases
like Windows SID or eDirectorys guid . This will keep upcoming user syncronization
feature reliable in case of renamed users.
Mysql files are untested.
php -l mysql.php does not show any syntax errors, so files
should work.
2004-09-03 10:49:44 +00:00
rkingdon e10bb9b327 Addition of Password option - version 2004090200 2004-09-03 09:26:17 +00:00
rkingdon a5e3c820ab Extra string for password option, version 2004090200. 2004-09-03 09:22:26 +00:00
rkingdon 71f8b4d626 Extra help files for password option in version 2004090200 2004-09-03 09:04:44 +00:00
moodler 1b9af86043 en_us now has these defaults: First name / Last name
en now has these defaults:     First name / Surname

And may the Code have mercy on my soul
2004-09-03 08:12:26 +00:00
moodler 0a752cc712 Merged from stable 2004-09-03 07:24:12 +00:00
moodler f28a291305 Merged from stable 2004-09-03 03:39:50 +00:00
moodler 76706cbfb0 iMerged from stable 2004-09-03 03:19:31 +00:00
barias a3cb0ff051 ?ltimos cambios incorporados 2004-09-03 00:02:45 +00:00
mchurch 24223b9eb7 Fixed some formatting issues that prevented ** and ## from working. 2004-09-02 18:43:23 +00:00
moodler 9c945552fb Merged from stable 2004-09-02 18:13:50 +00:00
barias 32341f148e ?ltimos cambios incorporados 2004-09-02 10:11:03 +00:00
moodler 81af792484 Merged from stable --- updates for 1.4 2004-09-02 10:10:15 +00:00
moodler e3f19cb089 New filter for Email protection ... filters all email addresses in Moodle
text and obfuscates them from spammer's robotic eyes

Thanks Mike Churchward!  http://moodle.org/mod/forum/discuss.php?d=11302
2004-09-02 04:14:06 +00:00
mits 945d69fcb1 New translation, Add a new file. 2004-09-02 02:48:18 +00:00
defacer 499bdad6ef A few missing strings for Greek. 2004-09-01 14:35:21 +00:00
defacer 24a21d29f0 New strings for the user list type selection feature. 2004-09-01 14:19:27 +00:00
defacer 4bc162b7a5 Lots of things going on:
1. Added a dropdown box at the top right which allows you to manually choose
   the display mode for the user lists.
2. Fixed the bug where "Show all X users" was displayed when it shouldn't.
3. Merged the latest changes from the MOODLE_14_STABLE branch. This wasn't
   done before and it gave me the creeps. All changes seem to be good, so
   I hope I didn't checkin anything dangerous.

   Will synchronize the MERGED tag on the branch, too.
2004-09-01 13:56:12 +00:00
moodler 9d54c2fb73 Merged fix to allow referrals from the home page 2004-09-01 11:24:35 +00:00
martignoni 800977e284 Small correction 2004-09-01 10:08:20 +00:00
aredkin 4b5fd131c3 partial for 1.4 2004-09-01 09:26:34 +00:00
ralf-bonn 50328bdbbf ?bersetzung optimiert und Verbesserungen 2004-09-01 08:06:33 +00:00
bobopinna 6855d568ed Restored files lost during Moodle 1.4 creation 2004-09-01 08:05:55 +00:00
andre_bln b1d73d2c83 new update translation ../lang/de 310804 2004-09-01 07:12:13 +00:00
aredkin 0f4e5f3bee with contributions now 2004-09-01 05:07:44 +00:00
aredkin 6db54f98bc new! 2004-09-01 04:53:29 +00:00
aredkin bb190831fe new! 2004-09-01 04:44:37 +00:00
mchurch 82df5e1331 Fixed a malformed if statement around 'get_site()'. 2004-09-01 01:08:55 +00:00
mits 9a8225f73f Polished. 2004-08-31 23:38:05 +00:00
koenr 9269b0e153 another typo ... I should work on decent hours of the day 2004-08-31 22:55:23 +00:00
koenr 14c312493d type
This file is apparently missing in Moodle 1.4 :-(
2004-08-31 22:50:25 +00:00
barias 577396ff84 ?ltimos cambios incorporados 2004-08-31 21:40:22 +00:00
julmis 846836a553 Try to ignore some xhtml tagging by provide -H option to aspell 2004-08-31 21:36:55 +00:00
bobopinna cf23c209a5 file mods.html was initially added on branch MOODLE_14_STABLE. 2004-08-31 16:08:00 +00:00
bobopinna 9f6900dee6 file parameters.html was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:59:15 +00:00
bobopinna 130d37e591 file types.html was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:59:15 +00:00
bobopinna 3b16758aef file label.html was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:59:15 +00:00
bobopinna d470da5303 file html.html was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:59:15 +00:00
bobopinna 5b51b650e0 file text.html was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:59:15 +00:00
bobopinna 48cd6fbda3 file directory.html was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:59:15 +00:00
koenr 661490724c filling in missing strings 2004-08-31 15:25:55 +00:00
moodler 5f94e29fa6 Improved installation documentation 2004-08-31 15:22:39 +00:00
stronk7 8c05833a7d Take out some MS tags... 2004-08-31 15:19:27 +00:00
stronk7 dd8bcbffdc Deleted. Bad filename. 2004-08-31 15:18:59 +00:00
stronk7 84856682fa Bad extension. Deleted. 2004-08-31 15:13:32 +00:00
bobopinna 767e603ad9 file questionnaire.php was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:08:04 +00:00
bobopinna 6614ec05d7 file hotpot.php was initially added on branch MOODLE_14_STABLE. 2004-08-31 15:08:04 +00:00
koenr 5b4967a57e polishing 2004-08-31 14:52:01 +00:00
stronk7 3d4fe23815 Added some uncommited help files from Antonio Vicent 2004-08-31 14:27:12 +00:00
martignoni 0bd295df2e updated to new formats... 2004-08-31 13:56:09 +00:00
defacer 9fa4ef688e Merging more stuff. This also has one revision of Martin's changes in addition
to my last one, that's why it's so scary. It scared me initially, at least.
2004-08-31 13:53:43 +00:00
defacer e89fad6b99 Merging goodness from MOODLE_14_STABLE 2004-08-31 13:46:25 +00:00
moodler 9cccc2efda Merged robustness check 2004-08-31 13:37:24 +00:00
moodler 59812bc74f Dammit ... editing too fast 2004-08-31 12:53:51 +00:00
moodler dc157df31a Merged postgresql fix for install.php 2004-08-31 12:49:43 +00:00
defacer a8e44ce43f Import haiku from MOODLE_14_STABLE 2004-08-31 12:46:15 +00:00
moodler 71f9abf917 Merged changes from stable (fixed external auth) 2004-08-31 12:33:20 +00:00
defacer fbf5081c4a Merging changes from MOODLE_14_STABLE 2004-08-31 12:31:59 +00:00
stronk7 6fadba68c5 Some typos solved. 2004-08-31 10:57:24 +00:00
defacer c7756c734c Merging changes from MOODLE_14_STABLE 2004-08-31 10:47:24 +00:00
stronk7 1b867d15b0 CVS instructions translated! 2004-08-31 10:39:17 +00:00
moodler 7b07f63285 Merged fix for restricted users from stable 2004-08-31 10:05:10 +00:00
moodler 6e8d663f66 Merged from stable 2004-08-31 09:18:43 +00:00
mits e3797f6b4c Polished. 2004-08-31 09:00:11 +00:00
moodler 9a3936a95e Merged loginhttps config from stable 2004-08-31 08:41:26 +00:00
stronk7 a46e1623b5 Some carriage returns are now out!! 2004-08-31 08:24:11 +00:00
stronk7 f969e75291 Update from Benito. 2004-08-31 08:18:49 +00:00
stronk7 25e2ec1f63 Double administration is out. :-) 2004-08-31 07:54:46 +00:00
defacer c169db3b66 Merging latest blocks-related stuff from MOODLE_14_STABLE. 2004-08-31 07:29:25 +00:00
koenr 0f30f1d7ed initial translation by Koen Roggemans 2004-08-31 07:26:17 +00:00
moodler 9ca5b4c67f Merged button from stable 2004-08-31 07:25:35 +00:00
koenr 484c773046 filling in missing strings 2004-08-31 07:12:29 +00:00
martignoni aca51cdb8a Updated for the release (hope not too late!) 2004-08-31 06:54:26 +00:00
moodler f557636133 Whoops! Two admin sections - thanks Eloy! 2004-08-31 03:36:23 +00:00
koenr 8ba01bd754 updating to new features 2004-08-30 23:06:21 +00:00
koenr face92faf8 polishing 2004-08-30 23:04:23 +00:00
koenr 85f7d3e981 initial translation by Koen Roggemans 2004-08-30 22:58:32 +00:00
stronk7 ad1ac844fa Release info for 1.4. 2004-08-30 22:55:35 +00:00
mits dc019c1a76 New translation, Added new files. 2004-08-30 22:09:36 +00:00
martignoni 7c0f05e6c4 New configuration variable allusersaresitestudents 2004-08-30 20:58:30 +00:00
moodler b86bc4020b To help make it clearer 2004-08-30 18:38:46 +00:00
stronk7 f7e0c7135e Now this files are in their CORRECT directory!! 2004-08-30 18:29:53 +00:00
stronk7 32025bd401 Argh, wrong place!! Deleting files... 2004-08-30 18:26:32 +00:00
moodler 7a89297ee4 iUpdated from stable 2004-08-30 18:20:58 +00:00
moodler df325bac37 Merged changes from stable for new help button 2004-08-30 18:18:55 +00:00
stronk7 e9f4340dd1 Help files from Benito Arias... 2004-08-30 18:16:55 +00:00
moodler 0d27b00564 file window.html was initially added on branch MOODLE_14_STABLE. 2004-08-30 18:16:36 +00:00
stronk7 ecc11ab229 updated to new formats... 2004-08-30 18:06:19 +00:00
paca70 5038ccbfe7 Updates from Marianna Leikomaa 2004-08-30 17:56:15 +00:00
moodler 3271b70ff3 Fixed an unquoted string (merged from stable) 2004-08-30 17:47:21 +00:00
gustav_delius 076cc57cc0 Merging TO Head 2004-08-30 17:38:53 +00:00
gustav_delius 2700d113a2 Merged from HEAD 2004-08-30 17:27:00 +00:00
moodler e6e5113794 Updated for the release (not many changes) 2004-08-30 17:20:49 +00:00
moodler b26a0bf06b Merged default font changes 2004-08-30 16:57:44 +00:00
moodler e02c35b2ae Merged block upgrade fix from stable 2004-08-30 16:26:00 +00:00
barias 3c6427126b ?ltimos cambios incorporados 2004-08-30 14:54:25 +00:00
stronk7 c9e9fb0fd7 Bug 1831
(http://moodle.org/bugs/bug.php?op=show&bugid=1831)

Merged from MOODLE_14_STABLE
2004-08-30 14:42:18 +00:00
martignoni 3c9789b1ff Typo corrected 2004-08-30 14:41:43 +00:00
moodler d9e12f5a06 Merged new config variable from stable 2004-08-30 13:23:09 +00:00
moodler 3df2c54344 Merged from Stable (fix for color fonts) 2004-08-30 12:13:02 +00:00
defacer e749554efa Merged from MOODLE_14_STABLE 2004-08-30 11:46:08 +00:00
barias a2c3373f00 ?ltimos cambios incorporados 2004-08-30 10:03:00 +00:00
moodler 206a507520 MErged from CVS 2004-08-30 08:44:00 +00:00
martignoni a990a7c388 New string 'chooseparameter' 2004-08-30 07:56:36 +00:00
martignoni 2add104527 New string 'xml' 2004-08-30 07:55:48 +00:00
martignoni d0025f2712 Small improvement (this file is not yet up-to-date) 2004-08-30 07:53:33 +00:00
martignoni a207980d29 Better wording 2004-08-30 07:47:19 +00:00
martignoni 56cfffbf15 New strings: 'yesinitially' and 'yesforever' 2004-08-30 07:33:55 +00:00
martignoni 37224fef03 Added two new site-wide settings for the resource module so that the admin can deternine the default state of the collapsible panes on the resource creation screen. 2004-08-30 07:31:23 +00:00
gustav_delius 77c96715d9 Added explanation of what happens to "Yes, initially" option when updating existing forum. 2004-08-30 07:00:57 +00:00
defacer 9ed66e56b5 Switching to using the new SITEID constant. 2004-08-30 06:47:45 +00:00
gustav_delius 039559bf98 New help file for initial force subscription 2004-08-30 06:40:09 +00:00
moodler 36d9d5f70e Merged fixes from stable 2004-08-30 06:29:54 +00:00
paca70 fbb869e97e Use get_site() to get site's course number.
Site course  could be different from course '1' in older installations.
2004-08-30 06:03:29 +00:00
moodler ed90bc47fe Fixed REFERER problem, merged from stable 2004-08-30 04:32:59 +00:00
moodler cb99babcdd Merged new string from stable 2004-08-30 04:23:04 +00:00
moodler 5ff4353744 Bump to cater for SITEID 2004-08-30 03:40:56 +00:00
moodler d8f912d56c Fixed Gustav's typo in the version ... bug 1841 2004-08-30 02:56:55 +00:00
stronk7 00083db4ea Check that glossary is correct before edit categories.
Bug 1838
(http://moodle.org/bugs/bug.php?op=show&bugid=1838)

Merged from MOODLE_14_STABLE
2004-08-29 23:28:57 +00:00
stronk7 8a2fe40709 strip_tags() to some parameters. Thanks skodak.
Bug 1836
(http://moodle.org/bugs/bug.php?op=show&bugid=1836)

Merged from MOODLE_14_STABLE
2004-08-29 22:57:41 +00:00
stronk7 92a9d64495 Typo. Thanks to skodak.
Bug 1839
(http://moodle.org/bugs/bug.php?op=show&bugid=1839)

Merged from MOODLE_14_STABLE
2004-08-29 22:04:20 +00:00
koenr eaa540f579 initial translation by Koen Roggemans
Original file can use some good care :-)
2004-08-29 21:19:49 +00:00
gustav_delius 7b5944cdb3 Can now force subscribe INITIALLY, implementing suggestion by Howard in bug 1084 2004-08-29 19:17:27 +00:00
koenr efc2f1aa4c translation provided by Jean-Pierre Pawlak 2004-08-29 19:03:36 +00:00
koenr 6b97ac159c polishing 2004-08-29 19:00:33 +00:00
gustav_delius 709f0ec8d5 Can now force subscribe INITIALLY, implementing suggestion by Howard in bug 1084 2004-08-29 18:20:13 +00:00
moodler b06d217133 Merged new version from stable 2004-08-29 15:46:22 +00:00
gustav_delius 2a2f5f1181 now the lastaccess field is also updated upon every login, closing bug 1833 2004-08-29 15:00:08 +00:00
gustav_delius 0475502255 got rid of update_user_in_db, see bug 1833 2004-08-29 14:24:05 +00:00
gustav_delius 222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
moodler afd97e8449 Merged from stable 2004-08-29 13:13:11 +00:00
gustav_delius 540995b801 add_to_log now updates lastaccess if used on site. See bug 1821 2004-08-29 11:41:55 +00:00
stronk7 a09859bd1c Bumped a bit after 1.4 release. 2004-08-29 10:16:29 +00:00
moodler 9cd0c4da83 Bump! 2004-08-29 09:34:45 +00:00
koenr 1339bed66b polishing 2004-08-29 09:09:57 +00:00
koenr 7fba251835 updating to new features 2004-08-29 09:02:37 +00:00
koenr 5b9205e2c3 part of the language pack from now on 2004-08-29 08:07:40 +00:00
moodler 3cac987a62 Make sure guest is always manual 2004-08-29 08:04:37 +00:00
koenr c35c3b2ec5 finishing calculated questions! 2004-08-29 07:59:02 +00:00
moodler 86507185ac Merged help button fix from stable 2004-08-29 07:38:48 +00:00
moodler 27286aeb12 Merged authentication logic fixes from STABLE 2004-08-29 05:48:15 +00:00
moodler d7d145b11e Merged from stable 2004-08-29 04:47:13 +00:00
moodler b98839f701 In English, it is probably better to use "Window" rather than "Display" 2004-08-29 04:28:55 +00:00
stronk7 437605606d error in id tag 2004-08-29 00:49:42 +00:00
stronk7 e599cce85c Updated 2004-08-29 00:48:44 +00:00
stronk7 6a32aef521 Define a bit better the 'automatic link' feature at glossary and entry levels.
Bug 1745
(http://moodle.org/bugs/bug.php?op=show&bugid=1745)

Merged from MOODLE_14_STABLE
2004-08-29 00:14:21 +00:00
stronk7 a9068480a7 file usedynalinkentry.html was initially added on branch MOODLE_14_STABLE. 2004-08-29 00:06:28 +00:00
stronk7 104a357be1 translating to es
Merged from MOODLE_14_STABLE
2004-08-28 23:44:50 +00:00
stronk7 12b0b585b8 Slighty change 2004-08-28 23:29:04 +00:00
stronk7 1cc2152658 If we are updating an entry, compare current session user with
existing entry user to avoid some potential problems if secureforms=off
Perhaps too much security? Anyway thanks to skodak

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

Merged from MOODLE_14_STABLE
2004-08-28 23:22:34 +00:00
stronk7 c16caf5bc9 Avoid one notice
Merged from MOODLE_14_STABLE
2004-08-28 20:00:35 +00:00
stronk7 f15b491efb HTML editor (format popup) display wrong in glossary comments
Bug 1826
(http://moodle.org/bugs/bug.php?op=show&bugid=1826)

Merged from MOODLE_14_STABLE
2004-08-28 19:48:56 +00:00
gustav_delius 9f5329d86e added explanation about non-editing teachers to help file 2004-08-28 19:28:57 +00:00
stronk7 59c265b390 Now students cannot add/edit/delete entries if glossary->studentcanpost = 0
using manual URLs.

Merged from MOODLE_14_STABLE
2004-08-28 19:15:52 +00:00
gustav_delius 02e0b4274c improvement of online_users block on front page, suggested by Bruno, see bug # 1821 2004-08-28 18:34:38 +00:00
stronk7 944d82d4d3 - students cannot add/edit/delete comments if it isn't allowed
- students can view comments if they exist
- teachers bypass the commentsallowed field always (this can be useful to create glossaries with public comments from the teacher).
- buttons are showed correctly.

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

Merged from MOODLE_14_STABLE
2004-08-28 18:34:10 +00:00
mits 9f106aa197 Polished. 2004-08-28 18:32:45 +00:00
stronk7 f496860a90 Added compatibility in user->auth from 1.3 backups...$CFG->auth is used 2004-08-28 17:30:34 +00:00
moodler 339352427c Merged new settings from stable 2004-08-28 17:20:55 +00:00
moodler 285ae717f3 Merged from STABLE 2004-08-28 17:19:52 +00:00
moodler 6e85ab4676 Merged from stable 2004-08-28 17:19:06 +00:00
gustav_delius ce265a46aa fixed name order in headings on log.php 2004-08-28 17:18:36 +00:00
stronk7 864616e5f5 Merged from MOODLE_14_STABLE 2004-08-28 11:25:39 +00:00
stronk7 cf1ab7c300 Now action is checked and defaults to edit.
Thanks skodak!

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

Merged from MOODLE_14_STABLE
2004-08-28 11:13:48 +00:00
stronk7 516c7276e5 Now maxeditingtime for entries work againt timecreated instead of timemodified.
Thanks skodak!

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

Merged from MOODLE_14_STABLE
2004-08-28 10:56:42 +00:00
stronk7 0083049b21 Now user->auth is in backup & restore
Bug 1789
(http://moodle.org/bugs/bug.php?op=show&bugid=1789)

Merged from MOODLE_14_STABLE
2004-08-28 10:26:06 +00:00
moodler 6acfbb4303 Merged slashes fix for clean_text from STABLE 2004-08-28 07:59:41 +00:00
moodler 782e1aa6ef Fix bug 1787 where clean_text is applied on input with slashes added 2004-08-28 07:56:42 +00:00
moodler caf6657e25 Added appointment and hotpot language files to make using them a bit easier 2004-08-28 07:36:30 +00:00
moodler 5a76a21f2f Keep Questionnaire language files in main pack 2004-08-28 07:35:59 +00:00
moodler 283bcd26b6 Added some missing information
- link on quiz index to data set info
  - calculated questions on questiontypes overview
2004-08-28 07:35:31 +00:00
moodler 006d723195 Merged from stable 2004-08-28 05:17:13 +00:00
mits e9e8e68b46 Polished. 2004-08-28 01:43:24 +00:00
mits 3c3c1f8f3e Polished. 2004-08-28 01:42:38 +00:00
mits 429a082227 Polished and new translated file added. 2004-08-28 01:41:07 +00:00
mits 2d79f3cd79 Done.
I'm learning a lot about Moodle by translating lang files.
2004-08-28 00:56:01 +00:00
stronk7 3a512f86c7 Some important changes arrive:
- 'editalways' applied to comments.
   - some minor notices out.
   - security bug solved:
      + users cannot edit any comment now.
      + users cannot delete any comment now.
      + users cannot edit any entry now.
      + users cannot delete any antry now.

Thanks to skodak, discovering the bug!!!

Merged from MOODLE_14_STABLE
2004-08-28 00:28:56 +00:00
mits 717dee12e2 translated some. 2004-08-27 22:11:56 +00:00
koenr c2bdd4c9fb polishing 2004-08-27 21:32:25 +00:00
koenr ecabcba647 filling in missing strings and polishing 2004-08-27 21:28:38 +00:00
koenr 069a098f64 filling in missing strings 2004-08-27 18:49:59 +00:00
martignoni 6738a4135b Some tweaks and new string 'display' 2004-08-27 18:19:31 +00:00
martignoni 7bea15aebb Strings for hidden form sections 2004-08-27 18:02:29 +00:00
koenr 0d918273ce initial translation by Koen Roggemans 2004-08-27 17:28:19 +00:00
stronk7 b5937aac55 Init 2 arrays
Merged from MOODLE_14_STABLE
2004-08-27 17:21:42 +00:00
stronk7 7275671a60 Now, terms being defined in URLs aren't broken by the <nolink> tag.
Bug 1790
(http://moodle.org/bugs/bug.php?op=show&bugid=1790)

Merged from MOODLE_14_STABLE
2004-08-27 16:49:52 +00:00
moodler de19f2440a Silly typo 2004-08-27 15:46:31 +00:00
moodler 266760d622 Hebrew in english ... Unicode would be better 2004-08-27 15:24:55 +00:00
moodler 6cfb3058b3 Hebrew! Thanks to Lev Abramov! 2004-08-27 15:21:18 +00:00
thepurpleblob 963c3b552d $courseid now sent to wiki conversion properly 2004-08-27 14:31:40 +00:00
thepurpleblob 546764d89c Now gets it's courseid properly from the caller 2004-08-27 14:22:01 +00:00
mits dc1e6eef64 Polished. 2004-08-27 14:01:17 +00:00
moodler d0a0938685 Merged from stable 2004-08-27 11:48:56 +00:00
moodler f79fface79 Merged changes from STABLE to add new collapsible sections to mod edit forms 2004-08-27 09:50:11 +00:00
moodler f874527abb New translation: Slovenian!
Thanks to Dr. Robert Leskovar [mailto:robert.leskovar at fov.uni-mb.si]
2004-08-27 09:44:04 +00:00
stronk7 193a26447b Error when sending a delete-entry action to logs... 2004-08-27 09:13:32 +00:00
moodler 43b46f0c0c Tidied up file resource with hidden form sections 2004-08-27 08:53:48 +00:00
bobopinna 2558e92d60 file install.php was initially added on branch MOODLE_14_STABLE. 2004-08-27 08:06:45 +00:00
bobopinna 0362ac4eb9 file enrol_database.php was initially added on branch MOODLE_14_STABLE. 2004-08-27 08:06:45 +00:00
julmis c1137f58c7 Enabling image edit also in student view (Bug #1792) 2004-08-27 06:58:53 +00:00
martignoni 975dabb8c5 Improvement for 'editorresettodefaults' 2004-08-27 06:23:12 +00:00
moodler fcb8e1a4eb Replacing the examples.txt that Howard deleted accidentally ;-) 2004-08-27 04:41:42 +00:00
moodler d2c7696a33 Fixed a tab 2004-08-27 03:38:39 +00:00
stronk7 122579aacd Another duplicated tag....now it's really well-formed :-)
Meged from MOODLE_14_STABLE
2004-08-27 00:59:07 +00:00
stronk7 5c9b8beb86 Found it!!!!
A missing </select> was the cause to the wrong display under Safari!!!

Merged from MOODLE_14_STABLE
2004-08-27 00:52:08 +00:00
mjollnir_ 166330f56e Fixed very small bug where log entries with module course & action recent are unable to be restored. 2004-08-27 00:24:05 +00:00
stronk7 d564a85c57 Solved some inconsistencies when using the HTML editor and the
format menu!!

Merged from MOODLE_14_STABLE
2004-08-27 00:07:46 +00:00
julmis cfcbaa77da Merging from MOODLE_14_STABLE 2004-08-26 23:17:18 +00:00
stronk7 18652e4abe Strange typo.
Bug 1804
(http://moodle.org/bugs/bug.php?op=show&bugid=1804)

Merged from MOODLE_14_STABLE
2004-08-26 22:38:39 +00:00
gustav_delius c83712b3de fixed my own typo, bug 1798 2004-08-26 22:22:56 +00:00
stronk7 7567ff7b06 Notice out.
Merged from MOODLE_14_STABLE
2004-08-26 21:39:18 +00:00
julmis af815ebd77 Merging changes from MOODLE_14_STABLE 2004-08-26 20:32:28 +00:00
mits bb5b23f48c translated some. 2004-08-26 19:33:16 +00:00
julmis 5f004629da Merging changes from MOODLE_14_STABLE 2004-08-26 18:50:18 +00:00
paca70 5586395f75 Postgresql wants 'as' be used. 2004-08-26 18:50:08 +00:00
julmis bcdfed7384 Merged 2004-08-26 18:44:49 +00:00
mits 3173b7bb83 Polished. 2004-08-26 17:28:40 +00:00
julmis 6f4acea986 file spell-check.gif was initially added on branch MOODLE_14_STABLE. 2004-08-26 17:24:58 +00:00
moodler 7a2292aede merged from stable (removed excess clean_text) 2004-08-26 15:24:45 +00:00
moodler 1290953e40 Merged changes from stable 2004-08-26 15:23:07 +00:00
moodler 359f27588b Merged from stable 2004-08-26 15:21:57 +00:00
moodler 2b08c2ab0d Merged from stable 2004-08-26 14:47:52 +00:00
moodler 8e3c7e8bb7 Merged language changes back to HEAD 2004-08-26 14:38:27 +00:00
moodler eb2aa909d7 Merged from stable (sideblockheading style fix) 2004-08-26 14:35:14 +00:00
moodler ac00b904da Merged changes from stable 2004-08-26 14:21:26 +00:00
paca70 c14964b025 Fixed bug 1801
Untested on mysql, but should work with out problems.
2004-08-26 13:45:26 +00:00
moodler 3fbffafb8b Merged updates from stable 2004-08-26 13:01:36 +00:00
moodler 76201e6648 Merged from stable 2004-08-26 12:41:46 +00:00
stronk7 2e506e609b Notice out.
Merged from 14_STABLE
2004-08-26 11:18:28 +00:00
stronk7 c4e86f0895 Merged from 14_STABLE
Bug 1788
(http://moodle.org/bugs/bug.php?op=show&bugid=1788)
2004-08-26 10:58:49 +00:00
defacer 09d36284d1 Importing fixes from MOODLE_14_STABLE 2004-08-26 10:52:00 +00:00
defacer 0469cccfe2 Merging latest changes from MOODLE_14_STABLE 2004-08-26 10:44:32 +00:00
defacer b98f22819e Mirroring the language update from the 1.4 branch yesterday. 2004-08-26 07:33:02 +00:00
martignoni 366cb351b1 Better display and explanations for the chat config screen. 2004-08-26 06:21:30 +00:00
martignoni 4f09693f1c New strings added 2004-08-26 06:11:32 +00:00
gustav_delius 4202155868 fixed bug in online user list, see http://moodle.org/mod/forum/discuss.php?d=11554 2004-08-26 04:16:52 +00:00
mits b823c3d86f Polished. 2004-08-26 03:55:13 +00:00
mits 56c9574d13 Corrected miss-encoding(from shift_jis to EUC-JP) 2004-08-25 23:44:40 +00:00
koenr 0f6be9e343 filling in missing strings 2004-08-25 21:56:23 +00:00
koenr d1f606818f polishing 2004-08-25 21:52:32 +00:00
papita df3d611e1b correction of some typos 2004-08-25 17:47:49 +00:00
mits a3dd5bb3bb polished 2004-08-25 15:16:18 +00:00
martignoni 87a17510cd Fixed international display of timezones using string 'strftimedaytime'
http://moodle.org/mod/forum/discuss.php?d=11510
2004-08-25 13:08:04 +00:00
martignoni f754063e90 New 'asset' string 2004-08-25 13:05:56 +00:00
defacer e2b5964ee0 Merging latest changes from MOODLE_14_STABLE. 2004-08-25 11:00:27 +00:00
defacer 96a391a5fd Merging MOODLE_14_STABLE changes. 2004-08-25 10:52:56 +00:00
defacer 6fb2f8230e Manually committing a copy from the 14_STABLE branch to sort out a tagging
problem I talked with Gustav about yesterday.
2004-08-25 10:46:34 +00:00
bobopinna d6aa5b97dc Updated to new asset icon 2004-08-25 09:03:16 +00:00
moodler 601131c169 Merged changes from STABLE for timezone display 2004-08-25 08:52:14 +00:00
bobopinna d64bc8aea6 Patched a problem with asset resources 2004-08-25 08:34:52 +00:00
mits a366326397 translated one 2004-08-25 03:22:54 +00:00
mits de9943c94e New translated files added. 2004-08-25 01:17:43 +00:00
mits 4642b11d35 translated some. 2004-08-25 00:49:20 +00:00
stronk7 32ce883ee6 Don't clean posted text on input (will be cleaned on output).
Merged from MOODLE_14_STABLE
2004-08-24 22:59:54 +00:00
stronk7 3cde8e9a99 Life continues in 1.5.... :-D 2004-08-24 22:30:56 +00:00
mits eae58d4f0b Polished. 2004-08-24 22:23:59 +00:00
stronk7 73a4b5977f Modified point 12. 2004-08-24 22:13:16 +00:00
stronk7 546af7c269 Updated 2004-08-24 22:03:44 +00:00
stronk7 00e28b0d80 Updated point 14 2004-08-24 21:51:31 +00:00
mits b0b871721a Polished. 2004-08-24 21:44:30 +00:00
stronk7 3da629c8f6 Release info updated to 1.3.4 2004-08-24 21:38:02 +00:00
stronk7 2603b5b30a one more warning out
Merged from MOODLE_14_STABLE
2004-08-24 20:59:54 +00:00
stronk7 e11a8fe93d Avoid some warnings
Bug 1729
(http://moodle.org/bugs/bug.php?op=show&bugid=1729)

Merged from MOODLE_14_STABLE
2004-08-24 20:40:49 +00:00
mits 68b0a6ee7c Polished. 2004-08-24 19:23:11 +00:00
mits 443c22226f Polish and New file added. 2004-08-24 18:50:25 +00:00
gustav_delius 8f6b80b90c Merging from stable branch 2004-08-24 18:38:14 +00:00
koenr b9aa323f14 Please don't put untranslated files in your languagepack:
- It's waste of space: the English file is automaticaly used when a file is missing in the language pack
- It's more work to find out wich file is translated and wich not yet
- The files get easely outdated
2004-08-24 17:05:15 +00:00
koenr aebf7b4395 outdated file 2004-08-24 16:52:27 +00:00
koenr e4bf870709 moved release.html into releaseold.html 2004-08-24 16:45:28 +00:00
koenr 13c6414581 outdated file 2004-08-24 15:48:45 +00:00
koenr 0ebe80281c Please don't put untranslated files in your languagepack:
- It's waste of space: the English file is automaticaly used when a file is missing in the language pack
- It's more work to find out wich file is translated and wich not yet
- The files get easely outdated
2004-08-24 15:36:52 +00:00
koenr de874437ab filling in missing strings (and forgot to check in) 2004-08-24 15:05:44 +00:00
mits 433c8f542d Alphabet string reverted from Japanese to English avoiding error. 2004-08-24 14:50:42 +00:00
moodler 90e736bd2d Merged latest tweaks 2004-08-24 14:26:35 +00:00
moodler 2eccb97074 Enrollment spelling for the yanks ;-) 2004-08-24 14:20:26 +00:00
martignoni 098a1dbd61 Added string 'editorresettodefaults' 2004-08-24 13:59:47 +00:00
martignoni 46547679db Release notes for version 1.4 beta 2004-08-24 13:55:29 +00:00
gustav_delius 56c1fd3684 disabled email_protect plugin, see Bug #1775 2004-08-24 12:51:28 +00:00
defacer d9e8ba0aa4 Merging updates from MOODLE_14_STABLE 2004-08-24 12:44:33 +00:00
defacer 199be95e91 file block_course_list.php was initially added on branch MOODLE_14_STABLE. 2004-08-24 12:27:20 +00:00
defacer 7d84d8a3c0 file block_online_users.php was initially added on branch MOODLE_14_STABLE. 2004-08-24 12:27:20 +00:00
defacer e1ed54f3cb file block_social_activities.php was initially added on branch MOODLE_14_STABLE. 2004-08-24 12:27:20 +00:00
defacer 27e4b1583e file block_section_links.php was initially added on branch MOODLE_14_STABLE. 2004-08-24 12:27:20 +00:00
defacer ec2f7345cd file block_course_summary.php was initially added on branch MOODLE_14_STABLE. 2004-08-24 12:27:20 +00:00
stronk7 da9c60ecc8 Now some CFG->glossary_XXXX variables are checked in lib.php
Bug 1764
(http://moodle.org/bugs/bug.php?op=show&bugid=1764)

Merged from MOODLE_14_STABLE
2004-08-24 11:24:27 +00:00
moodler eb474b29a3 Merged some changes 2004-08-24 07:03:06 +00:00
moodler e69ef14bf2 Merged changes from 14 STABLE 2004-08-24 04:58:06 +00:00
moodler b80f6f11a4 Trunk is now Moodle 1.5 development 2004-08-24 04:38:51 +00:00
mchurch 37d7e21482 Bug #1611 - Fixed the editing of wiki pages containing apostrophes. 2004-08-24 00:08:08 +00:00
koenr b6a92ab342 will add this again once translated 2004-08-23 23:32:04 +00:00
koenr 96a50efb92 almost completely translated old releasenotes (won't translate any further unless I lose my job :-) 2004-08-23 23:30:34 +00:00
koenr 6742616a43 initial translation by Koen Roggemans 2004-08-23 23:10:20 +00:00
koenr 7c39e485d2 new link added 2004-08-23 23:09:34 +00:00
stronk7 56bf789ef6 Added to spanish language. Thanks to Marc Alier. :-) 2004-08-23 22:14:03 +00:00
mchurch ae342592c8 Fixed filtering of wiki output to only apply to wiki text pages and not action pages. 2004-08-23 21:56:47 +00:00
julmis 5b0dcc0213 Added string editorresettodefaults 2004-08-23 21:36:32 +00:00
julmis 5d5a26c4c1 Added reset to defaults 2004-08-23 21:31:30 +00:00
moodler 9c52ca13f1 Updated README 2004-08-23 19:18:25 +00:00
moodler 779f6a4306 OK, let's go beta 2004-08-23 18:32:26 +00:00
moodler 550900270c Info to help get bug reports 2004-08-23 18:27:55 +00:00
moodler d0be2073f2 First draft of latest release information. Good enough for Beta, but I
will probably revise it further for the final release next Monday.
2004-08-23 18:22:43 +00:00
moodler 49d74ec0ba Tidying up Howard's wierd indenting. ;-) 2004-08-23 16:46:50 +00:00
martignoni 6d708520fe Correction in 'strftimerecentfull' date format 2004-08-23 16:39:44 +00:00
moodler 4af0e604db Straightened up a button 2004-08-23 16:36:04 +00:00
mits fe8988fb42 Polish and New translation. 2004-08-23 16:24:27 +00:00
moodler 808018311c Bumping it up a bit ... still writing release notes ... 2004-08-23 15:56:47 +00:00
defacer a8185f2e00 Please deliver me from my own incompetence... 2004-08-23 15:42:53 +00:00
defacer 695a4bff46 Quirks-related fixes... 2004-08-23 15:35:08 +00:00
defacer 5a60e82249 Preliminary support for browser quirks, for now just targeting Safari 2004-08-23 15:25:18 +00:00
defacer f0232c84fb More goodness! Goodness is on discount here in Greece! :P 2004-08-23 15:03:26 +00:00
moodler fbabbd235b Miscellaneous fixes from the PJ man 2004-08-23 14:40:53 +00:00
moodler 218e4d56e6 Lowercase formulas before parsing them 2004-08-23 13:49:19 +00:00
moodler ca417031bb Better errors (include question name) 2004-08-23 13:48:09 +00:00
defacer 629b5885f7 Here buggy buggy...
General announcement:
If you 're running in debug mode and suddenly the HTML editor stops working
for no apparent reason, check your HTML source to find PHP notices embedded
in JS code, screwing it up and thus making it unexecutable. This has happened
to me more times than I can remember.
2004-08-23 13:18:39 +00:00
moodler a07fe4ba72 Fixed import of SHORTANSWER questions 2004-08-23 13:04:50 +00:00
moodler b757dc89f1 Missing prefix 2004-08-23 12:37:12 +00:00
moodler bb6f1955a1 Don't print empty intros 2004-08-23 12:35:13 +00:00
moodler a8449f8c71 MOre tolerant of empty fields, and fixed heading 2004-08-23 12:29:29 +00:00
defacer 98051917e8 There's a "parse error" report (http://moodle.org/mod/forum/discuss.php?d=11423)
which I cannot reproduce in a flash, but maybe this should fix it? I just added
some semicolons after the echoes and before the PHP closing tag.
2004-08-23 12:16:29 +00:00
moodler 0658c6bb96 Removed a debugging line 2004-08-23 12:09:28 +00:00
moodler 64eba17e78 Fixed a typo 2004-08-23 12:04:55 +00:00
moodler c3415fd3c3 Attempt to extract the user from the old author field when upgrading 2004-08-23 09:04:30 +00:00
defacer 3430873206 Making chatd more eager to update the users' status, and lib.php slightly
less eager to declare them dead. Should solve the "active users are not shown
at the chat index page" problem.

Also, fixing a notice.
2004-08-23 08:48:57 +00:00
defacer 15a94ad920 Attention to detail: this prevents generating a warning if $focus is not set.
Of course, the warning is hidden inside JS and thus invisible to the naked eye.
2004-08-23 08:34:51 +00:00
moodler 47e1aec448 Added caclulated questions into index 2004-08-23 02:55:37 +00:00
moodler ec51c7fb33 Don't lower-case parsed attributes 2004-08-23 02:21:59 +00:00
moodler 6136dfc887 Removed some comments 2004-08-23 02:11:02 +00:00
moodler 43921b8a5a Using the "parent" style of linking to the last post for browser speed,
and also addressed some of PJs documentation concerns  ;-)
2004-08-23 02:05:42 +00:00
julmis cd361ce562 Fix for Bug #1763 2004-08-22 22:55:06 +00:00
kaipe f0c60b0a04 *** empty log message *** 2004-08-22 21:34:47 +00:00
gustav_delius ecf0cf9ac4 fixed bug 1252. But this page could do with a lot more work. 2004-08-22 19:58:54 +00:00
koenr eb28fa7886 filling in missing strings... 2004-08-22 19:53:41 +00:00
gustav_delius 55a7af338d fixed phantom question bug #1299 2004-08-22 19:21:02 +00:00
gustav_delius 6b29ba6071 added $CFG->filelifetime to config-dist.php 2004-08-22 17:52:21 +00:00
martignoni 0affaa677a New string 'enrollfirst' 2004-08-22 17:46:57 +00:00
martignoni 4bb1ea1efd New strings controlling the new enrolment plugins 2004-08-22 17:45:09 +00:00
martignoni 5820cb5ac8 Little tweak 2004-08-22 17:37:49 +00:00
defacer 8f89658261 Fix for bug 1494:
Calendar events in day view now show their start and end times. The only thing
I 'm not satisfied with is that they also show the full start and end dates,
even if it's not really needed (e.g. for a 15:00 -> 17:00 event). Still, it's
loads better than only showing the start time.
2004-08-22 17:19:24 +00:00
defacer 3599e4871f Fix for bug 1755:
As discussed in the forums, the "last post on" date for each discussion in a
forum view has been shortened and also made into a link.
2004-08-22 17:10:33 +00:00
martignoni dfd648c974 Admin interface for controlling the new enrolment plugins. 2004-08-22 17:06:07 +00:00
defacer 43c9195b84 Fix for bug 1759:
One notice in debug mode removed.
2004-08-22 17:03:33 +00:00
defacer 2b0d60ec78 Fix for bug 1662:
Changed the way applicable formats for blocks are handled. The changes are
short codewise, but to grasp all the implications read the forum discussion
at the relevant URL.
2004-08-22 16:54:48 +00:00
defacer ac6c89c5b0 Fix for bug 1678:
When a course's format is changed, blocks which are not appropriate for the
new format are automatically purged.
2004-08-22 16:49:40 +00:00
defacer 0e9af91794 Fix for bug 1678:
Now when the format of a course is changed, all blocks which are not
applicable for it anymore are automatically purged.
2004-08-22 16:48:28 +00:00
moodler 71fe1da3f4 Database now stores userid, and page info is now more Moodley
(plus it doesn't show IP information to everyone!)

All old authors are not currently displayed  (I chose not to)
This is easy to fix if people want it, since the old author
string is still there in the database.
2004-08-22 16:41:54 +00:00
martignoni 9d0daeea4d New string 'havetologin' 2004-08-22 16:28:58 +00:00
martignoni 4064dc7a48 print notice when guest views chat. 2004-08-22 15:58:21 +00:00
gustav_delius f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
julmis 5985f9dce9 Fixing Bug #1765 (mystery fix). 2004-08-22 10:42:39 +00:00
julmis 66991ecaf4 Fixing Bug #1765 (mystery fix) 2004-08-22 10:41:59 +00:00
koenr ed1354d31e typo 2004-08-22 10:25:55 +00:00
koenr edb99c24f2 added RSS-stuf 2004-08-22 10:16:34 +00:00
koenr 4717e5a8c5 typo 2004-08-22 10:10:02 +00:00
gustav_delius 78bf3de3fe fixed bug preventing move of module to bottom of section 0 2004-08-22 09:58:02 +00:00
julmis b8db385fa1 Insert Image dialog works now also in debug mode. 2004-08-22 09:49:25 +00:00
papita 480abd8384 first version by paula 2004-08-22 09:38:40 +00:00
julmis d11d6771f6 Larger sizes for dialogs. 2004-08-22 09:16:16 +00:00
papita eedae19b75 New files being added 2004-08-22 09:03:13 +00:00
koenr 6bb4aef7d6 added RSS-stuf [bug 1714] 2004-08-21 23:28:41 +00:00
koenr 1381f166e9 Gave indexfile some content 2004-08-21 23:13:06 +00:00
koenr a314e97c04 typo 2004-08-21 23:12:39 +00:00
koenr 9e12922c10 filling in missing strings... 2004-08-21 23:01:21 +00:00
koenr e0cd161e72 forgot to check in 2004-08-21 22:44:18 +00:00
mits 8dbe28412f I almost forgot untranslated sentence. 2004-08-21 22:30:00 +00:00
mits ad6aaea2f1 install.php done. Well... back to docs. 2004-08-21 22:13:59 +00:00
koenr cf4a1a0376 small tweaks form Gustav 2004-08-21 21:30:44 +00:00
koenr 9fb0e8576f Gave indexfile some content 2004-08-21 21:27:33 +00:00
mits 9e4e31cb6f New translated file added. 2004-08-21 21:21:42 +00:00
gustav_delius 1ff45e740f fixed breadcrumbs 2004-08-21 21:19:21 +00:00
gustav_delius d022e34545 print notice when guest views chat. 2004-08-21 21:18:33 +00:00
gustav_delius c89bf29585 fixed breadcrumbs when mod.php is used on site page 2004-08-21 21:02:59 +00:00
gustav_delius ff458eb5ad removed some notices 2004-08-21 20:59:13 +00:00
gustav_delius 5be2cb7aef removed notice 2004-08-21 20:25:15 +00:00
gustav_delius 90fcc576ea Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic. 2004-08-21 20:20:58 +00:00
gustav_delius 64c3e85374 small bug in teacher link due to undefined $site 2004-08-21 20:13:35 +00:00
mits c79271de60 Polish, New translation, Add a new file. 2004-08-21 18:25:15 +00:00
moodler 93a441b705 Bump! 2004-08-21 17:21:44 +00:00
moodler 0f093efab2 Here finally is an admin interface for controlling the new enrolment plugins.
It's not at all well-tested yet (I made a lot of changes to it just tonight)
but it's late and I am literally sick (with flu) and tired so I'm checking
this in and going to bed.

Please fix all the bugs for me.   ;-)
2004-08-21 17:15:07 +00:00
gustav_delius 713e7568de improved documentation for wiki types 2004-08-21 16:26:51 +00:00
gustav_delius e0d46880e7 removed some hard-coded strings and a warning from setup page 2004-08-21 15:52:38 +00:00
moodler 3d3cb923b1 Formatting 2004-08-21 14:32:57 +00:00
julmis d4cc7e31b3 Fixed paths for aspell setting. 2004-08-21 14:22:16 +00:00
julmis 67ccec433e Add aspellpath check before printing editor config colde 2004-08-21 14:21:09 +00:00
moodler ef132aa077 Added some more protocols to the allowed list 2004-08-21 13:31:49 +00:00
defacer 6a3c93f484 julmis' last commit contained garbage from a CVS merge conflict he obviously had,
so I 'm removing them. Good thing they weren't mixed with deliberate changes!
2004-08-21 13:28:46 +00:00
moodler 7c561c7a25 Try to apply sensible file permissions to the new config.php 2004-08-21 13:27:44 +00:00
martignoni 42efc204b1 Warning message added (criterion grading with only one criterion) 2004-08-21 13:05:05 +00:00
martignoni 1dec96be69 Some fixes 2004-08-21 13:02:47 +00:00
martignoni 5c0f709dfc Add editor settings feature and Ludo's (Marc Alier) spellchecking functionality. 2004-08-21 13:00:18 +00:00
julmis 186d52b68a Winmerge added weird extra lines?
Removed those extra lines.
2004-08-21 12:52:33 +00:00
gustav_delius 369fa1b01a Moved the raw SQL out of here and into the new search_user function in datalib.php. 2004-08-21 12:43:17 +00:00
gustav_delius 900df8b6a5 Some changes to user database functions:
1) get_course_students, get_course_users and count_course_students when called with course=site will now use get_site_users instead of get_users. This I believe was the consensus reached in the discussions of how front-page activities should behave.

2) all functions can handle a list of exceptions now.

3) get_site_users now returns users in the order admins, teachers, students. Similarly for get_course_users. This makes the sorting bug 1727 a bit more bearable

4) new function search_users

The whole thing is really a mess because each function has slightly different conventions for its arguments. But the beta is too close to tidy this up now.
2004-08-21 12:41:40 +00:00
mits 6b5f64d248 translated some. 2004-08-21 10:41:11 +00:00
julmis eb2042f685 Add editor settings feature and Ludo's (Marc Alier) spellchecking functionality.
- Needs testing and should consider unstable.
2004-08-21 10:12:09 +00:00
gustav_delius 7a1efb695d fixed the problem that people trying to move blocks accidentally deleted them. 2004-08-21 09:01:01 +00:00
moodler c55d4a3337 Use the general word "Location" instead of "File name" 2004-08-21 08:46:31 +00:00
moodler ab55a4b3f4 Use resource_defaulturl when it's blank ... somehow this got removed. 2004-08-21 08:33:53 +00:00
moodler 01a1f17457 Inlcude enrolments config 2004-08-21 07:05:50 +00:00
moodler 3bd7ffec71 Added better cleaning of HTML attributes, using kses library.
Thanks to Eamon Costello for finding the library and writing the
wrapper functions.
2004-08-21 04:34:06 +00:00
moodler 65fa81403d Added kses and Eamon Costello 2004-08-21 02:36:33 +00:00
mits b044ae501b Polished. 2004-08-21 00:18:37 +00:00
mits 301bbf0d61 new translated files added. 2004-08-21 00:11:40 +00:00
mits 3bb6d0f371 Polished. 2004-08-20 23:06:17 +00:00
mits a168701a07 Tough. Never ending .... 2004-08-20 21:48:36 +00:00
gustav_delius ff9fe32584 removed some warnings from from fields, closing bug 1558 2004-08-20 20:32:38 +00:00
gustav_delius 067675c006 introduced the fullname() function in a lot of places. Still not complete though, especially in sorting. 2004-08-20 20:12:48 +00:00
gustav_delius c117aa6c24 authenticate_user_login() function now works even if $user->auth is not yet set, fixing bug 1747 2004-08-20 18:48:05 +00:00
paca70 aedfc5d2aa Fix broken images. Patch from Jussi Hannunen
CVS: ----------------------------------------------------------------------
2004-08-20 18:03:40 +00:00
papita fc555d5904 important updates by paula 2004-08-20 16:35:52 +00:00
koenr 8a3f0dab7a filling in missing strings... 2004-08-20 15:03:28 +00:00
koenr 878679fe1d final (or sort of) 2004-08-20 15:01:39 +00:00
julmis 24d32007d0 Added text selection test, before opening insert link dialog. 2004-08-20 10:28:16 +00:00
martignoni 3c719e401b Two (hopefully last) fixes 2004-08-20 10:17:25 +00:00
martignoni 668470486d Some more tweaks 2004-08-20 10:09:50 +00:00
julmis 361b68b34a Not so nice fix for "Not allowed to write to dialogs" on FireFox! 2004-08-20 09:56:07 +00:00
rkingdon 9e6f39a42a Fixed comparison of assessments for error banded and criterion grading. 2004-08-20 09:08:33 +00:00
rkingdon f355b8ddb3 Warning message added (criterion grading with only one criterion) 2004-08-20 09:05:44 +00:00
martignoni 5d1f5ad6c1 Some polishing 2004-08-20 08:53:53 +00:00
martignoni 622ac130bb Final version translation 2004-08-19 23:06:15 +00:00
mits 4f150936fc translated some. 2004-08-19 17:45:42 +00:00
moodler 3ae11b04bb To help hackers who already have the table 2004-08-19 17:16:29 +00:00
moodler 2dd899c85a Bump 2004-08-19 17:15:24 +00:00
mits b2a460be65 Polish, New translated file added. 2004-08-19 16:58:00 +00:00
mits d4dbf2dc4c Polished. 2004-08-19 16:16:04 +00:00
moodler 1108bebde1 Added checks for enrolment plugin databases, and also moved some
stuff out to the new lib/adminlib.php
2004-08-19 09:38:20 +00:00
moodler 173cc1c342 New library for admin-only functions 2004-08-19 09:37:42 +00:00
moodler ed15aac8a7 Version info for Paypal module 2004-08-19 09:36:20 +00:00
moodler f7052e9117 Added database controls for Paypal module 2004-08-19 09:35:16 +00:00
moodler 9b720f926a Updated strings. READY TO TRANSLATE! 2004-08-19 08:53:59 +00:00
moodler 51e3e0b9a1 Updated ... unfortuntely some of the fixes are the same as PJs
but there is also lots of other stuff too.
2004-08-19 08:53:23 +00:00
defacer edd3a5db7e When config.php cannot be written to disk, click the button to download it and save it yourself. 2004-08-19 08:34:21 +00:00
defacer cd0e958ed3 CSS hack for the Prev/Next buttons so that hitting ENTER would take you to
the next page. It works just fine! :-)

Also, a die() added after the redirection if config.php exists, for good measure.
2004-08-19 08:12:28 +00:00
moodler 0b9a930445 Admin gets some information when GD is disabled 2004-08-19 04:45:07 +00:00
moodler 9f4f49df23 Added information about how to deal with changed help files 2004-08-19 02:31:33 +00:00
koenr 38463e459e filling in missing strings... 2004-08-18 22:27:15 +00:00
koenr 6ac1132bbc change string reasonforadjustement 2004-08-18 22:05:50 +00:00
mits a06d368555 translated some. 2004-08-18 17:47:02 +00:00
gustav_delius 4361ddcb22 when adding students the teachers are no longer shown in list of potential students, closing bug 1749 2004-08-18 15:49:09 +00:00
moodler d3e569daf8 Bump 2004-08-18 13:35:42 +00:00
paca70 510ff12d14 Dont try to delete uses multiple times 2004-08-18 11:29:45 +00:00
martignoni 09869fc6c8 New string 'file not found' and other tweaks 2004-08-18 11:18:17 +00:00
martignoni c2163f3d29 Added missing string (No branch table found). 2004-08-18 11:15:07 +00:00
paca70 a9fac242f2 Return auth type with userinfo 2004-08-18 11:11:39 +00:00
martignoni deceb53c1a Change to the label of the comment box for Error banded assessments. 2004-08-18 10:31:43 +00:00
martignoni 619ebb6a17 New strings for tabs 2004-08-18 10:27:32 +00:00
moodler de482722f6 Added a 404 header but it seems not to work ... not sure why not. 2004-08-18 05:59:14 +00:00
moodler 80035a89e1 Disallow dots being passed to lang (path disclosure) 2004-08-18 05:52:01 +00:00
moodler 5e98103bd0 Remove possible path disclosure and add a translatable error message 2004-08-18 05:47:55 +00:00
rkingdon 2be07df312 Added missing string (No branch table found). 2004-08-17 23:45:03 +00:00
rkingdon 46b64701ab Correction to the Error banded assessment grade. 2004-08-17 23:29:43 +00:00
rkingdon 733e3c5190 Change to the label of the comment box for Error banded assessments. 2004-08-17 23:26:38 +00:00
koenr ac55f67482 filling in missing strings... 2004-08-17 20:20:08 +00:00
martignoni ceb472f36f Added missing strings 2004-08-17 20:09:55 +00:00
martignoni 6679c7fe84 Missing string for anchors 2004-08-17 20:08:27 +00:00
julmis e78e3d90b8 Removed duplicate link_std line from switch block ;-) 2004-08-17 19:37:01 +00:00
martignoni 6e929d352e Forgotten semi-colon. Thanks to Etienne Roz?! 2004-08-17 16:46:58 +00:00
moodler 9888a8eab5 DIsabling formatting for now, until we can separate out wiki
content from wiki forms etc ... and only apply formatting to the content.
2004-08-17 16:31:52 +00:00
moodler af9fcd0873 Interface tweaks 2004-08-17 16:20:41 +00:00
moodler 5b0bc60858 The little edit icon was becoming very annoying :-)
How about these tabs?
2004-08-17 16:12:14 +00:00
moodler cab5cdc61d Fixed a little typo 2004-08-17 14:53:25 +00:00
moodler e6faef54a5 Fixed HTML editor and some PHP5 notices 2004-08-17 14:44:33 +00:00
moodler de2dfe68ec Improve log links 2004-08-17 14:26:47 +00:00
moodler 94ba66ce0a Tweaks 2004-08-17 14:12:01 +00:00
moodler 8d783716f9 Improvements to installation procedure.
It now does a compatibility check of the environment as well,
including memory limits and so on - so this should reduce some
of the FAQs.

The text is still rough ... don't translate it just yet.
2004-08-17 13:51:41 +00:00
barias 8eae663b43 ?ltimos cambios incorporados 2004-08-17 13:04:13 +00:00
barias ad7bfb18c2 ?ltimos cambios incorporados 2004-08-17 12:02:11 +00:00
moodler 61260ef73d Trying a plainer icon 2004-08-17 09:40:04 +00:00
moodler c2ceeff0b5 Added some missing strings 2004-08-17 09:27:17 +00:00
moodler fcbbaeef2e Strings and spacing and stuff 2004-08-17 09:25:17 +00:00
martignoni 1d9bc92fe2 Added a new preview/test feature for quiz questions 2004-08-17 09:19:44 +00:00
martignoni ffe575533c Updated number of language packs 2004-08-17 09:11:39 +00:00
martignoni aa06d4f449 Replaced the old strings back in the pack for backward compatibility 2004-08-17 09:09:24 +00:00
martignoni 31d8c40d90 New strings for POP and LDAP 2004-08-17 09:05:32 +00:00
martignoni 0688b85020 Editing teacher can now subscribe users to a forum 2004-08-17 08:56:17 +00:00
moodler 76add072fe Add spaces for web addresses to help bodgy clients that get
confused about the trailing ] bracket.

bug 1649
2004-08-17 08:09:13 +00:00
martignoni df71553586 One anchor string forgotten 2004-08-17 07:40:34 +00:00
martignoni d150d8f47c New strings for anchors 2004-08-17 07:39:09 +00:00
moodler eb622fcaa7 Show jump menu when grading assignments 2004-08-17 06:58:49 +00:00
moodler 2d90bdf022 Site level block shows online teachers and students from all courses
bug 1683
2004-08-17 06:53:50 +00:00
moodler 4b544a3758 Fixed spaces/returns 2004-08-17 05:51:53 +00:00
moodler d7c40ba3c9 Use the same rounding for highest grade as other scores bug 1707 2004-08-17 05:47:49 +00:00
moodler 31a5ee99cc Don't show grades at all when grades not being used bug 1710 2004-08-17 05:44:30 +00:00
moodler 11c3ccfadd Fixed up RSS links in Glossary docs bug 1715 2004-08-17 05:29:35 +00:00
moodler 2c6d8d1d60 Fixed some typos as per bug 1717 2004-08-17 05:25:05 +00:00
mits a839f36977 Polished. 2004-08-17 05:19:32 +00:00
moodler d85035457f Convert firstname lastname to fullname() calls, fixing bug 1726 2004-08-17 05:19:21 +00:00
mits 39e413a54b translated some. 2004-08-17 05:17:42 +00:00
julmis 251e4497c0 Adding anchors strings 2004-08-16 23:55:01 +00:00
paca70 4d3dbc3e6b updates 2004-08-16 17:02:56 +00:00
moodler 886c666847 FIxed bug 1738 - questions now added to category they were started in 2004-08-16 15:55:15 +00:00
moodler 39a5a35d6d Finalise the switchover to using the user->auth field when authenticating.
Thanks, Howard Miller!
2004-08-16 15:41:57 +00:00
moodler 9c8047cfd0 Added a new preview/test feature for quiz questions, sent in by
Pavel <paolo@psychpan.waw.pl>

Thanks to Przemyslaw, too!
2004-08-16 15:16:26 +00:00
moodler 284dc1a103 Added new login block from Janne! 2004-08-16 12:50:20 +00:00
gustav_delius 25c3c05796 put recently deleted outdated language string back in so that the language pack will work with old versions. 2004-08-16 10:09:54 +00:00
julmis 7ada3fea23 Don't ever try to load editor when using safari.
Safari isn't supported.
2004-08-16 09:44:43 +00:00
moodler 22d42bf0ce If possible, increase the memory limit at run-time. doh!
Not many servers have this compiled into PHP though.
2004-08-16 07:26:19 +00:00
moodler 066567e60c Added Koen as Translation Coordinator 2004-08-16 06:43:02 +00:00
paca70 443398353c Added support for coursecreators in function auth_sync_users() 2004-08-16 04:56:47 +00:00
paca70 9566e4ce84 Moved groupmembership code from function auth_iscreator() to
generic private function auth_ldap_isgroupmember().
2004-08-16 04:41:51 +00:00
moodler e2b86a594c Replaced the old strings back in the pack for backward compatibility 2004-08-16 02:24:58 +00:00
moodler a9cbf8cc58 Always let a user see themselves. 2004-08-16 02:15:24 +00:00
gustav_delius f88803e06d Improved subscription editing interface according to discussion at http://moodle.org/mod/forum/discuss.php?d=11089#53612 2004-08-15 21:01:34 +00:00
koenr 895f667baf filling in missing strings... 2004-08-15 19:54:25 +00:00
mits 0c72b625fb translated some. 2004-08-15 19:13:31 +00:00
paca70 815002f07f while waiting that guid-field, I added two functions:
auth_get_users ()
        Returns all userobjects from external database, with userinformation
        like address, phone ...

auth_sync_users ()
        1. Adds users from externaldatabase to moodle.
        2. renamed user in moodles db if renamed in externaldb
        3. "Delete" user in moodles db if removed from externaldb

and configuration interface for guid. ;)
2004-08-15 17:46:30 +00:00
moodler 58a524be4d FIxes for POP3 from Rudy Scott http://moodle.org/mod/forum/discuss.php?d=9131 2004-08-15 17:21:01 +00:00
paca70 4b9c337598 Added configuration interface for value LDAP_objectclass 2004-08-15 16:12:19 +00:00
paca70 93b7b5bac8 Updated description 2004-08-15 16:09:32 +00:00
paca70 1d812b88f7 Added description of auth_ldap_objectclass 2004-08-15 16:08:05 +00:00
moodler 8b10824c18 Moved Anchors thing down ... 2004-08-15 15:21:22 +00:00
moodler aa94692460 Fixed Browse button (added ellipsis) and missing string "Anchor" 2004-08-15 14:31:28 +00:00
moodler 00cd9cf735 Removed HALFOPEN as per http://moodle.org/mod/forum/discuss.php?d=11115 2004-08-15 14:17:22 +00:00
mits 4bbe6703f9 New translation, Add a new file. 2004-08-15 13:56:48 +00:00
gustav_delius 90e7063e45 Editing teacher can now subscribe users to a forum, see http://moodle.org/mod/forum/discuss.php?d=11089 2004-08-15 12:38:29 +00:00
julmis b3d3ca5b79 Big update for the editor!
Code is closer to HTMLArea 3.0 RC1.
- Updated dialog behavior (no more showModalDialogs)
- Cleaner XHTML coding in dialogs
- Unnecessary comment stripped off from htmlarea.php
- New anchor feature.
2004-08-15 11:56:45 +00:00
julmis 31b6f565df Add anchor image. 2004-08-15 11:51:22 +00:00
moodler 4e11ad4faa Added a new "auth" field to the user table. This field contains the
authentication mechanism used to create that user record.

Also added code to upgrade existing systems to have entries in that
field, and for new users to also have that field defined.

This will allow us to later improve the login procedure to be able to
handle various types of authentication.
2004-08-15 07:27:52 +00:00
koenr 83c87a05d9 far too modest 2004-08-14 21:49:21 +00:00
martignoni 77ef5a6111 Some fixes 2004-08-14 19:56:16 +00:00
martignoni 58a575a594 Small fixes 2004-08-14 19:23:31 +00:00
martignoni 7cc343ec51 Some fixes 2004-08-14 17:38:32 +00:00
moodler dfd629d768 Latest goodness from PJ the MAN! 2004-08-14 16:45:13 +00:00
martignoni d167ee0786 Some fixes 2004-08-14 15:59:16 +00:00
martignoni 3a9ddcb07d Corrected mailto link 2004-08-14 15:36:59 +00:00
martignoni 45f3331298 Small fixes 2004-08-14 14:20:19 +00:00
moodler 1357be4a55 Old code, never checked in ... not really tested 2004-08-14 12:47:24 +00:00
moodler 7b911e7169 First-Class strings 2004-08-14 12:44:36 +00:00
moodler 5f8c3e1f1a Fixed some notices 2004-08-14 12:42:54 +00:00
moodler a950790dfd Trivial fix to ID 2004-08-14 12:37:39 +00:00
moodler b140ae85e8 Better messages 2004-08-14 12:33:36 +00:00
moodler 71d707f18f If the name of an activity is left blank, then give it a generic name
matching the name of the module.
2004-08-14 12:15:28 +00:00
moodler 7c990f68d6 Fixed window choices on resources so that they use a radio button now.
bug 1741
2004-08-14 11:54:32 +00:00
papita 6463b2dd50 Ne files 2004-08-14 07:17:40 +00:00
papita 06c1db86d0 Latest changes from Paula 2004-08-14 07:14:35 +00:00
koenr a634399ca0 *** empty log message *** 2004-08-13 20:48:55 +00:00
koenr aebc3d8b0f initial translation by Koen Roggemans 2004-08-13 19:25:44 +00:00
koenr 7d57fed825 restyling 2004-08-13 17:04:06 +00:00
koenr 0119539dd7 initial translation by Koen Roggemans 2004-08-13 16:43:08 +00:00
koenr 8f4a303c69 corrected very stupid error 2004-08-13 16:40:54 +00:00
martignoni 0df6c5d56f Some small changes 2004-08-13 15:22:51 +00:00
martignoni 21dd4ece5c One more typo :-) 2004-08-13 14:52:48 +00:00
martignoni b58664c45e Typos corrected 2004-08-13 08:26:15 +00:00
koenr 1232c3c4ad Added link for translation.html 2004-08-13 06:56:53 +00:00
koenr 7effda35a2 rewriting helpfiles for new and changed functionality 2004-08-13 00:13:07 +00:00
koenr 286db5c509 removing php 2004-08-12 20:08:15 +00:00
koenr bcfee0a23f pollishing translation 2004-08-12 20:01:39 +00:00
koenr 7aeeb4a307 initial translation by Koen Roggemans 2004-08-12 19:56:24 +00:00
martignoni 2a44acce1d Added guideline for format_text.
Add info about addslashes().
2004-08-12 19:54:56 +00:00
martignoni 1ce981bc6a Release notes for 1.3.4 2004-08-12 19:43:39 +00:00
martignoni fd7b696bc8 Added organizations string 2004-08-12 19:33:21 +00:00
martignoni 1f60492274 Language strings for references removed 2004-08-12 19:32:33 +00:00
martignoni 43c6006970 Removed PHP code from strings!
Added "No possible datasets"
2004-08-12 19:30:25 +00:00
martignoni dbbfbafc11 Added 'rss' string 2004-08-12 19:20:09 +00:00
martignoni de7827026d New file added 2004-08-12 19:16:58 +00:00
koenr 5bb95c4fc0 initial translation by Koen Roggemans 2004-08-12 18:31:35 +00:00
koenr 9d43c4dda9 filling in missing strings... 2004-08-12 18:31:16 +00:00
martignoni 79d9eb1c3d Added string 'editalways' 2004-08-12 17:50:53 +00:00
martignoni f34b9eab18 Extra strings for regrading student assessments and the grade analysis tables. 2004-08-12 17:19:26 +00:00
martignoni 5a5a79dccd New string 'usernotavailable' 2004-08-12 17:12:51 +00:00
moodler c29bbe8bfc Made the glossary upgrade use less memory bug 985 2004-08-12 15:59:23 +00:00
moodler 66f9a82c60 You can choose not to show notices on make_upload_directory
The installer script uses this.
2004-08-12 15:54:43 +00:00
moodler 8b5b10281c New automatic installation script! No need to make config.php anymore!
It's rough but it works.  I will be doing lots of work on making it
slicker so don't translate the strings just yet.
2004-08-12 15:53:32 +00:00
martignoni f324d4dd86 Added translation of 'lax' : indulgent 2004-08-12 14:34:34 +00:00
moodler 5dbd0dfc0a Add version number 2004-08-12 12:36:32 +00:00
moodler e7d27884a8 Some cleanups from Jon ... beeps now work 2004-08-12 12:31:38 +00:00
moodler e7a80e32c9 Removed some spurious debug statements 2004-08-12 11:24:33 +00:00
moodler 9fd9c29b00 Group buttons are now displayed even when a course is:
No groups, Not forced

Bug 1731
2004-08-12 11:23:47 +00:00
moodler e21922f00c Fixed modid selection bug 1735 2004-08-12 09:55:12 +00:00
moodler 3d13d66a88 Removed some notices ... argh, this module needs help ... 2004-08-12 08:05:51 +00:00
moodler ffbe59b8d0 Avoiding a notice 2004-08-12 07:52:44 +00:00
moodler 77ec198a93 Fixed typo when printing footer 2004-08-12 07:48:00 +00:00
moodler fd5594a00b Fixed some PHP 5 notices 2004-08-12 07:42:52 +00:00
julmis ad23e80a3b Fix for wordClean. Don't strip all h -tags 2004-08-12 07:40:57 +00:00
defacer fe78a3dc30 Ooops! Silly mistake... NOW bug 1736 is fixed. 2004-08-12 07:17:46 +00:00
bobopinna 3d9f716eca updated to new multilanguage teacher manual download page 2004-08-12 07:12:30 +00:00
defacer 0c9c6363bc Fix for bug 1736:
Invisible blocks are now not contributing to block column width calculations.
2004-08-12 07:09:18 +00:00
moodler f5ecf2e91a When displaying users at site level:
- teachers can see everyone
  - everyone can see teachers

but everyone else is prevented from seeing users.  This is regardless
of the forceloginforprofiles setting and is designed to stop mass collection
of user names by browsing through all user names.
2004-08-12 06:57:53 +00:00
moodler 7da0830c40 Whoops, accidentally checked in some aborted code 2004-08-12 05:06:48 +00:00
moodler 9fb216e8b6 Fixed some version numbers on three blocks 2004-08-12 04:44:14 +00:00
papita d8b94c7d26 Latest files from Paula 2004-08-12 03:45:21 +00:00
aredkin 00f58a3104 activities traslation corrected 2004-08-11 16:26:09 +00:00
moodler 82a524ef54 Latest changes to the chat daemon ... user window now working
Needs:    - testing
            - beeps in daemon mode  (you can type "beep all" though)
2004-08-11 14:45:40 +00:00
koenr bee29d146d initial translation by Koen Roggemans 2004-08-11 14:28:38 +00:00
koenr 7baae082be removing unnecessary files 2004-08-11 14:24:07 +00:00
rkingdon 3b42c6d8f1 Use of moodle's writing.html help rather than a "local" one. 2004-08-11 12:30:26 +00:00
rkingdon 8ecd205db7 Addition of Index.htm and tidy up. 2004-08-11 12:26:33 +00:00
selliott a1931e61d5 Changed ($course) to ($this->course) in if condition to allow course to be checked 2004-08-11 11:19:09 +00:00
rkingdon 3c4a6298bc Fixed bug #1642. 2004-08-11 10:47:43 +00:00
paca70 20cb89ec4e Quickly tested updates for postgresql. (seems to work here) 2004-08-11 10:27:00 +00:00
rkingdon 8bd6b4a2b1 Addition of Grade Analysis tables to Administration page; Re-grading of
student assessemnts.
2004-08-11 10:23:55 +00:00
rkingdon fb01c6b9be Extra strings for regrading student assessments and the grade
analysis tables.
2004-08-11 10:20:30 +00:00
rkingdon 02d73b025e Addition of index.html; a new help file on regrading student assessments;
minor clean-ups.
2004-08-11 10:18:32 +00:00
moodler 675dbdd9f5 FIxed some notices when installing Moodle fresh 2004-08-11 09:00:53 +00:00
koenr 838acddfef modification for new features 2004-08-11 08:28:35 +00:00
koenr ea9fb16622 typo 2004-08-11 08:10:43 +00:00
moodler 944a2b2870 Finally? Fixed the digest mail sending time (it was a timezone issue). 2004-08-11 07:55:40 +00:00
moodler 11558e5af4 Closed up some notices 2004-08-11 06:59:23 +00:00
moodler 338c772cc5 Removed PHP code from strings! 8-o 2004-08-11 06:46:59 +00:00
moodler af4209d0eb Not completed yet .... Henrik? 2004-08-11 06:45:26 +00:00
moodler a46eb8c106 Added "No possible datasets" 2004-08-11 06:17:26 +00:00
moodler efbf2d9afd Merged new release notes from stable 2004-08-11 05:18:45 +00:00
moodler b5de723daa Latest fixes from Jon ... it's much more stable now!
... the only thing remaining is that the user window is
still done old-style, and not yet converted over to the
new -style daemon
2004-08-10 13:50:58 +00:00
moodler ee88d30b4c Don't put HTML and text files through clean_text. 2004-08-10 10:44:29 +00:00
c_schmitz 90617c2d82 * Small correction 2004-08-10 10:26:09 +00:00
stronk7 f6bb7eaa39 Paging discussions is in CVS just now :-) 2004-08-10 09:37:02 +00:00
moodler ed5bdd6585 Some filters add javscript, we and certainly do not want to clean
those out.

Moving the cleaning to just before the other filters are run.
2004-08-10 09:16:16 +00:00
moodler 40b83bffaa Don't clean external files 2004-08-10 09:10:28 +00:00
moodler 5e6775e093 Added guideline for format_text. Fixes bug 1722 2004-08-10 02:27:15 +00:00
stronk7 cd2bf3309c Now upgrade and restore processes enable editalways for old
secondary glossaries. Smooth transition. Thanks, Martin! :-)

Bug 1445
(http://moodle.org/bugs/bug.php?op=show&bugid=1445)
2004-08-09 19:20:42 +00:00
paca70 f8559be0fc Thanks vernier at vc dot bc dot ca 2004-08-09 19:18:19 +00:00
rkingdon 428c68f5c2 Fixed bug #1705. 2004-08-09 17:23:25 +00:00
rkingdon ac969b2b22 Fixed bug #1615. 2004-08-09 17:04:07 +00:00
moodler d05024a72b Added Petri's patch that allows us to finally change type of PostgreSQL columns!
Yay!   Thanks, Petri!

Bug 1721
2004-08-09 16:00:10 +00:00
moodler 518f01ce4f Cleaned up some more things using some shortcut variables, and also
fixed bug 1711 that was preventing glossaries from working properly
2004-08-09 15:45:22 +00:00
stronk7 ff1e2621f3 Now editalways is working in glossaries.
Decide if an entry is editable:
-It isn't a imported entry (so nobody can edit a imported (from secondary to main) entry)) and
-The user is teacher or he is a student with time permissions (edit period or editalways defined).

Bug 1445
(http://moodle.org/bugs/bug.php?op=show&bugid=1445)
2004-08-09 15:04:36 +00:00
stronk7 d116ee768a Added support for glossary->editalways in lang file.
Bug 1445
(http://moodle.org/bugs/bug.php?op=show&bugid=1445)
2004-08-09 14:58:07 +00:00
moodler 3b7d3db5de Don't clean posted text on input (will be cleaned on output). 2004-08-09 14:56:03 +00:00
moodler 9d40806d0e format_text now does a clean_text after all the filters, for added safety
Practically all printed text in Moodle should use this function

If you don't want to clean the text of unwanted tags and scripts, then
set the parameter $options->noclean
2004-08-09 14:54:39 +00:00
moodler 43cbfc1999 Standardising the printing of content and summaries to use format_text() 2004-08-09 14:49:16 +00:00
moodler 7dd826818e More notices 2004-08-09 14:18:40 +00:00
thepurpleblob b1984b0d33 Added overidable method presave_process - allows last minute modification of
data to be exported to file. Done to get xml output working.
2004-08-09 13:56:47 +00:00
thepurpleblob 29a95feb94 more fixes - xml export now pretty much working 2004-08-09 13:55:20 +00:00
moodler 389a4df98f Slightly wider block for summary text 2004-08-09 13:23:32 +00:00
koenr 96f2c12051 typo 2004-08-09 10:55:45 +00:00
koenr 8ab518f892 filling in missing strings... 2004-08-09 10:54:00 +00:00
koenr 37d2fd2c07 modification for new features 2004-08-09 10:50:29 +00:00
koenr e3546050ee removing unnecessary files 2004-08-09 10:47:39 +00:00
bobopinna 4971b7f37a update various translations 2004-08-09 09:20:40 +00:00
defacer 5a59303726 This seems to improve the regexp filtering by solving some problems where
it was killing unarmed population... hope it works "better" now!
2004-08-09 08:51:47 +00:00
defacer fecb707db4 Fixes for twin notices, buried in the HTML. 2004-08-09 08:06:36 +00:00
defacer 09794d30db Fix a notice buried in the HTML. 2004-08-09 08:01:40 +00:00
bobopinna 1fc9e85cc9 Added organizations string 2004-08-09 07:28:13 +00:00
bobopinna 2c508ab9b1 Added multiorg display and patched some typo 2004-08-09 07:26:06 +00:00
paca70 358910a485 Fixed typos 2004-08-09 04:56:42 +00:00
moodler 5ea17e17cf Fixed some typos etc. :-) 2004-08-09 01:39:40 +00:00
stronk7 2b1b11c606 Now the RSS link is showed in the list of glossaries.
Bug 1706
(http://moodle.org/bugs/bug.php?op=show&bugid=1706)
2004-08-08 18:44:45 +00:00
stronk7 e36a029d1a Added a new string. Not sure if it requires translation, but... 2004-08-08 18:43:10 +00:00
stronk7 48429e57e6 Avoid one notice when creating a new glossary. 2004-08-08 18:31:09 +00:00
stronk7 33f48f030e Now the RSS link is showed in the list of forums.
Now going to the glossary...

Bug 1706
(http://moodle.org/bugs/bug.php?op=show&bugid=1706)
2004-08-08 18:00:32 +00:00
rkingdon b438c1e0bd Some info added on groups. 2004-08-08 15:57:49 +00:00
rkingdon 20cfa94262 In Separate Group mode students now see only students in their own group. 2004-08-08 15:56:41 +00:00
moodler 53f4ad2c38 Fixed a problem I noticed while inserting a quiz 2004-08-08 15:14:25 +00:00
moodler ba28853909 And some more 2004-08-08 15:09:39 +00:00
moodler b71213e39a Fixed bug when calling instance_is_visible() 2004-08-08 15:08:50 +00:00
moodler 7fd4dd3de6 Make the help page look better 2004-08-08 14:47:29 +00:00
moodler 429893851d Reference resources are now history - I removed the language strings for them 2004-08-08 14:45:32 +00:00
moodler 3d30a455cb Lots of little cleanups and these new things:
- Reference resources are now history -> converted to HTML pages
      (the backup/restore has been taken care of, Eloy)

  - HTML pages and Text pages can now have popups!

  - Summaries are not shown when they should be blank (eg if they
    just contain a <br /> as the HTML editor usually inserts.

  - Fixed some notices for PHP 5
2004-08-08 14:33:23 +00:00
moodler 7f9142a539 Update user time 2004-08-08 13:46:23 +00:00
kaipe 7acaafc87e Support for CALCULATED questions
These are much more complex than all qtype already supported
so I have been pretty hard on the existing code.
I could not figure out what mathematical functions need
to be converted from webct to PHP format. The only function
I have converted so far is the webct x**y that was converted to PHP pow(x,y)
2004-08-08 12:08:08 +00:00
kaipe 908a708e7c Fixed a bug
Cleaned out a flaw that ruled out generation of negative random numbers
2004-08-08 11:31:40 +00:00
moodler e7b64b0265 Directory selection list now works when adding a new resource 2004-08-08 07:35:33 +00:00
moodler df1c46115b Improvement to filters, providing speed boost AND better compatibility
with Turck MMCache.

Filter function must now have a particular name

   eg resource_filter

where "resource" is the name of the directory that filter.php is in.
2004-08-08 06:57:44 +00:00
moodler 9fd25c394a Fixed a warning in PHP 5 2004-08-08 05:42:45 +00:00
moodler 1b04b36bff Fixed a notice on PHP 5 2004-08-08 05:28:26 +00:00
moodler e17781c874 FIxing a notice for PHP5 2004-08-08 03:35:46 +00:00
koenr aa633a56be initial translation by Koen Roggemans 2004-08-07 19:27:43 +00:00
koenr b20d428f38 pollishing translation 2004-08-07 19:26:38 +00:00
koenr 6872907500 pollishing translation 2004-08-07 18:35:57 +00:00
stronk7 1ad1917042 Avoid some notices... 2004-08-07 17:21:43 +00:00
stronk7 65f1df629c Preparing rss stuff to be showed in lists of activities... 2004-08-07 16:54:25 +00:00
koenr add18b1a79 initial translation by Koen Roggemans 2004-08-07 16:41:11 +00:00
koenr 0dc1ce7fd7 filling in missing strings... 2004-08-07 15:54:34 +00:00
koenr baefa8f30d modification for new features 2004-08-07 15:30:13 +00:00
koenr d28303fdaa initial translation by Koen Roggemans 2004-08-07 15:05:09 +00:00
koenr f0bbb558dd typo 2004-08-07 15:04:04 +00:00
moodler 333105a06d Fixed bug 1716 and updated this file to match the other new help 2004-08-07 14:57:49 +00:00
koenr f8b7df14aa bug 1712: missing indexfile 2004-08-07 14:56:29 +00:00
koenr 9d33084f41 removing unnecessary files 2004-08-07 14:44:54 +00:00
rkingdon 1d8d55e7ed Improved handling of Groups. 2004-08-07 14:16:20 +00:00
moodler fab7e07e19 Upgraded to ADOdb 4.5.1. Contains a lot of small fixes and speed-ups. 2004-08-07 14:10:19 +00:00
koenr f5f346a594 pollishing translation 2004-08-07 13:49:39 +00:00
moodler 04a72b882a Fixed a notice on PHP5 2004-08-07 13:44:25 +00:00
moodler 51a96819cc COntinue buttons should break out of frames 2004-08-07 13:43:01 +00:00
moodler 5132e606f1 Fixed a notice on PHP 5 2004-08-07 13:40:48 +00:00
moodler 6527c077b6 Ficed a PHP5 notice 2004-08-07 13:39:36 +00:00
moodler e1f3202adb FIxed a PHP5 notice 2004-08-07 13:36:57 +00:00
martignoni 27927af15f News strings added 2004-08-07 08:26:15 +00:00
moodler 6c05a7818a Clean up and new strings 2004-08-07 06:34:27 +00:00
moodler 1284a926f9 More mtrace statements 2004-08-07 06:05:37 +00:00
moodler d462753c54 Changed echo statements to mtrace() 2004-08-07 06:02:26 +00:00
moodler 428b6fec9e More mtracing 2004-08-07 05:56:03 +00:00
moodler 38ad519c06 Whoops, fixed a typo 2004-08-07 04:09:50 +00:00
moodler 622ebc6a7c mtrace now works properly for web display too 2004-08-07 03:59:53 +00:00
moodler 29ad118c2f Merged recent fix from stable 2004-08-07 02:44:38 +00:00
stronk7 ba9d68c4c3 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)
2004-08-07 00:03:08 +00:00
stronk7 42ad99c5a8 Bump!! Calculated questions are now included 2004-08-06 23:44:27 +00:00
stronk7 9fd687e0d2 Now CALCULATED questions are in backup & restore.
It was difficult to understand but easy to implement :-)
Some mechanisms has been added to avoid to duplicate
quiz_dataset_definitions (confirmed from Henrik).

Please, test, test, test, test....
2004-08-06 23:43:19 +00:00
thepurpleblob 28e9d5d789 Whoops got rid of xml stuff - sorry my mistake 2004-08-06 15:06:17 +00:00
thepurpleblob bbb4e32d3c Adding xml export 2004-08-06 14:59:45 +00:00
thepurpleblob b2bf1d1d11 Copied from gift directory by mistake - removing 2004-08-06 14:52:56 +00:00
rkingdon e79c8ce18d Changes for version 2004062300 2004-08-06 14:46:53 +00:00
rkingdon a98a140b10 A few new strings for version 2004062300 2004-08-06 14:44:17 +00:00
rkingdon 94cc7ed0f1 Removal teacher assessment of student assessments; addition of Groups,
various improvements.
2004-08-06 14:42:23 +00:00
thepurpleblob 852a8212aa XML export kinda works now. 2004-08-06 14:31:30 +00:00
thepurpleblob 0890110fbc vaguely working version of xml export - much more work needed though 2004-08-06 13:03:33 +00:00
thepurpleblob a0ffa51354 export filename does not now have .txt extension - this is selected by overridable
method on format.php
2004-08-06 11:11:51 +00:00
thepurpleblob 3cb21c9388 fixed bug that must have crept in during recent refactor. $course not being passed
to export format object.
export file extension can now be selected by overriding method in format.php
2004-08-06 11:11:05 +00:00
thepurpleblob 3102622add Changed export part so that export file extension can be changed
by overriding export_file_extension() method
2004-08-06 11:09:22 +00:00
mits b4fe4243db Polish, New translated file added. 2004-08-06 01:40:10 +00:00
stronk7 04bc8ed1c1 Now numerical_units support has been added to backup and restore.
Currently only working with numerical questions...
2004-08-05 23:11:31 +00:00
stronk7 1db60bdac0 Numerical questions lost their category when editing. Fixed. 2004-08-05 22:57:57 +00:00
stronk7 44d6ae6df4 Applied the same checks than to the forum to generate
glossary rss feeds only when necessary.
My only dude is if we should use the modification time instead
of the creation time (here and in forums...).
2004-08-05 20:10:07 +00:00
moodler 19223525fa Removed Martin's mistaken addition from a few days ago 2004-08-05 18:13:59 +00:00
moodler c274b0e0f5 Fix for stupid bug causing old mails not to be marked as mailed
Also, forum email is now posted from old to new.
2004-08-05 18:08:20 +00:00
moodler 6069e20688 RSS for forums now checks the new posts against the file modification date,
and doesn't regenerate the RSS file if it doesn't need to.

Much faster now.   :-)
2004-08-05 18:06:55 +00:00
moodler b65a50e5a2 Use mtrace function for debugging 2004-08-05 17:25:15 +00:00
moodler defaac4cee Added mtrace function for printing information to standard output 2004-08-05 17:08:46 +00:00
moodler 69f78bcb59 Added some better tracing .... makes it easier to debug cron.php
from the cvommand line
2004-08-05 17:03:19 +00:00
martignoni 3f311859e3 Added 'file' 2004-08-05 16:12:57 +00:00
martignoni f4e833085c Small correction 2004-08-05 14:05:05 +00:00
moodler 2faa4187a0 Added "File" 2004-08-05 13:51:34 +00:00
moodler 53f046e9ce FIxed translation of "Browse" 2004-08-05 13:49:31 +00:00
martignoni e07d38b198 Small typo 2004-08-05 13:27:37 +00:00
martignoni f352c48c99 Improvements 2004-08-05 12:39:02 +00:00
martignoni 3fff134f26 New strings for dataset definitions 2004-08-05 12:34:34 +00:00
moodler c35889f9f1 Removing some upgrade stuff ... not sure what I was trying to do there
I'm checking this in so I can do some testing on other sites
2004-08-05 10:51:58 +00:00
kaipe d02ad0f9c2 New page quiz/questiontypes/datasetdependent/categorydatasetdefinitions.php?category=XX
offers a simple editing view for category reusable dataset definitions.
It is unlinked but can be reached by specifying the URL or having a question
edit page link it in the future.
2004-08-05 09:53:17 +00:00
moodler 91a0974597 Default calendar to 21 days 2004-08-05 09:28:44 +00:00
moodler f322addf00 Oops forgot autofocussing 2004-08-05 09:27:40 +00:00
moodler bbcef615d7 Student manual enrolment now allows enter to submit search and
autofocusses search input
2004-08-05 09:26:16 +00:00
moodler fdfefb6700 New interfaces for managing creators and admins 2004-08-05 09:24:16 +00:00
flipman e61b45db7b New 2004-08-05 08:27:30 +00:00
moodler 01d11b97d9 No checking is now done on question name and question text.
If question name is empty, then it's assigned to be same as the question text.

The question text can now be empty if people want that.
2004-08-05 05:31:40 +00:00
moodler 235987c596 Removed a notice 2004-08-05 05:27:18 +00:00
mits de06cb5fd1 Done! 2004-08-05 04:34:01 +00:00
mits 52efd6e5b2 Polished. 2004-08-05 03:26:14 +00:00
moodler a68c714bde Slight improvement 2004-08-05 02:55:41 +00:00
moodler f00035551d Updated the Summary help 2004-08-05 02:44:18 +00:00
mits c4d1a0f240 Polish and New translation. 2004-08-05 02:25:41 +00:00
kaipe 79a44f05a9 Took care of some issues concerning the use of
individual quiz files in datasetdependent questions
2004-08-04 23:35:18 +00:00
julmis bcaba84417 Move use_html_editor() outside of <form> area.
Gives IE more time to load the page. (body missing problem).
2004-08-04 18:13:09 +00:00
stronk7 ee7b19541f Updated to 1.4, 1.5 and 2.0 2004-08-04 16:48:18 +00:00
moodler ffae3d4615 Fixing Bug 812 and problems with slashes when editing text and HTML files
Again.
2004-08-04 16:26:44 +00:00
kaipe f7dea937e6 Updates that make it possible to override the options queries
This makes it easier to use this question type as the virtual question type for dataset dependent question types
2004-08-04 14:09:19 +00:00
moodler b0a02eb869 FIxed some defaults and notices 2004-08-04 12:50:38 +00:00
moodler fa2fb64cbc Fixed some notices. 2004-08-04 12:48:06 +00:00
moodler ce04df6ba6 Fixed detection of no groups as per bug 1692 - thanks, Ray! 2004-08-04 12:32:43 +00:00
moodler 6093cbfcd8 FIxed link after file not found error 2004-08-04 09:45:45 +00:00
moodler 5c5cff568f FIxed some notices 2004-08-04 08:39:29 +00:00
martignoni 42fb38a48a Slight modification for shorter activity name (survey = consultation) 2004-08-04 07:56:35 +00:00
moodler 64e92a75fb Fixed up HTML editor 2004-08-04 07:30:38 +00:00
martignoni 7fc654d9c3 Forgotten file ;-) 2004-08-04 07:28:03 +00:00
moodler 3a00dbfd6a Fixed some notices 2004-08-04 07:04:11 +00:00
moodler d3f8572b41 Adding icon for calculated questions 2004-08-04 03:01:51 +00:00
moodler cf464c3576 Fixed some warnings 2004-08-04 02:56:20 +00:00
moodler 63b1bd7cfc Fixed a notice when $USER->id not defined 2004-08-04 02:44:25 +00:00
moodler a4851aaf71 Add link to "all courses" for admins etc 2004-08-04 02:35:29 +00:00
moodler 3ecca1ee0c Forum mail older than two days is never sent out.
This will prevent the "flood of mail" problem that newbie admins
sometimes experience when cron isn't set up.
2004-08-04 02:20:29 +00:00
mits 72f6e3ec87 Polish and New translation. 2004-08-03 22:14:35 +00:00
stronk7 9c28ec452b Latest changes... 2004-08-03 22:12:21 +00:00
mits 4e5586d408 New translated file added. 2004-08-03 21:42:34 +00:00
martignoni 274cfac7d1 Updated view of the future 2004-08-03 20:39:24 +00:00
stronk7 ba29c4a9e0 TODO updated. 2004-08-03 17:27:28 +00:00
moodler 816860b376 A little more. :-) 2004-08-03 15:25:39 +00:00
moodler 89ddaa94f8 Phew, that old one was really out of date.
Here is an updated view of the Future.
2004-08-03 15:23:53 +00:00
martignoni 9ce71f1f25 Add version number 2004-08-03 13:28:02 +00:00
martignoni 347cec3cf0 Changes and additions to cope with the new resource mecanism 2004-08-03 13:25:04 +00:00
moodler fb66292c36 Bump! 2004-08-03 13:01:04 +00:00
moodler e1a2407902 Allow for course language terms 2004-08-03 12:53:56 +00:00
moodler 5363911f84 First pass at an improved interface for manual student enrolments 2004-08-03 12:50:18 +00:00
kaipe a753b153de DEBUGGED
Icon images did not have any closing " for attribute SRC
2004-08-03 12:16:55 +00:00
moodler 09e9588ee1 Restricted teachers shouldn't even see this page 2004-08-03 10:15:23 +00:00
moodler c600d8bdd7 Fixed a bug caused by new logs stuff.
0 == 'string'

actually returns TRUE!   Sigh.
2004-08-03 10:05:26 +00:00
gustav_delius 09d4c9a984 postgres should use INT8 only for very large integers, see bug1590 2004-08-03 09:30:04 +00:00
martignoni 097f75d1a0 Single more concise string for login error notification emails 2004-08-03 08:32:17 +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
4638 changed files with 256301 additions and 84011 deletions
+88
View File
@@ -0,0 +1,88 @@
<form name="adminform" id="adminform" method="post" action="admin.php">
<input type="hidden" name="previoussearch" value="<?php echo $previoussearch ?>">
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<?php echo count($admins) . " ". $strexistingadmins ?>
</td>
<td></td>
<td valign="top">
<?php echo $usercount . " " . $strpotentialadmins ?>
</td>
</tr>
<tr>
<td valign="top">
<select name="removeselect[]" size="20" id="removeselect" multiple
onFocus="document.adminform.add.disabled=true;
document.adminform.remove.disabled=false;
document.adminform.addselect.selectedIndex=-1;">
<?php
if (count($admins) == 1) {
$disabled = 'disabled';
$removebuttontype = 'hidden';
} else {
$disabled = '';
$removebuttontype = 'submit';
}
foreach ($admins as $admin) {
$fullname = fullname($admin, true);
echo "<option value=\"$admin->id\" $disabled>".$fullname.", ".$admin->email."</option>\n";
}
?>
</select></td>
<td valign="top">
<br />
<input name="add" type="submit" id="add" value="&larr;" />
<br />
<input name="remove" type="<?php echo $removebuttontype ?>" id="remove" value="&rarr;" />
<br />
</td>
<td valign="top">
<select name="addselect[]" size="20" id="addselect" multiple
onFocus="document.adminform.add.disabled=false;
document.adminform.remove.disabled=true;
document.adminform.removeselect.selectedIndex=-1;">
<?php
if (!empty($searchusers)) {
echo "<optgroup label=\"$strsearchresults (" . count($searchusers) . ")\">\n";
foreach ($searchusers as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
echo "</optgroup>\n";
}
if (!empty($users)) {
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
}
?>
</select>
<br />
<input type="text" name="searchtext" size="30" value="<?php echo $searchtext ?>"
onFocus ="document.adminform.add.disabled=true;
document.adminform.remove.disabled=true;
document.adminform.removeselect.selectedIndex=-1;
document.adminform.addselect.selectedIndex=-1;"
onkeydown = "var keyCode = event.which ? event.which : event.keyCode;
if (keyCode == 13) {
document.adminform.previoussearch.value=1;
document.adminform.submit();
} " />
<input name="search" id="search" type="submit" value="<?php p($strsearch) ?>" />
<?php
if (!empty($searchusers)) {
echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
}
?>
</td>
</tr>
</table>
</form>
+50 -88
View File
@@ -32,16 +32,11 @@
"assignadmins",
"administration",
"existingadmins",
"noexistingadmins",
"potentialadmins",
"nopotentialadmins",
"addadmin",
"removeadmin",
"search",
"searchagain",
"toomanytoshow",
"users",
"searchresults"
"searchresults",
"showall"
);
foreach ($stringstoload as $stringtoload){
@@ -49,107 +44,74 @@
$$strstringtoload = get_string($stringtoload);
}
if ($search) {
$searchstring = $strsearchagain;
} else {
$searchstring = $strsearch;
}
print_header("$site->shortname: $strassignadmins",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "");
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> -> $strassignadmins", "adminform.searchtext");
/// Add an admin if one is specified
if (!empty($_GET['add'])) {
if (! add_admin($add)) {
error("Could not add that admin!");
}
}
/// Remove an admin if one is specified.
if (!empty($_GET['remove'])) {
if (! remove_admin($remove)) {
error("Could not remove that admin!");
}
}
/// Print a help notice about this page
if (empty($add) and empty($remove) and empty($search)) {
if (!$frm = data_submitted()) {
print_simple_box("<center>".get_string("adminhelpassignadmins")."</center>", "center", "50%");
/// A form was submitted so process the input
} else {
if (!empty($frm->add) and !empty($frm->addselect)) {
foreach ($frm->addselect as $addadmin) {
if (! add_admin($addadmin)) {
error("Could not add admin with user id $addadmin!");
}
}
} else if (!empty($frm->remove) and !empty($frm->removeselect)) {
$admins = get_admins();
if (count($admins) > count($frm->removeselect)) {
foreach ($frm->removeselect as $removeadmin) {
if (! remove_admin($removeadmin)) {
error("Could not remove admin with user id $removeadmin!");
}
}
}
} else if (!empty($frm->showall)) {
unset($frm->searchtext);
$frm->previoussearch = 0;
}
}
/// Is there a current search?
$previoussearch = (!empty($frm->search) or ($frm->previoussearch == 1)) ;
/// Get all existing admins
$admins = get_admins();
/// Print the lists of existing and potential admins
echo "<table cellpadding=2 cellspacing=10 align=center>";
echo "<tr><th width=50%>$strexistingadmins</th><th width=50%>$strpotentialadmins</th></tr>";
echo "<tr><td width=50% nowrap valign=top>";
/// First, show existing admins
$adminarray = array();
foreach ($admins as $admin) {
$adminarray[] = $admin->id;
}
$adminlist = implode(',', $adminarray);
if (! $admins) {
echo "<p align=center>$strnoexistingadmins</p>";
$adminlist = "";
unset($adminarray);
} else {
$adminarray = array();
foreach ($admins as $admin) {
$adminarray[] = $admin->id;
echo "<p align=right>".fullname($admin, true).",
$admin->email &nbsp;&nbsp; ";
if ($primaryadmin->id == $admin->id){
print_spacer(10, 9, false);
} else {
echo "<a href=\"{$_SERVER['PHP_SELF']}?remove=$admin->id\"
title=\"$strremoveadmin\"><img src=\"../pix/t/right.gif\"
border=0></A>";
}
echo "</p>";
}
$adminlist = implode(",",$adminarray);
unset($adminarray);
/// Get search results excluding any current admins
if (!empty($frm->searchtext) and $previoussearch) {
$searchusers = get_users(true, $frm->searchtext, true, $adminlist, 'firstname ASC, lastname ASC',
'', '', 0, 99999, 'id, firstname, lastname, email');
$usercount = get_users(false, '', true, $adminlist);
}
echo "<td width=50% nowrap valign=top>";
/// Print list of potential admins
$usercount = get_users(false, $search, true, $adminlist);
if ($usercount == 0) {
echo "<p align=center>$strnopotentialadmins</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow ($usercount) </p>";
} else {
if ($search) {
echo "<p align=center>($strsearchresults : $search)</p>";
}
if (!$users = get_users(true, $search, true, $adminlist)) {
error("Could not get users!");
}
foreach ($users as $user) {
echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
"title=\"$straddadmin\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;".fullname($user).", $user->email";
/// If no search results then get potential users excluding current admins
if (empty($searchusers)) {
if (!$users = get_users(true, '', true, $adminlist, 'firstname ASC, lastname ASC', '', '',
0, 99999, 'id, firstname, lastname, email') ) {
$users = array();
}
$usercount = count($users);
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action={$_SERVER['PHP_SELF']} method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
}
$searchtext = (isset($frm->searchtext)) ? $frm->searchtext : "";
$previoussearch = ($previoussearch) ? '1' : '0';
echo "</tr></table>";
include('./admin.html');
print_footer();
+6 -1
View File
@@ -105,7 +105,7 @@
/// Get and sort the existing blocks
if (!$blocks = get_records('blocks')) {
if (false === ($blocks = get_records('blocks'))) {
error('No blocks found!'); // Should never happen
}
@@ -117,6 +117,11 @@
$blockbyname[$blockobject->get_title()] = $block->id;
$blockobjects[$block->id] = $blockobject;
}
if(empty($blockbyname)) {
error('One or more blocks are registered in the database, but they all failed to load!');
}
ksort($blockbyname);
/// Print the table of all blocks
+224 -102
View File
@@ -2,8 +2,8 @@
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><p>lang:</td>
<td>
<td align=right><p>lang:</td>
<td>
<?php choose_from_menu (get_list_of_languages(), "lang", $config->lang, "", "", ""); ?>
</td>
<td>
@@ -11,9 +11,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>langmenu:</td>
<td>
<?php
<td align=right><p>langmenu:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
@@ -26,8 +26,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>langlist:</td>
<td>
<td align=right><p>langlist:</td>
<td>
<input name=langlist type=text size=40 value="<?php p($config->langlist) ?>">
</td>
<td>
@@ -35,8 +35,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>locale:</td>
<td>
<td align=right><p>locale:</td>
<td>
<input name=locale type=text size=10 value="<?php p($config->locale) ?>">
</td>
<td>
@@ -44,22 +44,23 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>timezone:</td>
<td align=right><p>timezone:</td>
<td><?php
if (abs($config->timezone) > 13) {
$config->timezone = 99;
}
$timenow = time();
$timeformat = get_string('strftimedaytime');
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)";
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT)";
} else if ($tz < 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT$zone)";
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT$zone)";
} else {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT+$zone)";
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT+$zone)";
}
}
@@ -71,16 +72,16 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>country:</td>
<td><?php choose_from_menu (get_list_of_countries(), "country", $config->country, get_string("selectacountry"), "") ?>
</td>
<td align=right><p>country:</td>
<td><?php choose_from_menu (get_list_of_countries(), "country", $config->country, get_string("selectacountry"), "") ?>
</td>
<td>
<?php print_string("configcountry") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>smtphosts:</td>
<td>
<td align=right><p>smtphosts:</td>
<td>
<input name=smtphosts type=text size=30 value="<?php p($config->smtphosts)?>">
</td>
<td>
@@ -88,8 +89,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>smtpuser:</td>
<td>
<td align=right><p>smtpuser:</td>
<td>
<input name=smtpuser type=text size=10 value="<?php p($config->smtpuser)?>">
</td>
<td rowspan=2>
@@ -97,15 +98,24 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>smtppass:</td>
<td>
<td align=right><p>smtppass:</td>
<td>
<input name=smtppass type=text size=10 value="<?php p($config->smtppass)?>">
</td>
</TR>
</tr>
<tr valign=top>
<td align=right><p>gdversion:</td>
<td>
<?php
<td align=right><p>noreplyaddress:</td>
<td>
<input name=noreplyaddress type=text size=30 value="<?php p($config->noreplyaddress)?>">
</td>
<td>
<?php print_string("confignoreplyaddress") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>gdversion:</td>
<td>
<?php
unset($options);
$options[0] = get_string("gdnot");
$options[1] = get_string("gd1");
@@ -121,23 +131,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>htmleditor:</td>
<td align=right><p>maxeditingtime:</td>
<td>
<?php
unset($options);
$options[0] = get_string("allownot");
$options[1] = get_string("allow");
choose_from_menu ($options, "htmleditor", $config->htmleditor, "", "", "");
?>
</td>
<td>
<?php print_string("confightmleditor") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>maxeditingtime:</td>
<td>
<?php
<?php
unset($options);
$options[3600] = get_string("numminutes", "", 60);
$options[2700] = get_string("numminutes", "", 45);
@@ -154,9 +150,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>longtimenosee:</td>
<td>
<?php
<td align=right><p>longtimenosee:</td>
<td>
<?php
unset($options);
$options[1000] = get_string("numdays", "", 1000);
$options[365] = get_string("numdays", "", 365);
@@ -178,9 +174,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>deleteunconfirmed:</td>
<td>
<?php
<td align=right><p>deleteunconfirmed:</td>
<td>
<?php
unset($options);
$options[0] = get_string("never");
$options[168] = get_string("numdays", "", 7);
@@ -202,9 +198,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>loglifetime:</td>
<td>
<?php
<td align=right><p>loglifetime:</td>
<td>
<?php
unset($options);
$options[0] = get_string("neverdeletelogs");
$options[1000] = get_string("numdays", "", 1000);
@@ -223,10 +219,56 @@
<?php print_string("configloglifetime") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>displayloginfailures:</p></td>
<td>
<?php
unset($options);
$options[''] = get_string('nobody');
$options['admin'] = get_string('administrators');
$options['teacher'] = get_string('administratorsandteachers');
$options['everybody'] = get_string('everybody');
choose_from_menu($options, "displayloginfailures",$config->displayloginfailures,"","","");
?>
</td>
<td>
<?php print_string("configdisplayloginfailures") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>notifyloginfailures:</p></td>
<td>
<?php
unset($options);
$options[''] = get_string('nobody');
$options['mainadmin'] = get_string('administrator');
$options['alladmins'] = get_string('administratorsall');
choose_from_menu($options,"notifyloginfailures",$config->notifyloginfailures,"","","");
?>
</td>
<td>
<?php print_string('confignotifyloginfailures') ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>notifyloginthreshold:</p></td>
<td>
<?php
unset($options);
for ($i=1; $i<=100; $i++) {
$options[$i] = "$i";
}
choose_from_menu($options,"notifyloginthreshold",$config->notifyloginthreshold,"","","");
?>
</td>
<td>
<?php print_string('confignotifyloginthreshold') ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>sessiontimeout:</td>
<td>
<?php
<td align=right><p>sessiontimeout:</td>
<td>
<?php
unset($options);
$options[14400] = get_string("numhours", "", 4);
$options[10800] = get_string("numhours", "", 3);
@@ -246,8 +288,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>sessioncookie:</td>
<td>
<td align=right><p>sessioncookie:</td>
<td>
<input name=sessioncookie type=text size=10 value="<?php p($config->sessioncookie)?>">
</td>
<td>
@@ -255,8 +297,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>zip:</td>
<td>
<td align=right><p>zip:</td>
<td>
<input name=zip type=text size=30 value="<?php p($config->zip) ?>">
</td>
<td>
@@ -264,8 +306,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>unzip:</td>
<td>
<td align=right><p>unzip:</td>
<td>
<input name=unzip type=text size=30 value="<?php p($config->unzip) ?>">
</td>
<td>
@@ -273,8 +315,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>slasharguments:</td>
<td>
<td align=right><p>slasharguments:</td>
<td>
<?php unset($options);
$options[0] = "file.php?file=/pic.jpg";
$options[1] = "file.php/pic.jpg";
@@ -287,8 +329,8 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>proxyhost:</td>
<td>
<td align=right><p>proxyhost:</td>
<td>
<input name=proxyhost type=text size=30 value="<?php p($config->proxyhost) ?>">
</td>
<td rowspan=2>
@@ -296,15 +338,15 @@
</td>
</TR>
<tr valign=top>
<td align=right><p>proxyport:</td>
<td>
<td align=right><p>proxyport:</td>
<td>
<input name=proxyport type=text size=5 value="<?php p($config->proxyport) ?>">
</td>
</tr>
<tr valign=top>
<td align=right><p>debug:</td>
<td>
<?php
<td align=right><p>debug:</td>
<td>
<?php
unset($options);
$options[7] = get_string("no");
$options[15] = get_string("yes");
@@ -317,9 +359,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>framename:</td>
<td>
<?php
<td align=right><p>framename:</td>
<td>
<?php
if (empty($config->framename)) {
$config->framename = "_top";
}
@@ -331,9 +373,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>secureforms:</td>
<td>
<?php
<td align=right><p>secureforms:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
@@ -345,10 +387,27 @@
<?php print_string("configsecureforms") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>teacherassignteachers:</td>
<td>
<?php
<td align=right><p>loginhttps:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "loginhttps", $config->loginhttps, "", "", "");
?>
</td>
<td>
<?php print_string("configloginhttps") ?>
</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");
@@ -361,9 +420,39 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>allowunenroll:</td>
<td>
<?php
<td align=right><p>allusersaresitestudents:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "allusersaresitestudents", $config->allusersaresitestudents, "", "", "");
?>
</td>
<td>
<?php print_string("configallusersaresitestudents") ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>showsiteparticipantslist:</td>
<td>
<?php
unset($options);
$options[0] = get_string("siteteachers");
$options[1] = get_string("allteachers");
$options[2] = get_string("studentsandteachers");
choose_from_menu ($options, "showsiteparticipantslist", $config->showsiteparticipantslist, "", "", "");
?>
</td>
<td>
<?php print_string("configshowsiteparticipantslist") ?>
</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");
@@ -376,9 +465,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>maxbytes:</td>
<td>
<?php
<td align=right><p>maxbytes:</td>
<td>
<?php
$options = get_max_upload_sizes();
choose_from_menu ($options, "maxbytes", $config->maxbytes, "");
?>
@@ -388,9 +477,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>fullnamedisplay:</td>
<td>
<?php
<td align=right><p>fullnamedisplay:</td>
<td>
<?php
unset($options);
$options['language'] = get_string('language');
$options['firstname lastname'] = get_string('firstname') . ' + ' . get_string('lastname');
@@ -405,9 +494,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>extendedusernamechars:</td>
<td>
<?php
<td align=right><p>extendedusernamechars:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
@@ -420,9 +509,24 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>forcelogin:</td>
<td>
<?php
<td align=right><p>autologinguests:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
$options[1] = get_string('yes');
choose_from_menu ($options, "autologinguests", $config->autologinguests, "", "", "");
?>
</td>
<td>
<?php print_string("configautologinguests") ?>
</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');
@@ -435,9 +539,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>forceloginforprofiles:</td>
<td>
<?php
<td align=right><p>forceloginforprofiles:</td>
<td>
<?php
unset($options);
$options[0] = get_string('no');
$options[1] = get_string('yes');
@@ -450,9 +554,9 @@
</td>
</tr>
<tr valign=top>
<td align=right><p>opentogoogle:</td>
<td>
<?php
<td align=right><p>opentogoogle:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
@@ -477,19 +581,37 @@
?>
</td>
<td>
<?php
<?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 valign=top>
<td align=right><p>digestmailtime:</td>
<td>
<?php
$hours = array();
for ($i=0; $i<=23; $i++) {
$hours[$i] = sprintf("%02d",$i);
}
choose_from_menu($hours, 'digestmailtime', $config->digestmailtime, "");
?>
</td>
<td>
<?php
print_string('configdigestmailtime');
?>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
</tr>
</table>
+14
View File
@@ -86,6 +86,20 @@
include("config.html");
print_simple_box_end();
/// Lock some options
$httpsurl = str_replace('http://', 'https://', $CFG->wwwroot);
if ($httpsurl != $CFG->wwwroot) {
if ((($fh = @fopen($httpsurl, 'r')) == false) and ($config->loginhttps == 0)) {
echo '<script>'."\n";
echo '<!--'."\n";
echo "eval('document.form.loginhttps.disabled=true');\n";
echo '-->'."\n";
echo '</script>'."\n";
}
}
if ($site) {
print_footer();
}
+3
View File
@@ -41,6 +41,9 @@
get_string("adminhelpbackup"));
}
$table->data[]= array("<b><a href=\"editor.php\">". get_string("editorsettings") ."</a></b>",
get_string("adminhelpeditorsettings"));
print_table($table);
print_footer($site);
+82
View File
@@ -0,0 +1,82 @@
<form name="creatorsform" id="creatorsform" method="post" action="creators.php">
<input type="hidden" name="previoussearch" value="<?php echo $previoussearch ?>">
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<?php echo count($creators) . " ". $strexistingcreators ?>
</td>
<td></td>
<td valign="top">
<?php echo $usercount . " " . $strpotentialcreators ?>
</td>
</tr>
<tr>
<td valign="top">
<select name="removeselect[]" size="20" id="removeselect" multiple
onFocus="document.creatorsform.add.disabled=true;
document.creatorsform.remove.disabled=false;
document.creatorsform.addselect.selectedIndex=-1;">
<?php
foreach ($creators as $creator) {
$fullname = fullname($creator, true);
echo "<option value=\"$creator->id\">".$fullname.", ".$creator->email."</option>\n";
}
?>
</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">
<select name="addselect[]" size="20" id="addselect" multiple
onFocus="document.creatorsform.add.disabled=false;
document.creatorsform.remove.disabled=true;
document.creatorsform.removeselect.selectedIndex=-1;">
<?php
if (!empty($searchusers)) {
echo "<optgroup label=\"$strsearchresults (" . count($searchusers) . ")\">\n";
foreach ($searchusers as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
echo "</optgroup>\n";
}
if (!empty($users)) {
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
}
?>
</select>
<br />
<script>
function
</script>
<input type="text" name="searchtext" size="30" value="<?php echo $searchtext ?>"
onFocus ="document.creatorsform.add.disabled=true;
document.creatorsform.remove.disabled=true;
document.creatorsform.removeselect.selectedIndex=-1;
document.creatorsform.addselect.selectedIndex=-1;"
onkeydown = "var keyCode = event.which ? event.which : event.keyCode;
if (keyCode == 13) {
document.creatorsform.previoussearch.value=1;
document.creatorsform.submit();
} " />
<input name="search" id="search" type="submit" value="<?php p($strsearch) ?>"/>
<?php
if (!empty($searchusers)) {
echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
}
?>
</td>
</tr>
</table>
</form>
+52 -88
View File
@@ -26,16 +26,11 @@
"assigncreators",
"administration",
"existingcreators",
"noexistingcreators",
"potentialcreators",
"nopotentialcreators",
"addcreator",
"removecreator",
"search",
"searchagain",
"users",
"toomanytoshow",
"searchresults"
"searchresults",
"showall"
);
foreach ($stringstoload as $stringtoload){
@@ -43,105 +38,74 @@
$$strstringtoload = get_string($stringtoload);
}
if ($search) {
$searchstring = $strsearchagain;
} else {
$searchstring = $strsearch;
}
print_header("$site->shortname: $strassigncreators",
"$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> <a href=\"users.php\">$strusers</a> ->
$strassigncreators", "");
$strassigncreators", "creatorsform.searchtext");
/// 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)) {
if (!$frm = data_submitted()) {
print_simple_box("<center>".get_string("adminhelpassigncreators")."</center>", "center", "50%");
/// A form was submitted so process the input
} else {
if (!empty($frm->add) and !empty($frm->addselect)) {
foreach ($frm->addselect as $addcreator) {
if (! add_creator($addcreator)) {
error("Could not add course creator with user id $addcreator!");
}
}
} else if (!empty($frm->remove) and !empty($frm->removeselect)) {
foreach ($frm->removeselect as $removecreator) {
if (! remove_creator($removecreator)) {
error("Could not remove course creator with user id $removecreator!");
}
}
} else if (!empty($frm->showall)) {
unset($frm->searchtext);
$frm->previoussearch = 0;
}
}
/// Is there a current search?
$previoussearch = (!empty($frm->search) or ($frm->previoussearch == 1)) ;
/// Get all existing creators
$creators = get_creators();
/// Print the lists of existing and potential creators
echo "<table cellpadding=2 cellspacing=10 align=center>";
echo "<tr><th width=50%>$strexistingcreators</th><th width=50%>$strpotentialcreators</th></tr>";
echo "<tr><td width=50% nowrap valign=top>";
/// First, show existing creators
if (! $creators) {
echo "<p align=center>$strnoexistingcreators</a>";
$creatorlist = "";
} else {
$creatorarray = array();
foreach ($creators as $creator) {
$creatorarray[] = $creator->id;
echo "<p align=right>".fullname($creator, true).", $creator->email &nbsp;&nbsp; ";
echo "<a href=\"{$_SERVER['PHP_SELF']}?remove=$creator->id\"
title=\"$strremovecreator\"><img src=\"../pix/t/right.gif\"
border=0></a>";
echo "</p>";
}
$creatorlist = implode(",",$creatorarray);
unset($creatorarray);
if (! $creators = get_creators()) {
$creators = array();
}
echo "<td width=50% nowrap valign=top>";
$creatorsarray = array();
foreach ($creators as $creator) {
$creatorsarray[] = $creator->id;
}
$creatorlist = implode(',', $creatorsarray);
/// Print list of potential creators
unset($creatorarray);
$usercount = get_users(false, $search, true, $creatorlist);
if ($usercount == 0) {
echo "<p align=center>$strnopotentialcreators</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow ($usercount) </p>";
} else {
if ($search) {
echo "<p align=center>($strsearchresults : $search)</p>";
}
if (!$users = get_users(true, $search, true, $creatorlist)) {
error("Could not get users!");
}
foreach ($users as $user) {
$fullname = fullname($user, TRUE);
echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?add=$user->id\"".
"title=\"$straddcreator\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;$fullname, $user->email";
}
/// Get search results excluding any current admins
if (!empty($frm->searchtext) and $previoussearch) {
$searchusers = get_users(true, $frm->searchtext, true, $creatorlist, 'firstname ASC, lastname ASC',
'', '', 0, 99999, 'id, firstname, lastname, email');
$usercount = get_users(false, '', true, $creatorlist);
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action={$_SERVER['PHP_SELF']} method=post>";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
echo "</form>";
/// If no search results then get potential users excluding current creators
if (empty($searchusers)) {
if (!$users = get_users(true, '', true, $creatorlist, 'firstname ASC, lastname ASC', '', '',
0, 99999, 'id, firstname, lastname, email') ) {
$users = array();
}
$usercount = count($users);
}
echo "</tr></table>";
$searchtext = (isset($frm->searchtext)) ? $frm->searchtext : "";
$previoussearch = ($previoussearch) ? '1' : '0';
include('./creators.html');
print_footer();
+44 -17
View File
@@ -33,13 +33,16 @@
$USER = get_admin(); /// Temporarily, to provide environment for this script
}
echo "<pre>\n";
/// Start output log
$timenow = time();
echo "Server Time: ".date('r',$timenow)."\n\n";
mtrace("<pre>");
mtrace("Server Time: ".date('r',$timenow)."\n\n");
/// Run all cron jobs for each module
mtrace("Starting activity modules");
if ($mods = get_records_select("modules", "cron > 0 AND (($timenow - lastcron) > cron)")) {
foreach ($mods as $mod) {
$libfile = "$CFG->dirroot/mod/$mod->name/lib.php";
@@ -47,15 +50,18 @@
include_once($libfile);
$cron_function = $mod->name."_cron";
if (function_exists($cron_function)) {
mtrace("Processing module function $cron_function ...", '');
if ($cron_function()) {
if (! set_field("modules", "lastcron", $timenow, "id", $mod->id)) {
echo "Error: could not update timestamp for $mod->fullname\n";
mtrace("Error: could not update timestamp for $mod->fullname");
}
}
mtrace("done.");
}
}
}
}
mtrace("Finished activity modules");
/// 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
@@ -65,7 +71,7 @@
$random100 = rand(0,100);
if ($random100 < 20) { // Approximately 20% of the time.
echo "Running clean-up tasks...\n";
mtrace("Running clean-up tasks...");
/// Unenrol users who haven't logged in for $CFG->longtimenosee
@@ -74,7 +80,7 @@
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";
mtrace("Deleted student enrolment for user $student->userid from course $student->course");
}
}
}
@@ -87,10 +93,11 @@
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";
mtrace("Deleted unconfirmed user for ".fullname($user, true)." ($user->id)");
}
}
}
flush();
/// Delete duplicate enrolments (don't know what causes these yet - expired sessions?)
@@ -102,6 +109,7 @@
"AND course = '$user->course' AND id <> '$user->id'");
}
}
flush();
/// Delete old logs to save space (this might need a timer to slow it down...)
@@ -110,6 +118,7 @@
$loglifetime = $timenow - ($CFG->loglifetime * 3600 * 24);
delete_records_select("log", "time < '$loglifetime'");
}
flush();
/// Delete old cached texts
@@ -117,9 +126,17 @@
$cachelifetime = time() - $CFG->cachetext;
delete_records_select("cache_text", "timemodified < '$cachelifetime'");
}
}
flush();
if (!empty($CFG->notifyloginfailures)) {
notify_login_failures();
}
flush();
} // End of occasional clean-up tasks
if (file_exists("$CFG->dataroot/cronextra.php")) {
mtrace("Running extra commands in $CFG->dataroot/cronextra.php ...");
include("$CFG->dataroot/cronextra.php");
}
@@ -136,13 +153,12 @@
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();
mtrace("Running backups if required...");
if (! schedule_backup_cron()) {
echo "Something went wrong while performing backup tasks!!!\n";
mtrace("ERORR: Something went wrong while performing backup tasks!!!");
} else {
echo "Backup tasks finished\n";
mtrace("Backup tasks finished.");
}
}
}
@@ -150,20 +166,31 @@
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();
mtrace("Running rssfeeds if required...");
if ( ! cron_rss_feeds()) {
echo "Something went wrong while generating rssfeeds!!!\n";
mtrace("Something went wrong while generating rssfeeds!!!");
} else {
echo "Rssfeeds finished\n";
mtrace("Rssfeeds finished");
}
}
}
echo "Cron script completed correctly\n";
/// Run the enrolment cron, if any
require_once("$CFG->dirroot/enrol/$CFG->enrol/enrol.php");
$enrol = new enrolment_plugin();
$enrol->cron();
if (!empty($enrol->log)) {
mtrace($enrol->log);
}
//Unset session variables and destroy it
@session_unset();
@session_destroy();
mtrace("Cron script completed correctly");
$difftime = microtime_diff($starttime, microtime());
echo "Execution took ".$difftime." seconds\n";
mtrace("Execution took ".$difftime." seconds");
?>
+83
View File
@@ -0,0 +1,83 @@
<form method="post" action="<?php print($GLOBALS['ME']);?>">
<table border="0" cellpadding="4" cellspacing="2">
<tr valign=top>
<td align=right><p>htmleditor:</td>
<td>
<?php
unset($options);
$options[0] = get_string("allownot");
$options[1] = get_string("allow");
choose_from_menu ($options, "htmleditor", $CFG->htmleditor, "", "", "");
?>
</td>
<td>
<?php print_string("confightmleditor") ?>
</td>
</tr>
<tr>
<td align="right" valign="top">editorbackgroundcolor:</td>
<td valign="top"><input type="text" name="backgroundcolor" size="10" value="<?php print($CFG->editorbackgroundcolor);?>"></td>
<td valign="top"><?php print_string("edhelpbgcolor");?></td>
</tr>
<tr>
<td align="right" valign="top">editorfontfamily:</td>
<td valign="top"><input type="text" name="fontfamily" size="30" value="<?php print($CFG->editorfontfamily);?>"></td>
<td valign="top"><?php print_string("edhelpfontfamily");?></td>
</tr>
<tr>
<td align="right" valign="top">editorfontsize:</td>
<td valign="top"><input type="text" name="fontsize" size="10" value="<?php print($CFG->editorfontsize);?>"></td>
<td valign="top"><?php print_string("edhelpfontsize");?></td>
</tr>
<tr>
<td align="right" valign="top">editorkillword:</td>
<td valign="top"><select name="killword">
<option value="1"<?php print(!$CFG->editorkillword)?"":" selected=\"selected\"";?>><?php print_string("yes");?></option>
<option value="0"<?php print(!$CFG->editorkillword)?" selected=\"selected\"":"";?>><?php print_string("no");?></option>
</select></td>
<td valign="top"><?php print_string("edhelpcleanword");?></td>
</tr>
<tr>
<td align="right" valign="top">editorspelling:</td>
<td valign="top"><select name="spelling"<?php
if (empty($CFG->aspellpath)) {
echo " disabled=\"disabled\"";
$CFG->editorspelling = false;
}
?>>
<option value="1"<?php print(!$CFG->editorspelling)?"":" selected=\"selected\"";?>><?php print_string("yes");?></option>
<option value="0"<?php print(!$CFG->editorspelling)?" selected=\"selected\"":"";?>><?php print_string("no");?></option>
</select></td>
<td valign="top"><?php print_string("edhelpenablespelling");?></td>
</tr>
<tr><td colspan="3"><br /><?php print_string("edhelpfontlist");?></td></tr>
<?php
if(is_array($fontlist)) {
foreach($fontlist as $fontkey => $fontvalue) {
?>
<tr>
<td>&nbsp;</td>
<td colspan="2"><input type="text" name="fontname[]" size="15" value="<?php print($fontkey);?>">
<input type="text" name="fontnamevalue[]" size="30" value="<?php print($fontvalue);?>"></td>
</tr>
<?php
}
}
?>
<tr>
<td>&nbsp;</td>
<td colspan="2"><input type="text" name="fontname[]" size="15" value="">
<input type="text" name="fontnamevalue[]" size="30" value=""></td>
</tr>
<tr>
<td colspan="3" align="center"><input type="submit" value="<?php print_string("savechanges");?>"></td>
</tr>
</table>
</form>
<form method="post" action="<?php print($GLOBALS['ME']);?>">
<center>
<input type="submit" name="resettodefaults" value="<?php print_string('editorresettodefaults') ?>" />
</center>
</form>
+136
View File
@@ -0,0 +1,136 @@
<?php // $Id$
/// configuration routines for HTMLArea editor
require_once("../config.php");
require_login();
if (!isadmin()) {
error("Only admins can access this page");
}
if ($data = data_submitted()) {
// do we want default values?
if (isset($data->resettodefaults)) {
if(!(reset_to_defaults())) {
error("Editor settings could not be restored!");
}
} else {
if(!(editor_update_config($data))) {
error("Editor settings could not be updated!");
}
}
redirect("$CFG->wwwroot/$CFG->admin/editor.php", get_string("changessaved"), 1);
} else {
// Generate edit form
$fontlist = editor_convert_to_array($CFG->editorfontlist);
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$streditorsettings = get_string("editorsettings");
$streditorsettingshelp = get_string("adminhelpeditorsettings");
print_header("Editor settings","Editor settings",
"<a href=\"index.php\">$stradmin</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $streditorsettings");
print_heading($streditorsettings);
print_simple_box("<center>$streditorsettingshelp</center>","center","50%");
print("<br />\n");
print_simple_box_start("center", "", "$THEME->cellheading");
include("editor.html");
print_simple_box_end();
print_footer();
}
/// FUNCTIONS
function editor_convert_to_array ($string) {
/// Converts $CFG->editorfontlist to array
if(empty($string) || !is_string($string)) {
return false;
}
$fonts = array();
$lines = explode(";", $string);
foreach($lines as $line) {
if(!empty($line)) {
list($fontkey, $fontvalue) = explode(":", $line);
$fonts[$fontkey] = $fontvalue;
}
}
return $fonts;
}
function editor_update_config ($data) {
/// Updates the editor config values.
if(!is_object($data)) {
return false;
}
// Make array for unwanted characters.
$nochars = array(chr(33),chr(34),chr(35),chr(36),chr(37),
chr(38),chr(39),chr(40),chr(41),chr(42),
chr(43),chr(46),chr(47),chr(58),chr(59),
chr(60),chr(61),chr(62),chr(63),chr(64),
chr(91),chr(92),chr(93),chr(94),chr(95),
chr(96),chr(123),chr(124),chr(125),chr(126));
$fontlist = '';
// make font string
for($i = 0; $i < count($data->fontname); $i++) {
if(!empty($data->fontname[$i])) {
$fontlist .= str_replace($nochars, "", $data->fontname[$i]) .":";
$fontlist .= str_replace($nochars, "", $data->fontnamevalue[$i]) .";";
}
}
// strip last semicolon
$fontlist = substr($fontlist, 0, strlen($fontlist) - 1);
// make array of values to update
$updatedata = array();
$updatedata['htmleditor'] = $data->htmleditor;
$updatedata['editorbackgroundcolor'] = !empty($data->backgroundcolor) ? $data->backgroundcolor : "#ffffff";
$updatedata['editorfontfamily'] = !empty($data->fontfamily) ? str_replace($nochars,"",$data->fontfamily) : "Times New Roman, Times";
$updatedata['editorfontsize'] = !empty($data->fontsize) ? $data->fontsize : "";
$updatedata['editorkillword'] = !empty($data->killword) ? $data->killword : "true";
$updatedata['editorspelling'] = !empty($data->spelling) ? $data->spelling : 0;
$updatedata['editorfontlist'] = $fontlist;
foreach($updatedata as $name => $value) {
if(!(set_config($name, $value))) {
return false;
}
}
return true;
}
function reset_to_defaults () {
global $CFG;
include_once($CFG->dirroot .'/lib/defaults.php');
$updatedata = array();
$updatedata['htmleditor'] = $defaults['htmleditor'];
$updatedata['editorbackgroundcolor'] = $defaults['editorbackgroundcolor'];
$updatedata['editorfontfamily'] = $defaults['editorfontfamily'];
$updatedata['editorfontsize'] = $defaults['editorfontsize'];
$updatedata['editorkillword'] = $defaults['editorkillword'];
$updatedata['editorspelling'] = $defaults['editorspelling'];
$updatedata['editorfontlist'] = $defaults['editorfontlist'];
foreach($updatedata as $name => $value) {
if(!(set_config($name, $value))) {
return false;
}
}
return true;
}
?>
+81
View File
@@ -0,0 +1,81 @@
<?PHP // $Id$
// enrol.php - allows admin to edit all enrollment variables
// Yes, enrol is correct English spelling.
include("../config.php");
require_login();
optional_variable($enrol, $CFG->enrol);
if (!$site = get_site()) {
redirect("index.php");
}
if (!isadmin()) {
error("Only the admin can use this page");
}
require_once("$CFG->dirroot/enrol/$enrol/enrol.php"); /// Open the class
$enrolment = new enrolment_plugin();
/// If data submitted, then process and store.
if ($frm = data_submitted()) {
if ($enrolment->process_config($frm)) {
set_config('enrol', $frm->enrol);
redirect("enrol.php", get_string("changessaved"), 1);
}
} else {
$frm = $CFG;
}
/// Otherwise fill and print the form.
/// get language strings
$str = get_strings(array('enrolments', 'users', 'administration', 'settings'));
$modules = get_list_of_plugins("enrol");
foreach ($modules as $module) {
$options[$module] = get_string("enrolname", "enrol_$module");
}
asort($options);
print_header("$site->shortname: $str->enrolments", "$site->fullname",
"<a href=\"index.php\">$str->administration</a> ->
<a href=\"users.php\">$str->users</a> -> $str->enrolments");
echo "<form target=\"{$CFG->framename}\" name=\"enrolmenu\" method=\"post\" action=\"enrol.php\">";
echo "<div align=\"center\"><p><b>";
/// Choose an enrolment method
echo get_string('chooseenrolmethod').': ';
choose_from_menu ($options, "enrol", $enrol, "",
"document.location='enrol.php?enrol='+document.enrolmenu.enrol.options[document.enrolmenu.enrol.selectedIndex].value", "");
echo "</b></p></div>";
/// Print current enrolment type description
print_simple_box_start("center", "80%", "$THEME->cellheading");
print_heading($options[$enrol]);
print_simple_box_start("center", "60%", "$THEME->cellcontent");
print_string("description", "enrol_$enrol");
print_simple_box_end();
echo "<hr>";
// print_heading($str->settings);
$enrolment->config_form($frm);
echo "<center><p><input type=\"submit\" value=\"".get_string("savechanges")."\"></p></center>\n";
echo "</form>";
print_simple_box_end();
print_footer();
exit;
?>
+1
View File
@@ -10,6 +10,7 @@
optional_variable($up);
optional_variable($down);
require_login();
if (!isadmin()) {
error("Only administrators can use this page!");
+46 -144
View File
@@ -1,13 +1,13 @@
<?PHP // $Id$
/// Check that config.php exists
/// Check that config.php exists, if not then call the install script
if (!file_exists("../config.php")) {
echo "<H2 align=center>You need to create a config.php.<BR>
See the <A HREF=\"http://moodle.com/doc/?frame=install.html\">installation instructions</A>.</H2>";
header('Location: ../install.php');
die;
}
require_once("../config.php");
include_once("$CFG->dirroot/lib/adminlib.php"); // Contains various admin-only functions
/// Check that PHP is of a sufficient version
@@ -122,6 +122,26 @@
die;
}
/// Insert default values for any important configuration variables
include_once("$CFG->dirroot/lib/defaults.php");
foreach ($defaults as $name => $value) {
if (!isset($CFG->$name)) {
$CFG->$name = $value;
set_config($name, $value);
$configchange = true;
}
}
/// If any new configurations were found then send to the config page to check
if (!empty($configchange)) {
redirect("config.php");
}
/// Check version of Moodle code on disk compared with database
/// and upgrade if possible.
@@ -203,133 +223,14 @@
/// Check all blocks and load (or upgrade them if necessary)
upgrade_blocks_plugins("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Check all enrolment plugins and upgrade if necessary
upgrade_enrol_plugins("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Find and check all modules and load them up or upgrade them if necessary
if (!$mods = get_list_of_plugins("mod") ) {
error("No modules installed!");
}
foreach ($mods as $mod) {
if ($mod == "NEWMODULE") { // Someone has unzipped the template, ignore it
continue;
}
$fullmod = "$CFG->dirroot/mod/$mod";
unset($module);
if ( is_readable("$fullmod/version.php")) {
include_once("$fullmod/version.php"); # defines $module with version etc
} else {
notify("Module $mod: $fullmod/version.php was not readable");
continue;
}
if ( is_readable("$fullmod/db/$CFG->dbtype.php")) {
include_once("$fullmod/db/$CFG->dbtype.php"); # defines upgrading function
} else {
notify("Module $mod: $fullmod/db/$CFG->dbtype.php was not readable");
continue;
}
if (!isset($module)) {
continue;
}
if (!empty($module->requires)) {
if ($module->requires > $CFG->version) {
$info->modulename = $mod;
$info->moduleversion = $module->version;
$info->currentmoodle = $CFG->version;
$info->requiremoodle = $module->requires;
notify(get_string('modulerequirementsnotmet', 'error', $info));
unset($info);
continue;
}
}
$module->name = $mod; // The name MUST match the directory
if ($currmodule = get_record("modules", "name", $module->name)) {
if ($currmodule->version == $module->version) {
// do nothing
} else if ($currmodule->version < $module->version) {
if (empty($updated_modules)) {
$strmodulesetup = get_string("modulesetup");
print_header($strmodulesetup, $strmodulesetup, $strmodulesetup, "", "", false, "&nbsp;", "&nbsp;");
}
print_heading("$module->name module needs upgrading");
$upgrade_function = $module->name."_upgrade";
if (function_exists($upgrade_function)) {
$db->debug=true;
if ($upgrade_function($currmodule->version, $module)) {
$db->debug=false;
// OK so far, now update the modules record
$module->id = $currmodule->id;
if (! update_record("modules", $module)) {
error("Could not update $module->name record in modules table!");
}
notify(get_string("modulesuccess", "", $module->name), "green");
echo "<HR>";
} else {
$db->debug=false;
notify("Upgrading $module->name from $currmodule->version to $module->version FAILED!");
}
}
$updated_modules = true;
} else {
error("Version mismatch: $module->name can't downgrade $currmodule->version -> $module->version !");
}
} else { // module not installed yet, so install it
if (empty($updated_modules)) {
$strmodulesetup = get_string("modulesetup");
print_header($strmodulesetup, $strmodulesetup, $strmodulesetup, "", "", false, "&nbsp;", "&nbsp;");
}
print_heading($module->name);
$updated_modules = true;
$db->debug = true;
@set_time_limit(0); // To allow slow databases to complete the long SQL
if (modify_database("$fullmod/db/$CFG->dbtype.sql")) {
$db->debug = false;
if ($module->id = insert_record("modules", $module)) {
notify(get_string("modulesuccess", "", $module->name), "green");
echo "<HR>";
} else {
error("$module->name module could not be added to the module list!");
}
} else {
error("$module->name tables could NOT be set up successfully!");
}
}
}
if (!empty($updated_modules)) {
print_continue("index.php");
die;
}
/// Find and check all main modules and load them up or upgrade them if necessary
upgrade_activity_modules("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards
/// Insert default values for any important configuration variables
include_once("$CFG->dirroot/lib/defaults.php");
foreach ($defaults as $name => $value) {
if (!isset($CFG->$name)) {
$CFG->$name = $value;
set_config($name, $value);
$configchange = true;
}
}
/// If any new configurations were found then send to the config page to check
if (!empty($configchange)) {
redirect("config.php");
}
/// Set up the overall site name etc.
if (! $site = get_site()) {
@@ -387,6 +288,8 @@
$configdata .= "<font size=+1>&nbsp;</font><a href=\"backup.php\">".get_string("backup")."</a> - <font size=1>".
get_string("adminhelpbackup")."</font><br />";
}
$configdata .= "<font size=+1>&nbsp;</font><a href=\"editor.php\">". get_string("editorsettings") ."</a> - <font size=1>".
get_string("adminhelpeditorsettings")."</font><br />";
$table->data[] = array("<font size=+1><b><a href=\"configure.php\">".get_string("configuration")."</a></b>",
$configdata);
@@ -394,26 +297,27 @@
$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=\"$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 .= "<hr><font size=+1>&nbsp;</font><a href=\"enrol.php\">".get_string("enrolments")."</a> - <font size=1>".
get_string("adminhelpenrolments")."</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><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>";
$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=\"admin.php\">".get_string("assignadmins")."</a> - <font size=1>".
get_string("adminhelpassignadmins")."</font><br />";
$table->data[] = array("<font size=+1><b><a href=\"users.php\">".get_string("users")."</a></b>", $userdata);
@@ -459,5 +363,3 @@
print_footer($site);
?>
+25 -16
View File
@@ -27,14 +27,21 @@
case "missing":
$navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strmissingstrings";
$title = $strmissingstrings;
$button = '<form target="'.$CFG->framename.'" method="get" action="'.$CFG->wwwroot.'/admin/lang.php">'.
'<input type="hidden" name="mode" value="compare" />'.
'<input type="submit" value="'.$strcomparelanguage.'" /></form>';
break;
case "compare":
$navigation = "<A HREF=\"lang.php\">$strlanguage</A> -> $strcomparelanguage";
$title = $strcomparelanguage;
$button = '<form target="'.$CFG->framename.'" method="get" action="'.$CFG->wwwroot.'/admin/lang.php">'.
'<input type="hidden" name="mode" value="missing" />'.
'<input type="submit" value="'.$strmissingstrings.'" /></form>';
break;
default:
$title = $strlanguage;
$navigation = $strlanguage;
$button = '';
break;
}
@@ -42,7 +49,8 @@
print_header("$site->shortname: $title", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> $navigation");
"<a href=\"configure.php\">$strconfiguration</a> -> $navigation",
'', '', true, $button);
if (!$mode) {
$currlang = current_language();
@@ -102,15 +110,18 @@
$value = str_replace("$"."a", "\\$"."a", $value);
$value = str_replace("%%","%",$value);
if ($first) {
echo "</PRE><HR><P><B>".get_string("stringsnotset","","$langdir/$file")."</B></P><PRE>";
echo "<p><b>".get_string("stringsnotset","","$langdir/$file")."</b></p><pre>";
$first = false;
$somethingfound = true;
}
echo "$"."string['$key'] = \"$value\";<BR>";
echo "$"."string['$key'] = \"$value\";<br />";
}
}
if (!$first) {
echo '</pre><hr />';
}
}
if (! $files = get_directory_list("$CFG->dirroot/lang/en/help", "CVS")) {
error("Could not find English language help files!");
}
@@ -205,26 +216,24 @@
$envalue = str_replace("%%","%",$envalue);
$envalue = str_replace("\\","",$envalue); // Delete all slashes
echo "<tr>";
echo "<td dir=ltr lang=en width=20% bgcolor=\"$THEME->cellheading\" nowrap valign=top>$key</td>";
echo "<td dir=ltr lang=en width=40% bgcolor=\"$THEME->cellheading\" valign=top>$envalue</td>";
echo "\n\n<tr>";
echo "<td dir=ltr lang=en width=20% bgcolor=\"$THEME->cellheading\" nowrap valign=top>$key</td>\n";
echo "<td dir=ltr lang=en width=40% bgcolor=\"$THEME->cellheading\" valign=top>$envalue</td>\n";
$value = $string[$key];
$value = str_replace("\r","",$value); // Bad character caused by Windows
$value = str_replace("\n\n\n\n\n\n","\n",$value); // Collapse runs of blank lines
$value = str_replace("\n\n\n\n\n","\n",$value);
$value = str_replace("\n\n\n\n","\n",$value);
$value = str_replace("\n\n\n","\n",$value);
$value = str_replace("\n\n\n","\n",$value);
$value = preg_replace("/\n{3,}/", "\n\n", $value); // Collapse runs of blank lines
$value = trim($value, "\n"); // Delete leading/trailing lines
$value = str_replace("\\","",$value); // Delete all slashes
$value = str_replace("%%","%",$value);
$value = str_replace("<","&lt;",$value);
$value = str_replace(">","&gt;",$value);
$value = str_replace('"',"&quot;",$value);
$cellcolour = $value ? $THEME->cellcontent: $THEME->highlight;
if ($editable) {
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>";
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>\n";
if (isset($string[$key])) {
$valuelen = strlen($value);
} else {
@@ -233,17 +242,17 @@
$cols=50;
if (strstr($value, "\r") or strstr($value, "\n") or $valuelen > $cols) {
$rows = ceil($valuelen / $cols);
echo "<textarea name=\"string-$key\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
echo "<textarea name=\"string-$key\" cols=\"$cols\" rows=\"$rows\">$value</textarea>\n";
} else {
if ($valuelen) {
$cols = $valuelen + 2;
}
echo "<input type=\"text\" name=\"string-$key\" value=\"$value\" size=\"$cols\"></td>";
}
echo "</TD>";
echo "</TD>\n";
} else {
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>$value</td>";
echo "<td width=40% bgcolor=\"$cellcolour\" valign=top>$value</td>\n";
}
}
if ($editable) {
+2
View File
@@ -9,6 +9,8 @@
optional_variable($delete);
optional_variable($confirm);
require_login();
if (!isadmin()) {
error("Only administrators can use this page!");
}
+28 -18
View File
@@ -2,13 +2,13 @@
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><P><?php print_string("fullsitename") ?>:</td>
<td><input type="text" name="fullname" size=50 value="<?php p($form->fullname) ?>">
<td><input type="text" name="fullname" size="50" maxlength="254" value="<?php p($form->fullname) ?>">
<?php if (isset($err["fullname"])) formerr($err["fullname"]); ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><?php print_string("shortsitename") ?>:</td>
<td><input type="text" name="shortname" size=50 value="<?php p($form->shortname) ?>">
<td><input type="text" name="shortname" size="15" maxlength="15" value="<?php p($form->shortname) ?>">
<?php if (isset($err["shortname"])) formerr($err["shortname"]); ?>
</td>
</tr>
@@ -66,32 +66,42 @@
</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") ?>)
<td align="right"><P><?php print_string("sitesection") ?>:</td>
<td><?php
unset($choices);
$choices["0"] = get_string("no");
$choices["1"] = get_string("yes");
choose_from_menu ($choices, "numsections", $form->numsections, "");
?>
</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>
</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") ?>)
<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>
</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") ?>)
<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>
</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") ?>)
<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>
</td>
</tr>
<tr>
<td></td>
+7
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");
}
@@ -28,6 +29,11 @@
error("Serious Error! Could not update the site record! (id = $form->id)");
}
} else {
// [pj] We are about to create the site, so let's add some blocks...
// calendar_month is included as a Moodle feature advertisement ;-)
require_once($CFG->dirroot.'/lib/blocklib.php');
$form->blockinfo = blocks_get_default_blocks(NULL, BLOCKS_DEFAULT_SITE);
if ($newid = insert_record("course", $form)) {
$cat->name = get_string("miscellaneous");
if (insert_record("course_categories", $cat)) {
@@ -59,6 +65,7 @@
$form->shortname = "";
$form->summary = "";
$form->newsitems = 3;
$form->numsections = 0;
$form->id = "";
$form->category = 0;
$form->format = "social";
+4 -3
View File
@@ -33,16 +33,17 @@
$user->timezone = 99;
}
$timenow = time();
$timeformat = get_string('strftimedaytime');
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)";
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT)";
} else if ($tz < 0) {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT$zone)";
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT$zone)";
} else {
$timezones["$zone"] = gmstrftime("%a, %I:%M %p", $usertime)." (GMT+$zone)";
$timezones["$zone"] = gmstrftime($timeformat, $usertime)." (GMT+$zone)";
}
}
+1
View File
@@ -151,6 +151,7 @@
$user->{$name} = addslashes($value);
}
}
$user->auth = 'manual';
$user->confirmed = 1;
$user->timemodified = time();
$linenum++;
+8 -4
View File
@@ -78,6 +78,7 @@
}
if ($newuser) { // Create a new user
$user->auth = "manual";
$user->firstname = "";
$user->lastname = "";
$user->username = "changeme";
@@ -181,11 +182,11 @@
$columndir = "ASC";
}
} else {
$columndir = $dir == "asc" ? "desc":"asc";
$columndir = $dir == "ASC" ? "DESC":"ASC";
if ($column == "lastaccess") {
$columnicon = $dir == "asc" ? "up":"down";
$columnicon = $dir == "ASC" ? "up":"down";
} else {
$columnicon = $dir == "asc" ? "down":"up";
$columnicon = $dir == "ASC" ? "down":"up";
}
$columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" />";
@@ -331,6 +332,9 @@
}
echo "</form>";
echo "</td></tr></table>";
if (is_internal_auth()){
print_heading("<a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a>");
}
print_table($table);
@@ -340,7 +344,7 @@
}
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
if (is_internal_auth()){
print_heading("<a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a>");
}
+11 -8
View File
@@ -25,22 +25,25 @@
$table->data[] = array("<b><a href=\"auth.php\">".get_string("authentication")."</a></b>",
get_string("adminhelpauthentication"));
$table->data[] = array("<b><a href=\"user.php\">".get_string("edituser")."</a></b>",
get_string("adminhelpedituser"));
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('', '<hr />');
$table->data[] = array("<b><a href=\"enrol.php\">".get_string("enrolments")."</a></b>",
get_string("adminhelpenrolments"));
$table->data[] = array("<b><a href=\"../course/index.php?edit=off\">".get_string("assignstudents")."</a></b>",
get_string("adminhelpassignstudents"));
$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=\"creators.php\">".get_string("assigncreators")."</a></b>",
get_string("adminhelpassigncreators"));
$table->data[] = array("<b><a href=\"admin.php\">".get_string("assignadmins")."</a></b>",
get_string("adminhelpassignadmins"));
print_table($table);
+71
View File
@@ -0,0 +1,71 @@
Moodle - FirstClass authentication module
-----------------------------------------
This module uses the FirstClass Flexible Provisining Protocol (FPP) to communicate between the FirstClass server
and the Moodle host.
Installation
------------
1. Enable FPP on the FirstClass server
FPP is not doumented in the FirstClass documentation and is not enable by default.
To enable the protocol you need to edit the file \FCPO\Server\Netinfo. Open the file and insert the
following lines.
// TCP port for Flexible Provisioning Protocol (FPP).
TCPFPPPORT = 3333
2. Create an account on the FirstClass server with privilege "Subadministrator".
Using the FPP protocoll this module logs in to the FirstClass server and issuess batch admin commands.
Batch admin command can only be issued in the context of a user with subadministrative privileges.
Default account name is "fcMoodle".
3. Check that the FPP protocoll is working by running a Telnet session. If everyting is working you
should get a "+0" answer from the server.
> telnet yourhost.domain.com 3333
+0
Check that the "fcMoodle" is working by entering the following sequens of commands:
> telnet yourhost.domain.com 3333
+0
fcMoodle
+0
the_password_you_gave_fcmoodle
+0
Get user some_user_id 1201
1201 0 some_user_id
+0
4. On the Moodle host go to the directory where you have installed Moodle.
Open the folder "auth", where all other authentication modules are installed,
and create a new directory with the name "fc".
Copy the files "config.html", "fcFPP.php" and "lib.php" to the "auth" directory.
Now you need to add som strings to the language file. This distribution contains
string for the English (en) and Swedish (sv) translation.
Open the file "auth.php" in the folder "lang/sv" and paste the text from the file
"auth.php - sv.txt" at the end of the file above the line "?>"
Open the file "auth.php" in the folder "lang/en" and paste the text from the file
"auth.php - en.txt" at the end of the file above the line "?>"
+84
View File
@@ -0,0 +1,84 @@
<?PHP
if (!isset($config->auth_fchost)) {
$config->auth_fchost = "127.0.0.1";
}
if (!isset($config->auth_fcfppport)) {
$config->auth_fcfppport = "3333";
}
if (!isset($config->auth_fcuserid)) {
$config->auth_fcuserid = "fcMoodle";
}
if (!isset($config->auth_fcpasswd)) {
$config->auth_fcpasswd = "";
}
if (!isset($config->auth_fccreators)) {
$config->auth_fccreators = "";
}
?>
<TR valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_fchost:</TD>
<TD>
<INPUT name=auth_fchost TYPE=text SIZE=30 VALUE="<?php echo $config->auth_fchost?>">
<?php if (isset($err["auth_fchost"])) formerr($err["auth_fchost"]); ?>
</TD>
<TD>
<?php print_string("auth_fchost","auth") ?>
</TD>
</TR>
<TR valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_fcfppport:</TD>
<TD>
<INPUT name=auth_fcfppport TYPE=text SIZE=30 VALUE="<?php echo $config->auth_fcfppport?>">
<?php if (isset($err["auth_fcfppport"])) formerr($err["auth_fchost"]); ?>
</TD>
<TD>
<?php print_string("auth_fcfppport","auth") ?>
</TD>
</TR>
<TR valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_fcuserid:</TD>
<TD>
<INPUT name=auth_fcuserid TYPE=text SIZE=30 MAXLENGTH=15 VALUE="<?php echo $config->auth_fcuserid?>">
<?php if (isset($err["auth_fcuserid"])) formerr($err["auth_fcuserid"]); ?>
</TD>
<TD>
<?php print_string("auth_fcuserid","auth") ?>
</TD>
</TR>
<TR valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_fcpasswd:</TD>
<TD>
<INPUT name=auth_fcpasswd TYPE=password SIZE=30 MAXLENGTH=12 VALUE="<?php echo $config->auth_fcpasswd?>">
<?php if (isset($err["auth_fcpasswd"])) formerr($err["auth_fcpasswd"]); ?>
</TD>
<TD>
<?php print_string("auth_fcpasswd","auth") ?>
</TD>
</TR>
<TR valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_fccreators:</TD>
<TD>
<INPUT name=auth_fccreators TYPE=text SIZE=30 VALUE="<?php echo $config->auth_fccreators?>">
<?php if (isset($err["auth_fccreators"])) formerr($err["auth_fccreators"]); ?>
</TD>
<TD>
<?php print_string("auth_fccreators","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
<?php print_string("authinstructions","auth") ?>
<?php helpbutton("text", get_string("helptext")) ?>
</TD>
</TR>
+218
View File
@@ -0,0 +1,218 @@
<?php
/************************************************************************/
/* fcFPP: Php class for FirstClass Flexible Provisining Protocol */
/* ============================================================= */
/* */
/* Copyright (c) 2004 SKERIA Utveckling, Teknous */
/* http://skeria.skelleftea.se */
/* */
/* Flexible Provisioning Protocol is a real-time, IP based protocol */
/* which provides direct access to the scriptable remote administration */
/* subsystem of the core FirstClass Server. Using FPP, it is possible to*/
/* implement automated provisioning and administration systems for */
/* FirstClass, avoiding the need for a point and click GUI. FPP can also*/
/* be used to integrate FirstClass components into a larger unified */
/* system. */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Author: Torsten Anderson, torsten.anderson@skeria.skelleftea.se
*/
class fcFPP
{
var $_hostname; // hostname of FirstClass server we are connection to
var $_port; // port on which fpp is running
var $_conn = 0; // socket we are connecting on
var $_debug = FALSE; // set to true to see some debug info
// class constructor
function fcFPP($host="localhost", $port="3333")
{
$this->_hostname = $host;
$this->_port = $port;
$this->_user = "";
$this->_pwd = "";
}
// open a connection to the FirstClass server
function open()
{
if($this->_debug) echo "Connecting to host ";
$host = $this->_hostname;
$port = $this->_port;
if($this->_debug) echo "[$host:$port]..";
// open the connection to the FirstClass server
$conn = fsockopen($host, $port, $errno, $errstr, 5);
if(!$conn)
{
echo "connection failed!".$errno. $errstr;
return false;
}
// We are connected
if($this->_debug) echo "connected!";
// Read connection message.
$line = fgets ($conn); //+0
$line = fgets ($conn); //new line
// store the connection in this class, so we can use it later
$this->_conn = & $conn;
return true;
}
// close any open connections
function close()
{
// get the current connection
$conn = &$this->_conn;
// close it if it's open
if($conn)
{
fclose($conn);
// cleanup the variable
unset($this->_conn);
return true;
}
return;
}
// Authenticate to the FirstClass server
function login($userid, $passwd)
{
// we did have a connection right?!
if($this->_conn)
{
# Send username
fputs($this->_conn,"$userid\r\n");
$line = fgets ($this->_conn); //new line
$line = fgets ($this->_conn); //+0
$line = fgets ($this->_conn); //new line
# Send password
fputs($this->_conn,"$passwd\r\n");
$line = fgets ($this->_conn); //new line
$line = fgets ($this->_conn); //+0
$line = fgets ($this->_conn); //+0 or message
if($this->_debug) echo $line;
if (preg_match ("/^\+0/", $line)) { //+0, user with subadmin privileges
$this->_user = $userid;
$this->_pwd = $passwd;
return TRUE;
} elseif (preg_match ("/^\Sorry/",$line)){ //Denied access but a valid user and password
return TRUE;
} else { //Invalid user or password
return FALSE;
}
}
return FALSE;
}
// Get the list of groups the user is a member of
function getGroups($userid){
$groups = array();
// we must be logged in as a user with subadmin privileges
if($this->_conn AND $this->_user) {
# Send BA-command to get groups
fputs($this->_conn,"GET USER '" . $userid . "' 4 -1\r");
$line = "";
while (!$line) {
$line = trim(fgets ($this->_conn));
}
$n = 0;
while ($line AND !preg_match("/^\+0/", $line) AND $line != "-1003") {
list( , , $groups[$n++]) = explode(" ",$line,3);
$line = trim(fgets ($this->_conn));
}
if($this->_debug) echo "getGroups:" . implode(",",$groups);
}
return $groups;
}
// Check if the user is member of any of the groups.
// Return the list of groups the user is member of.
function isMemberOf($userid, $groups){
$usergroups = array_map("strtolower",$this->getGroups($userid));
$groups = array_map("strtolower",$groups);
$result = array_intersect($groups,$usergroups);
if($this->_debug) echo "isMemberOf:" . implode(",",$result);
return $result;
}
function getUserInfo($userid, $field){
$userinfo = "";
if($this->_conn AND $this->_user) {
# Send BA-command to get data
fputs($this->_conn,"GET USER '" . $userid . "' " . $field . "\r");
$line = "";
while (!$line) {
$line = trim(fgets ($this->_conn));
}
$n = 0;
while ($line AND !preg_match("/^\+0/", $line)) {
list( , , $userinfo) = explode(" ",$line,3);
$line = trim(fgets ($this->_conn));
}
if($this->_debug) echo "getUserInfo:" . $userinfo;
}
return str_replace('\r',' ',trim($userinfo,'"'));
}
function getResume($userid){
$resume = "";
$pattern = "/\[.+:.+\..+\]/"; // Remove references to pictures in resumes
if($this->_conn AND $this->_user) {
# Send BA-command to get data
fputs($this->_conn,"GET RESUME '" . $userid . "' 6\r");
$line = "";
while (!$line) {
$line = trim(fgets ($this->_conn));
}
$n = 0;
while ($line AND !preg_match("/^\+0/", $line)) {
$resume .= preg_replace($pattern,"",str_replace('\r',"\n",trim($line,'6 ')));
$line = trim(fgets ($this->_conn));
//print $line;
}
if($this->_debug) echo "getResume:" . $resume;
}
return $resume;
}
}
?>
+154
View File
@@ -0,0 +1,154 @@
<?php // $Id$
// FirstClass authentication using FirstClass Flexible Provisining Protocol
/* Author: Torsten Anderson, torsten.anderson@skeria.skelleftea.se
CHANGELOG
README
Module will authenticate user against FirstClass server and check if user belongs to any of
the defined creator groups.
User authenticates using their existing FirstClass username and password.
Where possible userdata is copied from the FirstClass directory to Moodle. You may
want to modify this.
Module requires the fcFPP class to do it's jobb.
*/
require('fcFPP.php');
function auth_user_login ($username, $password) {
/// Returns true if the username and password work
/// and false if they don't
global $CFG;
$hostname = $CFG->auth_fchost;
$port = $CFG->auth_fcfppport;
$retval = FALSE;
if (!$username or !$password) { // Don't allow blank usernames or passwords
return $retval;
}
$fpp = new fcFPP($hostname,$port);
if ($fpp->open()) {
if ($fpp->login($username,$password)){
$retval = TRUE;
}
}
$fpp->close();
return $retval;
}
function auth_get_userinfo($username){
// Get user information from FirstCLass server and return it in an array.
// Localize this routine to fit your needs.
/*
Moodle FirstCLass fieldID in UserInfo form
------ -----------------------------------
firstname 1202
lastname 1204
email 1252
icq -
phone1 1206
phone2 1207 (Fax)
institution -
department -
address 1205
city -
country -
lang -
timezone 8030 (Not used yet. Need to figure out how FC codes timezones)
description Get data from users resume. Pictures will be removed.
*/
global $CFG;
$hostname = $CFG->auth_fchost;
$port = $CFG->auth_fcfppport;
$userid = $CFG->auth_fcuserid;
$passwd = $CFG->auth_fcpasswd;
$userinfo = array();
$fpp = new fcFPP($hostname,$port);
if ($fpp->open()) {
if ($fpp->login($userid,$passwd)){
$userinfo['firstname'] = $fpp->getUserInfo($username,"1202");
$userinfo['lastname'] = $fpp->getUserInfo($username,"1204");
$userinfo['email'] = strtok($fpp->getUserInfo($username,"1252"),',');
$userinfo['phone1'] = $fpp->getUserInfo($username,"1206");
$userinfo['phone2'] = $fpp->getUserInfo($username,"1207");
$userinfo['description'] = $fpp->getResume($username);
}
}
$fpp->close();
foreach($userinfo as $key => $value) {
if (!$value) {
unset($userinfo[$key]);
}
}
return $userinfo;
}
function auth_iscreator($username=0) {
//Get users group membership from the FirstClass server user and check if
// user is member of one of the groups of creators.
global $CFG, $USER;
if (! $CFG->auth_fccreators) {
return false;
}
if (! $username) {
$username=$USER->username;
}
$fcgroups = array();
$hostname = $CFG->auth_fchost;
$port = $CFG->auth_fcfppport;
$userid = $CFG->auth_fcuserid;
$passwd = $CFG->auth_fcpasswd;
$fpp = new fcFPP($hostname,$port);
if ($fpp->open()) {
if ($fpp->login($userid,$passwd)){
$fcgroups = $fpp->getGroups($username);
}
}
$fpp->close();
if ((! $fcgroups)) {
return false;
}
$creators = explode(";",$CFG->auth_fccreators);
foreach($creators as $creator) {
If (in_array($creator, $fcgroups)) return true;
}
return false;
}
+80 -46
View File
@@ -20,36 +20,52 @@
if (empty($config->ldap_version)) {
$config->ldap_version = "2";
}
if (empty($config->ldap_memberattribute)) {
$config->ldap_memberattribute = "";
}
if (empty($config->ldap_creators)) {
$config->ldap_creators = "";
}
if (empty($config->ldap_create_context)) {
$config->ldap_create_context = "";
}
if (empty($config->ldap_objectclass)) {
$config->ldap_objectclass = "";
}
if (empty($config->auth_user_guid)) {
$config->auth_user_guid = "";
}
?>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_host_url:</TD>
<TD>
<TD ALIGN=RIGHT><P>ldap_host_url:</TD>
<TD>
<INPUT name=ldap_host_url TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_host_url?>">
<?php if (isset($err["ldap_host_url"])) formerr($err["ldap_host_url"]); ?>
</TD>
<?php if (isset($err["ldap_host_url"])) formerr($err["ldap_host_url"]); ?>
</TD>
<TD>
<?php print_string("auth_ldap_host_url","auth") ?>
</TD>
</TR>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_version:</TD>
<TD>
<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"]);
if (isset($err["ldap_version"])) formerr($err["ldap_version"]);
?>
</TD>
</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>
<TD ALIGN=RIGHT><P>ldap_contexts:</TD>
<TD>
<INPUT name=ldap_contexts TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_contexts?>">
<?php if (isset($err["ldap_contexts"])) formerr($err["ldap_contexts"]); ?>
</TD>
@@ -59,8 +75,8 @@
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_user_attribute:</TD>
<TD>
<TD ALIGN=RIGHT><P>ldap_user_attribute:</TD>
<TD>
<INPUT name=ldap_user_attribute TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_user_attribute?>">
<?php if (isset($err["ldap_user_attribute"])) formerr($err["ldap_user_attribute"]); ?>
</TD>
@@ -70,8 +86,19 @@
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_search_sub:</TD>
<TD>
<TD ALIGN=RIGHT><P>ldap_objectclass:</TD>
<TD>
<INPUT name=ldap_objectclass TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_objectclass?>">
<?php if (isset($err["ldap_objectclass"])) formerr($err["ldap_objectclass"]); ?>
</TD>
<TD>
<?php print_string("auth_ldap_objectclass","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_search_sub:</TD>
<TD>
<INPUT name=ldap_search_sub TYPE=text SIZE=1 VALUE="<?php echo $config->ldap_search_sub?>">
<?php if (isset($err["ldap_search_sub"])) formerr($err["ldap_search_sub"]); ?>
</TD>
@@ -81,8 +108,8 @@
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_bind_dn:</TD>
<TD>
<TD ALIGN=RIGHT><P>ldap_bind_dn:</TD>
<TD>
<INPUT name=ldap_bind_dn TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_bind_dn?>">
<?php if (isset($err["ldap_bind_dn"])) formerr($err["ldap_bind_dn"]); ?>
</TD><TD>
@@ -91,8 +118,8 @@
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_bind_pw:</TD>
<TD>
<TD ALIGN=RIGHT><P>ldap_bind_pw:</TD>
<TD>
<INPUT name=ldap_bind_pw TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_bind_pw?>">
<?php if (isset($err["ldap_bind_pw"])) formerr($err["ldap_bind_pw"]); ?>
</TD><TD>
@@ -121,8 +148,8 @@
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>ldap_create_context:</TD>
<TD>
<TD ALIGN=RIGHT><P>ldap_create_context:</TD>
<TD>
<INPUT name=ldap_create_context TYPE=text SIZE=30 VALUE="<?php echo $config->ldap_create_context?>">
<?php if (isset($err["ldap_create_context"])) formerr($err["ldap_create_context"]); ?>
</TD><TD>
@@ -131,8 +158,8 @@
</TR>
<TR>
<TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
<TD>
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
</TD>
<TD rowspan=12 VALIGN=CENTER>
@@ -141,86 +168,93 @@
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
<TD>
<INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lastname?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
<TD>
<INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_email?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
<TD>
<INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone1?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
<TD>
<INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone2?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
<TD>
<INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_department?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
<TD>
<INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_address?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
<TD>
<INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_city?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
<TD>
<INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_country?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
<TD>
<INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_description?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
<TD>
<INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_idnumber?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
<TD>
<INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lang?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("guid") ?>:</TD>
<TD>
<INPUT name="auth_user_guid" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_guid?>">
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
</TD>
<TD>
+245 -31
View File
@@ -1,29 +1,65 @@
<?PHP // $Id$
//CHANGELOG:
//15.08.2004 Added support for user syncronization
//24.02.2003 Added support for coursecreators
//20.02.2003 Added support for user creation
//12.10.2002 Reformatted source for consistency
//03.10.2002 First version to CVS
//29.09.2002 Clean up and splitted code to functions v. 0.02
//29.09.2002 LDAP authentication functions v. 0.01
//Distributed under GPL (c)Petri Asikainen 2002-2003
//Distributed under GPL (c)Petri Asikainen 2002-2004
/* README!
Module is quite complete and most functinality can be configured from
configinterfave /admin/auth.php. Some of latest additions/features need to
be configured by modifying source code.
If you plan to use user creation feature, look function auth_user_create
and modify it for your needs.
You have to change all hardcoded attribute values to fit your LDAP-server.
USER CREATION FEATURE
User-creation makes posible that your current
users can authenticate with existings usernames/password and new users can
create own accounts to LDAP-directory. I'm using this feature and new users
are created to LDAP different context, without rights to other system. When
user-creation feature is set like that, there's no known security issues.
If you plan to use user creation feature, look function auth_user_create
and modify it for your needs.
You have to change all hardcoded attribute values to fit your LDAP-server.
I write ldap-module on Novell E-directory / Linux & Solaris ,
so all default values are for it.
LDAP USER SYNCRONIZATION
BACKUP
This is first version of usersync so backup your database, if you like to test this feature!
BINARY FIELDS
I'm testing this against Novell eDirectory where guid field is binary
so I have to use bin2hex() in function auth_get_users (), If your guid field is not binary
comment that line out.
EXISTING USERS
For existing systems there no way to figure out is account from ldap or not.
So sysadmin, you have to update 'auth' and 'guid' fields for your existing ldap-users by hand (or scripting)
If your users usernamed are stabile, you can use auth_get_users() for this.
AUTOMATING SYNCRONIZATION
Right now moodle does not automaticly run auth_sync_users() so you have to create
your own script like:
auth/ldap/cron.php
<?
require_once("../../config.php");
require_once("../../course/lib.php");
require_once('../../lib/blocklib.php');
require_once("../../mod/resource/lib.php");
require_once("lib.php");
require_once("../../mod/forum/lib.php");
auth_sync_users();
?>
Usersync is quite heavy process, it could be good idea to place that script outside of webroot and run it with cron.
Any feedback is wellcome,
Petri Asikainen paca@sci.fi
@@ -99,10 +135,11 @@ function auth_get_userinfo($username){
$result[$key]=$user_entry[0][strtolower($value)][0];
}
}
$result['guid']='ldap';
}
@ldap_close($ldap_connection);
return $result;
}
@@ -149,6 +186,149 @@ function auth_user_create ($userobject,$plainpass) {
}
function auth_get_users($filter='*') {
//returns all userobjects from external database
global $CFG;
$fresult = array();
$ldap_connection = auth_ldap_connect();
auth_ldap_bind($ldap_connection);
if (! isset($CFG->ldap_objectclass)) {
$CFG->ldap_objectclass="objectClass=*";
}
if ($filter=="*") {
$filter = "(&(".$CFG->ldap_user_attribute."=*)(".$CFG->ldap_objectclass."))";
}
$contexts = explode(";",$CFG->ldap_contexts);
if (!empty($CFG->ldap_create_context)){
array_push($contexts, $CFG->ldap_create_context);
}
$attrmap = auth_ldap_attributes();
$search_attribs = array();
foreach ($attrmap as $key=>$value) {
if (!in_array($value, $search_attribs)) {
array_push($search_attribs, $value);
}
}
foreach ($contexts as $context) {
if ($CFG->ldap_search_sub) {
//use ldap_search to find first user from subtree
$ldap_result = ldap_search($ldap_connection, $context,
$filter,
$search_attribs);
} else {
//search only in this context
$ldap_result = ldap_list($ldap_connection, $context,
$filter,
$search_attribs);
}
$users = auth_ldap_get_entries($ldap_connection, $ldap_result);
//add found users to list
foreach ($users as $ldapuser=>$attribs) {
$user = new object();
foreach ($attrmap as $key=>$value){
if(isset($users[$ldapuser][$value][0])){
$user->$key=$users[$ldapuser][$value][0];
}
}
//quick way to get around binarystrings
$user->guid=bin2hex($user->guid);
//add authentication source stamp
$user->auth='ldap';
$fresult[$user->username]=$user;
}
}
return $fresult;
}
function auth_sync_users () {
//Syncronizes userdb with ldap
//This will add, rename
global $CFG ;
$users = auth_get_users();
$usedguids = Array();
foreach ($users as $user) {
$usedguids[] = $user->guid; //we will need all used guids later
//update modified time
$user->modified = time();
//All users are confirmed
$user->confirmed = 1;
// if user does not exist create it
if (!record_exists('user','auth', 'ldap', 'guid', $user->guid)) {
if (insert_record ('user',$user)) {
echo "inserted user $user->username with guid $user->guid \n";
} else {
echo "error inserting user $user->username with guid $user->guid \n";
}
continue ;
} else {
//update username
set_field('user', 'username', $user->username , 'auth', 'ldap', 'guid', $user->guid);
//no id-information in ldap so get now
$userid = get_field('user', 'id', 'auth', 'ldap', 'guid', $user->guid);
if (auth_iscreator($user->username)) {
if (! record_exists("user_coursecreators", "userid", $userid)) {
$cdata['userid']=$userid;
$creator = insert_record("user_coursecreators",$cdata);
if (! $creator) {
error("Cannot add user to course creators.");
}
}
} else {
if ( record_exists("user_coursecreators", "userid", $userid)) {
$creator = delete_records("user_coursecreators", "userid", $userid);
if (! $creator) {
error("Cannot remove user from course creators.");
}
}
}
}
}
//find nonexisting users from moodles userdb
$sql = "SELECT * FROM ".$CFG->prefix."user WHERE deleted = '0' AND auth = 'ldap' AND guid NOT IN ('".implode('\' , \'',$usedguids)."');" ;
$result = get_records_sql($sql);
if (!empty($result)){
foreach ($result as $user) {
//following is copy pasted from admin/user.php
//maybe this should moved to function in lib/datalib.php
unset($updateuser);
$updateuser->id = $user->id;
$updateuser->deleted = "1";
$updateuser->username = "$user->email.".time(); // Remember it just in case
$updateuser->email = ""; // Clear this field to free it up
$updateuser->timemodified = time();
if (update_record("user", $updateuser)) {
unenrol_student($user->id); // From all courses
remove_teacher($user->id); // From all courses
remove_admin($user->id);
notify(get_string("deletedactivity", "", fullname($user, true)) );
} else {
notify(get_string("deletednot", "", fullname($user, true)));
}
//copy pasted part ends
}
}
}
function auth_user_activate ($username) {
//activate new ldap-user after email-address is confirmed
global $CFG;
@@ -182,38 +362,49 @@ function auth_user_disable ($username) {
function auth_iscreator($username=0) {
///if user is member of creator group return true
global $CFG, $USER;
$ldapconnect = auth_ldap_connect();
$ldapbind = auth_ldap_bind($ldapconnect);
if (! $username) {
$username=$USER->username;
}
global $USER , $CFG;
if (! $username) {
$username=$USER->username;
}
if ((! $CFG->ldap_creators) OR (! $CFG->ldap_memberattribute)) {
return false;
} else {
$groups = explode(";",$CFG->ldap_creators);
}
//build filter
$filter = "(& ($CFG->ldap_user_attribute=$username)(|";
foreach ($groups as $group){
$filter .= "($CFG->ldap_memberattribute=$group)";
}
$filter .= "))";
//search
$result = auth_ldap_get_userlist($filter);
return count($result);
if ((! $CFG->ldap_creators) OR (! $CFG->ldap_memberattribute)) {
return false;
}
return auth_ldap_isgroupmember($username, $CFG->ldap_creators);
}
//PRIVATE FUNCTIONS starts
//private functions are named as auth_ldap*
function auth_ldap_isgroupmember ($username='', $groupdns='') {
// Takes username and groupdn(s) , separated by ;
// Returns true if user is member of any given groups
global $CFG, $USER;
$ldapconnect = auth_ldap_connect();
$ldapbind = auth_ldap_bind($ldapconnect);
if (empty($username) OR empty($groupdns)) {
return false;
}
$groups = explode(";",$groupdns);
//build filter
$filter = "(& ($CFG->ldap_user_attribute=$username)(|";
foreach ($groups as $group){
$filter .= "($CFG->ldap_memberattribute=$group)";
}
$filter .= "))";
//search
$result = auth_ldap_get_userlist($filter);
return count($result);
}
function auth_ldap_connect(){
/// connects to ldap-server
global $CFG;
@@ -311,7 +502,7 @@ function auth_ldap_attributes (){
$config = (array)$CFG;
$fields = array("firstname", "lastname", "email", "phone1", "phone2",
"department", "address", "city", "country", "description",
"idnumber", "lang");
"idnumber", "lang", "guid");
$moodleattributes = array();
foreach ($fields as $field) {
@@ -319,6 +510,7 @@ function auth_ldap_attributes (){
$moodleattributes[$field] = $config["auth_user_$field"];
}
}
$moodleattributes['username']=$config["ldap_user_attribute"];
return $moodleattributes;
}
@@ -370,4 +562,26 @@ function auth_ldap_get_userlist($filter="*") {
return $fresult;
}
function auth_ldap_get_entries($conn, $searchresult){
//Returns values like ldap_get_entries but is
//binary compatible
$i=0;
$fresult=array();
$entry = ldap_first_entry($conn, $searchresult);
do {
$attributes = ldap_get_attributes($conn, $entry);
for($j=0; $j<$attributes['count']; $j++) {
$values = ldap_get_values_len($conn, $entry,$attributes[$j]);
$fresult[$i][$attributes[$j]] = $values;
}
$i++;
}
while ($entry = ldap_next_entry($conn, $entry));
//we're done
return ($fresult);
}
?>
+15 -1
View File
@@ -1,4 +1,4 @@
<?PHP
<?PHP // $Id$
if (!isset($config->auth_pop3host)) {
$config->auth_pop3host = "127.0.0.1";
}
@@ -8,6 +8,9 @@
if (!isset($config->auth_pop3port)) {
$config->auth_pop3port = "110";
}
if (!isset($config->auth_pop3mailbox)) {
$config->auth_pop3mailbox = "INBOX";
}
?>
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_pop3host:</TD>
@@ -47,6 +50,17 @@
</TD>
</TR>
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_pop3mailbox:</TD>
<TD>
<INPUT name=auth_pop3mailbox TYPE=text SIZE=6 VALUE="<?php echo $config->auth_pop3mailbox?>">
<?php if (isset($err["auth_pop3mailbox"])) formerr($err["auth_pop3mailbox"]); ?>
</TD>
<TD>
<?php print_string("auth_pop3mailbox","auth") ?>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
<TD>
+9 -4
View File
@@ -12,21 +12,26 @@ function auth_user_login ($username, $password) {
foreach ($hosts as $host) { // Try each host in turn
$host = trim($host);
// remove any trailing slash
if (substr($host, -1) == '/') {
$host = substr($host, 0, strlen($host) - 1);
}
switch ($CFG->auth_pop3type) {
case "pop3":
$host = '{'.$host.":$CFG->auth_pop3port/pop3}INBOX";
$host = '{'.$host.":$CFG->auth_pop3port/pop3}$CFG->auth_pop3mailbox";
break;
case "pop3notls":
$host = '{'.$host.":$CFG->auth_pop3port/pop3/notls}INBOX";
$host = '{'.$host.":$CFG->auth_pop3port/pop3/notls}$CFG->auth_pop3mailbox";
break;
case "pop3cert":
$host = '{'.$host.":$CFG->auth_pop3port/pop3/ssl/novalidate-cert}INBOX";
$host = '{'.$host.":$CFG->auth_pop3port/pop3/ssl/novalidate-cert}$CFG->auth_pop3mailbox";
break;
}
error_reporting(0);
$connection = imap_open($host, $username, $password, OP_HALFOPEN);
$connection = imap_open($host, $username, $password);
error_reporting($CFG->debug);
if ($connection) {
+24 -23
View File
@@ -13,7 +13,7 @@ function schedule_backup_cron() {
//Check for required functions...
if(!function_exists('utf8_encode')) {
echo " ERROR: You need to add XML support to your PHP installation!\n";
mtrace(" ERROR: You need to add XML support to your PHP installation!");
return true;
}
@@ -22,13 +22,13 @@ function schedule_backup_cron() {
//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";
mtrace(" Checking backup status",'...');
$backup_config = backup_get_config();
if(!isset($backup_config->backup_sche_active) || !$backup_config->backup_sche_active) {
echo "...INACTIVE\n";
mtrace("INACTIVE");
return true;
} else if (isset($backup_config->backup_sche_running) && $backup_config->backup_sche_running) {
echo "...RUNNING\n";
mtrace("RUNNING");
//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
@@ -36,19 +36,19 @@ function schedule_backup_cron() {
$numofrec = count_records_select ("backup_log","time > $timeafter");
if (!$numofrec) {
$timetoseemin = $timetosee/60;
echo " No activity in last ".$timetoseemin." minutes. Unlocking status\n";
mtrace(" No activity in last ".$timetoseemin." minutes. Unlocking status");
} else {
echo " Scheduled backup seems to be running. Execution delayed\n";
mtrace(" Scheduled backup seems to be running. Execution delayed");
return true;
}
} else {
echo "...OK\n";
mtrace("OK");
//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";
mtrace(" Getting admin info");
$admin = get_admin();
if (!$admin) {
$status = false;
@@ -56,13 +56,13 @@ function schedule_backup_cron() {
//Now we get a list of courses in the server
if ($status) {
echo " Checking courses\n";
mtrace(" Checking courses");
$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";
mtrace(" $course->fullname");
//We check if the course exists in backup_course
$backup_course = get_record("backup_courses","courseid",$course->id);
//If it doesn't exist, create
@@ -74,7 +74,7 @@ function schedule_backup_cron() {
}
//If it doesn't exist now, error
if (!$backup_course) {
echo " ERROR (in backup_courses detection)\n";
mtrace(" ERROR (in backup_courses detection)");
$status = false;
}
//Now we backup every course with nextstarttime < now
@@ -105,21 +105,21 @@ function schedule_backup_cron() {
if ($nextstarttime > 0) {
$showtime = userdate($nextstarttime,"",$admin->timezone);
}
echo " Next execution: $showtime\n";
mtrace(" Next execution: $showtime");
}
}
}
//Delete old logs
if (!empty($CFG->loglifetime)) {
echo " Deleting old logs\n";
mtrace(" Deleting old logs");
$loglifetime = $now - ($CFG->loglifetime * 86400);
delete_records_select("backup_log", "laststarttime < '$loglifetime'");
}
//Send email to admin
if ($emailpending) {
echo " Sending email to admin\n";
mtrace(" Sending email to admin");
$message = "";
//Build the message text (future versions should handle html messages too!!)
$logs = get_records_select ("backup_log","laststarttime >= '$now'","id");
@@ -152,7 +152,7 @@ function schedule_backup_launch_backup($course,$starttime = 0) {
$preferences = false;
$status = false;
echo " Executing backup\n";
mtrace(" Executing backup");
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);
@@ -169,10 +169,10 @@ function schedule_backup_launch_backup($course,$starttime = 0) {
}
}
if ($status && $preferences) {
echo " End backup OK\n";
mtrace(" End backup OK");
schedule_backup_log($starttime,$course->id,"End backup course $course->fullname - OK");
} else {
echo " End backup with ERROR\n";
mtrace(" End backup with ERROR");
schedule_backup_log($starttime,$course->id,"End backup course $course->fullname - ERROR!!");
}
@@ -479,14 +479,15 @@ function schedule_backup_course_execute($preferences,$starttime = 0) {
//Create them as needed
schedule_backup_log($starttime,$preferences->backup_course," checking temp structures");
$status = check_and_create_backup_dir($preferences->backup_unique_code);
//Empty dir
//Empty backup dir
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," cleaning old data");
schedule_backup_log($starttime,$preferences->backup_course," cleaning current dir");
$status = clear_backup_dir($preferences->backup_unique_code);
}
//Delete old_entries from backup tables
if ($status) {
schedule_backup_log($starttime,$preferences->backup_course," cleaning old data");
$status = backup_delete_old_data();
}
@@ -649,7 +650,7 @@ function schedule_backup_course_delete_old_files($preferences,$starttime=0) {
$dirtocheck = $CFG->dataroot."/".$preferences->backup_course."/backupdata";
}
schedule_backup_log($starttime,$preferences->backup_course," checking $dirtocheck");
echo " Keeping backup files in $dirtocheck\n";
mtrace(" Keeping backup files in $dirtocheck");
//Get all the files in $dirtocheck
$files = get_directory_list($dirtocheck,"",false);
@@ -668,16 +669,16 @@ function schedule_backup_course_delete_old_files($preferences,$starttime=0) {
//Count matching files
$countmatching = count($matchingfiles);
schedule_backup_log($starttime,$preferences->backup_course," found $countmatching backup files");
echo " found $countmatching backup files\n";
mtrace(" found $countmatching backup files");
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";
mtrace(" keep limit ($preferences->backup_keep) reached. Deleting old files");
$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";
mtrace(" $matchfile deleted");
$filetodelete = $dirtocheck."/".$matchfile;
unlink($filetodelete);
$filesdeleted++;
+13 -4
View File
@@ -557,6 +557,7 @@
fwrite ($bf,full_tag("PASSWORD",3,false,$course->password));
fwrite ($bf,full_tag("FULLNAME",3,false,$course->fullname));
fwrite ($bf,full_tag("SHORTNAME",3,false,$course->shortname));
fwrite ($bf,full_tag("IDNUMBER",3,false,$course->idnumber));
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));
@@ -568,6 +569,7 @@
fwrite ($bf,full_tag("STUDENTS",3,false,$course->students));
fwrite ($bf,full_tag("GUEST",3,false,$course->guest));
fwrite ($bf,full_tag("STARTDATE",3,false,$course->startdate));
fwrite ($bf,full_tag("ENROLPERIOD",3,false,$course->enrolperiod));
fwrite ($bf,full_tag("NUMSECTIONS",3,false,$course->numsections));
//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));
@@ -575,6 +577,7 @@
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("COST",3,false,$course->cost));
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));
@@ -717,6 +720,7 @@
fwrite ($bf,start_tag("USER",3,true));
//Output all user data
fwrite ($bf,full_tag("ID",4,false,$user_data->id));
fwrite ($bf,full_tag("AUTH",4,false,$user_data->auth));
fwrite ($bf,full_tag("CONFIRMED",4,false,$user_data->confirmed));
fwrite ($bf,full_tag("DELETED",4,false,$user_data->deleted));
fwrite ($bf,full_tag("USERNAME",4,false,$user_data->username));
@@ -746,6 +750,7 @@
fwrite ($bf,full_tag("URL",4,false,$user_data->url));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$user_data->description));
fwrite ($bf,full_tag("MAILFORMAT",4,false,$user_data->mailformat));
fwrite ($bf,full_tag("MAILDIGEST",4,false,$user_data->maildigest));
fwrite ($bf,full_tag("MAILDISPLAY",4,false,$user_data->maildisplay));
fwrite ($bf,full_tag("HTMLEDITOR",4,false,$user_data->htmleditor));
fwrite ($bf,full_tag("AUTOSUBSCRIBE",4,false,$user_data->autosubscribe));
@@ -794,6 +799,8 @@
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("TIMESTART",6,false,$tea->timestart));
fwrite ($bf,full_tag("TIMEEND",6,false,$tea->timeend));
fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$tea->timemodified));
fwrite ($bf,full_tag("TIMEACCESS",6,false,$tea->timeaccess));
//Print ROLE end
@@ -1134,8 +1141,9 @@
//This function encode things to make backup multi-site fully functional
//It does this conversions:
// - $CFG->wwwroot/file.php/courseid ----------------------> $@FILEPHP@$
// - Links to forums everywhere (DB) are encoded.
// - $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) {
@@ -1152,9 +1160,10 @@
}
//First, we check for every call to file.php inside the course
$search = array($CFG->wwwroot."/file.php/".$mypreferences->backup_course);
$search = array($CFG->wwwroot.'/file.php/'.$mypreferences->backup_course,
$CFG->wwwroot.'/file.php?file=/'.$mypreferences->backup_course);
$replace = array("$@FILEPHP@$");
$replace = array('$@FILEPHP@$','$@FILEPHP@$');
$result = str_replace($search,$replace,$content);
+3 -3
View File
@@ -25,15 +25,15 @@
}
//Delete old data in backup tables (if exists)
//Two days seems to be apropiate
//Four hours seem to be appropiate now that backup is stable
function backup_delete_old_data() {
global $CFG;
//Change this if you want !!
$days = 2;
$hours = 4;
//End change this
$seconds = $days * 24 * 60 * 60;
$seconds = $hours * 60 * 60;
$delete_from = time()-$seconds;
//Now delete from tables
$status = execute_sql("DELETE FROM {$CFG->prefix}backup_ids
+1 -1
View File
@@ -296,7 +296,7 @@
rebuild_course_cache($restore->course_id);
//categories table
$course = get_record("course","id",$restore->course_id);
fix_course_sortorder($course->category);
fix_course_sortorder();
}
//Cleanup temps (files and db)
+8 -7
View File
@@ -101,13 +101,14 @@
<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;
if (myName.substring(0,myLen) == menuName)
myForm.elements[i].options[selectIndex].selected = true;
}
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>
+11 -1
View File
@@ -52,10 +52,10 @@
$backup_unique_code = time();
//Now check and create the backup dir (if it doesn't exist)
echo "<li>".get_string("creatingtemporarystructures");
$status = check_and_create_backup_dir($backup_unique_code);
//Empty dir
if ($status) {
echo "<li>".get_string("creatingtemporarystructures");
$status = clear_backup_dir($backup_unique_code);
}
@@ -109,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
+71 -12
View File
@@ -125,19 +125,22 @@
}
$formatwiki = FORMAT_WIKI;
$typewiki = WIKITEXT;
//FORUM: Decode every POST (message) in the course
//Check we are restoring forums
if ($restore->mods['forum']->restore == 1) {
echo "<li>".get_string("from")." ".get_string("modulenameplural","forum");
//Get all course posts
//Get all course posts being restored
if ($posts = get_records_sql ("SELECT p.id, p.message
FROM {$CFG->prefix}forum_posts p,
{$CFG->prefix}forum_discussions d
{$CFG->prefix}forum_discussions d,
{$CFG->prefix}backup_ids b
WHERE d.course = $restore->course_id AND
p.discussion = d.id AND
p.format = $formatwiki")) {
p.format = $formatwiki AND
b.backup_code = $restore->backup_unique_code AND
b.table_name = 'forum_posts' AND
b.new_id = p.id")) {
//Iterate over each post->message
$i = 0; //Counter to send some output to the browser to avoid timeouts
foreach ($posts as $post) {
@@ -172,11 +175,16 @@
//Check we are restoring resources
if ($restore->mods['resource']->restore == 1) {
echo "<li>".get_string("from")." ".get_string("modulenameplural","resource");
//Get all course resources of type=8 WIKITEXT
//Get all course resources of type='text' and options=FORMAT_WIKI being restored
if ($resources = get_records_sql ("SELECT r.id, r.alltext
FROM {$CFG->prefix}resource r
FROM {$CFG->prefix}resource r,
{$CFG->prefix}backup_ids b
WHERE r.course = $restore->course_id AND
r.type = $typewiki")) {
r.type = 'text' AND
r.options = $formatwiki AND
b.backup_code = $restore->backup_unique_code AND
b.table_name = 'resource' AND
b.new_id = r.id")) {
//Iterate over each resource->alltext
$i = 0; //Counter to send some output to the browser to avoid timeouts
foreach ($resources as $resource) {
@@ -528,7 +536,8 @@
$course->password = addslashes($course_header->course_password);
$course->fullname = addslashes($course_header->course_fullname);
$course->shortname = addslashes($course_header->course_shortname);
$course->summary = addslashes($course_header->course_summary);
$course->idnumber = addslashes($course_header->course_idnumber);
$course->summary = restore_decode_absolute_links(addslashes($course_header->course_summary));
$course->format = addslashes($course_header->course_format);
$course->showgrades = addslashes($course_header->course_showgrades);
$course->blockinfo = addslashes($course_header->blockinfo);
@@ -539,6 +548,7 @@
$course->students = addslashes($course_header->course_students);
$course->guest = addslashes($course_header->course_guest);
$course->startdate = addslashes($course_header->course_startdate);
$course->enrolperiod = addslashes($course_header->course_enrolperiod);
$course->numsections = addslashes($course_header->course_numsections);
//$course->showrecent = addslashes($course_header->course_showrecent); INFO: This is out in 1.3
$course->maxbytes = addslashes($course_header->course_maxbytes);
@@ -546,6 +556,7 @@
$course->groupmode = addslashes($course_header->course_groupmode);
$course->groupmodeforce = addslashes($course_header->course_groupmodeforce);
$course->lang = addslashes($course_header->course_lang);
$course->cost = addslashes($course_header->course_cost);
$course->marker = addslashes($course_header->course_marker);
$course->visible = addslashes($course_header->course_visible);
$course->hiddensections = addslashes($course_header->course_hiddensections);
@@ -606,7 +617,7 @@
$sequence = "";
$section->course = $restore->course_id;
$section->section = $sect->number;
$section->summary = addslashes($sect->summary);
$section->summary = restore_decode_absolute_links(addslashes($sect->summary));
$section->visible = $sect->visible;
$section->sequence = "";
//Now calculate the section's newid
@@ -796,7 +807,20 @@
$user->address = addslashes($user->address);
$user->city = addslashes($user->city);
$user->url = addslashes($user->url);
$user->description = addslashes($user->description);
$user->description = restore_decode_absolute_links(addslashes($user->description));
//We need to analyse the AUTH field to recode it:
// - if the field isn't set, we are in a pre 1.4 backup and we'll
// use $CFG->auth
// - if the destination site has any kind of INTERNAL authentication,
// then apply it to the new user.
// - if the destination site has any kind of EXTERNAL authentication,
// then leave the original authentication of the user.
if ((! isset($user->auth)) || is_internal_auth($CFG->auth)) {
$user->auth = $CFG->auth;
}
//We are going to create the user
//The structure is exactly as we need
$newid = insert_record ("user",$user);
@@ -1249,7 +1273,8 @@
//This function decode things to make restore multi-site fully functional
//It does this conversions:
// - $@FILEPHP@$ -------------------------------> $CFG->wwwroot/file.php/courseid
// - $@FILEPHP@$ ---|------------> $CFG->wwwroot/file.php/courseid (slasharguments on)
// |------------> $CFG->wwwroot/file.php?file=/courseid (slasharguments off)
//
//Note: Inter-activities linking is being implemented as a final
//step in the restore execution, because we need to have it
@@ -1260,8 +1285,16 @@
//Now decode wwwroot and file.php calls
$search = array ("$@FILEPHP@$");
//Check for the status of the slasharguments config variable
$slash = $CFG->slasharguments;
$replace = array ($CFG->wwwroot."/file.php/".$restore->course_id);
//Build the replace string as needed
if ($slash == 1) {
$replace = array ($CFG->wwwroot."/file.php/".$restore->course_id);
} else {
$replace = array ($CFG->wwwroot."/file.php?file=/".$restore->course_id);
}
$result = str_replace($search,$replace,$content);
@@ -1648,6 +1681,11 @@
$log->info = "";
$toinsert = true;
break;
case "recent":
$log->url = "recent.php?id=".$log->course;
$log->info = "";
$toinsert = true;
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
break;
@@ -2160,6 +2198,9 @@
case "SHORTNAME":
$this->info->course_shortname = $this->getContents();
break;
case "IDNUMBER":
$this->info->course_idnumber = $this->getContents();
break;
case "SUMMARY":
$this->info->course_summary = $this->getContents();
break;
@@ -2193,6 +2234,9 @@
case "STARTDATE":
$this->info->course_startdate = $this->getContents();
break;
case "ENROLPERIOD":
$this->info->course_enrolperiod = $this->getContents();
break;
case "NUMSECTIONS":
$this->info->course_numsections = $this->getContents();
break;
@@ -2214,6 +2258,9 @@
case "LANG":
$this->info->course_lang = $this->getContents();
break;
case "COST":
$this->info->course_cost = $this->getContents();
break;
case "MARKER":
$this->info->course_marker = $this->getContents();
break;
@@ -2393,6 +2440,9 @@
$this->info->users[$this->getContents()] = $this->getContents();
$this->info->tempuser->id = $this->getContents();
break;
case "AUTH":
$this->info->tempuser->auth = $this->getContents();
break;
case "CONFIRMED":
$this->info->tempuser->confirmed = $this->getContents();
break;
@@ -2480,6 +2530,9 @@
case "MAILFORMAT":
$this->info->tempuser->mailformat = $this->getContents();
break;
case "MAILDIGEST":
$this->info->tempuser->maildigest = $this->getContents();
break;
case "MAILDISPLAY":
$this->info->tempuser->maildisplay = $this->getContents();
break;
@@ -2522,6 +2575,12 @@
case "EDITALL":
$this->info->temprole->editall = $this->getContents();
break;
case "TIMESTART":
$this->info->temprole->timestart = $this->getContents();
break;
case "TIMEEND":
$this->info->temprole->timeend = $this->getContents();
break;
case "TIMEMODIFIED":
$this->info->temprole->timemodified = $this->getContents();
break;
+2 -1
View File
@@ -1,8 +1,9 @@
<?php
<?PHP //$Id$
require_once ("../config.php");
require_once ("backup_scheduled.php");
require_once ("lib.php");
require_once ("backuplib.php");
require_once ("$CFG->libdir/blocklib.php");
require_login();
+2 -2
View File
@@ -5,6 +5,6 @@
// database (backup_version) to determine whether upgrades should
// be performed (see db/backup_*.php)
$backup_version = 2004052400; // The current version is a date (YYYYMMDDXX)
$backup_version = 2004083100; // The current version is a date (YYYYMMDDXX)
$backup_release = "1.3"; // User-friendly version number
$backup_release = "1.4"; // User-friendly version number
@@ -26,7 +26,7 @@ class CourseBlock_activity_modules extends MoodleBlock {
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->items[] = '<a href="'.$CFG->wwwroot.'/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="">';
}
}
+51 -6
View File
@@ -5,12 +5,10 @@ class CourseBlock_admin extends MoodleBlock {
$this->title = get_string('administration');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004041000;
$this->version = 2004081200;
}
function get_content() {
global $USER, $CFG, $THEME;
require_once($CFG->dirroot.'/mod/forum/lib.php');
function get_content() {
if($this->content !== NULL) {
return $this->content;
@@ -21,6 +19,54 @@ class CourseBlock_admin extends MoodleBlock {
$this->content->icons = array();
$this->content->footer = '';
if (empty($this->course)) {
$this->content = '';
} else if ($this->course->category == 0) {
$this->load_content_for_site();
} else {
$this->load_content_for_course();
}
return $this->content;
}
function load_content_for_site() {
global $CFG;
if (isadmin()) {
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/configure.php">'.get_string('configuration').'</a>...';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/admin.gif" height="16" width="16" alt="" />';
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/users.php">'.get_string('users').'</a>...';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="" />';
}
if (iscreator()) {
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/index.php?edit=on">'.get_string('courses').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/course.gif" height="16" width="16" alt="" />';
}
if (isadmin()) {
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/log.php?id=1">'.get_string('logs').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/log.gif" height="16" width="16" alt="" />';
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/files/index.php?id=1">'.get_string('sitefiles').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/files.gif" height="16" width="16" alt="" />';
if (file_exists($CFG->dirroot.'/'.$CFG->admin.'/'.$CFG->dbtype)) {
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/'.$CFG->dbtype.'/frame.php">'.get_string('managedatabase').'</a>';
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/db.gif" height="16" width="16" alt="" />';
}
$this->content->footer = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/">'.get_string('admin').'</a>...';
}
}
function load_content_for_course() {
global $CFG, $USER;
require_once($CFG->dirroot.'/mod/forum/lib.php');
if (isguest()) {
return $this->content;
}
@@ -82,6 +128,7 @@ class CourseBlock_admin extends MoodleBlock {
}
} 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="">';
@@ -102,8 +149,6 @@ class CourseBlock_admin extends MoodleBlock {
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="">';
}
}
return $this->content;
}
}
@@ -5,7 +5,7 @@ class CourseBlock_calendar_month extends MoodleBlock {
$this->title = get_string('calendar', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004052400;
$this->version = 2004081200;
}
function get_content() {
@@ -23,11 +23,9 @@ class CourseBlock_calendar_month extends MoodleBlock {
$this->content->text = '';
$this->content->footer = '';
if ($this->course === NULL) {
// Overrides: use no course at all
if (empty($this->course)) { // Overrides: use no course at all
$courseshown = false;
$filtercourse = array();
} else {
$courseshown = $this->course->id;
$filtercourse = array($courseshown => 1);
@@ -5,7 +5,7 @@ class CourseBlock_calendar_upcoming extends MoodleBlock {
$this->title = get_string('upcomingevents', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004052400;
$this->version = 2004052600;
}
function get_content() {
@@ -15,23 +15,26 @@ class CourseBlock_calendar_upcoming extends MoodleBlock {
require_once($CFG->dirroot.'/calendar/lib.php');
if($this->content !== NULL) {
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
if (empty($this->course)) { // Overrides: use no course at all
$courseshown = false;
$filtercourse = array();
}
else {
$this->content->footer = '';
} else {
$courseshown = $this->course->id;
$filtercourse = array($courseshown => 1);
$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&amp;course='.$this->course->id.'">'.
get_string('newevent', 'calendar').'</a>...';
}
// We 'll need this later
@@ -41,8 +44,9 @@ class CourseBlock_calendar_upcoming extends MoodleBlock {
// Correct formatting is [courseid] => 1 to be concise with moodlelib.php functions.
calendar_set_filters($courses, $group, $user, $filtercourse, $filtercourse, false);
$events = calendar_get_upcoming($courses, $group, $user, get_user_preferences('calendar_lookahead', CALENDAR_UPCOMING_DAYS), get_user_preferences('calendar_maxevents', CALENDAR_UPCOMING_MAXEVENTS));
$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));
$this->content->text = calendar_get_sideblock_upcoming($events, 'view.php?view=day&amp;course='.$this->course->id.'&amp;');
if(empty($this->content->text)) {
$this->content->text = '<div style="font-size: 0.8em; text-align: center;">'.get_string('noupcomingevents', 'calendar').'</div>';
+37 -8
View File
@@ -2,10 +2,29 @@
class CourseBlock_course_list extends MoodleBlock {
function CourseBlock_course_list ($course) {
$this->title = get_string('mycourses');
$this->title = get_string('courses');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004041800;
$this->version = 2004081200;
}
function has_config() {
return true;
}
function print_config() {
global $CFG, $THEME;
print_simple_box_start('center', '', $THEME->cellheading);
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
print_simple_box_end();
return true;
}
function handle_config($config) {
foreach ($config as $name => $value) {
set_config($name, $value);
}
return true;
}
function get_content() {
@@ -27,8 +46,15 @@ class CourseBlock_course_list extends MoodleBlock {
$icon = "<img src=\"$CFG->wwwroot/theme/$CFG->theme/pix/i/course.gif\"".
" height=\"16\" width=\"16\" alt=\"".get_string("course")."\">";
}
$adminseesall = true;
if (isset($CFG->block_course_list_adminview)) {
if ( $CFG->block_course_list_adminview == 'own'){
$adminseesall = false;
}
}
if (isset($USER->id) and !isadmin()) { // Just print My Courses
if (isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses
if ($courses = get_my_courses($USER->id)) {
foreach ($courses as $course) {
if (!$course->category) {
@@ -40,8 +66,10 @@ class CourseBlock_course_list extends MoodleBlock {
$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;
$this->content->footer = "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
if ($this->content->items) { // make sure we don't return an empty list
return $this->content;
}
}
}
@@ -53,12 +81,13 @@ class CourseBlock_course_list extends MoodleBlock {
$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->content->footer = "<a href=\"$CFG->wwwroot/course/\">".get_string("searchcourses")."</a>...<br />".
"<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</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\" ";
@@ -66,7 +95,7 @@ class CourseBlock_course_list extends MoodleBlock {
"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>...";
$this->content->footer = "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
} else {
$this->content->items = array();
$this->content->icons = array();
+31
View File
@@ -0,0 +1,31 @@
<form method="post" action="block.php">
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right"><p>block_course_list_adminview:</td>
<td>
<input name="block" type="hidden" value="<?php echo intval($_REQUEST['block']); ?>" />
<select name="block_course_list_adminview">
<option value="all" <?php if(isset($CFG->block_course_list_adminview)){
if($CFG->block_course_list_adminview == "all"){ p("selected");}
}else{
p("selected");
}?>
><?php p(get_string('allcourses', 'block_course_list')) ?></option>
<option value="own" <?php if(isset($CFG->block_course_list_adminview)){
if($CFG->block_course_list_adminview == "own"){ p("selected"); }
}?>
><?php p(get_string('owncourses', 'block_course_list')) ?></option>
</select>
</td>
<td>
<?php print_string("configadminview", "block_course_list") ?>
</td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
</tr>
</table>
</form>
+29 -7
View File
@@ -2,28 +2,50 @@
class CourseBlock_course_summary extends MoodleBlock {
function CourseBlock_course_summary ($course) {
$this->title = get_string('blockname','block_course_summary');
if (empty($course->category)) { // Site level
$this->title = get_string('frontpagedescription');
} else {
$this->title = get_string('blockname','block_course_summary');
}
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004041400;
$this->version = 2004052600;
}
function get_content() {
global $USER, $CFG;
global $CFG, $THEME;
if($this->content !== NULL) {
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
if (empty($this->course)) {
return '';
}
$this->content = New stdClass;
$this->content->text = format_text($this->course->summary, FORMAT_HTML);
if (isediting($this->course->id)) {
if (empty($this->course->category)) {
$editpage = $CFG->wwwroot.'/admin/site.php';
} else {
$editpage = $CFG->wwwroot.'/course/edit.php?id='.$this->course->id;
}
$this->content->text .= "<div align=\"right\"><a href=\"$editpage\"><img src=\"$CFG->pixpath/t/edit.gif\" /></a></div>";
}
$this->content->footer = '';
return $this->content;
}
function hide_header() {return true;}
function hide_header() {
return true;
}
function preferred_width() {
return 210;
}
}
?>
+1
View File
@@ -37,6 +37,7 @@ global $CFG;
COMMENT = 'To register and update all the available blocks'");
}
//Finally, return result
return $result;
}
+1
View File
@@ -39,6 +39,7 @@ global $CFG;
}
//Finally, return result
return $result;
}
+77
View File
@@ -0,0 +1,77 @@
<?PHP //$Id$
class CourseBlock_login extends MoodleBlock {
function CourseBlock_login ($course) {
$this->title = get_string('login');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004081600;
}
function applicable_formats() {
return array('site' => true);
}
function get_content () {
global $USER, $CFG;
$wwwroot = '';
$signup = '';
if ($this->content !== NULL) {
return $this->content;
}
if (empty($CFG->loginhttps)) {
$wwwroot = $CFG->wwwroot;
} else {
// This actually is not so secure ;-), 'cause we're
// in unencrypted connection...
$wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
}
switch ($CFG->auth) {
// I'm not sure if user can create an account
// him/her self when using ldap authentication.
// If true, then there should be a method for it.
case "email":
$signup = $wwwroot . '/login/signup.php';
break;
case "none":
// just for the user to see instructions!
$signup = $wwwroot . '/login/index.php';
break;
default:
$signup = '';
}
$username = get_moodle_cookie();
if (empty($USER->loggedin)) {
$this->content->text = "<form name=\"blocklogin\" method=\"post\"";
$this->content->text .= " action=\"". $wwwroot ."/login/index.php\">\n";
$this->content->text .= "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\"";
$this->content->text .= " width=\"100%\" style=\"font-size: small;\">\n";
$this->content->text .= "<tr>\n<td>". get_string("username") .":</td>\n</tr>\n";
$this->content->text .= "<tr>\n<td><input type=\"text\" name=\"username\" value=\"";
$this->content->text .= $username . "\" /></td>\n</tr>\n";
$this->content->text .= "<tr>\n<td>". get_string("password") .":</td>\n</tr>\n";
$this->content->text .= "<tr>\n<td><input type=\"password\" name=\"password\" /></td>\n</tr>\n";
$this->content->text .= "<tr>\n<td align=\"center\"><input type=\"submit\" value=\"";
$this->content->text .= get_string("login");
$this->content->text .= "\" /></td>\n</tr>\n";
if (!empty($signup)) {
$this->content->text .= "<tr><td align=\"center\"><a href=\"". $signup ."\">";
$this->content->text .= get_string('startsignup');
$this->content->text .= "</a></td></tr>\n";
}
$this->content->text .= "</table>\n";
$this->content->text .= "</form>\n";
} else {
$this->content->text = ''; // It's time to dissapear!
// And keep the self test happy by
// passing empty string!
}
return $this->content;
}
}
?>
+53 -23
View File
@@ -58,27 +58,54 @@ class MoodleBlock {
}
$this->get_content();
if(!isset($this->content->footer)) {
$this->content->footer = '';
}
switch($this->content_type) {
case BLOCK_TYPE_NUKE:
case BLOCK_TYPE_TEXT:
if(empty($this->content->text) && empty($this->content->footer)) {
break;
if(empty($this->edit_controls)) {
// No content, no edit controls, so just shut up
break;
}
else {
// No content but editing, so show something at least
$this->print_shadow();
}
}
if ($this->edit_controls !== NULL || !$this->hide_header()) {
print_side_block($title, $this->content->text, NULL, NULL, $this->content->footer);
} else {
print_side_block(NULL, $this->content->text, NULL, NULL, $this->content->footer);
else {
if($this->hide_header() && empty($this->edit_controls)) {
// Header wants to hide, no edit controls to show, so no header it is
print_side_block(NULL, $this->content->text, NULL, NULL, $this->content->footer, $this->html_attributes());
}
else {
// The full treatment, please
print_side_block($title, $this->content->text, NULL, NULL, $this->content->footer, $this->html_attributes());
}
}
break;
case BLOCK_TYPE_LIST:
if(empty($this->content->items) && empty($this->content->footer)) {
break;
if(empty($this->edit_controls)) {
// No content, no edit controls, so just shut up
break;
}
else {
// No content but editing, so show something at least
$this->print_shadow();
}
}
if ($this->edit_controls !== NULL || !$this->hide_header()) {
print_side_block($title, '', $this->content->items, $this->content->icons, $this->content->footer);
} else {
print_side_block(NULL, '', $this->content->items, $this->content->icons, $this->content->footer);
else {
if($this->hide_header() && empty($this->edit_controls)) {
// Header wants to hide, no edit controls to show, so no header it is
print_side_block(NULL, '', $this->content->items, $this->content->icons, $this->content->footer, $this->html_attributes());
}
else {
// The full treatment, please
print_side_block($title, '', $this->content->items, $this->content->icons, $this->content->footer, $this->html_attributes());
}
}
break;
}
@@ -90,6 +117,7 @@ class MoodleBlock {
}
print_side_block($title, '&nbsp;', NULL, NULL, '');
}
function add_edit_controls($options, $blockid) {
global $CFG, $THEME;
@@ -127,26 +155,26 @@ class MoodleBlock {
$title = $this->str->show;
}
$movebuttons .= '<a style="margin-right: 10px;" title="'.$title.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=toggle&amp;blockid='.$blockid.'">' .
$movebuttons .= '<a style="margin-right: 6px; margin-left: 3px;" title="'.$title.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=toggle&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.$icon.'" /></a>';
$movebuttons .= '<a style="margin-right: 10px;" title="'.$this->str->delete.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=delete&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/delete.gif" /></a>';
$movebuttons .= '<a title="'.$this->str->delete.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=delete&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/delete.gif" /></a> ';
if ($options & BLOCK_MOVE_LEFT) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->moveleft.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveside&amp;blockid='.$blockid.'">' .
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'.$this->str->moveleft.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveside&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/left.gif" /></a>';
}
if ($options & BLOCK_MOVE_UP) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->moveup.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveup&amp;blockid='.$blockid.'">' .
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'.$this->str->moveup.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveup&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/up.gif" /></a>';
}
if ($options & BLOCK_MOVE_DOWN) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->movedown.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=movedown&amp;blockid='.$blockid.'">' .
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'.$this->str->movedown.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=movedown&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/down.gif" /></a>';
}
if ($options & BLOCK_MOVE_RIGHT) {
$movebuttons .= '<a style="margin-right: 3px;" title="'.$this->str->moveright.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveside&amp;blockid='.$blockid.'">' .
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'.$this->str->moveright.'" href="'.$path.'/view.php?id='.$this->course->id.'&amp;blockaction=moveside&amp;blockid='.$blockid.'">' .
'<img src="'.$pixpath.'/t/right.gif" /></a>';
}
@@ -176,11 +204,13 @@ class MoodleBlock {
$errors[] = 'version_not_set';
$correct = false;
}
$allformats = COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS | COURSE_FORMAT_SOCIAL;
if(!($this->applicable_formats() & $allformats)) {
$formats = $this->applicable_formats();
if(empty($formats) || array_sum($formats) === 0) {
$errors[] = 'no_course_formats';
$correct = false;
}
$width = $this->preferred_width();
if(!is_int($width) || $width <= 0) {
$errors[] = 'invalid_width';
@@ -202,19 +232,19 @@ class MoodleBlock {
}
function applicable_formats() {
// Default case: the block can be used in all course types
return COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS | COURSE_FORMAT_SOCIAL;
return array('all' => true);
}
function preferred_width() {
// Default case: the block wants to be 180 pixels wide
return 180;
}
function hide_header() {
//Default, false--> the header is showed
//Default, false--> the header is shown
return false;
}
function html_attributes() {
// Default case: we want no extra attributes
return false;
// Default case: just an id for the block, with our name in it
return array('id' => 'block_'.$this->name());
}
}
+8 -2
View File
@@ -5,17 +5,23 @@ class CourseBlock_news_items extends MoodleBlock {
$this->title = get_string('latestnews');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004041200;
$this->version = 2004052600;
}
function get_content() {
global $CFG;
if($this->content !== NULL) {
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->course)) {
$this->content = '';
return $this->content;
}
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/mod/forum/lib.php');
$this->content = New object;
$this->content->text = '';
+54 -36
View File
@@ -5,7 +5,7 @@ class CourseBlock_online_users extends MoodleBlock {
$this->title = get_string('blockname','block_online_users');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004041800;
$this->version = 2004052700;
}
function has_config() {return true;}
@@ -27,19 +27,24 @@ class CourseBlock_online_users extends MoodleBlock {
function get_content() {
global $USER, $CFG;
$timetoshowusers = 300; //Seconds default
if (isset($CFG->block_online_users_timetosee)) {
$timetoshowusers = $CFG->block_online_users_timetosee * 60;
}
if($this->content !== NULL) {
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->course)) {
$this->content = '';
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
$timetoshowusers = 300; //Seconds default
if (isset($CFG->block_online_users_timetosee)) {
$timetoshowusers = $CFG->block_online_users_timetosee * 60;
}
$timefrom = time()-$timetoshowusers;
//Calculate if we are in separate groups
$isseparategroups = ($this->course->groupmode == SEPARATEGROUPS and $this->course->groupmodeforce and
@@ -49,49 +54,62 @@ class CourseBlock_online_users extends MoodleBlock {
$currentgroup = $isseparategroups ? get_current_group($this->course->id) : NULL;
$groupmembers = "";
$select = "";
$groupselect = "";
//Add this to the SQL to show only group users
if ($currentgroup !== NULL) {
$groupmembers = ", {$CFG->prefix}groups_members gm ";
$select .= " AND u.id = gm.userid AND gm.groupid = '$currentgroup'";
$groupselect .= " AND u.id = gm.userid AND gm.groupid = '$currentgroup'";
}
$timefrom = time()-$timetoshowusers;
if (empty($this->course->category)) { // Site-level
$courseselect = '';
$timeselect = "AND (s.timeaccess > $timefrom OR u.lastaccess > $timefrom)";
} else {
$courseselect = "AND s.course = '".$this->course->id."'";
$timeselect = "AND s.timeaccess > $timefrom";
}
$students = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, s.timeaccess
$users = array();
if ($students = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, u.lastaccess, s.timeaccess
FROM {$CFG->prefix}user u,
{$CFG->prefix}user_students s
$groupmembers
WHERE u.id = s.userid and
s.course = {$this->course->id} and
s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC");
WHERE u.id = s.userid $courseselect $groupselect $timeselect
ORDER BY s.timeaccess DESC")) {
foreach ($students as $student) {
$student->fullname = fullname($student);
$users[$student->id] = $student;
}
}
$teachers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, s.timeaccess
if (!$this->course->category and $CFG->allusersaresitestudents) {
if ($siteusers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, u.lastaccess
FROM {$CFG->prefix}user u
WHERE u.lastaccess > $timefrom AND u.username <> 'guest'
ORDER BY u.lastaccess DESC")) {
foreach ($siteusers as $siteuser) {
$siteuser->fullname = fullname($siteuser);
$siteuser->timeaccess = $siteuser->lastaccess;
$users[$siteuser->id] = $siteuser;
}
}
}
if ($teachers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, u.lastaccess, s.timeaccess
FROM {$CFG->prefix}user u,
{$CFG->prefix}user_teachers s
$groupmembers
WHERE u.id = s.userid and
s.course = {$this->course->id} and
s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC");
if ($teachers || $students) {
if ($students) {
foreach ($students as $student) {
$student->fullname = fullname($student);
$users[$student->id] = $student;
}
WHERE u.id = s.userid $courseselect $groupselect $timeselect
ORDER BY s.timeaccess DESC")) {
foreach ($teachers as $teacher) {
$teacher->fullname = '<b>'.fullname($teacher).'</b>';
$users[$teacher->id] = $teacher;
}
if ($teachers) {
foreach ($teachers as $teacher) {
$teacher->fullname = '<b>'.fullname($teacher).'</b>';
$users[$teacher->id] = $teacher;
}
}
} else {
$users = null;
}
//Calculate minutes
$minutes = floor($timetoshowusers/60);
@@ -99,10 +117,10 @@ class CourseBlock_online_users extends MoodleBlock {
//Now, we have in users, the list of users to show
//Because they are online
if ($users !== null) {
if (!empty($users)) {
foreach ($users as $user) {
$this->content->text .= '<div style="text-align: left; font-size: 0.75em; padding-top: 5px;">';
$timeago = format_time(time() - $user->timeaccess);
$timeago = format_time(time() - max($user->timeaccess, $user->lastaccess)); //bruno to calculate correctly on frontpage
if ($user->picture==0) {
$this->content->text .= '<img src="'.$CFG->pixpath.'/i/user.gif" style="height: 16px; width=16px; vertical-align: middle;" alt=""> ';
} else {
+21 -13
View File
@@ -5,13 +5,17 @@ class CourseBlock_participants extends MoodleBlock {
$this->title = get_string('people');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004041800;
$this->version = 2004052600;
}
function get_content() {
global $USER, $CFG;
if($this->content !== NULL) {
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->course)) {
$this->content = '';
return $this->content;
}
@@ -23,29 +27,33 @@ class CourseBlock_participants extends MoodleBlock {
$strgroups = get_string('groups');
$strgroupmy = get_string('groupmy');
$this->content->items[]='<a title="'.get_string('listofallpeople').'" href="../user/index.php?id='.$this->course->id.'">'.get_string('participants').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="">';
if ($this->course->category or $CFG->showsiteparticipantslist > 1 or ($CFG->showsiteparticipantslist == 1 and isteacher()) or isteacher(SITEID)) {
$this->content->items[]='<a title="'.get_string('listofallpeople').'" href="'.$CFG->wwwroot.'/user/index.php?id='.$this->course->id.'">'.get_string('participants').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" height="16" width="16" alt="">';
}
if ($this->course->groupmode or !$this->course->groupmodeforce) {
if ($this->course->groupmode == VISIBLEGROUPS or isteacheredit($this->course->id)) {
$this->content->items[]='<a title="'.$strgroups.'" href="groups.php?id='.$this->course->id.'">'.$strgroups.'</a>';
$this->content->items[]='<a title="'.$strgroups.'" href="'.$CFG->wwwroot.'/course/groups.php?id='.$this->course->id.'">'.$strgroups.'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/group.gif" height="16" width="16" alt="">';
} else if ($this->course->groupmode == SEPARATEGROUPS and $this->course->groupmodeforce) {
// Show nothing
} else if ($currentgroup = get_current_group($this->course->id)) {
$this->content->items[]='<a title="'.$strgroupmy.'" href="group.php?id='.$this->course->id.'">'.$strgroupmy.'</a>';
$this->content->items[]='<a title="'.$strgroupmy.'" href="'.$CFG->wwwroot.'/course/group.php?id='.$this->course->id.'">'.$strgroupmy.'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/group.gif" height="16" width="16" alt="">';
}
}
$fullname = fullname($USER, true);
$editmyprofile = '<a title="'.$fullname.'" href="../user/edit.php?id='.$USER->id.'&amp;course='.$this->course->id.'">'.get_string('editmyprofile').'</a>';
if ($USER->description) {
$this->content->items[]= $editmyprofile;
} else {
$this->content->items[]= $editmyprofile." <blink>*</blink>";
if (!empty($USER->id)) {
$fullname = fullname($USER, true);
$editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&amp;course='.$this->course->id.'">'.get_string('editmyprofile').'</a>';
if ($USER->description) {
$this->content->items[]= $editmyprofile;
} else {
$this->content->items[]= $editmyprofile." <blink>*</blink>";
}
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="">';
}
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="">';
return $this->content;
}
@@ -10,7 +10,12 @@ class CourseBlock_recent_activity extends MoodleBlock {
function get_content() {
if($this->content !== NULL) {
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->course)) {
$this->content = '';
return $this->content;
}
@@ -17,6 +17,11 @@ class CourseBlock_search_forums extends MoodleBlock {
return $this->content;
}
if (empty($this->course)) {
$this->content = '';
return $this->content;
}
$this->content = New object;
$this->content->text = '';
$this->content->footer = '';
+40 -20
View File
@@ -3,22 +3,24 @@
class CourseBlock_section_links extends MoodleBlock {
function CourseBlock_section_links ($course) {
if ($course->format == 'topics') {
$this->title = get_string('topics', 'block_section_links');
}
else if ($course->format == 'weeks') {
$this->title = get_string('weeks', 'block_section_links');
}
else {
if (isset($course->format)) {
if ($course->format == 'topics') {
$this->title = get_string('topics', 'block_section_links');
} else if ($course->format == 'weeks') {
$this->title = get_string('weeks', 'block_section_links');
} else {
$this->title = get_string('blockname', 'block_section_links');
}
} else {
$this->title = get_string('blockname', 'block_section_links');
}
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
$this->version = 2004050500;
$this->version = 2004052800;
}
function applicable_formats() {
return (COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS);
return (array('weeks' => true, 'topics' => true));
}
function get_content() {
@@ -26,17 +28,24 @@ class CourseBlock_section_links extends MoodleBlock {
$highlight = 0;
if($this->content !== NULL) {
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->course)) {
$this->content = '';
return $this->content;
}
if ($this->course->format == 'weeks') {
$highlight = ceil((time()-$this->course->startdate)/604800);
$linktext = get_string('jumptocurrentweek', 'block_section_links');
$sectionname = 'week';
}
else if ($this->course->format == 'topics') {
$highlight = $this->course->marker;
$linktext = get_string('jumptocurrenttopic', 'block_section_links');
$sectionname = 'topic';
}
$inc = 1;
if ($this->course->numsections > 22) {
@@ -46,25 +55,36 @@ class CourseBlock_section_links extends MoodleBlock {
$inc = 5;
}
$courseid = $this->course->id;
if ($display = get_field('course_display', 'display', 'course', $courseid, 'userid', $USER->id)) {
$link = "$CFG->wwwroot/course/view.php?id=$courseid&amp;topic=all";
if (!empty($USER->id)) {
$display = get_field('course_display', 'display', 'course', $courseid, 'userid', $USER->id);
}
if (!empty($display)) {
$link = "$CFG->wwwroot/course/view.php?id=$courseid&amp;$sectionname=";
} else {
$link = '';
$link = '#';
}
$text = '<font size=-1>';
for ($i = $inc; $i <= $this->course->numsections; $i += $inc) {
$isvisible = get_field('course_sections', 'visible', 'course', $this->course->id, 'section', $i);
if (!$isvisible and !isteacher($this->course->id)) {
continue;
}
$style = ($isvisible) ? '' : ' class="dimmed"';
if ($i == $highlight) {
$text .= "<a href=\"$link#$i\"><b>$i</b></a> ";
$text .= "<a href=\"$link$i\"$style><b>$i</b></a> ";
} else {
$text .= "<a href=\"$link#$i\">$i</a> ";
$text .= "<a href=\"$link$i\"$style>$i</a> ";
}
}
if ($highlight) {
$text .= "<br><a href=\"$link#$highlight\">$linktext</a>";
$isvisible = get_field('course_sections', 'visible', 'course', $this->course->id, 'section', $highlight);
if ($isvisible or isteacher($this->course->id)) {
$style = ($isvisible) ? '' : ' class="dimmed"';
$text .= "<br><a href=\"$link$highlight\"$style>$linktext</a>";
}
}
$this->content = New object;
$this->content->header = 'Hello';
$this->content = New stdClass;
$this->content->footer = '';
$this->content->text = $text;
return $this->content;
@@ -0,0 +1,134 @@
<?php //$Id$
class CourseBlock_site_main_menu extends MoodleBlock {
function CourseBlock_site_main_menu ($course) {
$this->title = get_string('mainmenu');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
$this->version = 2004052700;
}
function applicable_formats() {
return array('site' => true);
}
function get_content() {
global $USER, $CFG;
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->course)) {
return '';
}
$this->content = New stdClass;
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = '';
$isteacher = isteacher($this->course->id);
$isediting = isediting($this->course->id);
$ismoving = ismoving($this->course->id);
$sections = get_all_sections($this->course->id);
$section = $sections[0];
if($section->sequence || $isediting) {
get_all_mods($this->course->id, $mods, $modnames, $modnamesplural, $modnamesused);
}
$groupbuttons = $this->course->groupmode;
$groupbuttonslink = (!$this->course->groupmodeforce);
if ($ismoving) {
$strmovehere = get_string('movehere');
$strmovefull = strip_tags(get_string('movefull', '', "'$USER->activitycopyname'"));
$strcancel= get_string('cancel');
$stractivityclipboard = $USER->activitycopyname;
}
$modinfo = unserialize($this->course->modinfo);
$editbuttons = '';
if ($ismoving) {
$this->content->icons[] = '&nbsp;<img align="bottom" src="'.$CFG->pixpath.'/t/move.gif" height="11" width="11">';
$this->content->items[] = $USER->activitycopyname.'&nbsp;(<a href="'.$CFG->wwwroot.'/course/mod.php?cancelcopy=true">'.$strcancel.'</a>)';
}
if (!empty($section->sequence)) {
$sectionmods = explode(',', $section->sequence);
foreach ($sectionmods as $modnumber) {
if (empty($mods[$modnumber])) {
continue;
}
$mod = $mods[$modnumber];
if ($isediting && !$ismoving) {
if ($groupbuttons) {
if (! $mod->groupmodelink = $groupbuttonslink) {
$mod->groupmode = $this->course->groupmode;
}
} else {
$mod->groupmode = false;
}
$editbuttons = '<br />'.make_editing_buttons($mod, true, true);
} else {
$editbuttons = '';
}
if ($mod->visible || $isteacher) {
if ($ismoving) {
if ($mod->id == $USER->activitycopy) {
continue;
}
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?moveto='.$mod->id.'">'.
'<img height="16" width="80" src="'.$CFG->pixpath.'/movehere.gif" alt="'.$strmovehere.'" border="0"></a>';
$this->content->icons[] = '';
}
$instancename = urldecode($modinfo[$modnumber]->name);
if (!empty($CFG->filterall)) {
$instancename = filter_text('<nolink>'.$instancename.'</nolink>', $this->course->id);
}
$linkcss = $mod->visible ? '' : ' class="dimmed" ';
if (!empty($modinfo[$modnumber]->extra)) {
$extra = urldecode($modinfo[$modnumber]->extra);
} else {
$extra = '';
}
if (!empty($modinfo[$modnumber]->icon)) {
$icon = $CFG->pixpath.'/'.urldecode($modinfo[$modnumber]->icon);
} else {
$icon = $CFG->modpixpath.'/'.$mod->modname.'/icon.gif';
}
if ($mod->modname == 'label') {
$this->content->items[] = format_text($extra, FORMAT_HTML).$editbuttons;
$this->content->icons[] = '';
} else {
$this->content->items[] = '<a title="'.$mod->modfullname.'" '.$linkcss.' '.$extra.
' href="'.$CFG->wwwroot.'/mod/'.$mod->modname.'/view.php?id='.$mod->id.'">'.$instancename.'</a>'.$editbuttons;
$this->content->icons[] = '<img src="'.$icon.'" height="16" width="16" alt="'.$mod->modfullname.'">';
}
}
}
}
if ($ismoving) {
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'">'.
'<img height="16" width="80" src="'.$CFG->pixpath.'/movehere.gif" alt="'.$strmovehere.'" border="0"></a>';
$this->content->icons[] = '';
}
if ($isediting && $modnames) {
$this->content->footer = '<div style="text-align: right;">'.
print_section_add_menus($this->course, 0, $modnames, true, true).'</div>';
} else {
$this->content->footer = '';
}
return $this->content;
}
}
?>
@@ -9,15 +9,18 @@ class CourseBlock_social_activities extends MoodleBlock {
}
function applicable_formats() {
return COURSE_FORMAT_SOCIAL;
return array('social' => true);
}
function get_content() {
global $USER, $CFG;
if($this->content !== NULL) {
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->course)) {
return '';
}
$this->content = New object;
$this->content->items = array();
@@ -46,8 +49,8 @@ class CourseBlock_social_activities extends MoodleBlock {
$editbuttons = '';
if ($ismoving) {
$this->content->items[] = '&nbsp;<img align="bottom" src="'.$CFG->pixpath.'/t/move.gif" height="11" width="11">';
$this->content->icons[] = $USER->activitycopyname.'&nbsp;(<a href="'.$CFG->wwwroot.'/course/mod.php?cancelcopy=true">'.$strcancel.'</a>)';
$this->content->icons[] = '&nbsp;<img align="bottom" src="'.$CFG->pixpath.'/t/move.gif" height="11" width="11">';
$this->content->items[] = $USER->activitycopyname.'&nbsp;(<a href="'.$CFG->wwwroot.'/course/mod.php?cancelcopy=true">'.$strcancel.'</a>)';
}
if (!empty($section->sequence)) {
@@ -89,6 +92,11 @@ class CourseBlock_social_activities extends MoodleBlock {
} else {
$extra = '';
}
if (!empty($modinfo[$modnumber]->icon)) {
$icon = $CFG->pixpath.'/'.urldecode($modinfo[$modnumber]->icon);
} else {
$icon = $CFG->modpixpath.'/'.$mod->modname.'/icon.gif';
}
if ($mod->modname == 'label') {
$this->content->items[] = format_text($extra, FORMAT_HTML).$editbuttons;
@@ -96,7 +104,7 @@ class CourseBlock_social_activities extends MoodleBlock {
} else {
$this->content->items[] = '<a title="'.$mod->modfullname.'" '.$linkcss.' '.$extra.
' href="'.$CFG->wwwroot.'/mod/'.$mod->modname.'/view.php?id='.$mod->id.'">'.$instancename.'</a>'.$editbuttons;
$this->content->icons[] = '<img src="'.$CFG->modpixpath.'/'.$mod->modname.'/icon.gif" height="16" width="16" alt="'.$mod->modfullname.'">';
$this->content->icons[] = '<img src="'.$icon.'" height="16" width="16" alt="'.$mod->modfullname.'">';
}
}
}
@@ -110,8 +118,7 @@ class CourseBlock_social_activities extends MoodleBlock {
if ($isediting && $modnames) {
$this->content->footer = '<div style="text-align: right;">'.
popup_form($CFG->wwwroot.'/course/mod.php?id='.$this->course->id.'&amp;section='.$section->section.'&amp;add=',
$modnames, 'section0', '', get_string('add').'...', 'mods', get_string('activities'), true) . '</div>';
print_section_add_menus($this->course, 0, $modnames, true, true).'</div>';
} else {
$this->content->footer = '';
}
+1 -1
View File
@@ -5,4 +5,4 @@
// database (blocks_version) to determine whether upgrades should
// be performed (see db/backup_*.php)
$blocks_version = 2004052400; // The current version is a date (YYYYMMDDXX)
$blocks_version = 2004052700; // The current version is a date (YYYYMMDDXX)
+37 -14
View File
@@ -39,9 +39,9 @@
/////////////////////////////////////////////////////////////////////////////
require_once('../config.php');
require_once('lib.php');
require_once('../course/lib.php');
require_once('../mod/forum/lib.php');
require_once($CFG->dirroot.'/calendar/lib.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/mod/forum/lib.php');
require_login();
@@ -71,6 +71,22 @@
$defaultformat = FORMAT_MOODLE;
}
// If a course has been supplied in the URL, change the filters to show that one
if(!empty($_GET['course'])) {
if(is_numeric($_GET['course']) && $_GET['course'] > 0 && record_exists('course', 'id', $_GET['course'])) {
if($_GET['course'] == 1) {
// If coming from the home page, show all courses
$SESSION->cal_courses_shown = calendar_get_default_courses(true);
calendar_set_referring_course(0);
}
else {
// Otherwise show just this one
$SESSION->cal_courses_shown = intval($_GET['course']);
calendar_set_referring_course($SESSION->cal_courses_shown);
}
}
}
switch($_REQUEST['action']) {
case 'delete':
$title = get_string('deleteevent', 'calendar');
@@ -96,7 +112,7 @@
if($form = data_submitted()) {
$form->name = strip_tags($form->name); // Strip all tags
$form->description = clean_text($form->description , $form->format); // Clean up any bad tags
//$form->description = clean_text($form->description , $form->format); // Clean up any bad tags
$form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin);
if($form->duration == 1) {
@@ -136,7 +152,7 @@
if(!empty($form) && $form->type == 'defined') {
$form->name = strip_tags($form->name); // Strip all tags
$form->description = clean_text($form->description , $form->format); // Clean up any bad tags
//$form->description = clean_text($form->description , $form->format); // Clean up any bad tags
$form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin);
if($form->duration == 1) {
@@ -198,12 +214,14 @@
print_header(get_string('calendar', 'calendar').': '.$title, $site->fullname, $nav.' -> '.$title,
$focus, '', true, '', '<p class="logininfo">'.user_login_string($site).'</p>');
echo calendar_overlib_html();
echo '<table border="0" cellpadding="3" cellspacing="0" width="100%"><tr valign="top">';
echo '<td valign="top" width="100%">';
switch($_REQUEST['action']) {
case 'delete':
if($_REQUEST['confirm'] == 1) {
if(!empty($_REQUEST['confirm']) && $_REQUEST['confirm'] == 1) {
// Kill it and redirect to day view
if(($event = get_record('event', 'id', $_REQUEST['id'])) !== false) {
/// Log the event delete.
@@ -230,7 +248,7 @@
$d = $eventtime['mday'];
$y = $eventtime['year'];
// Display confirmation form
print_side_block_start(get_string('deleteevent', 'calendar').': '.$event->name, '', 'mycalendar');
print_side_block_start(get_string('deleteevent', 'calendar').': '.$event->name, array('class' => 'mycalendar'));
include('event_delete.html');
print_side_block_end();
}
@@ -261,11 +279,17 @@
$form->minutes = '';
}
}
print_side_block_start(get_string('editevent', 'calendar'), '', 'mycalendar');
if (!empty($form->courseid)) { // Fixes bug 1488
$course = get_record('course', 'id', $form->courseid);
} else {
$course = $site;
}
print_side_block_start(get_string('editevent', 'calendar'), array('class' => 'mycalendar'));
include('event_edit.html');
print_side_block_end();
if ($usehtmleditor) {
use_html_editor();
use_html_editor("description");
}
break;
@@ -391,7 +415,7 @@
$header = ' ('.$header.')';
}
print_side_block_start(get_string('newevent', 'calendar').$header, '', 'mycalendar');
print_side_block_start(get_string('newevent', 'calendar').$header, array('class' => 'mycalendar'));
if($_REQUEST['type'] == 'select') {
$defaultcourse = $SESSION->cal_course_referer;
if(isteacheredit($defaultcourse, $USER->id)) {
@@ -409,7 +433,7 @@
else {
include('event_new.html');
if ($usehtmleditor) {
use_html_editor();
use_html_editor("description");
}
}
print_side_block_end();
@@ -421,10 +445,9 @@
echo '<td style="vertical-align: top; width: 180px;">';
$defaultcourses = calendar_get_default_courses();
echo calendar_overlib_html();
calendar_set_filters($courses, $groups, $users, $defaultcourses, $defaultcourses);
print_side_block_start(get_string('monthlyview', 'calendar'), '', 'sideblockmain');
print_side_block_start(get_string('monthlyview', 'calendar'));
list($prevmon, $prevyr) = calendar_sub_month($mon, $yr);
list($nextmon, $nextyr) = calendar_add_month($mon, $yr);
@@ -507,7 +530,7 @@ function calendar_get_allowed_types(&$allowed) {
$allowed->courses = false; // This may change just below
$allowed->site = isadmin($USER->id);
if(!empty($SESSION->cal_course_referer) && isteacheredit($SESSION->cal_course_referer, $USER->id)) {
if(!empty($SESSION->cal_course_referer) && $SESSION->cal_course_referer > 1 && isteacheredit($SESSION->cal_course_referer, $USER->id)) {
$allowed->courses = array($SESSION->cal_course_referer => 1);
$allowed->groups = get_groups($SESSION->cal_course_referer);
}
+72 -1
View File
@@ -1 +1,72 @@
<form method="post" action="event.php" name="edit">
<form method="post" action="event.php" name="edit">
<table cellpadding=5>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventname', 'calendar'); ?>:
</td>
<td>
<input type="text" name="name" size="67" value="<?php p($form->name); ?>" />
<?php if (isset($err['name'])) formerr($err['name']); ?>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventdescription', 'calendar'); ?>:
</td>
<td>
<?php
print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description);
if (isset($err['description'])) formerr($err['description']);
?>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php print_string('eventdate', 'calendar'); ?>:</td>
<td>
<?php print_date_selector('startday', 'startmon', 'startyr', $form->timestart);?>
<?php print_string('eventtime', 'calendar');?>
<?php print_time_selector('starthr', 'startmin', $form->timestart) ?>
<?php if (isset($err['timestart'])) formerr($err['timestart']); ?>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventduration', 'calendar'); ?>:
</td>
<td>
<div>
<input type="radio" name="duration" value="0" id="duration_none" <?php if($form->duration == 0) echo 'checked="checked"'; ?>/>
<label for="duration_none">
<?php print_string('durationnone', 'calendar'); ?>
</label>
</div>
<div>
<input type="radio" name="duration" value="1" id="duration_yes" <?php if($form->duration == 1) echo 'checked="checked"'; ?>/>
<label for="duration_yes">
<?php print_string('durationuntil', 'calendar'); ?>
</label>
<?php print_date_selector('endday', 'endmon', 'endyr', $form->timestart + $form->timeduration);?>
<?php print_string('eventtime', 'calendar');?>
<?php print_time_selector('endhr', 'endmin', $form->timestart + $form->timeduration) ?>
<?php if (isset($err['timeduration'])) formerr($err['timeduration']); ?>
</div>
<div>
<input type="radio" name="duration" value="2" id="duration_minutes" <?php if($form->duration == 2) echo 'checked="checked"'; ?>/>
<label for="duration_minutes"><?php print_string('durationminutes', 'calendar'); ?>:</label>
<input type="text" name="minutes" size="3" value="<?php p($form->minutes); ?>" />
<?php if (isset($err['minutes'])) formerr($err['minutes']); ?>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="2"><p><input type="submit" value="<?php print_string('savechanges') ?>"></p></td>
</tr>
</table>
<p>
<input type="hidden" name="id" value="<?php echo $form->id; ?>" />
<input type="hidden" name="courseid" value="<?php echo $form->courseid; ?>" />
<input type="hidden" name="format" value="<?php echo $form->format; ?>" />
<input type="hidden" name="action" value="edit" />
</p>
</form>
+103 -1
View File
@@ -1 +1,103 @@
<form method="post" action="event.php" name="new">
<?php
// The following is a hack to fix bug 1488
$course = get_record('course', 'id', ($form->courseid) ? $form->courseid : $site->id);
?>
<form method="post" action="event.php" name="new">
<table cellpadding=5>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventname', 'calendar'); ?>:
</td>
<td>
<input type="text" name="name" size="67" value="<?php p($form->name); ?>" />
<?php if (isset($err['name'])) formerr($err['name']); ?>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventdescription', 'calendar'); ?>:
</td>
<td>
<?php
print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description);
if (isset($err['description'])) formerr($err['description']);
?>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventdate', 'calendar'); ?>:
</td>
<td>
<?php print_date_selector('startday', 'startmon', 'startyr', $form->timestart);?>
<?php print_string('eventtime', 'calendar');?>
<?php print_time_selector('starthr', 'startmin', $form->timestart) ?>
<?php if (isset($err['timestart'])) formerr($err['timestart']); ?>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventduration', 'calendar'); ?>:
</td>
<td>
<div>
<input type="radio" name="duration" value="0" id="duration_none" <?php if($form->duration == 0) echo 'checked="checked"'; ?>/>
<label for="duration_none"><?php print_string('durationnone', 'calendar'); ?></label>
</div>
<div>
<input type="radio" name="duration" value="1" id="duration_yes" <?php if($form->duration == 1) echo 'checked="checked"'; ?>/>
<label for="duration_yes"><?php print_string('durationuntil', 'calendar'); ?></label>
<?php print_date_selector('endday', 'endmon', 'endyr', $form->timestart + $form->timeduration);?>
<?php print_string('eventtime', 'calendar');?>
<?php print_time_selector('endhr', 'endmin', $form->timestart + $form->timeduration) ?>
<?php if (isset($err['timeduration'])) formerr($err['timeduration']); ?>
</div>
<div>
<input type="radio" name="duration" value="2" id="duration_minutes" <?php if($form->duration == 2) echo 'checked="checked"'; ?>/>
<label for="duration_minutes"><?php print_string('durationminutes', 'calendar'); ?></label>
<input type="text" name="minutes" size="3" value="<?php p($form->minutes); ?>" />
<?php if (isset($err['minutes'])) formerr($err['minutes']); ?>
</div>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;">
<?php print_string('eventrepeat', 'calendar'); ?>:
</td>
<td>
<div>
<input type="radio" name="repeat" value="0" id="repeat_none" <?php if($form->repeat == 0) echo 'checked="checked"'; ?>/>
<label for="repeat_none">
<?php print_string('repeatnone', 'calendar'); ?>
</label>
</div>
<div>
<input type="radio" name="repeat" value="1" id="repeat_yes" <?php if($form->repeat == 1) echo 'checked="checked"'; ?>/>
<label for="repeat_yes">
<?php print_string('repeatweeksl', 'calendar'); ?>
</label>
<input type="text" name="repeats" size="2" value="<?php p($form->repeats); ?>" />
<?php print_string('repeatweeksr', 'calendar'); ?>
<?php if (isset($err['repeats'])) formerr($err['repeats']); ?>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="2"><p><input type="submit" value="<?php print_string('savechanges') ?>"></p></td>
</tr>
</table>
<p>
<input type="hidden" name="courseid" value="<?php echo $form->courseid?>" />
<input type="hidden" name="groupid" value="<?php echo $form->groupid?>" />
<input type="hidden" name="userid" value="<?php echo $form->userid?>" />
<input type="hidden" name="modulename" value="<?php echo $form->modulename?>" />
<input type="hidden" name="eventtype" value="<?php echo $form->eventtype?>" />
<input type="hidden" name="instance" value="<?php echo $form->instance?>" />
<input type="hidden" name="format" value="<?php echo $form->format; ?>" />
<input type="hidden" name="action" value="new" />
<input type="hidden" name="type" value="defined" />
</p>
</form>
+37 -37
View File
@@ -1,37 +1,37 @@
<table class="formtable">
<form method="post" action="event.php">
<p>
<input type="hidden" name="action" value="new" />
<input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" />
</p>
<tr>
<td style="vertical-align: top; text-align: right;"><?php print_string('eventkind', 'calendar'); ?>:</td>
<td>
<?php if(!empty($allowed->user)) { ?><p><input type='radio' name='type' value='user' id='type_user' checked='checked' /><label for='type_user'><?php print_string('typeuser', 'calendar') ?></label></p>
<?php } ?>
<?php if(!empty($allowed->groups)) { ?><p><input type='radio' name='type' value='group' id='type_group' /><label for='type_group'><?php echo get_string('typegroup', 'calendar').' '.get_string('groupfor'); ?></label>
<select name='groupid'>
<option value=''></option>
<?php foreach($allowed->groups as $group) {?>
<option value='<?php echo $group->id?>' <?php if($group->id == $groupid) echo 'selected="selected"';?>><?php echo $group->name?></option>
<?php }?>
</select>
<?php } ?>
<?php if(!empty($allowed->courses)) { ?>
<p><input type='radio' name='type' value='course' id='type_course' /><input type="hidden" name="courseid" value="<?php echo($courseid) ?>" /><label for='type_course'><?php print_string('typecourse', 'calendar') ?></label></p>
<?php } ?>
<?php if(!empty($allowed->site)) { ?>
<p><input type='radio' name='type' value='site' id='type_site' /><label for='type_site'><?php print_string('typesite', 'calendar') ?></label></p>
<?php } ?>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<p><input type="submit" value=" <?php print_string('ok') ?> ">
<input type="button" onclick="document.location.href='view.php?view=upcoming';" value=" <?php print_string('cancel') ?> ">
</p>
</td>
</tr>
</form>
</table>
<table class="formtable">
<form method="post" action="event.php">
<p>
<input type="hidden" name="action" value="new" />
<input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" />
</p>
<tr>
<td style="vertical-align: top; text-align: right;"><?php print_string('eventkind', 'calendar'); ?>:</td>
<td>
<?php if(!empty($allowed->user)) { ?><p><input type='radio' name='type' value='user' id='type_user' checked='checked' /><label for='type_user'><?php print_string('typeuser', 'calendar') ?></label></p>
<?php } ?>
<?php if(!empty($allowed->groups)) { ?><p><input type='radio' name='type' value='group' id='type_group' /><label for='type_group'><?php echo get_string('typegroup', 'calendar').' '.get_string('groupfor'); ?></label>
<select name='groupid'>
<option value=''></option>
<?php foreach($allowed->groups as $group) {?>
<option value='<?php echo $group->id; ?>' <?php if($group->id == $groupid) echo 'selected="selected"';?>><?php echo $group->name; ?></option>
<?php }?>
</select>
<?php } ?>
<?php if(!empty($allowed->courses)) { ?>
<p><input type='radio' name='type' value='course' id='type_course' /><input type="hidden" name="courseid" value="<?php echo($courseid) ?>" /><label for='type_course'><?php print_string('typecourse', 'calendar') ?></label></p>
<?php } ?>
<?php if(!empty($allowed->site)) { ?>
<p><input type='radio' name='type' value='site' id='type_site' /><label for='type_site'><?php print_string('typesite', 'calendar') ?></label></p>
<?php } ?>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<p><input type="submit" value=" <?php print_string('ok') ?> ">
<input type="button" onclick="document.location.href='view.php?view=upcoming';" value=" <?php print_string('cancel') ?> ">
</p>
</td>
</tr>
</form>
</table>
+205 -173
View File
@@ -47,7 +47,7 @@ else {
}
define ('SECS_IN_DAY', 86400);
define ('CALENDAR_UPCOMING_DAYS', 14);
define ('CALENDAR_UPCOMING_DAYS', 21);
define ('CALENDAR_UPCOMING_MAXEVENTS', 10);
define ('CALENDAR_URL', $CFG->wwwroot.'/calendar/');
define ('CALENDAR_TF_24', '%H:%M');
@@ -120,17 +120,18 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
// will also set the $SESSION->cal_courses_shown variable to that one course. Otherwise, we 'd need to add extra
// arguments to this function.
$courses = array_diff($courses, array(1));
if(count($courses) == 1) {
$morehref = '&amp;course='.reset($courses);
}
else {
$morehref = '';
$morehref = '';
if(!empty($courses)) {
$courses = array_diff($courses, array(SITEID));
if(count($courses) == 1) {
$morehref = '&amp;course='.reset($courses);
}
}
// We want to have easy access by day, since the display is on a per-day basis.
// Arguments passed by reference.
calendar_events_by_day($events, $display->tstart, $eventsbyday, $durationbyday, $typesbyday);
//calendar_events_by_day($events, $display->tstart, $eventsbyday, $durationbyday, $typesbyday);
calendar_events_by_day($events, $m, $y, $eventsbyday, $durationbyday, $typesbyday);
$content .= '<table class="calendarmini">'; // Begin table
$content .= '<thead><tr>'; // Header row: day names
@@ -194,7 +195,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
$popupalt = '';
} else if ($event->courseid > 1 and empty($event->groupid)) { // Course event
$popupicon = $CFG->pixpath.'/c/course.gif';
$popupalt = '';
$popupalt = '';
} else if ($event->groupid) { // Group event
$popupicon = $CFG->pixpath.'/c/group.gif';
$popupalt = '';
@@ -202,10 +203,11 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
$popupicon = $CFG->pixpath.'/c/user.gif';
$popupalt = '';
}
$popupcontent .= '<div><img height=16 width=16 src=\\\''.$popupicon.'\\\' style=\\\'vertical-align: middle; margin-right: 4px;\\\' alt=\\\''.$popupalt.'\\\' /><a href=\\\''.$dayhref.'\\\'>'.addslashes(htmlspecialchars($event->name)).'</a></div>';
$popupcontent .= '<div><img height="16" width="16" src="'.$popupicon.'" style="vertical-align: middle; margin-right: 4px;" alt="'.$popupalt.'" /><a href="'.$dayhref.'">'.$event->name.'</a></div>';
}
$popupcaption = get_string('eventsfor', 'calendar', userdate($events[$eventid]->timestart, $strftimetimedayshort));
$popupcontent = str_replace("'", "\'", htmlspecialchars($popupcontent));
$popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"';
// Class and cell content
@@ -277,13 +279,12 @@ function calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxeve
$processed = 0;
$now = time(); // We 'll need this later
$nowsecs = $now % SECS_IN_DAY; // this too
$nowdays = $now - $nowsecs; // and this
$usermidnighttoday = usergetmidnight($now);
if ($fromtime) {
$display->tstart = $fromtime;
} else {
$display->tstart = usergetmidnight(time());
$display->tstart = $usermidnighttoday;
}
// This effectively adds as many days as needed, and the final SECS_IN_DAY - 1
@@ -305,80 +306,22 @@ function calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxeve
// will also set the $SESSION->cal_courses_shown variable to that one course. Otherwise, we 'd need to add extra
// arguments to this function.
$courses = array_diff($courses, array(1));
if(count($courses) == 1) {
$morehref = '&amp;course='.reset($courses);
}
else {
$morehref = '';
$morehref = '';
if(!empty($courses)) {
$courses = array_diff($courses, array(SITEID));
if(count($courses) == 1) {
$morehref = '&amp;course='.reset($courses);
}
}
if($events !== false) {
foreach($events as $event) {
if($processed >= $display->maxevents) break;
$startdate = usergetdate($event->timestart);
$enddate = usergetdate($event->timestart + $event->timeduration);
$starttimesecs = $event->timestart % SECS_IN_DAY; // Seconds after that day's midnight
$starttimedays = $event->timestart - $starttimesecs; // Timestamp of midnight of that day
if($event->timeduration) {
// To avoid doing the math if one IF is enough :)
$endtimesecs = ($event->timestart + $event->timeduration) % SECS_IN_DAY; // Seconds after that day's midnight
$endtimedays = ($event->timestart + $event->timeduration) - $endtimesecs; // Timestamp of midnight of that day
}
else {
$endtimesecs = $starttimesecs;
$endtimedays = $starttimedays;
if($processed >= $display->maxevents) {
break;
}
// Keep in mind: $starttimeXXX, $endtimeXXX and $nowXXX are all in GMT-based
// OK, now to get a meaningful display...
// First of all we have to construct a human-readable date/time representation
if($endtimedays < $nowdays || $endtimedays == $nowdays && $endtimesecs <= $nowsecs) {
// It has expired, so we don't care about duration
$day = calendar_day_representation($event->timestart + $event->timeduration, $now);
$time = calendar_time_representation($event->timestart + $event->timeduration);
// This var always has the printable time representation
$eventtime = '<span class="dimmed_text"><a class="dimmed" href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $enddate['mday'], $enddate['mon'], $enddate['year']).'">'.$day.'</a> ('.$time.')</span>';
}
else if($event->timeduration) {
// It has a duration
if($starttimedays == $endtimedays) {
// But it's all on one day
$day = calendar_day_representation($event->timestart, $now);
$timestart = calendar_time_representation($event->timestart);
$timeend = calendar_time_representation($event->timestart + $event->timeduration);
// Set printable representation
$eventtime = calendar_get_link_tag($day, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $enddate['mday'], $enddate['mon'], $enddate['year']).
' ('.$timestart.' -> '.$timeend.')';
}
else {
// It spans two or more days
$daystart = calendar_day_representation($event->timestart, $now);
$dayend = calendar_day_representation($event->timestart + $event->timeduration, $now);
$timestart = calendar_time_representation($event->timestart);
$timeend = calendar_time_representation($event->timestart + $event->timeduration);
// Set printable representation
$eventtime = calendar_get_link_tag($daystart, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $startdate['mday'], $startdate['mon'], $startdate['year']).
' ('.$timestart.') -> '.calendar_get_link_tag($dayend, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $enddate['mday'], $enddate['mon'], $enddate['year']).
' ('.$timeend.')';
}
}
else {
// It's an "instantaneous" event
$day = calendar_day_representation($event->timestart, $now);
$time = calendar_time_representation($event->timestart);
// Set printable representation
$eventtime = calendar_get_link_tag($day, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $startdate['mday'], $startdate['mon'], $startdate['year']).' ('.$time.')';
}
$eventtime = calendar_format_event_time($event, $now, $morehref);
$outkey = count($output);
@@ -450,7 +393,6 @@ function calendar_sql_where($tstart, $tend, $users, $groups, $courses, $withdura
if(is_bool($users) && is_bool($groups) && is_bool($courses)) {
return false;
}
if(is_array($users) && !empty($users)) {
// Events from a number of users
if(!empty($whereclause)) $whereclause .= ' OR';
@@ -466,6 +408,10 @@ function calendar_sql_where($tstart, $tend, $users, $groups, $courses, $withdura
if(!empty($whereclause)) $whereclause .= ' OR';
$whereclause .= ' userid != 0 AND courseid = 0 AND groupid = 0';
}
else if($users === false) {
// No user at all
// No need to do anything
}
if(is_array($groups) && !empty($groups)) {
// Events from a number of groups
if(!empty($whereclause)) $whereclause .= ' OR';
@@ -481,10 +427,18 @@ function calendar_sql_where($tstart, $tend, $users, $groups, $courses, $withdura
if(!empty($whereclause)) $whereclause .= ' OR ';
$whereclause .= ' groupid != 0';
}
if(is_array($courses) && !empty($courses)) {
// A number of courses
if(!empty($whereclause)) $whereclause .= ' OR';
$whereclause .= ' groupid = 0 AND courseid IN ('.implode(',', $courses).')';
if(is_array($courses)) {
// A number of courses (maybe none at all!)
if(!empty($courses)) {
if(!empty($whereclause)) {
$whereclause .= ' OR';
}
$whereclause .= ' groupid = 0 AND courseid IN ('.implode(',', $courses).')';
}
else {
// This means NO courses, not that we don't care!
// No need to do anything
}
}
else if(is_numeric($courses)) {
// One course
@@ -516,7 +470,8 @@ function calendar_sql_where($tstart, $tend, $users, $groups, $courses, $withdura
// Just basic time filtering
$whereclause = $timeclause;
}
return $whereclause;
return empty($whereclause) ? false : $whereclause;
}
function calendar_top_controls($type, $data) {
@@ -607,10 +562,15 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL) {
case 'event':
case 'upcoming':
case 'day':
case 'month':
$getvars = '&amp;from='.$type;
break;
case 'course':
$getvars = '&amp;from=course&amp;id='.$_GET['id'];
if (isset($_GET['id'])) {
$getvars = '&amp;from=course&amp;id='.$_GET['id'];
} else {
$getvars = '&amp;from=course';
}
if (isset($course->groupmode) and !$course->groupmode and $course->groupmodeforce) {
$groupevents = false;
}
@@ -637,7 +597,7 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL) {
$content .= '<td style="width: 8px;"></td><td><a href="'.CALENDAR_URL.'set.php?var=showcourses'.$getvars.'" title="'.get_string('tt_showcourse', 'calendar').'">'.get_string('courseevents', 'calendar').'</a></td>'."\n";
}
if(!isguest($USER->id)) {
if(!empty($USER) && !isguest()) {
$content .= "</tr>\n<tr>";
if($groupevents) {
@@ -683,27 +643,28 @@ function calendar_day_representation($tstamp, $now = false, $usecommonwords = tr
// To have it in one place, if a change is needed
$formal = userdate($tstamp, $shortformat);
// Reverse TZ compensation: make GMT stamps correspond to user's TZ
$tzfix = calendar_get_tz_offset();
$tstamp += $tzfix;
$now += $tzfix;
$eventdays = intval($tstamp / SECS_IN_DAY);
$nowdays = intval($now / SECS_IN_DAY);
$datestamp = usergetdate($tstamp);
$datenow = usergetdate($now);
if($usecommonwords == false) {
// We don't want words, just a date
return $formal;
}
else if($eventdays == $nowdays) {
else if($datestamp['year'] == $datenow['year'] && $datestamp['yday'] == $datenow['yday']) {
// Today
return get_string('today', 'calendar');
}
else if($eventdays == $nowdays - 1) {
else if(
($datestamp['year'] == $datenow['year'] && $datestamp['yday'] == $datenow['yday'] - 1 ) ||
($datestamp['year'] == $datenow['year'] - 1 && $datestamp['mday'] == 31 && $datestamp['mon'] == 12 && $datenow['yday'] == 1)
) {
// Yesterday
return get_string('yesterday', 'calendar');
}
else if($eventdays == $nowdays + 1) {
else if(
($datestamp['year'] == $datenow['year'] && $datestamp['yday'] == $datenow['yday'] + 1 ) ||
($datestamp['year'] == $datenow['year'] + 1 && $datenow['mday'] == 31 && $datenow['mon'] == 12 && $datestamp['yday'] == 1)
) {
// Tomorrow
return get_string('tomorrow', 'calendar');
}
@@ -758,28 +719,15 @@ function calendar_mktime_check($m, $d, $y, $default = false) {
}
}
function calendar_month_name($month) {
if(is_int($month)) {
// 1 ... 12 integer converted to month name
$months = array('january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december');
return get_string($months[$month - 1], 'calendar');
}
else {
return get_string(strtolower($month), 'calendar');
}
}
function calendar_wday_name($englishname) {
return get_string(strtolower($englishname), 'calendar');
}
function calendar_days_in_month($month, $year) {
return date('t', mktime(0, 0, 0, $month, 1, $year));
return intval(date('t', mktime(0, 0, 0, $month, 1, $year)));
}
function calendar_get_sideblock_upcoming($courses, $groups, $users, $daysinfuture, $maxevents) {
$events = calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxevents);
function calendar_get_sideblock_upcoming($events, $linkhref = NULL) {
$content = '';
$lines = count($events);
if (!$lines) {
@@ -792,7 +740,14 @@ function calendar_get_sideblock_upcoming($courses, $groups, $users, $daysinfutur
// That's an activity event, so let's provide the hyperlink
$content .= $events[$i]->referer;
} else {
$content .= $events[$i]->name;
if(!empty($linkhref)) {
$ed = usergetdate($events[$i]->timestart);
$href = calendar_get_link_href(CALENDAR_URL.$linkhref, $ed['mday'], $ed['mon'], $ed['year']);
$content .= '<a href="'.$href.'">'.$events[$i]->name.'</a>';
}
else {
$content .= $events[$i]->name;
}
}
$events[$i]->time = str_replace('->', '<br />->', $events[$i]->time);
$content .= '</div><div class="cal_event_date" style="text-align:right;">'.$events[$i]->time.'</div>';
@@ -820,7 +775,7 @@ function calendar_sub_month($month, $year) {
}
}
function calendar_events_by_day($events, $starttime, &$eventsbyday, &$durationbyday, &$typesbyday) {
function calendar_events_by_day($events, $month, $year, &$eventsbyday, &$durationbyday, &$typesbyday) {
$eventsbyday = array();
$typesbyday = array();
$durationbyday = array();
@@ -829,61 +784,66 @@ function calendar_events_by_day($events, $starttime, &$eventsbyday, &$durationby
return;
}
// Reverse TZ compensation: make GMT stamps (from event table) correspond to user's TZ
$tzfix = calendar_get_tz_offset();
foreach($events as $event) {
$eventdaystart = 1 + floor(($event->timestart + $tzfix - $starttime) / SECS_IN_DAY);
$eventdayend = 1 + floor(($event->timestart + $event->timeduration + $tzfix - $starttime) / SECS_IN_DAY);
// Give the event to its day
$eventsbyday[$eventdaystart][] = $event->id;
$startdate = usergetdate($event->timestart);
$enddate = usergetdate($event->timestart + $event->timeduration);
// Mark the day as having such an event
if($event->courseid == 1 && $event->groupid == 0) {
$typesbyday[$eventdaystart]['startglobal'] = true;
}
else if($event->courseid > 1 && $event->groupid == 0) {
$typesbyday[$eventdaystart]['startcourse'] = true;
}
else if($event->groupid) {
$typesbyday[$eventdaystart]['startgroup'] = true;
}
else if($event->userid) {
$typesbyday[$eventdaystart]['startuser'] = true;
// Simple arithmetic: $year * 13 + $month is a distinct integer for each distinct ($year, $month) pair
if(!($startdate['year'] * 13 + $startdate['mon'] <= $year * 13 + $month) && ($enddate['year'] * 13 + $enddate['mon'] >= $year * 13 + $month)) {
// Out of bounds
continue;
}
// Mark all days up to and including ending day as duration
if($eventdaystart < $eventdayend) {
$eventdaystart = intval($startdate['mday']);
// Normally this should be
if($startdate['mon'] == $month && $startdate['year'] == $year) {
// Give the event to its day
$eventsbyday[$eventdaystart][] = $event->id;
// $bound = min($eventdayend, $display->maxdays);
// for($i = $eventdaystart + 1; $i <= $bound; ++$i) {
// So that we don't go on marking days after the end of
// the month if the event continues. However, this code
// has moved and now we don't have access to $display->maxdays.
// In order to save the overhead of recomputing it, we just
// use this "dumb" approach. Anyway, the function that called
// us already knows up to what day it should display.
for($i = $eventdaystart + 1; $i <= $eventdayend; ++$i) {
$durationbyday[$i][] = $event->id;
if($event->courseid == 1 && $event->groupid == 0) {
$typesbyday[$i]['durationglobal'] = true;
}
else if($event->courseid > 1 && $event->groupid == 0) {
$typesbyday[$i]['durationcourse'] = true;
}
else if($event->groupid) {
$typesbyday[$i]['durationgroup'] = true;
}
else if($event->userid) {
$typesbyday[$i]['durationuser'] = true;
}
// Mark the day as having such an event
if($event->courseid == 1 && $event->groupid == 0) {
$typesbyday[$eventdaystart]['startglobal'] = true;
}
else if($event->courseid > 1 && $event->groupid == 0) {
$typesbyday[$eventdaystart]['startcourse'] = true;
}
else if($event->groupid) {
$typesbyday[$eventdaystart]['startgroup'] = true;
}
else if($event->userid) {
$typesbyday[$eventdaystart]['startuser'] = true;
}
}
if($event->timeduration == 0) {
// Proceed with the next
continue;
}
// The event starts on $month $year or before. So...
$lowerbound = $startdate['mon'] == $month && $startdate['year'] == $year ? intval($startdate['mday']) : 0;
// Also, it ends on $month $year or later...
$upperbound = $enddate['mon'] == $month && $enddate['year'] == $year ? intval($enddate['mday']) : calendar_days_in_month($month, $year);
// Mark all days between $lowerbound and $upperbound (inclusive) as duration
for($i = $lowerbound + 1; $i <= $upperbound; ++$i) {
$durationbyday[$i][] = $event->id;
if($event->courseid == 1 && $event->groupid == 0) {
$typesbyday[$i]['durationglobal'] = true;
}
else if($event->courseid > 1 && $event->groupid == 0) {
$typesbyday[$i]['durationcourse'] = true;
}
else if($event->groupid) {
$typesbyday[$i]['durationgroup'] = true;
}
else if($event->userid) {
$typesbyday[$i]['durationuser'] = true;
}
}
}
return;
}
@@ -921,11 +881,21 @@ function calendar_session_vars() {
$SESSION->cal_show_course = true;
}
if(!isset($SESSION->cal_show_user)) {
$SESSION->cal_show_user = isset($USER->id) ? $USER->id : false;
$SESSION->cal_show_user = true;
}
if(empty($SESSION->cal_courses_shown)) {
$SESSION->cal_courses_shown = calendar_get_default_courses(true);
}
if(empty($SESSION->cal_users_shown)) {
// The empty() instead of !isset() here makes a whole world of difference,
// as it will automatically change to the user's id when the user first logs
// in. With !isset(), it would never do that.
$SESSION->cal_users_shown = isset($USER->id) ? $USER->id : false;
}
else if(is_numeric($SESSION->cal_users_shown) && !empty($USER->id) && $SESSION->cal_users_shown != $USER->id) {
// Follow the white rabbit, for example if a teacher logs in as a student
$SESSION->cal_users_shown = $USER->id;
}
}
function calendar_overlib_html() {
@@ -976,22 +946,18 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
else if(is_array($courseeventsfrom)) {
$courses = array_keys($courseeventsfrom);
}
$courses = array_diff($courses, array(1));
$courses = array_diff($courses, array(SITEID));
}
else if($SESSION->cal_show_global) {
$courses = array(1);
$courses = array(SITEID);
}
else {
$courses = false;
}
if($SESSION->cal_show_user || $ignorefilters) {
// This ignores the "which user to see" setting
// The functionality to do that does exist, but this was
// the most painless way to solve bug 1323. And anyway,
// it wasn't being used anywhere.
$user = $USER->id;
//$user = $SESSION->cal_show_user;
// This doesn't work for arrays yet (maybe someday it will)
$user = $SESSION->cal_users_shown;
}
else {
$user = false;
@@ -1009,7 +975,7 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
// For each course...
foreach($groupcourses as $courseid) {
// If the user is an editing teacher in there,
if(isteacheredit($courseid, $USER->id)) {
if(!empty($USER->id) && isteacheredit($courseid, $USER->id)) {
// Show events from all groups
if(($grouprecords = get_groups($courseid)) !== false) {
$grouparray = array_merge($grouparray, array_keys($grouprecords));
@@ -1035,6 +1001,10 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
function calendar_edit_event_allowed($event) {
global $USER;
if(empty($USER) || isguest($USER->id)) {
return false;
}
if (isadmin($USER->id)) return true; // Admins are allowed anything
if ($event->courseid > 1) {
@@ -1071,7 +1041,7 @@ function calendar_get_default_courses($ignoreref = false) {
}
$courses = array();
if(isadmin($USER->id)) {
if(!empty($USER->id) && isadmin($USER->id)) {
$courses = get_records_sql('SELECT id, 1 FROM '.$CFG->prefix.'course');
return $courses;
}
@@ -1131,7 +1101,7 @@ function calendar_preferences_button() {
global $CFG, $USER;
// Guests have no preferences
if (empty($USER->id) or isguest()) {
if (empty($USER->id) || isguest()) {
return '';
}
@@ -1140,6 +1110,68 @@ function calendar_preferences_button() {
"<input type=\"submit\" value=\"".get_string("preferences", "calendar")." ...\" /></form>";
}
function calendar_format_event_time($event, $now, $morehref, $usecommonwords = true) {
$startdate = usergetdate($event->timestart);
$enddate = usergetdate($event->timestart + $event->timeduration);
$usermidnightstart = usergetmidnight($event->timestart);
if($event->timeduration) {
// To avoid doing the math if one IF is enough :)
$usermidnightend = usergetmidnight($event->timestart + $event->timeduration);
}
else {
$usermidnightend = $usermidnightstart;
}
// OK, now to get a meaningful display...
// First of all we have to construct a human-readable date/time representation
if($event->timestart + $event->timeduration < $now) {
// It has expired, so we don't care about duration
$day = calendar_day_representation($event->timestart + $event->timeduration, $now, $usecommonwords);
$time = calendar_time_representation($event->timestart + $event->timeduration);
// This var always has the printable time representation
$eventtime = '<span class="dimmed_text"><a class="dimmed" href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $enddate['mday'], $enddate['mon'], $enddate['year']).'">'.$day.'</a> ('.$time.')</span>';
}
else if($event->timeduration) {
// It has a duration
if($usermidnightstart == $usermidnightend) {
// But it's all on the same day
$day = calendar_day_representation($event->timestart, $now, $usecommonwords);
$timestart = calendar_time_representation($event->timestart);
$timeend = calendar_time_representation($event->timestart + $event->timeduration);
// Set printable representation
$eventtime = calendar_get_link_tag($day, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $enddate['mday'], $enddate['mon'], $enddate['year']).
' ('.$timestart.' -> '.$timeend.')';
}
else {
// It spans two or more days
$daystart = calendar_day_representation($event->timestart, $now, $usecommonwords);
$dayend = calendar_day_representation($event->timestart + $event->timeduration, $now, $usecommonwords);
$timestart = calendar_time_representation($event->timestart);
$timeend = calendar_time_representation($event->timestart + $event->timeduration);
// Set printable representation
$eventtime = calendar_get_link_tag($daystart, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $startdate['mday'], $startdate['mon'], $startdate['year']).
' ('.$timestart.') -> '.calendar_get_link_tag($dayend, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $enddate['mday'], $enddate['mon'], $enddate['year']).
' ('.$timeend.')';
}
}
else {
// It's an "instantaneous" event
$day = calendar_day_representation($event->timestart, $now, $usecommonwords);
$time = calendar_time_representation($event->timestart);
// Set printable representation
$eventtime = calendar_get_link_tag($day, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $startdate['mday'], $startdate['mon'], $startdate['year']).' ('.$time.')';
}
return $eventtime;
}
if(!function_exists('array_diff_assoc')) {
// PHP < 4.3.0
function array_diff_assoc($source, $diff) {
+4 -5
View File
@@ -1,9 +1,8 @@
<?PHP // $Id$
// preferences.php - user prefs for calendar
require("../config.php");
require_once('lib.php');
require_once('../config.php');
require_once($CFG->dirroot.'/calendar/lib.php');
if (isset($SESSION->cal_course_referer)) {
if (! $course = get_record("course", "id", $SESSION->cal_course_referer)) {
@@ -17,7 +16,7 @@
/// If data submitted, then process and store.
if ($form = data_submitted()) {
if ($form = data_submitted()) {
print_header();
foreach ($form as $preference => $value) {
switch ($preference) {
@@ -79,6 +78,6 @@
include("preferences.html");
print_simple_box_end();
print_footer($course->id);
print_footer($course);
?>
+5 -9
View File
@@ -39,9 +39,7 @@
/////////////////////////////////////////////////////////////////////////////
require_once('../config.php');
require_once('lib.php');
require_login();
require_once($CFG->dirroot.'/calendar/lib.php');
require_variable($_GET['from']);
require_variable($_GET['var']);
@@ -52,6 +50,9 @@
optional_variable($_GET['cal_y']);
switch($_GET['var']) {
case 'setuser':
// Not implemented yet (or possibly at all)
break;
case 'setcourse':
$id = intval($_GET['id']);
if($id == 0) {
@@ -85,12 +86,7 @@
$SESSION->cal_show_global = !$SESSION->cal_show_global;
break;
case 'showuser':
if($SESSION->cal_show_user) {
$SESSION->cal_show_user = false;
}
else {
$SESSION->cal_show_user = $USER->id;
}
$SESSION->cal_show_user = !$SESSION->cal_show_user;
break;
}
+48 -32
View File
@@ -41,10 +41,8 @@
// Display the calendar page.
require_once('../config.php');
require_once('lib.php');
require_once('../course/lib.php');
require_login();
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/calendar/lib.php');
optional_variable($_GET['view'], 'upcoming');
optional_variable($_GET['course'], 0);
@@ -92,26 +90,35 @@
}
// If a course has been supplied in the URL, change the filters to show that one
if(!empty($_GET['course'])) {
if(is_numeric($_GET['course']) && $_GET['course'] > 0 && record_exists('course', 'id', $_GET['course'])) {
$SESSION->cal_courses_shown = intval($_GET['course']);
calendar_set_referring_course($SESSION->cal_courses_shown);
if (!empty($_GET['course'])) {
if (is_numeric($_GET['course']) && $_GET['course'] > 0 && record_exists('course', 'id', $_GET['course'])) {
if ($_GET['course'] == 1) {
// If coming from the home page, show all courses
$SESSION->cal_courses_shown = calendar_get_default_courses(true);
calendar_set_referring_course(0);
} else {
// Otherwise show just this one
$SESSION->cal_courses_shown = intval($_GET['course']);
calendar_set_referring_course($SESSION->cal_courses_shown);
}
}
}
if(isguest($USER->id)) {
if (empty($USER) or isguest()) {
$defaultcourses = calendar_get_default_courses();
calendar_set_filters($courses, $groups, $users, $defaultcourses, $defaultcourses);
}
else {
} else {
calendar_set_filters($courses, $groups, $users);
}
// Let's see if we are supposed to provide a referring course link
// but NOT for the "main page" course
if($SESSION->cal_course_referer > 1 &&
($shortname = get_field('course', 'shortname', 'id', $SESSION->cal_course_referer)) !== false) {
// If we know about the referring course, show a return link
if ($SESSION->cal_course_referer > 1 &&
($shortname = get_field('course', 'shortname', 'id', $SESSION->cal_course_referer)) !== false) {
// If we know about the referring course, show a return link and ALSO require login!
require_login();
$nav = '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$SESSION->cal_course_referer.'">'.$shortname.'</a> -> '.$nav;
}
@@ -150,7 +157,7 @@
// START: Last column (3-month display)
echo '<td style="vertical-align: top; width: 180px;">';
print_side_block_start(get_string('monthlyview', 'calendar'), '', 'sideblockmain');
print_side_block_start(get_string('monthlyview', 'calendar'));
list($prevmon, $prevyr) = calendar_sub_month($mon, $yr);
list($nextmon, $nextyr) = calendar_add_month($mon, $yr);
$getvars = 'cal_d='.$day.'&amp;cal_m='.$mon.'&amp;cal_y='.$yr; // For filtering
@@ -176,7 +183,7 @@
function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
global $CFG, $THEME, $db;
global $CFG, $THEME, $USER;
if (!checkdate($m, $d, $y)) {
$now = usergetdate(time());
@@ -191,9 +198,8 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
$events = calendar_get_upcoming($courses, $groups, $users, 1, 100, $starttime);
// New event button
if (isguest()) {
if (empty($USER) || isguest()) {
$text = get_string('dayview', 'calendar').': '.calendar_course_filter_selector($getvars);
} else {
$text = '<div style="float: left;">'.get_string('dayview', 'calendar').': '.
calendar_course_filter_selector($getvars).'</div><div style="float: right;">';
@@ -206,7 +212,7 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
$text.= '</form></div>';
}
print_side_block_start($text, '', 'mycalendar');
print_side_block_start($text, array('class' => 'mycalendar'));
echo '<p>'.calendar_top_controls('day', array('d' => $d, 'm' => $m, 'y' => $y)).'</p>';
if (empty($events)) {
@@ -220,7 +226,17 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
// First, print details about events that start today
foreach ($events as $event) {
if ($event->timestart >= $starttime && $event->timestart <= $endtime) { // Print it now
unset($event->time);
/*
$dayend = calendar_day_representation($event->timestart + $event->timeduration);
$timeend = calendar_time_representation($event->timestart + $event->timeduration);
$enddate = usergetdate($event->timestart + $event->timeduration);
// Set printable representation
echo calendar_get_link_tag($dayend, CALENDAR_URL.'view.php?view=day'.$morehref.'&amp;', $enddate['mday'], $enddate['mon'], $enddate['year']).' ('.$timeend.')';
*/
//unset($event->time);
$event->time = calendar_format_event_time($event, time(), '', false);
calendar_print_event($event);
} else { // Save this for later
@@ -232,6 +248,7 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
if (!empty($underway)) {
echo '<p style="text-align: center;"><strong>'.get_string('spanningevents', 'calendar').':</strong></p>';
foreach ($underway as $event) {
$event->time = calendar_format_event_time($event, time(), '', false);
calendar_print_event($event);
}
}
@@ -299,10 +316,10 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
}
// Extract information: events vs. time
calendar_events_by_day($events, $display->tstart, $eventsbyday, $durationbyday, $typesbyday);
calendar_events_by_day($events, $m, $y, $eventsbyday, $durationbyday, $typesbyday);
// New event button
if(isguest()) {
if(empty($USER) || isguest()) {
$text = get_string('detailedmonthview', 'calendar').': '.calendar_course_filter_selector($getvars);
}
else {
@@ -315,7 +332,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
$text.= '</form></div>';
}
print_side_block_start($text, '', 'mycalendar');
print_side_block_start($text, array('class' => 'mycalendar'));
echo calendar_top_controls('month', array('m' => $m, 'y' => $y));
@@ -465,7 +482,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
echo "</tr>\n";
if(!isguest($USER->id)) {
if(!empty($USER) && !isguest()) {
echo '<tr>';
// Group events
if($SESSION->cal_show_groups) {
@@ -497,7 +514,7 @@ function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $
$events = calendar_get_upcoming($courses, $groups, $users, $futuredays, $maxevents);
// New event button
if(isguest()) {
if(empty($USER) || isguest()) {
$text = get_string('upcomingevents', 'calendar').': '.calendar_course_filter_selector('from=upcoming');
} else {
@@ -512,7 +529,7 @@ function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $
$text.= '</form></div>';
}
print_side_block_start($text, '', 'mycalendar');
print_side_block_start($text, array('class' => 'mycalendar'));
if ($events) {
foreach ($events as $event) {
calendar_print_event($event);
@@ -561,11 +578,11 @@ function calendar_print_event($event) {
if (calendar_edit_event_allowed($event)) {
echo '<div align="right">';
if (empty($event->cmid)) {
$editlink = CALENDAR_URL.'event.php?action=edit&amp;id='.$event->id;
$editlink = CALENDAR_URL.'event.php?action=edit&amp;id='.$event->id;
$deletelink = CALENDAR_URL.'event.php?action=delete&amp;id='.$event->id;
} else {
$editlink = "$CFG->wwwroot/mod/$event->modulename/view.php?id=$event->cmid";
$deletelink = "$CFG->wwwroot/course/mod.php?delete=$event->cmid";
$editlink = $CFG->wwwroot.'/course/mod.php?update='.$event->cmid.'&amp;return=true';
$deletelink = $CFG->wwwroot.'/course/mod.php?delete='.$event->cmid;
}
echo ' <a href="'.$editlink.'"><img
src="'.$CFG->pixpath.'/t/edit.gif" alt="'.get_string('tt_editevent', 'calendar').'"
@@ -583,13 +600,12 @@ function calendar_print_event($event) {
function calendar_course_filter_selector($getvars = '') {
global $USER, $SESSION;
if (isguest($USER->id)) {
if (empty($USER) or isguest()) {
return '';
}
if (isadmin($USER->id)) {
if (isadmin()) {
$courses = get_courses('all', 'c.shortname');
} else {
$courses = get_my_courses($USER->id, 'shortname');
}
+28 -21
View File
@@ -45,26 +45,26 @@ unset($CFG); // Ignore this line
// A special case exists when using PostgreSQL databases via sockets. //
// Define dbhost as follows, leaving dbname, dbuser, dbpass BLANK!: //
// $CFG->dbhost = " user='muser' password='mpass' dbname='mdata'"; //
//
//
$CFG->dbtype = 'mysql'; // mysql or postgres7 (for now)
$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com
$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com
$CFG->dbname = 'moodle'; // database name, eg moodle
$CFG->dbuser = 'username'; // your database username
$CFG->dbpass = 'password'; // your database password
$CFG->prefix = 'mdl_'; // Prefix to use for all table names
$CFG->dbpersist = false; // Should database connections be reused?
// "false" is the most stable setting
// "true" can improve performance sometimes
// "false" is the most stable setting
// "true" can improve performance sometimes
//=========================================================================
// 2. WEB SITE LOCATION
//=========================================================================
// Now you need to tell Moodle where it is located. Specify the full
// web address to where moodle has been installed. If your web site
// is accessible via multiple URLs then choose the most natural one
// web address to where moodle has been installed. If your web site
// is accessible via multiple URLs then choose the most natural one
// that your students would use. Do not include a trailing slash
$CFG->wwwroot = 'http://example.com/moodle';
@@ -87,8 +87,8 @@ $CFG->dirroot = '/home/example/public_html/moodle';
// 4. DATA FILES LOCATION
//=========================================================================
// Now you need a place where Moodle can save uploaded files. This
// directory should be readable AND WRITEABLE by the web server user
// (usually 'nobody' or 'apache'), but it should not be accessible
// directory should be readable AND WRITEABLE by the web server user
// (usually 'nobody' or 'apache'), but it should not be accessible
// directly via the web.
//
// - On hosting systems you might need to make sure that your "group" has
@@ -103,9 +103,9 @@ $CFG->dataroot = '/home/example/moodledata';
// 5. DATA FILES PERMISSIONS
//=========================================================================
// The following parameter sets the permissions of new directories
// created by Moodle within the data directory. The format is in
// created by Moodle within the data directory. The format is in
// octal format (as used by the Unix utility chmod, for example).
// The default is usually OK, but you may want to change it to 0750
// The default is usually OK, but you may want to change it to 0750
// if you are concerned about world-access to the files (you will need
// to make sure the web server process (eg Apache) can access the files.
// NOTE: the prefixed 0 is important, and don't use quotes.
@@ -116,10 +116,10 @@ $CFG->directorypermissions = 0777;
//=========================================================================
// 6. DIRECTORY LOCATION (most people can just ignore this setting)
//=========================================================================
// A very few webhosts use /admin as a special URL for you to access a
// control panel or something. Unfortunately this conflicts with the
// standard location for the Moodle admin pages. You can fix this by
// renaming the admin directory in your installation, and putting that
// A very few webhosts use /admin as a special URL for you to access a
// control panel or something. Unfortunately this conflicts with the
// standard location for the Moodle admin pages. You can fix this by
// renaming the admin directory in your installation, and putting that
// new name here. eg "moodleadmin". This will fix admin links in Moodle.
$CFG->admin = 'admin';
@@ -133,7 +133,7 @@ $CFG->admin = 'admin';
//
//
// Prevent users from updating their profile images
// $CFG->disableuserimages = true;
// $CFG->disableuserimages = true;
//
// Prevent scheduled backups from operating (and hide the GUI for them)
// Useful for webhost operators who have alternate methods of backups
@@ -144,8 +144,8 @@ $CFG->admin = 'admin';
// $CFG->restrictusers = 'teacher,fred,jim';
//
// Turning this on will make Moodle filter more than usual, including
// forum subjects, activity names and so on (in ADDITION to the normal
// texts like forum postings, journals etc). This is mostly only useful
// forum subjects, activity names and so on (in ADDITION to the normal
// texts like forum postings, journals etc). This is mostly only useful
// when using the multilang filter. This feature may not be complete.
// $CFG->filterall = true;
//
@@ -157,12 +157,19 @@ $CFG->admin = 'admin';
// The names here should all be existing blocks in the "blocks" directory.
// $CFG->defaultblocks = "participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity";
//
// This setting will put Moodle in Unicode mode. It's very new and
// This setting will put Moodle in Unicode mode. It's very new and
// most likely doesn't work yet. THIS IS FOR DEVELOPERS ONLY, IT IS
// NOT RECOMMENDED FOR PRODUCTION SITES
// $CFG->unicode = true;
//
// To use spell-checking (experimental) define a path below to your
// locally-installed copy of Aspell (0.50.1 or newer)
// $CFG->aspellpath = '/usr/bin/aspell'; // *nix
// $CFG->aspellpath = '"c:\path\to\aspell\aspell.exe"'; // Windows
//
// Seconds for files to remain in caches. Decrease this if you are worried
// about students being served outdated versions of uploaded files.
// $CFG->filelifetime = 86400;
//=========================================================================
// ALL DONE! To continue installation, visit your main page with a browser
@@ -180,6 +187,6 @@ if (file_exists("$CFG->dirroot/lib/setup.php")) { // Do not edit
}
die;
}
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>
+21 -8
View File
@@ -57,7 +57,14 @@
/// Resort the category if requested
if (!empty($_GET['resort'])) {
fix_course_sortorder($category->id, "fullname ASC");
if ($courses = get_courses($category->id, "fullname ASC")) {
$count = 0;
foreach ($courses as $course) {
set_field('course', 'sortorder', $count, 'id', $course->id);
$count++;
}
fix_course_sortorder();
}
}
}
@@ -73,16 +80,16 @@
if ($creatorediting) {
if ($adminediting) {
print_header("$site->shortname: $category->name", "$site->fullname: $strcourses",
print_header("$site->shortname: $category->name", "$site->fullname: $strcourses",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> ".
"<a href=\"index.php\">$strcategories</a> -> $category->name",
"", "", true, $navbaritem);
} else {
print_header("$site->shortname: $category->name", "$site->fullname: $strcourses",
print_header("$site->shortname: $category->name", "$site->fullname: $strcourses",
"<a href=\"index.php\">$strcategories</a> -> $category->name", "", "", true, $navbaritem);
}
} else {
print_header("$site->shortname: $category->name", "$site->fullname: $strcourses",
print_header("$site->shortname: $category->name", "$site->fullname: $strcourses",
"<a href=\"index.php\">$strcategories</a> -> $category->name", "", "", true, $navbaritem);
}
@@ -126,8 +133,7 @@
if (!set_field("course", "category", $destcategory->id, "id", $course->id)) {
notify("An error occurred - course not moved!");
}
fix_course_sortorder($destcategory->id);
fix_course_sortorder($category->id);
fix_course_sortorder();
$category = get_record("course_categories", "id", $category->id);
}
}
@@ -202,7 +208,7 @@
}
}
fix_course_sortorder($category->id);
fix_course_sortorder();
} // End of editing stuff
@@ -230,6 +236,8 @@
/// Print out all the courses
unset($course); // To avoid unwanted language effects later
$courses = get_courses_page($category->id, "c.sortorder ASC", "c.*", $totalcount, $page*$perpage, $perpage);
$numcourses = count($courses);
@@ -254,7 +262,8 @@
$strhide = get_string("hide");
$strshow = get_string("show");
$strsummary = get_string("summary");
$strassignteachers = get_string("assignteachers");
$strsettings = get_string("settings");
$strassignteachers = get_string("assignteachers");
$strallowguests = get_string("allowguests");
$strrequireskey = get_string("requireskey");
@@ -292,6 +301,8 @@
if ($creatorediting) {
if ($adminediting) {
echo "<td>";
echo "<a title=\"$strsettings\" href=\"$CFG->wwwroot/course/edit.php?id=$acourse->id\"><img".
" src=\"$pixpath/t/edit.gif\" height=11 width=11 border=0></a> ";
echo "<a title=\"$strassignteachers\" href=\"$CFG->wwwroot/course/teacher.php?id=$acourse->id\"><img".
" src=\"$pixpath/t/user.gif\" height=11 width=11 border=0></a> ";
echo "<a title=\"$strdelete\" href=\"delete.php?id=$acourse->id\"><img".
@@ -331,6 +342,8 @@
} else if (isteacheredit($acourse->id)) {
echo "<td>";
echo "<a title=\"$strsettings\" href=\"$CFG->wwwroot/course/edit.php?id=$acourse->id\"><img".
" src=\"$pixpath/t/edit.gif\" height=11 width=11 border=0></a> ";
echo "<a title=\"$strassignteachers\" href=\"$CFG->wwwroot/course/teacher.php?id=$acourse->id\"><img".
" src=\"$pixpath/t/user.gif\" height=11 width=11 border=0></a> ";
}
+35
View File
@@ -12,6 +12,9 @@
if (!isset($form->lang)) {
$form->lang = '';
}
if (!isset($form->enrolperiod)) {
$form->enrolperiod = 0;
}
?>
<FORM METHOD="post" action="edit.php" NAME="form">
<table cellpadding=9 cellspacing=0 >
@@ -40,6 +43,13 @@
<?php if (isset($err["shortname"])) formerr($err["shortname"]); ?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("idnumber") ?>:</td>
<td><input type="text" name="idnumber" maxlength="100" size="10" value="<?php p($form->idnumber) ?>">
<?php helpbutton("courseidnumber", get_string("idnumber")) ?>
<?php if (isset($err["idnumber"])) formerr($err["idnumber"]); ?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("summary") ?>:</td>
<td><?php
@@ -64,6 +74,20 @@
helpbutton("coursestartdate", get_string("startdate"));
?></td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("enrolperiod") ?>:</td>
<td>
<?php
$periodmenu[0] = get_string('unlimited');
for ($i=1; $i<=365; $i++) {
$seconds = $i * 86400;
$periodmenu[$seconds] = get_string('numdays', '', $i);
}
choose_from_menu ($periodmenu, "enrolperiod", "$form->enrolperiod", "");
helpbutton("enrolperiod", get_string("enrolperiod"));
?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("numberweeks") ?>:</td>
<td><?php
@@ -122,6 +146,17 @@
helpbutton("guestaccess", get_string("opentoguests")); ?>
</td>
</tr>
<?php
if ($CFG->enrol != 'internal') {
?>
<tr valign=top>
<td align="right"><P><?php print_string("cost") ?>:</td>
<td><input type="text" name="cost" maxlength="6" size=6 value="<?php p($form->cost) ?>">
</td>
</tr>
<?php
}
?>
<tr valign=top>
<td align="right"><P><?php print_string("hiddensections") ?>:</td>
<td><?php
+24 -13
View File
@@ -1,9 +1,9 @@
<?PHP // $Id$
// Edit course settings
require_once("../config.php");
require_once("lib.php");
require_once("$CFG->libdir/blocklib.php");
require_once("../config.php");
require_once("lib.php");
require_once("$CFG->libdir/blocklib.php");
optional_variable($id, 0); // course id
optional_variable($category, 0); // category id
@@ -36,9 +36,13 @@
/// If data submitted, then process and store.
if ($form = data_submitted()) {
if ($form = data_submitted()) {
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
if (empty($course)) {
check_for_restricted_user($USER->username, "$CFG->wwwroot");
} else {
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
}
$form->startdate = make_timestamp($form->startyear, $form->startmonth, $form->startday);
@@ -49,10 +53,15 @@
$form->timemodified = time();
if (!empty($course)) {
// Test for and remove blocks which aren't appropriate anymore
$form->blockinfo = $course->blockinfo;
block_remove_inappropriate_from_course($form);
// Update with the new data
if (update_record("course", $form)) {
add_to_log($course->id, "course", "update", "edit.php?id=$id", "");
fix_course_sortorder($form->category);
redirect("view.php?id=$course->id", get_string("changessaved"));
fix_course_sortorder();
redirect("view.php?id=$course->id", get_string("changessaved"));
} else {
error("Serious Error! Could not update the course record! (id = $form->id)");
}
@@ -73,7 +82,7 @@
$section->section = 0;
$section->id = insert_record("course_sections", $section);
fix_course_sortorder($form->category);
fix_course_sortorder();
add_to_log($newcourseid, "course", "new", "view.php?id=$newcourseid", "");
if (isadmin()) { // Redirect admin to add teachers
@@ -101,14 +110,14 @@
error("Serious Error! Could not create the new course!");
}
}
die;
die;
} else {
foreach ($err as $key => $value) {
$focus = "form.$key";
}
}
}
}
/// Otherwise fill and print the form.
@@ -124,6 +133,8 @@
$form->password = "";
$form->guest = 0;
$form->numsections = 10;
$form->idnumber = '';
$form->cost = '';
$form->newsitems = 5;
$form->showgrades = 1;
$form->groupmode = 0;
@@ -167,7 +178,7 @@
$strcategories = get_string("categories");
if (!empty($course)) {
print_header($streditcoursesettings, "$course->fullname",
print_header($streditcoursesettings, "$course->fullname",
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>
-> $streditcoursesettings", $focus);
} else {
@@ -178,13 +189,13 @@
print_heading($streditcoursesettings);
print_simple_box_start("center", "", "$THEME->cellheading");
include("edit.html");
include("edit.html");
print_simple_box_end();
print_footer($course);
if ($usehtmleditor) {
use_html_editor();
use_html_editor("summary");
}
exit;
+1 -1
View File
@@ -58,7 +58,7 @@
print_simple_box_end();
if ($usehtmleditor) {
use_html_editor();
use_html_editor("summary");
}
print_footer($course);
+28 -95
View File
@@ -1,16 +1,16 @@
<?PHP // $Id$
// Asks for a course pass key, once only, and enrols that user
// Depending on the current enrolment method, this page
// presents the user with whatever they need to know when
// they try to enrol in a course.
require_once("../config.php");
require_once("lib.php");
require_once("$CFG->dirroot/enrol/$CFG->enrol/enrol.php");
require_variable($id);
require_login();
$strloginto = get_string("loginto", "", $course->shortname);
$strcourses = get_string("courses");
if (! $course = get_record("course", "id", $id) ) {
error("That's an invalid course id");
}
@@ -21,57 +21,17 @@
check_for_restricted_user($USER->username);
/// Check the submitted enrollment key if there is one
$enrol = new enrolment_plugin();
if ($form = data_submitted()) {
if ($form->password == $course->password) {
if (isguest()) {
add_to_log($course->id, "course", "guest", "view.php?id=$course->id", $_SERVER['REMOTE_ADDR']);
} else if (!record_exists("user_students", "userid", $USER->id, "course", $course->id)) {
if (! enrol_student($USER->id, $course->id)) {
error("An error occurred while trying to enrol you.");
}
$subject = get_string("welcometocourse", "", $course->fullname);
$a->coursename = $course->fullname;
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id";
$message = get_string("welcometocoursetext", "", $a);
if (! $teacher = get_teacher($course->id)) {
$teacher = get_admin();
}
email_to_user($USER, $teacher, $subject, $message);
add_to_log($course->id, "course", "enrol", "view.php?id=$course->id", "$USER->id");
}
$USER->student[$course->id] = true;
if ($SESSION->wantsurl) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
} else {
$destination = "$CFG->wwwroot/course/view.php?id=$course->id";
}
redirect($destination);
} else {
$errormsg = get_string("enrolmentkeyhint", "", substr($course->password,0,1));
}
}
/// Refreshing enrolment data in the USER session
$enrol->get_student_courses($USER);
$enrol->get_teacher_courses($USER);
/// Double check just in case they are actually enrolled already
/// This might occur if they were manually enrolled during this session
if (record_exists("user_students", "userid", $USER->id, "course", $course->id)) {
$USER->student[$course->id] = true;
/// This might occur if they were enrolled during this session
if ( !empty($USER->student[$course->id]) or !empty($USER->teacher[$course->id]) ) {
if ($SESSION->wantsurl) {
$destination = $SESSION->wantsurl;
@@ -79,59 +39,32 @@
} else {
$destination = "$CFG->wwwroot/course/view.php?id=$course->id";
}
redirect($destination);
}
/// Automatically enrol into courses without password
if ($course->password == "") { // no password, so enrol
if (isguest()) {
add_to_log($course->id, "course", "guest", "view.php?id=$course->id", "$USER->id");
} else if (empty($confirm)) {
print_header($strloginto, $course->fullname, "<a href=\".\">$strcourses</a> -> $strloginto");
echo "<br />";
notice_yesno(get_string("enrolmentconfirmation"), "enrol.php?id=$course->id&confirm=1", $CFG->wwwroot);
print_footer();
exit;
} else {
if (! enrol_student($USER->id, $course->id)) {
error("An error occurred while trying to enrol you.");
}
add_to_log($course->id, "course", "enrol", "view.php?id=$course->id", "$USER->id");
$USER->student[$course->id] = true;
if ($SESSION->wantsurl) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
} else {
$destination = "$CFG->wwwroot/course/view.php?id=$course->id";
}
redirect($destination);
}
/// Users can't enroll to site course
if (!$course->category) {
print_header_simple();
notice(get_string('enrollfirst'), $CFG->wwwroot);
}
$teacher = get_teacher($course->id);
if (!isset($password)) {
$password = "";
/// Double check just in case they are enrolled to start in the future
if ($student = get_record('user_students', 'userid', $USER->id, 'course', $course->id)) {
$message = get_string('enrolmentnotyet', '', userdate($student->timestart));
print_header();
notice($message, $CFG->wwwroot);
}
/// Check the submitted enrollment key if there is one
print_header($strloginto, $course->fullname, "<A HREF=\".\">$strcourses</A> -> $strloginto", "form.password");
if ($form = data_submitted()) {
$enrol->check_entry($form, $course);
}
print_course($course);
include("enrol.html");
print_footer();
$enrol->print_entry($course);
/// Easy!
?>
+2 -2
View File
@@ -38,7 +38,7 @@
} else {
$subtext = get_string("subscribe", "forum");
}
$headertext = "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td>".
$headertext = "<table border=0 width=100% cellpadding=0 cellspacing=0 class=headingblockcontent><tr><td>".
get_string("socialheadline").
"</td><td align=right><font size=1>".
"<a href=\"../mod/forum/subscribe.php?id=$social->id\">$subtext</a></td>".
@@ -57,7 +57,7 @@
echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">';
print_course_blocks($course, $rightblocks, BLOCK_RIGHT);
if ($editing && !empty($missingblocks)) {
block_print_blocks_admin($course->id, $missingblocks);
block_print_blocks_admin($course, $missingblocks);
}
print_spacer(1, 120, true);
echo '</td>';
+6 -12
View File
@@ -98,7 +98,7 @@
$thissection = $sections[$section];
if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
echo "<tr>";
echo '<tr id="section_0">';
echo "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\" valign=top width=20>&nbsp;</td>";
echo "<td valign=top bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\" width=\"100%\">";
@@ -115,10 +115,7 @@
print_section($course, $thissection, $mods, $modnamesused);
if (isediting($course->id)) {
echo "<div align=right>";
popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&amp;section=$section&add=",
$modnames, "section$section", "", "$stradd...", "mods", $stractivities);
echo "</div>";
print_section_add_menus($course, $section, $modnames);
}
echo "</td>";
@@ -190,11 +187,11 @@
echo "</td>";
if (!isteacher($course->id) and !$thissection->visible) { // Hidden for students
echo "<td valign=top align=center $colormain width=\"100%\">";
echo '<td id="section_'.($section).'" style="vertical-align:top; text-align: center; width: 100%;" '.$colormain.'>';
echo get_string("notavailable");
echo "</td>";
} else {
echo "<td valign=top $colormain width=\"100%\">";
echo '<td id="section_'.($section).'" style="vertical-align:top; width: 100%;" '.$colormain.'>';
echo format_text($thissection->summary, FORMAT_HTML);
@@ -208,10 +205,7 @@
print_section($course, $thissection, $mods, $modnamesused);
if (isediting($course->id)) {
echo "<div align=right>";
popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&amp;section=$section&add=",
$modnames, "section$section", "", "$stradd...");
echo "</div>";
print_section_add_menus($course, $section, $modnames);
}
echo "</td>";
@@ -281,7 +275,7 @@
echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">';
print_course_blocks($course, $rightblocks, BLOCK_RIGHT);
if ($editing && !empty($missingblocks)) {
block_print_blocks_admin($course->id, $missingblocks);
block_print_blocks_admin($course, $missingblocks);
}
print_spacer(1, 120, true);
echo '</td>';
+3 -9
View File
@@ -104,10 +104,7 @@
print_section($course, $thissection, $mods, $modnamesused);
if (isediting($course->id)) {
echo "<div align=right>";
popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&amp;section=$section&add=",
$modnames, "section$section", "", "$stradd...", "mods", $stractivities);
echo "</div>";
print_section_add_menus($course, $section, $modnames);
}
echo "</td>";
@@ -201,10 +198,7 @@
print_section($course, $thissection, $mods, $modnamesused);
if (isediting($course->id)) {
echo "<div align=right>";
popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&amp;section=$section&add=",
$modnames, "section$section", "", "$stradd...");
echo "</div>";
print_section_add_menus($course, $section, $modnames);
}
echo "</td>";
@@ -267,7 +261,7 @@
echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">';
print_course_blocks($course, $rightblocks, BLOCK_RIGHT);
if ($editing && !empty($missingblocks)) {
block_print_blocks_admin($course->id, $missingblocks);
block_print_blocks_admin($course, $missingblocks);
}
print_spacer(1, 120, true);
echo '</td>';
+1 -1
View File
@@ -261,7 +261,7 @@
echo "</TABLE>";
$table->head = array_merge(array ("", get_string("firstname"), get_string("lastname")), $columnhtml, get_string("total"));
$table->head = array_merge(array ("", get_string("firstname"), get_string("lastname")), $columnhtml, array(get_string("total")));
$table->width = array(35, "");
$table->align = array("LEFT", "RIGHT", "LEFT");
foreach ($columns as $column) {
+1 -1
View File
@@ -95,7 +95,7 @@
include('group-edit.html');
if ($usehtmleditor) {
use_html_editor();
use_html_editor("description");
}
print_footer();
+1 -1
View File
@@ -49,7 +49,7 @@
$groups = get_groups($course->id);
if (!$USER->groupsediting) { /// Display an overview of all groups
if (empty($USER->groupsediting)) { /// Display an overview of all groups
if (!$groups) {
print_heading(get_string('groupsnone'));
+5 -9
View File
@@ -2,8 +2,8 @@
// For most people, just lists the course categories
// Allows the admin to create, delete and rename course categories
require_once("../config.php");
require_once("lib.php");
require_once("../config.php");
require_once("lib.php");
if (!$site = get_site()) {
error("Site isn't defined!");
@@ -76,7 +76,7 @@
$straction = get_string("action");
$straddnewcategory = get_string("addnewcategory");
print_header("$site->shortname: $strcategories", "$site->fullname",
print_header("$site->shortname: $strcategories", "$site->fullname",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strcategories",
"addform.addcategory", "", true, update_categories_button());
@@ -231,7 +231,6 @@
$categories = get_categories();
$default = 99999;
foreach ($categories as $category) {
fix_course_sortorder($category->id);
if ($category->id < $default) {
$default = $category->id;
}
@@ -239,17 +238,14 @@
/// Find any orphan courses that don't yet have a valid category and set to default
if ($courses = get_courses()) {
$foundorphans = false;
foreach ($courses as $course) {
if ($course->category and !isset($categories[$course->category])) {
set_field("course", "category", $default, "id", $course->id);
$foundorphans = true;
}
}
if ($foundorphans) {
fix_course_sortorder($default);
}
}
fix_course_sortorder();
/// Print form for creating new categories
+1 -1
View File
@@ -59,7 +59,7 @@
}
echo "$teacher->role: ";
link_to_popup_window ("/user/view.php?id=$teacher->id&course=$site->id", "opener",
"$teacher->firstname $teacher->lastname", 400, 500, "$teacher->role",
fullname($teacher), 400, 500, "$teacher->role",
"");
echo "<br />";
}
+251 -459
View File
File diff suppressed because it is too large Load Diff
+5 -4
View File
@@ -5,6 +5,7 @@
require_once("lib.php");
require_variable($id); // Course ID
optional_variable($group, -1); // Group to display
optional_variable($user, 0); // User to display
optional_variable($date, 0); // Date to display
optional_variable($modname, ""); // course_module->id
@@ -41,7 +42,7 @@
if (!$u = get_record("user", "id", $user) ) {
error("That's an invalid user!");
}
$userinfo = "$u->firstname $u->lastname";
$userinfo = fullname($u, isteacher($course->id));
}
if ($date) {
$dateinfo = userdate($date, get_string("strftimedaydate"));
@@ -59,11 +60,11 @@
print_heading("$course->fullname: $userinfo, $dateinfo (".usertimezone().")");
print_log_selector_form($course, $user, $date, $modname, $modid, $modaction);
print_log_selector_form($course, $user, $date, $modname, $modid, $modaction, $group);
print_log($course, $user, $date, "l.time DESC", $page, $perpage,
"log.php?id=$course->id&chooselog=1&user=$user&date=$date&modid=$modid&modaction=$modaction",
$modname, $modid, $modaction);
"log.php?id=$course->id&chooselog=1&user=$user&date=$date&modid=$modid&modaction=$modaction&group=$group",
$modname, $modid, $modaction, $group);
} else {
if ($course->category) {
+2
View File
@@ -40,6 +40,8 @@
error("Only teachers can use this page!");
}
check_for_restricted_user($USER->username, "$CFG->wwwroot/user/view.php?id=$user&course=$course->id");
if ($course->category and !isstudent($course->id, $user) and !isadmin()) {
error("This student is not in this course!");
}
+88 -4
View File
@@ -1,6 +1,6 @@
<?PHP // $Id$
// Moves, adds, updates or deletes modules in a course
// Moves, adds, updates, duplicates or deletes modules in a course
require("../config.php");
require("lib.php");
@@ -48,6 +48,11 @@
switch ($mod->mode) {
case "update":
if (trim($mod->name) == '') {
unset($mod->name);
}
$return = $updateinstancefunction($mod);
if (!$return) {
if (file_exists($moderr)) {
@@ -60,6 +65,9 @@
if (is_string($return)) {
error($return, "view.php?id=$course->id");
}
$SESSION->returnpage = "$CFG->wwwroot/mod/$mod->modulename/view.php?id=$mod->coursemodule";
add_to_log($course->id, "course", "update mod",
"../mod/$mod->modulename/view.php?id=$mod->coursemodule",
"$mod->modulename $mod->instance");
@@ -69,6 +77,11 @@
break;
case "add":
if (trim($mod->name) == '') {
$mod->name = get_string("modulename", $mod->modulename);
}
$return = $addinstancefunction($mod);
if (!$return) {
if (file_exists($moderr)) {
@@ -104,6 +117,9 @@
if (! set_field("course_modules", "section", $sectionid, "id", $mod->coursemodule)) {
error("Could not update the course module with the correct section");
}
$SESSION->returnpage = "$CFG->wwwroot/mod/$mod->modulename/view.php?id=$mod->coursemodule";
add_to_log($course->id, "course", "add mod",
"../mod/$mod->modulename/view.php?id=$mod->coursemodule",
"$mod->modulename $mod->instance");
@@ -111,6 +127,7 @@
"view.php?id=$mod->coursemodule",
"$mod->instance", $mod->coursemodule);
break;
case "delete":
if (! $deleteinstancefunction($mod->instance)) {
notify("Could not delete the $mod->modulename (instance)");
@@ -121,6 +138,9 @@
if (! delete_mod_from_section($mod->coursemodule, "$mod->section")) {
notify("Could not delete the $mod->modulename from that section");
}
unset($SESSION->returnpage);
add_to_log($course->id, "course", "delete mod",
"view.php?id=$mod->course",
"$mod->modulename $mod->instance", $mod->coursemodule);
@@ -394,9 +414,8 @@
$strdeletecheck = get_string("deletecheck", "", "$form->fullmodulename");
$strdeletecheckfull = get_string("deletecheckfull", "", "$form->fullmodulename '$form->instancename'");
print_header("$course->shortname: $strdeletecheck", "$course->fullname",
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->
$strdeletecheck");
print_header_simple("$strdeletecheck", "$",
"$strdeletecheck");
print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
print_heading($strdeletecheckfull);
@@ -456,6 +475,57 @@
$pageheading = get_string("updatinga", "moodle", $fullmodulename);
}
} else if (isset($_GET['duplicate'])) { // value = course module
if (! $cm = get_record("course_modules", "id", $_GET['duplicate'])) {
error("This course module doesn't exist");
}
if (! $course = get_record("course", "id", $cm->course)) {
error("This course doesn't exist");
}
if (!isteacheredit($course->id)) {
error("You can't modify this course!");
}
if (! $module = get_record("modules", "id", $cm->module)) {
error("This module doesn't exist");
}
if (! $form = get_record($module->name, "id", $cm->instance)) {
error("The required instance of this module doesn't exist");
}
if (! $cw = get_record("course_sections", "id", $cm->section)) {
error("This course section doesn't exist");
}
if (isset($return)) {
$SESSION->returnpage = "$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id";
}
$section = get_field('course_sections', 'section', 'id', $cm->section);
$form->coursemodule = $cm->id;
$form->section = $section; // The section ID
$form->course = $course->id;
$form->module = $module->id;
$form->modulename = $module->name;
$form->instance = $cm->instance;
$form->mode = "add";
$sectionname = get_string("name$course->format");
$fullmodulename = strtolower(get_string("modulename", $module->name));
if ($form->section) {
$heading->what = $fullmodulename;
$heading->in = "$sectionname $cw->section";
$pageheading = get_string("duplicatingain", "moodle", $heading);
} else {
$pageheading = get_string("duplicatinga", "moodle", $fullmodulename);
}
} else if (isset($_GET['add'])) {
@@ -482,6 +552,9 @@
$form->instance = "";
$form->coursemodule = "";
$form->mode = "add";
if (isset($_GET['type'])) {
$form->type = $_GET['type'];
}
$sectionname = get_string("name$course->format");
$fullmodulename = get_string("modulename", $module->name);
@@ -527,6 +600,13 @@
if (file_exists($modform)) {
if ($usehtmleditor = can_use_html_editor()) {
$defaultformat = FORMAT_HTML;
$editorfields = '';
} else {
$defaultformat = FORMAT_MOODLE;
}
$icon = "<img align=absmiddle height=16 width=16 src=\"$CFG->modpixpath/$module->name/icon.gif\">&nbsp;";
print_heading_with_help($pageheading, "mods", $module->name, $icon);
@@ -534,6 +614,10 @@
include_once($modform);
print_simple_box_end();
if ($usehtmleditor and empty($nohtmleditorneeded)) {
use_html_editor($editorfields);
}
} else {
notice("This module cannot be added to this course yet! (No file found at: $modform)", "$CFG->wwwroot/course/view.php?id=$course->id");
}
+365
View File
@@ -0,0 +1,365 @@
<?PHP // $Id$
// Displays all activity for non-quiz modules for a course
///This version allows students to see their own activity, but not that of others.
///For teachers only, clicking on a student's name brings up the Moodle user activity summary.
require_once("../config.php");
require_once("lib.php");
require_once("../lib/datalib.php");
//module, location of user data,pointer
$quick_dataloc["assignment"] = array("assignment_submissions","assignment");
$quick_dataloc["choice"] = array("choice_answers","choice");
$quick_dataloc["dialogue"] = array("dialogue_entries","dialogue");
$quick_dataloc["discussion"] = array("forum_posts","discussion");
$quick_dataloc["journal"] = array("journal_entries","journal");
$quick_dataloc["quiz"] = array("quiz_attempts","quiz");
$quick_dataloc["survey"] = array("survey_analysis","survey");
$quick_dataloc["workshop"] = array("workshop_submissions","workshopid");
$usemods = ",assignment,choice,dialogue,forum,journal,quiz,survey,workshop";
$modlist = get_records("modules","visible",1);
foreach ($modlist as $nowmod){
if (strpos($usemods,$nowmod->name)){
$modnames[$nowmod->id] = $nowmod->name;
}
}
//needed for cases when a particular module type needs special treatment (assignment,forum)
$modname_value = array_flip($modnames);
require_variable($id); // course id
optional_variable($download, ""); // to download data
require_login();
if (! $course = get_record("course", "id", $id)) {
error("Course ID was incorrect");
}
//take each event and create an array type/event/user hierarchy
//we need to get the entire list of enrolled students for the course so that we can list by student
if (isteacher($course->id)) {
$isstudent = 0;
} elseif (isstudent($course->id)) {
$isstudent = 1;
} else {
error("You are not registered for this course");
}
$courseid = $course->id;
//Get the ids of all course users
$allusers = quick_findusers($course->id);
//Get all postings from this course's users
$allposts = quick_findposts($course->id);
//count posts per user by looping thru $allposts and put counts in $post_counts
foreach ($allposts as $thispost){
$post_counts[$thispost->forumid][$thispost->userid]++;
}
$allmods = quick_moduleorder($course->id);
//Now take all mods and build an object $mod_info for only those modules that will be reported
//Concurrently build a $mods_week array that says how many columns will be in the header per week
$modcount = -1;
foreach($allmods as $thismod){
$modcount++;
//get the info on this module from course_modules
$nowmod = get_record("course_modules","id",$thismod[mod]);
$noworder = get_record("course_sections","id",$nowmod->section);
//only add to array the module is contained in the $modnames array
if ($modnames[$nowmod->module]){
//section is the entry in course_sections which says which instances
///reside in the section and which week/section they are in
$mod_info[$modcount][section] = $nowmod->section;
//module is the type of module (assignment, forum, etc.)
$mod_info[$modcount][module] = $nowmod->module;
//modid is the id of the module in "course_modules" table
$mod_info[$modcount][modid] = $nowmod->id;
//week is the current week/section that the module resides in
$mod_info[$modcount][week] = $noworder->section;
//instance in the relevant module table will yield the name
$mod_info[$modcount][instance] = $nowmod->instance;
//Count how many instances in each week for colspan purposes
if ($mods_week[$noworder->section]){
$mods_week[$noworder->section]++;
} else {
$mods_week[$noworder->section] = 1;
}
//Now add the name of the module to $mods_info
$mod_info[$modcount][name] = get_field($modnames[$nowmod->module],"name","id",$nowmod->instance);
} else {
$modcount--;
}
}
//Catalog by user all activity for every module
//This will include modules to be ignored later, but it is easier this way
//Data for each user can be retrieved by matching$rec->name with $mod_info name(created above)
//Create a comma-delimited string in $user_data with the IDs of each user in an array of mod type(module) + modid
foreach ($modnames as $nowtype => $nowname){
$now_module = $nowname;
$now_user_table = $quick_dataloc[$now_module][0]; //name of table containing individual user records
$now_pointer = $quick_dataloc[$now_module][1]; // the field in above with pointer to table with name of activity
// Now set up a table for each separate instance of the module with a listing of the users
$allrecs = quick_findrecs($now_module,$now_user_table,$now_pointer,$course->id);
if ($allrecs) {
foreach ($allrecs as $rec){
$np = $rec->instance;
if ($nowname == "assignment"){
// For assignments, a record is created for all students when the assmt is created
//the timemodified is 0 until the student submits an assignment
if ($rec->timemodified != 0) {
$user_data[$nowtype][$np] = $user_data[$nowtype][$np] . ",$rec->userid,";
}
} else {
$user_data[$nowtype][$np] = $user_data[$nowtype][$np] . ",$rec->userid,";
}
}
}
}
if ($allposts) {
foreach ($allposts as $rec){
$forumval = $modname_value["forum"];
$user_data[$forumval][$rec->forumid] = $user_data[$forumval][$rec->forumid] . ",$rec->userid,";
// echo "<br>" . $rec->forumid . $rec->name . "<br>";
}
}
//now go through the $mod_info array in order of the users, and find whether each user contributed, put in $user_contribs
foreach($allusers as $user){
$uid = $user->id;
foreach ($mod_info as $thismod){
if(strlen($user_data[$thismod[module]][$thismod[instance]]) < 2){
$user_contribs[$uid][] = "-";
continue;
}
//For forums count the number of contributions. For others, just "x" or "-";
if ($thismod[module] == $modname_value["forum"]) {
$puid = $post_counts[$uid];
if ($post_counts[$thismod[instance]][$uid] > 0){
$user_contribs[$uid][] = $post_counts[$thismod[instance]][$uid];
} else {
$user_contribs[$uid][] = "-";
}
} else {
//see if "comma+userid+comma " exists
$sstring = ",$user->id,";
if(strpos($user_data[$thismod[module]][$thismod[instance]],$sstring)> -1){
$user_contribs[$uid][] = "X";
}else {
$user_contribs[$uid][] = "-";
}
}
}
}
//if Excel spreadsheet requested
if ($download == "xls") {
require_once("$CFG->libdir/excel/Worksheet.php");
require_once("$CFG->libdir/excel/Workbook.php");
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=$course->shortname"."_quickreport.xls");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");
$workbook = new Workbook("-");
// Creating the first worksheet
$myxls = &$workbook->add_worksheet('Quick Report');
$myxls->write_string(0,0,$quiz->name);
$myxls->set_column(0,0,25);
$formaty =& $workbook->add_format();
$formaty->set_bg_color('yellow');
$formatyc =& $workbook->add_format();
$formatyc->set_bg_color('yellow');
$formatyc->set_bold(1);
$formatyc->set_align('center');
$formatc =& $workbook->add_format();
$formatc->set_align('center');
$formatb =& $workbook->add_format();
$formatb->set_bold(1);
$row = 1;
$col = 2;
/// Print names of all the fields
///First labels to show week/section
if ($course->format == "weeks") {$formatname = "Week";} else {$formatname = "Section";}
foreach($mods_week as $week=>$wkcount){
for ($i = 0; $i < $wkcount;$i++) {
$col++;
$col_label = "$formatname $week";
$myxls->write_string($row,$col,$col_label,$formatb);
}
}
//now labels for module names
$row++;
$col=0;
$myxls->write_string($row,$col,"Student",$formatb);
$col++;
$myxls->write_string($row,$col,"Picture",$formatb);
$col++;
$myxls->write_string($row,$col,"Profile",$formatb);
//get the names of each module instance and put in header
foreach($mod_info as $thiscat=>$thismod){
$modname = ucwords($modnames[$thismod[module]]);
$col++;
$col_label = "$modname $thismod[name]";
$myxls->write_string($row,$col,$col_label,$formatb);
}
/// Print all the user data
$row++;
foreach ($user_contribs as $userid=>$thisuser){
$row++;
$col=0;
$fullname = ucwords($allusers[$userid]->lastname) . ", " . ucwords($allusers[$userid]->firstname);
$myxls->write_string($row,$col,$fullname,$formatb);
$col++;
if($allusers[$userid]->picture){
$myxls->write_string($row,$col,"X",$formatc);
} else {
$myxls->write_string($row,$col,"-",$formatc);
}
$col++;
if (strlen($allusers[$userid]->description) > 10) {
$myxls->write_string($row,$col,"X",$formatc);
} else {
$myxls->write_string($row,$col,"-",$formatc);
}
foreach ($thisuser as $thismod) {
$col++;
$myxls->write_string($row,$col,$thismod,$formatc);
}
}
$workbook->close();
exit;
}
quick_headers($course);
$quick_bgcount = 0;
echo "<table>";
//printer header line with weeks
$options["id"] = $course->id;
$options["download"] = "xls";
print ( "<tr valign=top><td colspan=3>");
print_single_button("quickreport.php", $options, get_string("downloadexcel"));
print ("</td>");
if ($course->format == "weeks") {$formatname = "Week";} else {$formatname = "Section";}
foreach($mods_week as $week=>$wkcount){
print "<td colspan=$wkcount>$formatname $week</td>";
}
echo "<tr valign=top><td width='150'>Student</td><td>Picture</td><td>Profile</td>";
//get the names of each module instance and put in header
foreach($mod_info as $thiscat=>$thismod){
$modname = ucwords($modnames[$thismod[module]]);
print ("<td> $modname <br><font size=-1>$thismod[name]</font></td>");
}
echo "</tr>\n";
foreach ($user_contribs as $userid=>$thisuser){
$quick_bgcount++;
if ($quick_bgcount%3 == 0) {
echo "<tr align=center bgcolor='#ffffff'>";
} else {
echo "<tr align=center>";
}
$fullname = ucwords($allusers[$userid]->lastname) . ", " . ucwords($allusers[$userid]->firstname);
if (!$isstudent){
$fullname = "<a href=user.php?id=$course->id&user=$userid>$fullname</a>";
}
echo "<td align=left><b>$fullname</b></td>";
$picture = print_user_picture($userid, $course->id, $allusers[$userid]->picture, false, true);
echo "<td>" . $picture . "</td>";
if (strlen($allusers[$userid]->description) > 10) {quick_show("X");} else {quick_show("-");}
foreach ($thisuser as $thismod) {
quick_show($thismod);
}
echo "</tr>\n";
}
echo "</table>\n";
print_footer($course);
function quick_findusers($courseid){
global $CFG,$USER,$isstudent;
if ($isstudent){
$studcondition = "AND a.id = $USER->id";
} else {
$studcondition = "";
}
$allusers = get_records_sql("SELECT a.id,a.lastname, a.firstname,a.picture,a.description,b.course
FROM {$CFG->prefix}user a,
{$CFG->prefix}user_students b
WHERE b.course = $courseid AND
b.userid = a.id $studcondition
ORDER BY a.lastname ASC, a.firstname ASC");
return $allusers;
}
function quick_findrecs($tbl1,$tbl2,$pointer,$courseid){
global $CFG;
$allrecs = get_records_sql("SELECT b.id,a.id, c.id,c.lastname, c.firstname,a.course,a.name ,b.userid,b.timemodified, b.$pointer as instance
FROM {$CFG->prefix}$tbl1 a,
{$CFG->prefix}$tbl2 b,
{$CFG->prefix}user c,
{$CFG->prefix}course_modules d
WHERE a.course = $courseid AND
a.id = b.$pointer AND
c.id = b.userid AND
d.instance = b.$pointer");
/// ORDER BY e.section ASC
// print("<h3>All records: $tbl1</h3>");
// print_object($allrecs);
return $allrecs;
}
function quick_findposts($courseid){
global $CFG;
//this will allow records to be identified by Forum but not by thread (no b.id)
$allposts = get_records_sql("SELECT
c.id, c.userid,a.id as forumid,a.name
FROM {$CFG->prefix}forum a,
{$CFG->prefix}forum_discussions b,
{$CFG->prefix}forum_posts c
WHERE b.course = $courseid AND
a.id = b.forum AND
c.discussion = b.id
ORDER BY forumid ASC");
return $allposts;
}
function quick_moduleorder($courseid){
//using course_sections which gives the sections & sequence, build an array with each section + item pair
// echo "<br>Course= " . $courseid . "<br>";
$allmods = get_records("course_sections","course",$courseid,"section","id,section,sequence");
// print_object($allmods);
// $modsequence
foreach ($allmods as $thisweek){
// print_object($thisweek);
if ($thisweek->sequence){
// print ("$thisweek->sequence");
$weeklist = explode(",",$thisweek->sequence);
foreach($weeklist as $activity){
$all_list[] =array("mod"=>$activity,"sec"=>$thisweek->section);
}
// print_object($weeklist);
} else {
// print ("<br>No modules this week<br>");
}
}
return $all_list;
}
function quick_headers($course){
global $CFG;
print_header("$course->shortname: 'Quick Report'", "$course->fullname",
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>
-> 'Quick Report'");
}
function quick_show($x){
echo "<td align=center>";
print ("$x");
echo "</td>";
}
?>
+25 -19
View File
@@ -8,6 +8,7 @@
require_variable($id);
optional_variable($user);
optional_variable($sortby, 'default');
if (! $course = get_record("course", "id", $id) ) {
error("That's an invalid course id");
@@ -33,7 +34,7 @@
}
$userinfo = fullname($u);
}
if ($date)
if ($date)
$dateinfo = userdate($date, get_string("strftimedaydate"));
if ($course->category) {
@@ -42,8 +43,7 @@
<a href=\"recent.php?id=$course->id\">$strrecentactivity</a> -> $userinfo, $dateinfo", "");
} else {
print_header("$course->shortname: $strrecentactivity", "$course->fullname",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> ->
<a href=\"recent.php?id=$course->id\">$strrecentactivity</a> -> $userinfo, $dateinfo", "");
"<a href=\"recent.php?id=$course->id\">$strrecentactivity</a> -> $userinfo, $dateinfo", "");
}
print_heading("$course->fullname: $userinfo, $dateinfo (".usertimezone().")");
@@ -67,15 +67,21 @@
"<a href=\"view.php?id=$course->id\">$course->shortname</a> -> $strrecentactivity", "");
} else {
print_header("$course->shortname: $strrecentactivity", "$course->fullname",
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strrecentactivity", "");
"$strrecentactivity", "");
}
print_heading(get_string("activitysince", "", userdate($date)));
if (!isset($advancedfilter)) {
$advancedfilter = 0;
}
print_recent_selector_form($course, $advancedfilter);
}
if (!isset($modid)) {
$modid="activity/All";
}
$tmpmodid = $modid;
switch ($tmpmodid) {
@@ -167,22 +173,22 @@
AND m.id = cm.module $activityfilter
AND cm.id = '$sectionmod'");
$groupmode = groupmode($course, $coursemod);
$groupmode = groupmode($course, $coursemod);
switch ($groupmode) {
case SEPARATEGROUPS : $groupid = mygroupid($course->id); break;
case VISIBLEGROUPS :
case VISIBLEGROUPS :
if ($selectedgroup == "allgroups") {
$groupid = "";
} else {
$groupid = $selectedgroup;
}
}
break;
case NOGROUPS :
default : $groupid = "";
}
}
$libfile = "$CFG->dirroot/mod/$coursemod->name/lib.php";
if (file_exists($libfile)) {
require_once($libfile);
$get_recent_mod_activity = $coursemod->name."_get_recent_mod_activity";
@@ -191,7 +197,7 @@
$activity->type = "activity";
$activity->name = $instance->name;
$activity->visible = $coursemod->visible;
$activity->content->fullname = $mod->modfullname;
$activity->content->modfullname = $mod->modfullname;
$activity->content->modname = $mod->modname;
$activity->content->modid =$mod->id;
$activities[$index] = $activity;
@@ -208,9 +214,9 @@
switch ($sortby) {
case "datedesc" : usort($activities, "compare_activities_by_time_desc"); break;
case "dateasc" : usort($activities, "compare_activities_by_time_asc"); break;
case "default" :
case "default" :
default : $detail = false; $sortby = "default";
}
if (!empty($activities)) {
@@ -234,8 +240,8 @@
// peak at next activity. If it's another section, don't print this one!
// this means there are no activities in the current section
if (($activity->type == "section") &&
(($activity_count == ($key + 1)) ||
if (($activity->type == "section") &&
(($activity_count == ($key + 1)) ||
($activities[$key+1]->type == "section"))) {
continue;
@@ -261,21 +267,21 @@
}
$image = "<img src=\"$CFG->modpixpath/" . $activity->content->modname . "/icon.gif\"" .
"height=16 width=16 alt=\"" . $activity->content->modfullname . "\">";
echo "<ul><h4>$image " . $activity->content->modfullname .
"<a href=\"$CFG->wwwroot/mod/" . $activity->content->modname . "/view.php?" .
echo "<ul><h4>$image " . $activity->content->modfullname .
" <a href=\"$CFG->wwwroot/mod/" . $activity->content->modname . "/view.php?" .
"id=" . $activity->content->modid . "\" $linkformat>" .
$activity->name . "</a></h4></ul>";
}
} else {
if (!$inbox) {
print_simple_box_start("center", "90%");
$inbox = true;
}
$print_recent_mod_activity = $activity->type."_print_recent_mod_activity";
if (function_exists($print_recent_mod_activity)) {
echo '<ul><ul>';
$print_recent_mod_activity($activity, $course->id, $detail);
+80
View File
@@ -0,0 +1,80 @@
<form name="studentform" id="studentform" method="post" action="student.php">
<input type="hidden" name="previoussearch" value="<?php echo $previoussearch ?>">
<input type="hidden" name="id" value="<?php echo $id?>">
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<?php echo count($students) . " ". $strexistingstudents ?>
</td>
<td></td>
<td valign="top">
<?php echo $usercount . " " . $strpotentialstudents ?>
</td>
</tr>
<tr>
<td valign="top">
<select name="removeselect[]" size="20" id="removeselect" multiple
onFocus="document.studentform.add.disabled=true;
document.studentform.remove.disabled=false;
document.studentform.addselect.selectedIndex=-1;">
<?php
foreach ($students as $student) {
$fullname = fullname($student, true);
echo "<option value=\"$student->id\">".$fullname.", ".$student->email."</option>\n";
}
?>
</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">
<select name="addselect[]" size="20" id="addselect" multiple
onFocus="document.studentform.add.disabled=false;
document.studentform.remove.disabled=true;
document.studentform.removeselect.selectedIndex=-1;">
<?php
if (!empty($searchusers)) {
echo "<optgroup label=\"$strsearchresults (" . count($searchusers) . ")\">\n";
foreach ($searchusers as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
echo "</optgroup>\n";
}
if (!empty($users)) {
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
}
}
?>
</select>
<br />
<input type="text" name="searchtext" size="30" value="<?php echo $searchtext ?>"
onFocus ="document.studentform.add.disabled=true;
document.studentform.remove.disabled=true;
document.studentform.removeselect.selectedIndex=-1;
document.studentform.addselect.selectedIndex=-1;"
onkeydown = "var keyCode = event.which ? event.which : event.keyCode;
if (keyCode == 13) {
document.studentform.previoussearch.value=1;
document.studentform.submit();
} " />
<input name="search" id="search" type="submit" value="<?php p($strsearch) ?>" />
<?php
if (!empty($searchusers)) {
echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
}
?>
</td>
</tr>
</table>
</form>
+83 -114
View File
@@ -1,7 +1,7 @@
<?PHP // $Id$
// Script to assign students to courses
require_once("../config.php");
require_once("../config.php");
define("MAX_USERS_PER_PAGE", 50);
@@ -33,142 +33,111 @@
$strremovestudent = get_string("removestudent");
$strsearch = get_string("search");
$strsearchresults = get_string("searchresults");
$strsearchagain = get_string("searchagain");
$strtoomanytoshow = get_string("toomanytoshow");
$strstudents = get_string("students");
$strunenrolallstudents = get_string("unenrolallstudents");
$strunenrolallstudentssure = get_string("unenrolallstudentssure");
$strshowall = get_string("showall");
if ($search) {
$searchstring = $strsearchagain;
} else {
$searchstring = $strsearch;
}
if ($course->students != $strstudents) {
$parastudents = " ($course->students)";
} else {
$parastudents = "";
$strassignstudents .= " ($course->students)";
$strpotentialstudents .= " ($course->students)";
$strexistingstudents .= " ($course->students)";
}
print_header("$course->shortname: $strassignstudents",
print_header("$course->shortname: $strassignstudents",
"$site->fullname",
"<a href=\"view.php?id=$course->id\">$course->shortname</a> -> $strassignstudents", "");
"<a href=\"view.php?id=$course->id\">$course->shortname</a> -> $strassignstudents",
"studentform.searchtext");
/// Add a student if one is specified
/// Don't allow restricted teachers to even see this page (because it contains
/// a lot of email addresses and access to all student on the server
if (!empty($add)) {
if (! enrol_student($add, $course->id)) {
error("Could not add that student to this course!");
}
}
/// Remove a student if one is specified.
if (!empty($remove)) {
if (! unenrol_student($remove, $course->id)) {
error("Could not remove that student from this course!");
}
}
/// Remove all students from specified course
if (!empty($removeall)) {
$students = get_course_students($course->id, "u.lastname ASC, u.firstname ASC");
foreach ($students as $student) {
if (! unenrol_student($student->id, $course->id)) {
$fullname = fullname($student, true);
notify("Could not remove $fullname from this course!");
}
}
}
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
/// Print a help notice about the need to use this page
if (empty($add) and empty($remove) and empty($search)) {
$note = get_string("assignstudentsnote");
if (!$frm = data_submitted()) {
$note = get_string("assignstudentsnote");
if ($course->password) {
$note .= "<p>".get_string("assignstudentspass", "", "<a href=\"edit.php?id=$course->id\">$course->password</a>");
$note .= "<p>".get_string("assignstudentspass", "",
"<a href=\"edit.php?id=$course->id\">$course->password</a>");
}
print_simple_box($note, "center", "50%");
}
/// Get all existing students for this course.
$students = get_course_students($course->id, "u.lastname ASC, u.firstname ASC");
/// Print the lists of existing and potential students
echo "<table cellpadding=1 cellspacing=5 align=center>";
echo "<tr><th width=50%>$strexistingstudents$parastudents</th><td>&nbsp;</td><th width=50%>$strpotentialstudents</th></tr>";
echo "<tr><td width=50% nowrap valign=top>";
/// First, show existing students for this course
if (empty($students)) {
echo "<p align=center>$strnoexistingstudents</a>";
$studentlist = "";
/// A form was submitted so process the input
} else {
$studentarray = array();
foreach ($students as $student) {
$studentarray[] = $student->id;
$fullname = fullname($student, true);
echo "<p align=right>$fullname, $student->email &nbsp;&nbsp; <a href=\"student.php?id=$course->id&remove=$student->id\" title=\"$strremovestudent\"><img src=\"../pix/t/right.gif\" border=0></a></p>";
}
$studentlist = implode(",",$studentarray);
unset($studentarray);
// button to unenrol all students from course
echo "<p>&nbsp;</p>\n";
echo "<p align=\"center\">\n";
echo "<input type=\"button\" value=\"$strunenrolallstudents\" ".
" OnClick=\"ctemp = window.confirm('".addslashes($strunenrolallstudentssure)."'); ".
" if(ctemp) window.location.href='student.php?id=$course->id&removeall=1';\"/>\n";
echo "</p>\n";
}
echo "<td>&nbsp;</td>";
echo "<td width=50% nowrap valign=top>";
/// Print list of potential students
$usercount = get_users(false, $search, true, $studentlist, "lastname ASC, firstname ASC");
if ($usercount == 0) {
echo "<p align=center>$strnopotentialstudents</p>";
} else if ($usercount > MAX_USERS_PER_PAGE) {
echo "<p align=center>$strtoomanytoshow ($usercount) </p>";
} else {
if ($search) {
echo "<p align=center>($strsearchresults : $search)</p>";
}
if (!$users = get_users(true, $search, true, $studentlist)) {
error("Could not get users!");
}
foreach ($users as $user) {
$fullname = fullname($user, true);
echo "<p align=left><a href=\"student.php?id=$course->id&add=$user->id\"".
"title=\"$straddstudent\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;$fullname, $user->email";
if (!empty($frm->add) and !empty($frm->addselect)) {
if ($course->enrolperiod) {
$timestart = time();
$timeend = $timestart + $course->enrolperiod;
} else {
$timestart = $timeend = 0;
}
foreach ($frm->addselect as $addstudent) {
if (! enrol_student($addstudent, $course->id, $timestart, $timeend)) {
error("Could not add student with id $addstudent to this course!");
}
}
} else if (!empty($frm->remove) and !empty($frm->removeselect)) {
foreach ($frm->removeselect as $removestudent) {
if (! unenrol_student($removestudent, $course->id)) {
error("Could not remove student with id $removestudent from this course!");
}
}
} else if (!empty($frm->showall)) {
unset($frm->searchtext);
$frm->previoussearch = 0;
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
echo "<form action=student.php 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>";
$previoussearch = (!empty($frm->search) or ($frm->previoussearch == 1)) ;
/// Get all existing students and teachers for this course.
if (!$students = get_course_students($course->id, "u.firstname ASC, u.lastname ASC", "", 0, 99999,
'', '', NULL, '', 'u.id,u.firstname,u.lastname,u.email')) {
$students = array();
}
if (!$teachers = get_course_teachers($course->id)) {
$teachers = array();
}
$existinguserarray = array();
foreach ($students as $student) {
$existinguserarray[] = $student->id;
}
foreach ($teachers as $teacher) {
$existinguserarray[] = $teacher->id;
}
$existinguserlist = implode(',', $existinguserarray);
unset($existinguserarray);
/// Get search results excluding any users already in this course
if (!empty($frm->searchtext) and $previoussearch) {
$searchusers = get_users(true, $frm->searchtext, true, $existinguserlist, 'firstname ASC, lastname ASC',
'', '', 0, 99999, 'id, firstname, lastname, email');
$usercount = get_users(false, '', true, $studentlist);
}
/// If no search results then get potential students for this course excluding users already in course
if (empty($searchusers)) {
if (!$users = get_users(true, '', true, $existinguserlist, 'firstname ASC, lastname ASC', '', '',
0, 99999, 'id, firstname, lastname, email') ) {
$users = array();
}
$usercount = count($users);
}
echo "</tr></table>";
$searchtext = (isset($frm->searchtext)) ? $frm->searchtext : "";
$previoussearch = ($previoussearch) ? '1' : '0';
print_simple_box_start("center", "", "$THEME->cellheading");
include('student.html');
print_simple_box_end();
print_footer();
+2 -2
View File
@@ -20,8 +20,8 @@
require_login($course->id);
if ($user->id != $USER->id and !isteacher($course->id)) {
error("You must be a teacher to do this");
if ($user->id != $USER->id and !isteacheredit($course->id)) {
error("You must be a teacher with editing rights to do this");
}
if ($user->id == $USER->id and !$CFG->allowunenroll) {
+13 -21
View File
@@ -2,10 +2,9 @@
// Display the course home page.
require_once("../config.php");
require_once("lib.php");
require_once("$CFG->libdir/blocklib.php");
require_once('../calendar/lib.php');
require_once('../config.php');
require_once('lib.php');
require_once($CFG->libdir.'/blocklib.php');
optional_variable($id);
optional_variable($name);
@@ -26,27 +25,14 @@
require_login($course->id);
require_once($CFG->dirroot.'/calendar/lib.php'); /// This is after login because it needs $USER
add_to_log($course->id, "course", "view", "view.php?id=$course->id", "$course->id");
if (!file_exists($CFG->dirroot.'/course/format/'.$course->format.'/format.php')) {
$course->format = 'weeks'; // Default format is weeks
}
// Can't avoid this... :(
switch($course->format) {
case 'weeks':
$courseformat = COURSE_FORMAT_WEEKS;
break;
case 'topics':
$courseformat = COURSE_FORMAT_TOPICS;
break;
case 'social':
$courseformat = COURSE_FORMAT_SOCIAL;
break;
default:
$courseformat = 0;
}
// Doing this now so we can pass the results to block_action()
// and dodge the overhead of doing the same work twice.
@@ -117,7 +103,13 @@
// If it's not hidden or displayed right now...
if(!in_array($recblock->id, $allblocks) && !in_array(-($recblock->id), $allblocks)) {
// And if it's applicable for display in this format...
if(block_method_result($recblock->name, 'applicable_formats') & $courseformat) {
$formats = block_method_result($recblock->name, 'applicable_formats');
if( isset($formats[$course->format]) ? $formats[$course->format] : !empty($formats['all'])) {
// Translation: if the course format is explicitly accepted/rejected, use
// that setting. Otherwise, fallback to the 'all' format. The empty() test
// uses the trick that empty() fails if 'all' is either !isset() or false.
// Add it to the missing blocks
$missingblocks[] = $recblock->id;
}
@@ -198,6 +190,6 @@
require("$CFG->dirroot/course/format/$course->format/format.php"); // Include the actual course format
print_footer();
print_footer(NULL, $course);
?>
+13 -1
View File
@@ -1,4 +1,3 @@
body, td, th, li {
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}
@@ -117,3 +116,16 @@ ul {
margin-top: 10px;
}
.commandline {
font-family: "Courier New", Courier, mono;
font-size: x-small;
background-color: #FBFBFB;
margin: auto auto 20px 30px;
padding: 5px;
width: compact;
font-weight: bold;
border: 1px solid #999999;
white-space: nowrap;
clear: both;
float: none;
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

+15
View File
@@ -0,0 +1,15 @@
ENROLMENT MODULES
-----------------
(Yes, that's the correct English spelling ;-) )
enrol.class.php contains the base class and explains
all the possible functions that an enrolment module
can have.
Each plugin is in a subfolder here and extends the
base class as necessary.
Martin Dougiamas and Shane Elliott, Moodle.com
+118
View File
@@ -0,0 +1,118 @@
<table cellspacing="0" cellpadding="5" border="0" align="center">
<tr valign="top">
<td align="right"><p>enrol_dbtype:</p></td>
<td>
<?php $dbtypes = array("access","ado_access", "ado", "ado_mssql", "borland_ibase", "csv", "db2", "fbsql", "firebird", "ibase", "informix72", "informix", "mssql", "mysql", "mysqlt", "oci805", "oci8", "oci8po", "odbc", "odbc_mssql", "odbc_oracle", "oracle", "postgres64", "postgres7", "postgres", "proxy", "sqlanywhere", "sybase", "vfp");
foreach ($dbtypes as $dbtype) {
$dboptions[$dbtype] = $dbtype;
}
choose_from_menu($dboptions, "enrol_dbtype", $frm->enrol_dbtype, '', '', '');
?>
</td>
<td>
<?php print_string("dbtype","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_dbhost:</p></td>
<td>
<input size="15" type="text" name="enrol_dbhost" value="<?php echo $frm->enrol_dbhost ?>" />
</td>
<td>
<?php print_string("dbhost","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_dbuser:</p></td>
<td>
<input size="15" type="text" name="enrol_dbuser" value="<?php echo $frm->enrol_dbuser ?>" />
</td>
<td>
<?php print_string("dbuser","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_dbpass:</p></td>
<td>
<input size="15" type="text" name="enrol_dbpass" value="<?php echo $frm->enrol_dbpass ?>" />
</td>
<td>
<?php print_string("dbpass","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_dbname:</p></td>
<td>
<input size="15" type="text" name="enrol_dbname" value="<?php echo $frm->enrol_dbname ?>" />
</td>
<td>
<?php print_string("dbname","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_dbtable:</p></td>
<td>
<input size="15" type="text" name="enrol_dbtable" value="<?php echo $frm->enrol_dbtable ?>" />
</td>
<td>
<?php print_string("dbtable","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_localcoursefield:</p></td>
<td>
<input size="15" type="text" name="enrol_localcoursefield" value="<?php echo $frm->enrol_localcoursefield ?>" />
</td>
<td>
<?php print_string("localcoursefield","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_localuserfield:</p></td>
<td>
<input size="15" type="text" name="enrol_localuserfield" value="<?php echo $frm->enrol_localuserfield ?>" />
</td>
<td>
<?php print_string("localuserfield","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_remotecoursefield:</p></td>
<td>
<input size="15" type="text" name="enrol_remotecoursefield" value="<?php echo $frm->enrol_remotecoursefield ?>" />
</td>
<td>
<?php print_string("remotecoursefield","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_remoteuserfield:</p></td>
<td>
<input size="15" type="text" name="enrol_remoteuserfield" value="<?php echo $frm->enrol_remoteuserfield ?>" />
</td>
<td>
<?php print_string("remoteuserfield","enrol_database") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_allowinternal:</p></td>
<td>
<input type="checkbox" name="enrol_allowinternal" <?php if ($frm->enrol_allowinternal) echo "checked=\"true\"" ?> />
</td>
<td>
<?php print_string('allowinternal') ?>
</td>
</tr>
</table>
+161
View File
@@ -0,0 +1,161 @@
<?php // $Id$
require_once("$CFG->dirroot/enrol/enrol.class.php");
class enrolment_plugin extends enrolment_base {
var $log;
/// Leave get_teacher_courses() function unchanged for the time being
/// Leave cron() function unchanged
/// Overide the base get_student_courses() function
function get_student_courses(&$user) {
global $CFG;
parent::get_student_courses($user);
// This is a hack to workaround what seems to be a bug in ADOdb with accessing
// two databases of the same kind ... it seems to get confused when trying to access
// the first database again, after having accessed the second.
// The following hack will make the database explicit which keeps it happy
if (strpos($CFG->prefix, $CFG->dbname) === false) {
$CFG->prefix = "$CFG->dbname.$CFG->prefix";
}
// Connect to the external database
$enroldb = &ADONewConnection($CFG->enrol_dbtype);
if ($enroldb->PConnect($CFG->enrol_dbhost,$CFG->enrol_dbuser,$CFG->enrol_dbpass,$CFG->enrol_dbname)) {
foreach ($user->student as $courseid=>$value) {
/// Get the value of the local course field
$localcoursevalue = getfield("course", $CFG->enrol_localcoursefield, "id", $courseid);
/// Find a record in the external database that matches the local course field and local user field
/// to the respective remote fields
$rs = $enroldb->Execute("SELECT * FROM $CFG->enrol_dbtable
WHERE $CFG->enrol_remotecoursefield = '$localcoursevalue'
AND $CFG->enrol_remoteuserfield = '{$user->$CFG->enrol_localuserfield}' ");
/// If no records existed then student has been unenrolled externally.
/// Unenrol locally and remove entry from the $user->student array
if (! ($rs->RecordCount()) ) {
unenrol_student($user->id, $courseid);
unset ($user->student[$courseid]);
}
}
$enroldb->Close();
}
}
/// Override the base print_entry() function
function print_entry($course) {
global $CFG;
if (! empty($CFG->enrol_allowinternal) ) {
parent::print_entry($course);
} else {
print_header();
notice(get_string("enrolmentnointernal"), $CFG->wwwroot);
}
}
/// Override the base check_entry() function
function check_entry($form, $course) {
global $CFG;
if (! empty($CFG->enrol_allowinternal) ) {
parent::check_entry($form, $course);
}
}
/// Overide the get_access_icons() function
function get_access_icons($course) {
}
/// Overrise the base config_form() function
function config_form($frm) {
global $CFG;
include("$CFG->dirroot/enrol/database/config.html");
}
/// Override the base process_config() function
function process_config($config) {
if (!isset($config->enrol_dbtype)) {
$config->enrol_dbtype = 'mysql';
}
set_config('enrol_dbtype', $config->enrol_dbtype);
if (!isset($config->enrol_dbhost)) {
$config->enrol_dbhost = '';
}
set_config('enrol_dbhost', $config->enrol_dbhost);
if (!isset($config->enrol_dbuser)) {
$config->enrol_dbuser = '';
}
set_config('enrol_dbuser', $config->enrol_dbuser);
if (!isset($config->enrol_dbpass)) {
$config->enrol_dbpass = '';
}
set_config('enrol_dbpass', $config->enrol_dbpass);
if (!isset($config->enrol_dbname)) {
$config->enrol_dbname = '';
}
set_config('enrol_dbname', $config->enrol_dbname);
if (!isset($config->enrol_dbtable)) {
$config->enrol_dbtable = '';
}
set_config('enrol_dbtable', $config->enrol_dbtable);
if (!isset($config->enrol_localcoursefield)) {
$config->enrol_localcoursefield = '';
}
set_config('enrol_localcoursefield', $config->enrol_localcoursefield);
if (!isset($config->enrol_localuserfield)) {
$config->enrol_localuserfield = '';
}
set_config('enrol_localuserfield', $config->enrol_localuserfield);
if (!isset($config->enrol_remotecoursefield)) {
$config->enrol_remotecoursefield = '';
}
set_config('enrol_remotecoursefield', $config->enrol_remotecoursefield);
if (!isset($config->enrol_remoteuserfield)) {
$config->enrol_remoteuserfield = '';
}
set_config('enrol_remoteuserfield', $config->enrol_remoteuserfield);
if (!isset($config->enrol_allowinternal)) {
$config->enrol_allowinternal = '';
}
set_config('enrol_allowinternal', $config->enrol_allowinternal);
return true;
}
} // end of class
?>
+329
View File
@@ -0,0 +1,329 @@
<?php /// $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.org //
// //
// Copyright (C) 2004 Martin Dougiamas http://moodle.com //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
/**
* enrolment_base is the base class for enrolment plugins
*
* This class provides all the functionality for an enrolment plugin
* In fact it includes all the code for the default, "internal" method
* so that other plugins can override these as necessary.
*/
class enrolment_base {
var $errormsg;
/**
* Returns information about the courses a student has access to
*
* Set the $user->student course array
* Set the $user->timeaccess course array
*
* @param user referenced object, must contain $user->id already set
*/
function get_student_courses(&$user) {
if ($students = get_records("user_students", "userid", $user->id)) {
$currenttime = time();
foreach ($students as $student) {
/// Is course visible?
if (get_field("course", "visible", "id", $student->course)) {
/// Is the student enrolment active right now?
if ( ( $student->timestart == 0 or ( $currenttime > $student->timestart )) and
( $student->timeend == 0 or ( $currenttime < $student->timeend )) ) {
$user->student[$student->course] = true;
$user->timeaccess[$student->course] = $student->timeaccess;
}
}
}
}
}
/**
* Returns information about the courses a student has access to
*
* Set the $user->teacher course array
* Set the $user->teacheredit course array
* Set the $user->timeaccess course array
*
* @param user referenced object, must contain $user->id already set
*/
function get_teacher_courses(&$user) {
if ($teachers = get_records("user_teachers", "userid", $user->id)) {
$currenttime = time();
foreach ($teachers as $teacher) {
/// Is teacher only teaching this course for a specific time period?
if ( ( $teacher->timestart == 0 or ( $currenttime > $teacher->timestart )) and
( $teacher->timeend == 0 or ( $currenttime < $teacher->timeend )) ) {
$user->teacher[$teacher->course] = true;
if ($teacher->editall) {
$user->teacheredit[$teacher->course] = true;
}
$user->timeaccess[$teacher->course] = $teacher->timeaccess;
}
}
}
}
/**
* Prints the entry form/page for this enrolment
*
* This is only called from course/enrol.php
* Most plugins will probably override this to print payment
* forms etc, or even just a notice to say that manual enrolment
* is disabled
*
* @param course current course object
*/
function print_entry($course) {
global $CFG, $USER, $SESSION, $THEME;
$strloginto = get_string("loginto", "", $course->shortname);
$strcourses = get_string("courses");
/// Automatically enrol into courses without password
if ($course->password == "") { // no password, so enrol
if (isguest()) {
add_to_log($course->id, "course", "guest", "view.php?id=$course->id", "$USER->id");
} else if (empty($_GET['confirm'])) {
print_header($strloginto, $course->fullname, "<a href=\".\">$strcourses</a> -> $strloginto");
echo "<br />";
notice_yesno(get_string("enrolmentconfirmation"), "enrol.php?id=$course->id&confirm=1", $CFG->wwwroot);
print_footer();
exit;
} else {
if ($course->enrolperiod == 0) {
$timestart = 0;
$timeend = 0;
} else {
$timestart = time();
$timeend = time() + $course->enrolperiod;
}
if (! enrol_student($USER->id, $course->id, $timestart, $timeend)) {
error("An error occurred while trying to enrol you.");
}
add_to_log($course->id, "course", "enrol", "view.php?id=$course->id", "$USER->id");
$USER->student[$course->id] = true;
if ($SESSION->wantsurl) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
} else {
$destination = "$CFG->wwwroot/course/view.php?id=$course->id";
}
redirect($destination);
}
}
$teacher = get_teacher($course->id);
if (!isset($password)) {
$password = "";
}
print_header($strloginto, $course->fullname, "<A HREF=\".\">$strcourses</A> -> $strloginto", "form.password");
print_course($course);
include("$CFG->dirroot/enrol/internal/enrol.html");
print_footer();
}
/**
* The other half to print_entry, this checks the form data
*
* This function checks that the user has completed the task on the
* enrolment entry page and then enrolls them.
*
* @param form the form data submitted, as an object
* @param course the current course, as an object
*/
function check_entry($form, $course) {
global $CFG, $USER, $SESSION, $THEME;
if ($form->password == $course->password) {
if (isguest()) {
add_to_log($course->id, "course", "guest", "view.php?id=$course->id", $_SERVER['REMOTE_ADDR']);
} else if (!record_exists("user_students", "userid", $USER->id, "course", $course->id)) {
if (! enrol_student($USER->id, $course->id)) {
error("An error occurred while trying to enrol you.");
}
$subject = get_string("welcometocourse", "", $course->fullname);
$a->coursename = $course->fullname;
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id";
$message = get_string("welcometocoursetext", "", $a);
if (! $teacher = get_teacher($course->id)) {
$teacher = get_admin();
}
email_to_user($USER, $teacher, $subject, $message);
add_to_log($course->id, "course", "enrol", "view.php?id=$course->id", "$USER->id");
}
$USER->student[$course->id] = true;
if ($SESSION->wantsurl) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
} else {
$destination = "$CFG->wwwroot/course/view.php?id=$course->id";
}
redirect($destination);
} else {
$this->errormsg = get_string("enrolmentkeyhint", "", substr($course->password,0,1));
}
}
/**
* Prints a form for configuring the current enrolment plugin
*
* This function is called from admin/enrol.php, and outputs a
* full page with a form for defining the current enrolment plugin.
*
* @param page an object containing all the data for this page
*/
function config_form($page) {
}
/**
* Processes and stored configuration data for the enrolment plugin
*
* Processes and stored configuration data for the enrolment plugin
*
* @param config all the configuration data as entered by the admin
*/
function process_config($config) {
$return = true;
foreach ($config as $name => $value) {
if (!set_config($name, $value)) {
$return = false;
}
}
return $return;
}
/**
* This function is run by admin/cron.php every time
*
* The cron function can perform regular checks for the current
* enrollment plugin. For example it can check a foreign database,
* all look for a file to pull data in from
*
*/
function cron() {
// Delete students from all courses where their enrolment period has expired
$select = "timeend > '0' AND timeend < '" . time() . "'";
if ($students = get_records_select('user_students', $select)) {
foreach ($students as $student) {
unenrol_student($student->userid, $student->course);
}
}
if ($teachers = get_records_select('user_teachers', $select)) {
foreach ($teachers as $teacher) {
remove_teacher($teacher->userid, $teacher->course);
}
}
}
/**
* Returns the relevant icons for a course
*
* Returns the relevant icons for a course
*
* @param course the current course, as an object
*/
function get_access_icons($course) {
global $CFG;
$str = '';
if ($course->guest) {
$strallowguests = get_string("allowguests");
$str .= "<a title=\"$strallowguests\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
$str .= "<img vspace=4 alt=\"$strallowguests\" height=16 width=16 border=0 src=\"$CFG->pixpath/i/guest.gif\"></a>&nbsp;&nbsp;";
}
if ($course->password) {
$strrequireskey = get_string("requireskey");
$str .= "<a title=\"$strrequireskey\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
$str .= "<img vspace=4 alt=\"$strrequireskey\" height=16 width=16 border=0 src=\"$CFG->pixpath/i/key.gif\"></a>";
}
return $str;
}
} /// end of class
?>
+53
View File
@@ -0,0 +1,53 @@
<table cellspacing="0" cellpadding="5" border="0" align="center">
<tr valign="top">
<td align="right"><p>enrol_flatfilelocation:</p></td>
<td>
<input type="text" size="20" name="enrol_flatfilelocation" value="<?php echo $frm->enrol_flatfilelocation ?>" />
</td>
<td>
<?php print_string("location", "enrol_flatfile") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_mailstudents:</p></td>
<td>
<input type="checkbox" value=1 name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
</td>
<td>
<?php print_string("mailstudents") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_mailteachers:</p></td>
<td>
<input type="checkbox" value=1 name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
</td>
<td>
<?php print_string("mailteachers") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_mailadmins:</p></td>
<td>
<input type="checkbox" value=1 name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
</td>
<td>
<?php print_string("mailadmins") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>enrol_allowinternal:</p></td>
<td>
<input type="checkbox" value=1 name="enrol_allowinternal" <?php if ($frm->enrol_allowinternal) echo "checked=\"true\"" ?> />
</td>
<td>
<?php print_string('allowinternal') ?>
</td>
</tr>
</table>
+273
View File
@@ -0,0 +1,273 @@
<?php
require_once("$CFG->dirroot/enrol/enrol.class.php");
// The following flags are set in the configuration
// $CFG->enrol_flatfilelocation: where is the file we are looking for?
// $CFG->enrol_allowinternal: allow internal enrolment in courses
// $CFG->enrol_emailstudents: send email to students when they are enrolled in a course
// $CFG->enrol_emailteachers: send email to teachers when they are enrolled in a course
// $CFG->enrol_emailadmins: email the log from the cron job to the admin
class enrolment_plugin extends enrolment_base {
var $log;
/// Override the base print_entry() function
function print_entry($course) {
global $CFG;
if (! empty($CFG->enrol_allowinternal) ) {
parent::print_entry($course);
} else {
print_header();
notice(get_string("enrolmentnointernal"), $CFG->wwwroot);
}
}
/// Override the base check_entry() function
function check_entry($form, $course) {
global $CFG;
if (! empty($CFG->enrol_allowinternal) ) {
parent::check_entry($form, $course);
}
}
/// Override the base config_form() function
function config_form($frm) {
global $CFG;
include ("$CFG->dirroot/enrol/flatfile/config.html");
}
/// Override the base process_config() function
function process_config($config) {
if (!isset($config->enrol_flatfilelocation)) {
$config->enrol_flatfilelocation = '';
}
set_config('enrol_flatfilelocation', $config->enrol_flatfilelocation);
if (!isset($config->enrol_mailstudents)) {
$config->enrol_mailstudents = '';
}
set_config('enrol_mailstudents', $config->enrol_mailstudents);
if (!isset($config->enrol_mailteachers)) {
$config->enrol_mailteachers = '';
}
set_config('enrol_mailteachers', $config->enrol_mailteachers);
if (!isset($config->enrol_mailadmins)) {
$config->enrol_mailadmins = '';
}
set_config('enrol_mailadmins', $config->enrol_mailadmins);
if (!isset($config->enrol_allowinternal)) {
$config->enrol_allowinternal = '';
}
set_config('enrol_allowinternal', $config->enrol_allowinternal);
return true;
}
/**
* Override the base cron() function to read in a file
*
* Comma separated file assumed to have four or six fields per line:
* operation, role, idnumber(user), idnumber(course) [, starttime, endtime]
* where:
* operation = add | del
* role = student | teacher | teacheredit
* idnumber(user) = idnumber in the user table NB not id
* idnumber(course) = idnumber in the course table NB not id
* starttime = start time (in seconds since epoch) - optional
* endtime = end time (in seconds since epoch) - optional
*/
function cron() {
global $CFG;
/// call the base class
parent::cron();
if (empty($CFG->enrol_flatfilelocation)) {
$filename = "$CFG->dataroot/1/enrolments.txt"; // Default location
} else {
$filename = $CFG->enrol_flatfilelocation;
}
if ( file_exists($filename) ) {
$this->log = userdate(time()) . "\n";
$this->log .= "Flatfile enrol cron found file: $filename\n\n";
if (($fh = fopen($filename, "r")) != false) {
$line = 0;
while (!feof($fh)) {
$line++;
$fields = explode( ",", str_replace( "\r", "", fgets($fh) ) );
/// If a line is incorrectly formatted ie does not have 4 comma separated fields then ignore it
if (count($fields) != 4 and count($fields) !=6) {
if ( count($fields) > 1 or strlen($fields[0]) > 1) { // no error for blank lines
$this->log .= "$line: Line incorrectly formatted - ignoring\n";
}
continue;
}
$fields[0] = trim(strtolower($fields[0]));
$fields[1] = trim(strtolower($fields[1]));
$fields[2] = trim($fields[2]);
$fields[3] = trim($fields[3]);
$this->log .= "$line: $fields[0] $fields[1] $fields[2] $fields[3] ";
if (!empty($fields[5])) {
$fields[4] = (int)trim($fields[4]);
$fields[5] = (int)trim($fields[5]);
$this->log .= "$fields[4] $fields[5]";
} else {
$fields[4] = 0;
$fields[5] = 0;
}
$this->log .= ":";
/// check correct formatting of operation field
if ($fields[0] != "add" and $fields[0] != "del") {
$this->log .= "Unknown operation in field 1 - ignoring line\n";
continue;
}
/// check correct formatting of role field
if ($fields[1] != "student" and $fields[1] != "teacher" and $fields[1] != "teacheredit") {
$this->log .= "Unknown role in field2 - ignoring line\n";
continue;
}
if (! $user = get_record("user", "idnumber", $fields[2]) ) {
$this->log .= "Unknown user idnumber in field 3 - ignoring line\n";
continue;
}
if (! $course = get_record("course", "idnumber", $fields[3]) ) {
$this->log .= "Unknown course idnumber in field 4 - ignoring line\n";
continue;
}
if ($fields[4] > $fields[5]) {
$this->log .= "Start time was later than end time - ignoring line\n";
continue;
}
unset($elog);
switch ($fields[1]) {
case "student":
if ($fields[0] == "add") {
if (! enrol_student($user->id, $course->id, $fields[4], $fields[5])) {
$elog = "Error enrolling in course\n";
}
} else {
if (! unenrol_student($user->id, $course->id)) {
$elog = "Error unenrolling from course\n";
}
}
break;
case "teacher":
if ($fields[0] == "add") {
if (! add_teacher($user->id, $course->id, 0, '', $fields[4], $fields[5])) {
$elog = "Error adding teacher to course\n";
}
} else {
if (! remove_teacher($user->id, $course->id)) {
$elog = "Error removing teacher from course\n";
}
}
break;
case "teacheredit":
if ($fields[0] == "add") {
if (! add_teacher($user->id, $course->id, 1, '', $fields[4], $fields[5])) {
$elog = "Error adding teacher to course\n";
}
} else {
if (! remove_teacher($user->id, $course->id)) {
$elog = "Error removing teacher from course\n";
}
}
break;
default: // should never get here as checks made above for correct values of $fields[1]
} // end of switch
if ( empty($elog) and ($fields[0] == "add") ) {
if ($fields[1] == "student") {
if (! $teacher = get_teacher($course->id)) {
$teacher = get_admin();
}
} else {
$teacher = get_admin();
}
if (!empty($CFG->enrol_mailstudents)) {
$a->coursename = "$course->fullname";
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id";
email_to_user($user, $teacher, get_string("enrolmentnew", '', $course->shortname),
get_string('welcometocoursetext', '', $a));
}
if (!empty($CFG->enrol_mailteachers)) {
$a->course = "$course->fullname";
$a->user = fullname($user);
email_to_user($teacher, $user, get_string("enrolmentnew", '', $course->shortname),
get_string('enrolmentnewuser', '', $a));
}
}
if (empty($elog)) {
$elog = "OK\n";
}
$this->log .= $elog;
} // end of while loop
fclose($fh);
} // end of if(file_open)
if(! @unlink($filename)) {
email_to_user(get_admin(), get_admin(), get_string("filelockedmailsubject", "enrol_flatfile"), get_string("filelockedmail", "enrol_flatfile", $filename));
$this->log .= "Error unlinking file $filename\n";
}
if (!empty($CFG->enrol_mailadmins)) {
email_to_user(get_admin(), get_admin(), "Flatfile Enrolment Log", $this->log);
}
} // end of if(file_exists)
} // end of function
} // end of class
?>
+6
View File
@@ -0,0 +1,6 @@
add, student, 5, CF101
add, teacher, 6, CF101
add, teacheredit, 7, CF101
del, student, 8, CF101
del, student, 17, CF101
add, student, 21, CF101, 1091115000, 1091215000

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